diff options
| author | Dmitriy Pavlov <Dimonyga@gmail.com> | 2025-09-04 15:39:56 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-04 05:39:56 -0700 |
| commit | cd78e653e1fc11fdb4820abbd1c78cf88b7c5b3b (patch) | |
| tree | 66febf07472cbc7912f25f5fd7f07672b309b0ac /weed/server/master_server.go | |
| parent | e030530aabe36bb01503cee1cc64b159d8819797 (diff) | |
| download | seaweedfs-cd78e653e1fc11fdb4820abbd1c78cf88b7c5b3b.tar.xz seaweedfs-cd78e653e1fc11fdb4820abbd1c78cf88b7c5b3b.zip | |
add disable volume_growth flag (#7196)
Diffstat (limited to 'weed/server/master_server.go')
| -rw-r--r-- | weed/server/master_server.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/server/master_server.go b/weed/server/master_server.go index 52d0f996b..bd83d5a96 100644 --- a/weed/server/master_server.go +++ b/weed/server/master_server.go @@ -57,6 +57,7 @@ type MasterOption struct { IsFollower bool TelemetryUrl string TelemetryEnabled bool + VolumeGrowthDisabled bool } type MasterServer struct { @@ -105,6 +106,9 @@ func NewMasterServer(r *mux.Router, option *MasterOption, peers map[string]pb.Se v.SetDefault("master.volume_growth.copy_3", topology.VolumeGrowStrategy.Copy3Count) v.SetDefault("master.volume_growth.copy_other", topology.VolumeGrowStrategy.CopyOtherCount) v.SetDefault("master.volume_growth.threshold", topology.VolumeGrowStrategy.Threshold) + v.SetDefault("master.volume_growth.disable", false) + option.VolumeGrowthDisabled = v.GetBool("master.volume_growth.disable") + topology.VolumeGrowStrategy.Copy1Count = v.GetUint32("master.volume_growth.copy_1") topology.VolumeGrowStrategy.Copy2Count = v.GetUint32("master.volume_growth.copy_2") topology.VolumeGrowStrategy.Copy3Count = v.GetUint32("master.volume_growth.copy_3") |
