Skip to content

[India] Switch to elasticache celery broker#6817

Open
gherceg wants to merge 3 commits intomasterfrom
gh/india/elasticache-celery-broker
Open

[India] Switch to elasticache celery broker#6817
gherceg wants to merge 3 commits intomasterfrom
gh/india/elasticache-celery-broker

Conversation

@gherceg
Copy link
Contributor

@gherceg gherceg commented Feb 26, 2026

https://dimagi.atlassian.net/browse/SAAS-19088

Follows what was done in #6791, though that PR had a few more bumps along the way which should ideally now not impact this one.

This PR includes the terraform changes necessary to create a new elasticache cluster running redis, and a new r53 record to enable easy routing to the cluster.

It then handles updating the variables used by webworkers and celery processes to interact with the message broker, and then sets celery_broker_migration to true on celery15 indicating that celery15 should read messages from the OLD_BROKER_URL to ensure all messages are drained.

To roll this out, I'll first run terraform apply on india to create the cluster. Once I confirm the cluster has been created successfully, I will follow the steps outlined in https://dimagi.atlassian.net/wiki/spaces/cc/pages/3522330836/Migrating+Celery+Brokers to perform the migration.

Environments Affected

India

celery15 will read from the old broker to drain all messages and write
messages to the new broker
@gherceg gherceg force-pushed the gh/india/elasticache-celery-broker branch from c694446 to b43e422 Compare February 26, 2026 18:54
@gherceg gherceg changed the title [India] Add elasticache celery broker [India] Switch to elasticache celery broker Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants