I am working on a project which requires rolling out new celery servers if the broker(redis) queue is consistently higher than a predetermined threshold size and killing the new boxes when the queue size comes down. I have scripts to take care of introducing new boxes and making sure right configuration is running on them. I plan to check the queue by redis-cli after frequent(15 mins) intervals and if size is greater then threshold bring down the time gap between check(say 3 mins) check twice and then roll out new boxes and follow the same approach to kill the new servers.
I am new to celery and it would be great if I can get some advise on this approach.
Thanks