Which MQTT server for > 1M connections

redboy picture redboy · Mar 17, 2015 · Viewed 10.7k times · Source

With a budget of perhaps a few million to setup a MQTT server farm how would you do so?

It must have the following properties:

  • Support for 4-5M connections across all data centers.
  • 300k msg/s of around 1kb each
  • Geographic redundancy
  • Can't lose messages QOS1
  • Each client will publish to a single topic but subscribe to their own unique topic. This implies 4-5 million topics.

MQTT Server brokers can be found here: https://github.com/mqtt/mqtt.github.io/wiki/server-support#capabilities

However capabilities are usually not published.

Answer

Andre picture Andre · Jun 11, 2015

Although the Erlang powered VerneMQ MQTT broker is still quite new, there is nothing (besides RAM/CPU/IPs/Bandwidth) that should prevent you from opening that many connections.

http://verne.mq

make sure to set something similar to:

listener.max_connections = infinity
listener.nr_of_acceptors = 1000
erlang.max_ports = 10000000
erlang.process_limit = 10000000

in your vernemq.conf

disclaimer: I'am one of the devs of VerneMQ and happy to help you reach your 1M connections/server.