簡體   English   中英

在Compute Engine上連接Redis時,Google Cloud App Engine標准環境節點JS連接超時

[英]Google Cloud App Engine Standard Environment Node JS connection timeout when connecting Redis on Compute Engine

我最近發現App Engine標准環境可以運行NodeJS。 https://cloud.google.com/appengine/docs/standard/nodejs/setting-up-environment

我已經將Node JS應用程序從靈活環境遷移到標准環境。 我已解決了大多數問題,但無法弄清楚如何通過App Engine Standard Environment for NodeJS在Compute Engine上連接我的Redis實例。 (相同的項目環境)

我需要更改某些設置嗎? 我無法連接它,連接到Redis時總是出現連接超時錯誤,並且我無法找到與此相關的參考/教程。

這是我的app.yaml

runtime: nodejs8
service: some-app

env_variables:
  NODE_ENV: "production"
  TMP_PATH: "/tmp"

beta_settings:
  cloud_sql_instances: some-connection-string

另請注意,我正在使用內部IP連接到Redis,當我在靈活環境中時,它確實可以工作。

現在這是不可能的,僅在靈活的環境中才允許這種連接。 這是在Google的問題跟蹤器中提出的功能請求 您可以對其加注星標,以表明您也對此類功能感興趣。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM