Backup data in nats-server with jetstream enabled where storage is memory #4342
-
Hello, Is there a way we can take backup of streams and consumers for nats-server with jetstream enabled where storage is memory?? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Not currently. If you run the stream as an R3 and do rolling restarts and /healthz checks it will survive. If you really need to, create a file backed mirror and back that up. |
Beta Was this translation helpful? Give feedback.
-
If it's a controlled restart and your stream is R1 (i.e. replicas=1) you can do it seamlessly (without any interruption of service on the stream): before the restart update the stream's configuration to set replicas=3, check using If it's fault-tolerance you need (unscheduled server restart) then you must use replicas=3 |
Beta Was this translation helpful? Give feedback.
Not currently.
If you run the stream as an R3 and do rolling restarts and /healthz checks it will survive.
If you really need to, create a file backed mirror and back that up.