Live reconfiguration
Managing VerneMQ live config values.
You can dynamically re-configure most of VerneMQ's settings on a running node by using the vmq-admin set command.
Settings dynamically configured with the vmq-admin set command will be reset by vernemq.conf upon broker restart.

Setting a value for the local node

Let's change the max_client_id_size as an example. (We might have noticed that some clients can't login because their client ID is too long, but we don't want to restart the broker for that). Note that you can also set multiple values with the same command.
1
vmq-admin set max_client_id_size=45
Copied!

Setting a value for an arbitrary cluster node

1
vmq-admin set max_client_id_size=45 [email protected]
Copied!

Setting a value for all cluster nodes

1
vmq-admin set max_client_id_size=45 --all
Copied!

Show current VerneMQ config values

For the local node

You can show one or multiple values in a simple table:
1
vmq-admin show max_client_id_size retry_interval
Copied!
1
+----------------------+------------------+--------------+
2
| node |max_client_id_size|retry_interval|
3
+----------------------+------------------+--------------+
4
|[email protected]| 28 | 20 |
5
+----------------------+------------------+--------------+
6
7
`
Copied!

For an arbitrary node

1
vmq-admin show max_client_id_size retry_interval --node [email protected]
Copied!

For all cluster nodes

1
vmq-admin show max_client_id_size retry_interval --all
Copied!
1
+----------------------+------------------+--------------+
2
| node |max_client_id_size|retry_interval|
3
+----------------------+------------------+--------------+
4
|[email protected]| 33 | 20 |
5
|[email protected]| 33 | 20 |
6
|[email protected]| 33 | 20 |
7
|[email protected]| 33 | 20 |
8
|[email protected]| 28 | 20 |
9
+----------------------+------------------+--------------+
Copied!
Last modified 30d ago