0

I am running the nats streaming server in a docker container and I want to reload the nats specific configuration without stopping the nats streaming server. Is there a way to do so?

Himanshu Sahu
  • 366
  • 3
  • 11

2 Answers2

0

Unfortunately no, the NATS Streaming server does not support hot reloading. If you want to reload NATS specific settings, you would need to run the two separate (not run the NATS Server as embedded component).

I. Kozlovic
  • 796
  • 3
  • 3
0

NATS Streaming Server is being deprecated - so anyone who encounters this question, note that you should use JetStream instead (reference from the official NATS docs)

Although I'm new to NATS, I've found in another question that what you're asking for should be possible in NATS, and therefore also in JetStream - using the following command:

nats-server --signal reload

The official docs mention that "A server can reload most configuration changes without requiring a server restart or clients to disconnect by sending the nats-server a signal".

I couldn't find any programmatic way to achieve that, though.

Yoav Feuerstein
  • 1,925
  • 2
  • 22
  • 53