Search code examples
laravelubuntuqueuebeanstalkd

How to setup a clustering of a queue servers for beanstalkd?


We've two Queue Servers, both attached to the application. so far Server 1 receives all the queued jobs and processed it. I would like to set up a Cluster so that the load is spread across 2 servers. anyone can suggest how to setup a cluster.

Thanks.


Solution

  • Beanstalkd doesn't offer this feature.

    Alternatives are:

    • you setup a soft sharding to route requests to queue A or B
    • you can use alternatives like Redis Queue, Cloud Pub/Sub from Google Cloud Platform