Skip to content

[Production] Switch to elasticache celery broker#6824

Merged
gherceg merged 4 commits intomasterfrom
gh/prod/elasticache-celery-broker
Mar 11, 2026
Merged

[Production] Switch to elasticache celery broker#6824
gherceg merged 4 commits intomasterfrom
gh/prod/elasticache-celery-broker

Conversation

@gherceg
Copy link
Contributor

@gherceg gherceg commented Mar 5, 2026

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

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 commcare services to interact with the message broker, and then sets celery_broker_migration to true on the celery_b2 group so that machines in that group continue to read messages from the OLD_BROKER_URL to ensure all messages are drained.

To roll this out, I'll first run terraform apply on production 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

Production

@gherceg gherceg requested review from AmitPhulera and millerdev March 5, 2026 21:36
Dedicating two celery machines to reading from the old broker to ensure
load is handled properly.
@gherceg gherceg force-pushed the gh/prod/elasticache-celery-broker branch from a7d5b42 to e729474 Compare March 5, 2026 21:52
@gherceg
Copy link
Contributor Author

gherceg commented Mar 11, 2026

Fully cut over!

@gherceg gherceg merged commit ca8326a into master Mar 11, 2026
7 checks passed
@gherceg gherceg deleted the gh/prod/elasticache-celery-broker branch March 11, 2026 17:41
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