vernemq / docker-vernemq

VerneMQ Docker image - Starts the VerneMQ MQTT broker and listens on 1883 and 8080 (for websockets).
https://vernemq.com
Apache License 2.0
178 stars 230 forks source link

DOCKER_VERNEMQ_DISCOVERY_NODE behaviour if node not up? #245

Open hongkongkiwi opened 4 years ago

hongkongkiwi commented 4 years ago

What is the behaviour of DOCKER_VERNEMQ_DISCOVERY_NODE if the ip address this points to is down?

I am thinking on the following example:

Server1 - DOCKER_VERNEMQ_DISCOVERY_NODE=server2
Server2 - DOCKER_VERNEMQ_DISCOVERY_NODE=server1
server3 - DOCKER_VERNEMQ_DISCOVERY_NODE=server1

Would this work as expected?

hongkongkiwi commented 4 years ago

As a followup question, would it break anything if I passed Server1 the DOCKER_VERNEMQ_DISCOVERY_NODE=server1 ?

The reason is because I am using Nomad and trying to apply the same configuration to all nodes, so I would instruct all nodes to set env variable of DOCKER_VERNEMQ_DISCOVERY_NODE=server1

ioolkos commented 4 years ago

I don't "think", but I don't "know".

hongkongkiwi commented 4 years ago

Thanks, so how about my second question, which has a scenario like this, will this cause any unexpected behaviour? Server1 - DOCKER_VERNEMQ_DISCOVERY_NODE=server1 Server2 - DOCKER_VERNEMQ_DISCOVERY_NODE=server1 server3 - DOCKER_VERNEMQ_DISCOVERY_NODE=server1