Skip to content

[EU] Switch to elasticache celery broker#6818

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

[EU] Switch to elasticache celery broker#6818
gherceg wants to merge 3 commits intomasterfrom
gh/eu/elasticache-celery-broker

Conversation

@gherceg
Copy link
Contributor

@gherceg gherceg commented Feb 26, 2026

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

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 celery_b1 indicating that celery_b1 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 eu 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

EU

celery_b1 will read from the old broker to drain all messages and write
new messages to the new broker
Copy link
Contributor

@AmitPhulera AmitPhulera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yayy 🎉

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