Log when we adjust the peer set size

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2021-09-28 11:02:53 -07:00
parent f4177bacbc
commit de83307e8d

View File

@@ -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)
}
}