diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2022-09-28 00:06:35 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-27 12:06:35 -0700 |
| commit | 7ae51d1ec6a7171914e31650e60e2402edcc0a21 (patch) | |
| tree | b5fd1b35a0de0d87cae3e0ca052901987bcc0f9b | |
| parent | 190afcc3fd12c0e524cd40775630ca022094241f (diff) | |
| download | seaweedfs-7ae51d1ec6a7171914e31650e60e2402edcc0a21.tar.xz seaweedfs-7ae51d1ec6a7171914e31650e60e2402edcc0a21.zip | |
fix set master options for single server (#3708)
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
| -rw-r--r-- | weed/command/server.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/weed/command/server.go b/weed/command/server.go index f92feb11d..42cd4b0cd 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -92,10 +92,11 @@ func init() { masterOptions.volumeSizeLimitMB = cmdServer.Flag.Uint("master.volumeSizeLimitMB", 30*1000, "Master stops directing writes to oversized volumes.") masterOptions.volumePreallocate = cmdServer.Flag.Bool("master.volumePreallocate", false, "Preallocate disk space for volumes.") masterOptions.defaultReplication = cmdServer.Flag.String("master.defaultReplication", "", "Default replication type if not specified.") - masterOptions.garbageThreshold = cmdServer.Flag.Float64("garbageThreshold", 0.3, "threshold to vacuum and reclaim spaces") - masterOptions.metricsAddress = cmdServer.Flag.String("metrics.address", "", "Prometheus gateway address") - masterOptions.metricsIntervalSec = cmdServer.Flag.Int("metrics.intervalSeconds", 15, "Prometheus push interval in seconds") - masterOptions.raftResumeState = cmdServer.Flag.Bool("resumeState", false, "resume previous state on start master server") + masterOptions.garbageThreshold = cmdServer.Flag.Float64("master.garbageThreshold", 0.3, "threshold to vacuum and reclaim spaces") + masterOptions.metricsAddress = cmdServer.Flag.String("master.metrics.address", "", "Prometheus gateway address") + masterOptions.metricsIntervalSec = cmdServer.Flag.Int("master.metrics.intervalSeconds", 15, "Prometheus push interval in seconds") + masterOptions.raftResumeState = cmdServer.Flag.Bool("master.resumeState", false, "resume previous state on start master server") + masterOptions.raftHashicorp = cmdServer.Flag.Bool("master.raftHashicorp", false, "use hashicorp raft") masterOptions.heartbeatInterval = cmdServer.Flag.Duration("master.heartbeatInterval", 300*time.Millisecond, "heartbeat interval of master servers, and will be randomly multiplied by [1, 1.25)") masterOptions.electionTimeout = cmdServer.Flag.Duration("master.electionTimeout", 10*time.Second, "election timeout of master servers") |
