mqtt: raise default STATUS_INTERVAL from 1000 ms to 30000 ms
The full-status snapshot is a bootstrap / drift-correction mechanism; per-event topics (talker, client, trunk, nodes) already deliver every change live. The retained payload scales with mesh size — at a few hundred nodes with the rich per-client status blob it is hundreds of KB, which makes a 1 s republish expensive on broker bandwidth and reflector CPU. Lower it explicitly via [MQTT] STATUS_INTERVAL only when a small mesh has a consumer that depends on near-real-time full snapshots. Test configs keep STATUS_INTERVAL=1000 to verify retained-status behaviour in seconds.
This commit is contained in:
1 parent
a3757ca634
commit
d9ec356f10
4 files changed
+22
-7
No files matched your search
@@ -202,7 +202,14 @@ CERT_CA_HOOK=@SVX_SHARE_INSTALL_DIR@/ca-hook.py
|
||||
# <TOPIC_PREFIX>/<MQTT_NAME>/... — useful when several reflectors share
|
||||
# the same TOPIC_PREFIX. Leave unset to keep topics flat.
|
||||
#MQTT_NAME=reflector-01
|
||||
#STATUS_INTERVAL=1000
|
||||
# Periodic full-status publish interval in milliseconds (default 30000).
|
||||
# The full snapshot is a bootstrap/drift-correction tool for new MQTT
|
||||
# subscribers — per-event topics already deliver every change live.
|
||||
# Lower this only if you have a small mesh and a consumer that depends
|
||||
# on near-real-time full snapshots; at hundreds of nodes the retained
|
||||
# payload is hundreds of KB and republishing it once per second is
|
||||
# expensive on broker bandwidth and reflector CPU.
|
||||
#STATUS_INTERVAL=30000
|
||||
#TLS_ENABLED=0
|
||||
#TLS_CA_CERT=/path/to/ca.crt
|
||||
#TLS_CLIENT_CERT=/path/to/client.crt
|
||||
|
||||
Reference in new issue
Block a user