django - Multiple server environments with RabbitMQ and Celery -
i have django-based service celery, using rabbitmq broker. want install several environments on same machine.
what's best way of configuring celery each environment? give each environment own virtual host, test environment use ampq://celery:celery@localhost:5672/test
, dev environment use ampq://celery:celery@localhost:5672/dev
?
or use same rabbitmq virtual host , direct each environment different queues - dev environment's default queue default.dev
, test environment's default queue default.test
?
or set 2 rabbitmq instances?
setting 2 rmq vhosts way it.
with 1 vhost , using 2 queues can send tasks environment decide, control commands (shutdown, inspect, etc) sent workers. if use different vhosts control commands work expected.
Comments
Post a Comment