How to quickly add instance in cluster #729
-
When I scale the number of pods in a statefulset, does that automatically scale the number of nodes in the nats cluster? |
Beta Was this translation helpful? Give feedback.
Answered by
caleblloyd
Jun 5, 2023
Replies: 1 comment
-
Yes. If you are using JetStream keep in mind that before scaling down you will need migrate all of the streams in the cluster off of the pods that are being scaled down. For this reason, I would recommend vertical scaling for JetStream enabled clusters so that the number of pods stays the same. If you are not using JetStream then horizontal scaling should work fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
caleblloyd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes.
If you are using JetStream keep in mind that before scaling down you will need migrate all of the streams in the cluster off of the pods that are being scaled down. For this reason, I would recommend vertical scaling for JetStream enabled clusters so that the number of pods stays the same.
If you are not using JetStream then horizontal scaling should work fine.