In distributed systems built on NATS JetStream, moving streams between cluster nodes was long an all-or-nothing gamble. If network links degraded mid-migration or maintenance plans changed, aborting the move without risking data desynchronization was nearly impossible.
NATS Server 2.15 introduces a dedicated Desired State Metalayer (ADR-62). Any active migration can now be safely rolled back on the fly:
# Cancel an active stream move and revert to the original replicas
nats req '$JS.API.STREAM.CANCEL_MOVE.ORDERS_STREAM' ''
The second major addition is a planned node evacuation interface for maintenance windows. Instead of abruptly pulling a server out of the pool, you can cleanly hand off active consumers to neighboring nodes:
# Gracefully evacuate all streams and consumers from a server before maintenance
nats req '$JS.API.SERVER.EVACUATE.node-east-02' '{"drain": true}'
The release also caps default_max_consumers at 1,000 per stream to prevent memory leaks and optimizes WAL disk flushes, noticeably cutting publish latency.
