标签:ensure mesos 目录 ever 不兼容 set 方案 需要 数据
针对scheduler单点问题,有第三方方案:https://github.com/teamclairvoyant/airflow-scheduler-failover-controller
The Airflow Scheduler Failover Controller (ASFC) is a mechanism that ensures that only one Scheduler instance is running in an Airflow Cluster at a time. This way you don‘t come across the issues we described in the "Motivation" section above.
You will first need to startup the ASFC on each of the instances you want the scheduler to be running on. When you start up multiple instances of the ASFC one of them takes on the Active state and the other takes on a Standby state. There is a heart beat mechanism setup to track if the Active ASFC is still active. If the Active ASFC misses multiple heart beats, the Standby ASFC becomes active.
The Active ASFC will poll every 10 seconds to see if the scheduler is running on the desired node. If it is not, the ASFC will try to restart the daemon. If the scheduler daemons still doesn‘t startup, the daemon is started on another node in the cluster.
Airflow Scheduler Failover Controller (ASFC),实现方式为:多个实例中只有一个处于active状态,处于active状态的实例会每10s检查一下scheduler进程是否存活并根据需要重启进程;
坏消息是该方案和airflow新版本1.10不兼容
和官方一致
和官方不一致1
和官方不一致2
和官方不一致2
airflow docker image:https://github.com/puckel/docker-airflow
【原创】大数据基础之Airflow(2)生产环境部署airflow研究
标签:ensure mesos 目录 ever 不兼容 set 方案 需要 数据
原文地址:https://www.cnblogs.com/barneywill/p/10404348.html