redisceleryairflowmaster-slavesentinel

How to Configure Airflow Celery executor with redis sentinel?


Redis sentinel setup is done.

what all changes i have to do to point my celery backend to redis-sentinel? i am using redis as a broker for celery executor.


Solution

  • You have an example in the Configuration section of the Using Redis page in the Celery documentation.

    From that page:

    app.conf.broker_url = 'sentinel://localhost:26379;sentinel://localhost:26380;sentinel://localhost:26381'
    app.conf.broker_transport_options = { 'master_name': "cluster1" }