------------------------------------------------------------
CPU Engine-------can set up VMs
Kubernete Engine-----can deploy Docker Images
App Engine--------can deploy application, but have to use google's db.
Cloud Function-------can deploy a single purpose function.
------------------------------------------------------------
pub/sub-------can be used to cache
------------------------------------------------------------
BigQuery--------good for query. support super big data.
BigTable-------like cassandra, data can bei clustered in many nodes, while if you want to find data, have to specify a node.
------------------------------------------------------------
Redis--------can be used to cache data to reduce the times of visiting db.
------------------------------------------------------------

-- Sam 16:01 29/09/2020

Reids 
  1. 如果在google cloud上面建立了一個memery cach instnce,我是想說像redis這樣的東西。建好了以後你會發現本地程序連不上去。
  2. 本地的redis desktop manager 也連不上去。
  3. 這時候,我們需要做兩件事情:
    1. 在雲端建立了一個computer engine,這個compute engine忘了算是個什麽東西,但看起來這裏的作用是用來鏈接到redis去。
      1. 要注意這個compute engine的所在區域,和機房必須和redis所在的區域和機房是一樣的。
      2. 也可以在本地google could shell中用命令生成:gcloud compute instances create redis-forwarder --machine-type=f1-micro
    2. 從運行一個命令讓遠程的redis
      1. gcloud compute ssh redis-forwarder -- -N -L 6379:10.73.233.59:6379
      2. 得到成功反饋:No zone specified. Using zone [us-east1-b] for instance: [redis-forwarder].
      3. 估計這個shell命令同樣可以在頁面上完成,因爲我看到每個compute Engine的後面都有一個SSH的按鈕。
    3.  如果本地的google cloud sdk的設置跟compute engine所在的區域+機房不符合,那麽將導致命令的失敗。
      1. fix 辦法:本地cloud shell中運行: gcloud init,然後把區域+機房設置成目標所在的區域+機房。
-- Sam 16:31 07/01/2021
 if want your cloud function can visit a Redis, have to generate a serverless VPC for it. and make sure the cloud function, VPC, Redis are in the same section (centra1)
-- Sam 16:03 29/09/2020

Please click here to login and add comments! || automatically refresh content every seconds