code: func (s *Snapshotter) snapshotMaxSize() int64 {
  	nodes := int64(len(s.aliveNodes))
  	estSize := nodes * snapshotBytesPerNode
  	threshold := estSize * snapshotCompactionThreshold
  
  	// Apply a minimum threshold to avoid frequent compaction
  	if threshold < s.minCompactSize {
  		threshold = s.minCompactSize
  	}
  	return threshold
  }
docs: // snapshotMaxSize computes the maximum size and is used to force periodic compaction.