mqtt mosquitto bridge horizontal scaling
mqtt mosquitto bridge horizontal scaling:
i have one load balancer i.e aws elb
all the pub/sub will be coming via that elb
two mosquitto broker A & mosquitto broker B under elb
one mosquitto broker to sync topic between this two brokers(
TRY ONE#########
this is how the configuration for mosquitto broker which sync topics between node A and B looks alike
connection mosquitto-bridge
try_private false
address mosquitto.
start_type automatic
round_robin true
notifications true
topic # out 2
but this is not working it only connecting to mosquitto.broker.A and not connecting to mosquitto.broker.B
TRY TWO#########
undo all try one firstly
so i tried it other way round
removed all the bridge config from mosquitto.
and added this config onto nodes
## mosquitto.broker.A: ##
connection mosquitto-bridge
try_private false
address mosquitto.
start_type automatic
round_robin true
notifications true
topic # out 2
## mosquitto.broker.B: ##
connection mosquitto-bridge
try_private false
address mosquitto.
start_type automatic
round_robin true
notifications true
topic # out 2
but in this case the node on which i send the message is been duplicated over it
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- mosquitto Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Moses
- Solved:
- Last query:
- Last reply: