mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-14 18:20:42 -07:00
Log when we adjust the peer set size
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -821,6 +821,7 @@ func (js *jetStream) monitorCluster() {
|
||||
// Check to see if we can adjust our cluster size down iff we are in mixed mode and we have
|
||||
// seen a total that is what our original estimate was.
|
||||
if js, total := s.trackedJetStreamServers(); js < total && total >= n.ClusterSize() {
|
||||
s.Noticef("Adjusting JetStream expected peer set size to %d from original %d", js, n.ClusterSize())
|
||||
n.AdjustBootClusterSize(js)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user