Moon Light Box

Time is Money

Docker - MQTT VerneMQ Cluster

| Comments

Prepare three nodes.

Node1:10.10.10.10
# docker run \
    --name vernemq \
    --net=host \
    -e "DOCKER_VERNEMQ_ALLOW_ANONYMOUS=on" \
    -e "DOCKER_VERNEMQ_ALLOW_MULTIPLE_SESSIONS=on" \
    -d erlio/docker-vernemq
Node2:10.10.10.11
Node3:10.10.10.12
# docker run \
    --name vernemq \
    --net=host \
    -e "DOCKER_VERNEMQ_ALLOW_ANONYMOUS=on" \
    -e "DOCKER_VERNEMQ_ALLOW_MULTIPLE_SESSIONS=on" \
    -e "DOCKER_VERNEMQ_DISCOVERY_NODE=10.10.10.10" \
    -d erlio/docker-vernemq

Check Cluster Status

Node1:10.10.10.10
# docker exec -it vernemq bash
root@vernemq01:/# vmq-admin cluster status
+---------------------+-------+
|        Node         |Running|
+---------------------+-------+
|VerneMQ@10.10.10.10  | true  |
|VerneMQ@10.10.10.11  | true  |
|VerneMQ@10.10.10.12  | true  |
+---------------------+-------+

http://www.ntex.tw/wordpress/2848.html
https://github.com/erlio/docker-vernemq
https://vernemq.com/blog/2016/08/26/loadtesting-mqtt-brokers.html
http://www.ntex.tw/wordpress/2842.html

Comments

comments powered by Disqus