Skip to content

[India] Switch to elasticache celery broker#6817

Merged
gherceg merged 6 commits intomasterfrom
gh/india/elasticache-celery-broker
Mar 11, 2026
Merged

[India] Switch to elasticache celery broker#6817
gherceg merged 6 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
@gherceg
Copy link
Contributor Author

gherceg commented Mar 5, 2026

I've confirmed that rabbit has been drained and we are ready to cut over to elasticache on celery15.

@gherceg
Copy link
Contributor Author

gherceg commented Mar 6, 2026

I've updated the config on celery15.

@gherceg gherceg merged commit 5393b8f into master Mar 11, 2026
7 checks passed
@gherceg gherceg deleted the gh/india/elasticache-celery-broker branch March 11, 2026 17:21
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.

3 participants