Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Mosquitto Load Balancer

If you're using a load balancer make sure that you have sticky sessions based on IPs or you can't use persistent sessions since these sessions are not replicated across multiple brokers. In case you shutdown nodes at runtime the sessions will be lost when you get connected to other brokers.

Also make sure to configure bridging accordingly or you won't be able to distribute messages across broker instances.

On 7 June 2016 at 02:11:22, Vineet Dixit (vineetd@xxxxxxxxxxxxx) wrote:

Hi Anas,

The short answer is yes, mosquitto can be used behind a load balancer. Most load balancers have a "TCP mode" that can be used to load balance Mosquitto instances. This works well when Mosquitto is configured to use TCP or SSL/TLS. Mosquitto can also be configured to use WebSocket. Since popular load balancers are primarily designed to load balance HTTP traffic and they work well with WebSocket.

Vineet

  



On Sat, Jun 4, 2016 at 6:12 PM, Anas A <anas@xxxxxxxxxxxxxxxxxxx> wrote:

Hi,
Is there any way to put mosquitto under load balancer for clustering & high availability purpose.

Thanks,

Anas A


_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev

Back to the top