重新启用服务后无法使用 Composer 环境
Can't use Composer environment after re-enabling service
我一直在尝试通过在不使用时将其禁用来找到一种节省 Airflow 成本的方法。我发现,如果我们在不使用时禁用 composer.googleapis.com
服务,那么 Google 在禁用时不会对服务收费,尽管它会继续对仍处于活动状态的其他资源收费。不幸的是,如果该服务被禁用超过一个小时左右,则该服务在重新启用后将无法使用。长时间禁用该服务后,Composer 环境详细信息页面显示
An error occurred with retrieving the last operation on this environment
和
This environment cannot be edited due to the errors that occurred during environment creation/update. Please investigate the logs to determine the cause, or create a new environment.
并且gcloud composer environments describe
显示state: ERROR
我在日志中确实看到的一个错误是由于 airflow_monitoring
DAG 在一个多小时后重新安排时的重复键造成的。因此,创建了一个新的 Composer 环境,禁用了所有 DAG,禁用了 composer 服务,稍等片刻,然后再次启用它。环境再次处于错误状态。
Cloud Composer documentation 状态:
If you disable the Cloud Composer API, environments become unusable within an hour of service deactivation unless you re-enable the API. If you re-enable the API, you are billed for the service usage that occurs while the Cloud Composer service is deactivating.
也许这是措辞不当,但对我来说,如果您禁用它,它会在一个小时内变得无法使用,但如果您稍后重新启用它,它将再次可用。我想知道这是否真的意味着如果禁用它,您必须在 1 小时内重新启用它,否则它将永久无法使用。
有没有办法禁用 composer.googleapis.com
服务超过一个小时,然后在重新启用该服务后使其再次运行?有什么我可以重新启动的东西,或者有什么方法可以清除错误状态吗?在禁用它之前我还应该做些什么吗?
我正在使用 composer-1.10.4-airflow-1.10.6
和 Python 3.
谢谢。
不,无法将 composer.googleapis.com
服务禁用超过一个小时,然后在重新启用后让环境正常运行。
GCP 服务并不意味着 enabled/disabled 以这种方式即时运行,并且服务的禁用是为了长期禁用它而执行的。保持服务禁用足够长的时间意味着 Google 为该服务(特别是为您的项目)创建的托管组件将被停用,在 Composer 的情况下,这将使您的环境永久无法使用。
无法清除环境中的错误状态。如果您想节省成本,您应该删除 Composer 环境,而不是完全停用该服务。 "service" 不是集群式的,并不意味着可以打开和关闭。
我一直在尝试通过在不使用时将其禁用来找到一种节省 Airflow 成本的方法。我发现,如果我们在不使用时禁用 composer.googleapis.com
服务,那么 Google 在禁用时不会对服务收费,尽管它会继续对仍处于活动状态的其他资源收费。不幸的是,如果该服务被禁用超过一个小时左右,则该服务在重新启用后将无法使用。长时间禁用该服务后,Composer 环境详细信息页面显示
An error occurred with retrieving the last operation on this environment
和
This environment cannot be edited due to the errors that occurred during environment creation/update. Please investigate the logs to determine the cause, or create a new environment.
并且gcloud composer environments describe
显示state: ERROR
我在日志中确实看到的一个错误是由于 airflow_monitoring
DAG 在一个多小时后重新安排时的重复键造成的。因此,创建了一个新的 Composer 环境,禁用了所有 DAG,禁用了 composer 服务,稍等片刻,然后再次启用它。环境再次处于错误状态。
Cloud Composer documentation 状态:
If you disable the Cloud Composer API, environments become unusable within an hour of service deactivation unless you re-enable the API. If you re-enable the API, you are billed for the service usage that occurs while the Cloud Composer service is deactivating.
也许这是措辞不当,但对我来说,如果您禁用它,它会在一个小时内变得无法使用,但如果您稍后重新启用它,它将再次可用。我想知道这是否真的意味着如果禁用它,您必须在 1 小时内重新启用它,否则它将永久无法使用。
有没有办法禁用 composer.googleapis.com
服务超过一个小时,然后在重新启用该服务后使其再次运行?有什么我可以重新启动的东西,或者有什么方法可以清除错误状态吗?在禁用它之前我还应该做些什么吗?
我正在使用 composer-1.10.4-airflow-1.10.6
和 Python 3.
谢谢。
不,无法将 composer.googleapis.com
服务禁用超过一个小时,然后在重新启用后让环境正常运行。
GCP 服务并不意味着 enabled/disabled 以这种方式即时运行,并且服务的禁用是为了长期禁用它而执行的。保持服务禁用足够长的时间意味着 Google 为该服务(特别是为您的项目)创建的托管组件将被停用,在 Composer 的情况下,这将使您的环境永久无法使用。
无法清除环境中的错误状态。如果您想节省成本,您应该删除 Composer 环境,而不是完全停用该服务。 "service" 不是集群式的,并不意味着可以打开和关闭。