You can write a very simple controller that keeps track of the queue size for your specific application, and then changes the number of replicas required by your replication / set / replica controller.
The built-in auto-swap function of horizontal swap will soon receive support for custom metrics, but before that itโs pretty easy to program / script yourself.
source share