繁体   English   中英

气流花荚重启

[英]Airflow flower pod restarting

我在 GCP 上安装 airflow 2.4.3。 pod 气流花不断重新启动。

以下是日志的快照:-

[notice] A new release of pip available: 22.1.2 -> 22.3.1
[notice] To update, run: python -m pip install --upgrade pip
/home/airflow/.local/lib/python3.7/site-packages/airflow/configuration.py:1379: DeprecationWarning: Specifying both AIRFLOW_HOME environment variable and airflow_home in the config file is deprecated. Please use only the AIRFLOW_HOME environment variable and remove the config file entry.
  warnings.warn(msg, category=DeprecationWarning)
/home/airflow/.local/lib/python3.7/site-packages/airflow/configuration.py:545: DeprecationWarning: The sql_alchemy_conn option in [core] has been moved to the sql_alchemy_conn option in [database] - the old setting has been used, but please update your config.
  option = self._get_environment_variables(deprecated_key, deprecated_section, key, section)
/home/airflow/.local/lib/python3.7/site-packages/airflow/configuration.py:545: DeprecationWarning: The logging_level option in [core] has been moved to the logging_level option in [logging] - the old setting has been used, but please update your config.
  option = self._get_environment_variables(deprecated_key, deprecated_section, key, section)
/home/airflow/.local/lib/python3.7/site-packages/airflow/configuration.py:545 DeprecationWarning: The base_log_folder option in [core] has been moved to the base_log_folder option in [logging] - the old setting has been used, but please update your config.
/home/airflow/.local/lib/python3.7/site-packages/airflow/configuration.py:545 DeprecationWarning: The dag_processor_manager_log_location option in [core] has been moved to the dag_processor_manager_log_location option in [logging] - the old setting has been used, but please update your config.
[2022-12-22 05:25:33,452] {{settings.py:266}} DEBUG - Setting up DB connection pool (PID 1)
/home/airflow/.local/lib/python3.7/site-packages/airflow/configuration.py:545 DeprecationWarning: The sql_alchemy_pool_size option in [core] has been moved to the sql_alchemy_pool_size option in [database] - the old setting has been used, but please update your config.
[2022-12-22 05:25:33,454] {{settings.py:377}} DEBUG - settings.prepare_engine_args(): Using pool settings. pool_size=1000, max_overflow=10, pool_recycle=1800, pid=1
[2022-12-22 05:25:34,457] {{cli_action_loggers.py:39}} DEBUG - Adding <function default_action_log at 0x7f8dd5a2d9e0> to pre execution callback

尽管我已将 sql_alchemy_pool_size 移至 [database] 并将 base_log_folder 移至 [logging],但我仍然在 airflow flower 日志中收到这些警告。

请帮助我找到此 pod 重启的根本原因,以及如何防止这种情况发生。

让我知道是否需要任何进一步的日志/信息(配置)。

这是由于资源不足,将 CPU 设置为 500m 并将内存设置为 512m 后,pod 工作正常。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM