Maxium connections to VerneMQ?

I read somewhere that VerneMQ support 10,000 ClientId connect per instance. I assume each connection match a unique ClientId.
This correct statement ?
Can you please me how to scale if I need to support 20,000 ClientId connection to VerneMQ.

Thank you for your help

2 Likes

You have to configure for the number of connections you want to allow. This is a per listener config in the vernemq.conf file.

Let’s say as an example that you want to start a normal MQTT listener (on TCP), name it my_tcp_listener, and want to allow 200k connections:

listener.tcp.my_tcp_listener.max_connections = 200000

Note that you’ll have to configure additional resources (namely number of processes in the VM, and number of allowed file descriptors on the OS).

2 Likes