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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -