Skip to content

Upgrade RabbitMQ instance type from mq.t3.micro to mq.m7g.medium#533

Open
jim-counter wants to merge 1 commit intomainfrom
fix/rabbitmq-instance-type
Open

Upgrade RabbitMQ instance type from mq.t3.micro to mq.m7g.medium#533
jim-counter wants to merge 1 commit intomainfrom
fix/rabbitmq-instance-type

Conversation

@jim-counter
Copy link
Copy Markdown
Member

@jim-counter jim-counter commented Mar 23, 2026

Summary

  • Upgrades the Auto Drive production RabbitMQ broker from mq.t3.micro to mq.m7g.medium in response to an AWS retirement notice
  • mq.m7g.medium is a Graviton3-based instance type and AWS's recommended replacement for RabbitMQ brokers

Why this change is safe to apply

Data preservation

Amazon MQ for RabbitMQ uses EBS-backed storage. During an instance type change, AWS detaches the EBS volume from the old instance and reattaches it to the new one — durable queue definitions and persistent messages are preserved across the change. See AWS: Editing a broker and Amazon MQ storage.

Expected behaviour during apply

  • The broker will restart as part of the instance replacement — a brief period of unavailability is expected
  • This is a SINGLE_INSTANCE deployment with apply_immediately = true, so the change takes effect immediately (no maintenance window delay)
  • Active client connections will drop and need to reconnect

Application reconnection

The Auto Drive backend has a keepalive/reconnect mechanism (keepAliveInterval) that will detect the dropped connection and re-establish it automatically, typically within 60 seconds.

Queue declarations

Queues in the Auto Drive app are declared with assertQueue() on each publish, so they are automatically re-created after the broker restarts. No manual intervention is required.

References

Test plan

  • Run ./resources/terraform/manage.sh auto-drive-production plan and confirm only the broker instance type changes (1 resource, 0 destroy)
  • Apply during a low-traffic window
  • Confirm broker comes back healthy in the AWS Console (Amazon MQ → Brokers → status: RUNNING)
  • Confirm Auto Drive backend reconnects and resumes processing

🤖 Generated with Claude Code

Closes #531.

mq.t3.micro is being retired by AWS. Upgrades to the Graviton3-based
mq.m7g.medium which is the recommended replacement for RabbitMQ brokers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Member

@EmilFattakhov EmilFattakhov left a comment

Choose a reason for hiding this comment

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

Makes sense 👍

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.

Update RabbitMQ instance type to mq.m7g.medium in new Auto Drive module

2 participants