【问题标题】:How to pause a Google Cloud Composer Environment?如何暂停 Google Cloud Composer 环境?
【发布时间】:2022-11-23 23:40:31
【问题描述】:

我们已经构建了一个 google cloud composer 环境,但只需要将它用于测试目的。有没有办法暂停环境并仅在需要时使用它? 我无法找到一种方法来做到这一点。

请建议是否有任何解决方案可以暂停或禁用它,而不是删除它。 谢谢!

我试图找到一种方法来禁用/暂停环境,但找不到任何方法。

【问题讨论】:

  • 简而言之,你不能。

标签: google-cloud-platform airflow google-cloud-composer


【解决方案1】:

你不能那样做,但如果你使用Cloud Composer2,它会使用GKEautopilot模式。

如果集群中没有 DAG 执行,autopilot 模式将被优化。

如果它用于测试目的,我建议您使用 small 环境大小和关于 worker 和网络服务器的廉价和小型配置:cpu、内存和存储...,例如:

gcloud composer environments create example-environment 
    --location us-central1 
    --image-version composer-2.0.31-airflow-2.2.5 
    --environment-size small 
    --scheduler-count 1 
    --scheduler-cpu 0.5 
    --scheduler-memory 2.5 
    --scheduler-storage 2 
    --web-server-cpu 1 
    --web-server-memory 2.5 
    --web-server-storage 2 
    --worker-cpu 1 
    --worker-memory 2 
    --worker-storage 2 
    --min-workers 1 
    --max-workers 2

查看documentation,了解您的情况下的最佳尺寸。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-02-15
    • 1970-01-01
    • 1970-01-01
    • 2018-09-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-05
    相关资源
    最近更新 更多