區域
SaaS Runtime 適用於下列區域。如要進一步瞭解地區和區域,請參閱「地理位置與區域」一文。
Asia Pacific
The following table lists the available regions in Asia Pacific.
| Region description | Region name |
|---|---|
| Tokyo, Japan | asia-northeast1 |
| Osaka, Japan | asia-northeast2 |
| Seoul, South Korea | asia-northeast3 |
| Taiwan | asia-east1 |
| Hong Kong | asia-east2 |
| Mumbai, India | asia-south1 |
| Delhi, India | asia-south2 |
| Singapore | asia-southeast1 |
| Jakarta, Indonesia | asia-southeast2 |
| Sydney, Australia | australia-southeast1 |
| Melbourne, Australia | australia-southeast2 |
Europe
The following table lists the available regions in Europe.
| Region description | Region name |
|---|---|
| Hamina, Finland | europe-north1 |
| Stockholm, Sweden | europe-north2 |
| Warsaw, Poland | europe-central2 |
| St. Ghislain, Belgium | europe-west1 |
| London, England | europe-west2 |
| Frankfurt, Germany | europe-west3 |
| Milan, Italy | europe-west8 |
| Paris, France | europe-west9 |
| Berlin, Germany | europe-west10 |
| Turin, Italy | europe-west12 |
| Eemshaven, Netherlands | europe-west4 |
| Zurich, Switzerland | europe-west6 |
| Madrid, Spain | europe-southwest1 |
Americas
The following table lists the available regions in the Americas.
| Region description | Region name |
|---|---|
| Moncks Corner, South Carolina | us-east1 |
| Columbus, Ohio | us-east5 |
| Ashburn, Virginia | us-east4 |
| The Dalles, Oregon | us-west1 |
| Los Angeles, California | us-west2 |
| Salt Lake City, Utah | us-west3 |
| Las Vegas, Nevada | us-west4 |
| Council Bluffs, Iowa | us-central1 |
| Dallas, Texas | us-south1 |
| Montréal, Canada | northamerica-northeast1 |
| Toronto, Canada | northamerica-northeast2 |
| Queretaro, Mexico | northamerica-south1 |
| São Paulo, Brazil | southamerica-east1 |
| Santiago, Chile | southamerica-west1 |
Middle-East and Africa
The following table lists the available regions in the Middle-East and Africa.
| Region description | Region name |
|---|---|
| Johannesburg, South Africa | africa-south1 |
| Doha, Qatar | me-central1 |
| Dammam, Saudi Arabia | me-central2 |
| Tel Aviv, Israel | me-west1 |
「saas.locations」欄位
SaaS 產品資源中的 saas.locations 欄位會定義 SaaS 執行階段單元可存放的位置,以及如何管理推出作業。saas.locations 欄位是 SaaS 產品支援區域的單一可靠資料來源。
推出區域化注意事項
階段推出作業支援的地區取決於 SaaS 產品支援的地區 (saas.locations) 中定義的頂層區域。
發布作業會直接從相關聯的 SaaS 產品 saas.locations 欄位讀取支援的區域清單。
資源複製
建立發布內容和單元 kind 等 SaaS 執行階段資源時,除了 global 區域外,還需要將這些資源傳播至 SaaS 服務的 saas.locations 欄位中指定的所有區域。
複製資源可確保 SaaS 產品支援的區域內,資料一致且可用。
舉例來說,如果 saas.locations 設為 ['us-central1', 'eu-west1'],您應該會有三個 SaaS 服務資源:
global會員價 (入會費.location = 'global')us-central1會員價 (入會費.location = 'us-central1')eu-west1會員價 (入會費.location = 'eu-west1')
這三項 SaaS 產品資源的 .locations 欄位 (['us-central1','eu-west1']) 都會相同。同樣地,SaaS 執行階段也需要 global、us-central1 和 eu-west1 中的單元種類和版本。
處理對 saas.locations 欄位或複製到各區域的其他資源所做的編輯時,會受到限制。您必須手動將編輯內容套用至每個複製的資源。
使用 Google Cloud 控制台與 Google Cloud CLI 進行複製
資源複製功能會因您使用 Google Cloud 控制台或 Google Cloud CLI/API 而異。
- 使用 Google Cloud 控制台:SaaS Runtime 會自動在
global和saas.locations列出的每個區域中建立資源。 - 使用 Google Cloud CLI 或 API:您有責任在
global和saas.locations列出的每個區域中手動建立資源。
將「global」做為區域使用
一般不建議在 saas.locations 欄位中加入 global 做為區域。無法將推出作業部署至 global 區域。
推出作業一律會在 saas.locations 欄位列出的每個區域中建立區域推出作業。您可以使用 global 進行協調,但請避免在 saas.locations 欄位中將 global 列為部署目標。
Artifact Registry 和 Developer Connect 位置
Artifact Registry 存放區和 Developer Connect 執行個體的位置有特定需求:
Artifact Registry 存放區和 Developer Connect 執行個體的區域可以是任何有效的 Google Cloud 區域。這些項目不必納入
saas.locations。Artifact Registry 存放區的區域必須與 Developer Connect 執行個體的區域相符。
佈建單元時,SaaS 執行階段會將構件從 Artifact Registry 存放區複製到要部署單元的區域。
因此,即使 Artifact Registry 和 Developer Connect 位於單一 (可能不同的) 區域,
saas.locations列出的所有區域都必須有 SaaS 產品、版本和單元類型資源。只能在
saas.locations欄位中指定的區域建立單位。除非明確指定,否則系統不會將單元傳播至global,且不建議這麼做。
SaaS 執行階段區域設定範例
我們提供這個範例,說明使用 SaaS 執行階段時的區域化運作方式。
舉例來說,如果您想在 us-central1 和 europe-west4 中部署 SaaS 產品,同時在 us-east1 中託管 Artifact Registry 存放區和 Developer Connect 執行個體,SaaS Runtime 區域基礎架構會類似於:
saas.locations:['us-central1', 'europe-west4']- Artifact Registry 存放區區域:
us-east1 - Developer Connect 執行個體區域:
us-east1 SaaS 產品、單元類型和版本資源:由 SaaS 執行階段在
global、us-central1和europe-west4中使用 SaaS 執行階段在Google Cloud 控制台中建立。單元:單元可以在
us-central11或europe-west4中建立。
透過這項設定,您可以在兩個區域管理部署作業,同時在第三個獨立區域集中管理構件。選擇區域時,請仔細考量延遲時間、法規遵循和資料落地要求。