You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I met some trouble when I deploy the nsq cluster on the docker swarm
Well, there are 3 instances in the swarm.
192.168.99.100
192.168.99.101
192.168.99.102
Then I docker stack deploy with the compose file like this:
If I didn't set the broadcast-address for the nsqd, it would be set default with host name.
The response from the nsqlookupd/lookup interface like this:
However, the consumer which is outside of the swarm , can not connect the using the function ConnectToNSQLookupd("192.168.99.100:4161"). Because, the broadcast-address is
5adf2bdbbe78. The consumer can't the parse the hostname to an IP-Address.
Badly, I can not set broadcast-address to the nsqds in the compose-file respectively, like 192.168.99.100,192.168.99.101,192.168.99.102 which are can connected by outside consumer.
Do you have some suggestion for this situation?
Otherwise, may I have to put the consumers into the swarm with the same network or do the docker run manually one by one with broadcast-address setting on my instances?
The text was updated successfully, but these errors were encountered:
I met some trouble when I deploy the nsq cluster on the docker swarm
Well, there are 3 instances in the swarm.
192.168.99.100
192.168.99.101
192.168.99.102
Then I docker stack deploy with the compose file like this:
If I didn't set the broadcast-address for the nsqd, it would be set default with host name.
The response from the nsqlookupd/lookup interface like this:
However, the consumer which is outside of the swarm , can not connect the using the function ConnectToNSQLookupd("192.168.99.100:4161"). Because, the broadcast-address is
5adf2bdbbe78. The consumer can't the parse the hostname to an IP-Address.
Badly, I can not set broadcast-address to the nsqds in the compose-file respectively, like 192.168.99.100,192.168.99.101,192.168.99.102 which are can connected by outside consumer.
Do you have some suggestion for this situation?
Otherwise, may I have to put the consumers into the swarm with the same network or do the docker run manually one by one with broadcast-address setting on my instances?
The text was updated successfully, but these errors were encountered: