Hello Kushal,

2017-10-24 10:06 GMT+02:00 kushal bhattacharya <
[email protected]>:
> Hi,
> My main goal is to distribute 8000  connections among 3  mqtt brokers
having
> capacity of  3000,3000,2000  respectively .I want to distribute  it in
the
> following way;first 3000 connections  would be served by  1st broker
,then
> next 3000  connections by  the  next broker  and so on .But I do not want
> 1st 3000 connections tobe distributed to 3  brokers  but  1st 3000
> conections  should be  acted  by  1st  broker itself.So,could you  please
> tell me  which configuration  should i  use in order  to achieve this
> scenario?My mode of transmission is Tcp.

See:
http://cbonte.github.io/haproxy-dconv/1.7/configuration.html#balance

Example:

backend mqttbrokers
 balance first
 server broker1 192.168.1.1 id 1 maxconn 3000
 server broker2 192.168.1.2 id 2 maxconn 3000
 server broker3 192.168.1.3 id 3 maxconn 2000


Regards,
Lukas

Reply via email to