![]() | ||||
| Credits: | The XMQ web site is provided by Linotex. | The XMQ and SPTK Windows installers are created with Advanced Installer free Open-Source license. | ||
| There were 0 unique visitors to this page | |||||||||||||
Message Persistence: Persistent and Durable modesXMQ stores persistent client sessions, subscriptions, retained messages, and undelivered QoS 1 and QoS 2 messages in Redis. The Persistence screen offers two modes. Both preserve stored state across an XMQ restart while Redis remains available; they differ in when XMQ acknowledges a publish and how Redis writes its data to disk. Redis is a separate service. XMQ changes its runtime persistence settings when applying a mode, then saves those settings to the Redis configuration file. Redis itself does not restart. These settings apply to the entire Redis server, including every database and application using that server, not only XMQ or the database number in XMQ's URI. Use a Redis instance dedicated to XMQ if other workloads need different persistence settings. Redis must allow Persistent mode: XMQ uses a 10 ms write-behind window and disables Redis AOF to avoid its added write latency. Durable mode: XMQ enables AOF with What happens on failure
Durable mode's guarantee depends on the operating system, filesystem, controller, and drive honoring Switching modesChoose Persistent or Durable on the XMQ Persistence screen and apply the change. XMQ checks that Redis is writable and can save its configuration, updates Redis's AOF settings, saves XMQ's settings, and restarts the MQTT service. MQTT clients disconnect during that broker restart. Redis does not restart. Persistent sets In Persistent mode, a full PerformancePersistent mode is intended for the low-latency write-behind path. Durable mode adds a local fsync barrier to successful acknowledgements, so its throughput and latency depend on the Redis disk and workload. We accepted thePoint-To-Point-60K-persistence performance testwithout a performance regression for the tested configuration; that result does not guarantee the same numbers on other Redis hosts or storage devices. Redis availabilityIf Redis is unavailable when XMQ starts, XMQ logs the error and can continue with in-memory storage. In that state, session and message persistence is unavailable. Check the broker log and Redis connection before relying on persistence. |
