Skip to content

RabbitMQ upgrade

dtuantran edited this page Sep 12, 2023 · 5 revisions

Backup RabbitMQ settings

Go to http://<instance_ip>:<rabbitmq_admin_port>/api/definitions and save the reponse (enter login and password as in .env) image

Switch the instance to maintenance mode and waiting until all submissions processed

maintenance mode

Stop and remove RabbitMQ's contaner and data

docker-compose stop rabbit && docker-compose rm rabbit
rm -rvf .var/data/rabbitmq/*

Switch to the lastest RabbitMQ version

git pull
docker build rabbit
docker-compose up -d

Restore the backup settings

Connect to the instance by ssh and upload your json file at 1st step, execute :

curl -u <login>:<password> -H "Content-Type: application/json" -X POST -T autodl_definitions.json http://localhost:<rabbit_admin_port>/api/definitions

You can check if successed by doing the 1st step.

Switch off the maintenance mode

Remove the maintenance file

maintenance mode

Verify if your submission can be processed.

Clone this wiki locally