diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-06-04 10:52:01 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-06-04 10:52:01 -0700 |
| commit | 393ab07c7c27d68021e7b3831be23a8a17d0479e (patch) | |
| tree | 664a840d30565f0072c182a742f0160a5c6c5434 /weed/server/master_server.go | |
| parent | fbed2e9026b71c810dd86bd826c9e068e93d3c48 (diff) | |
| download | seaweedfs-393ab07c7c27d68021e7b3831be23a8a17d0479e.tar.xz seaweedfs-393ab07c7c27d68021e7b3831be23a8a17d0479e.zip | |
disable pulse seconds
there are a few other hard coded timing settings, which will cause disconnected volume servers.
Diffstat (limited to 'weed/server/master_server.go')
| -rw-r--r-- | weed/server/master_server.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/server/master_server.go b/weed/server/master_server.go index dc3ef9cfc..9a490bb1f 100644 --- a/weed/server/master_server.go +++ b/weed/server/master_server.go @@ -37,7 +37,7 @@ type MasterOption struct { MetaFolder string VolumeSizeLimitMB uint VolumePreallocate bool - PulseSeconds int + // PulseSeconds int DefaultReplicaPlacement string GarbageThreshold float64 WhiteList []string @@ -103,7 +103,7 @@ func NewMasterServer(r *mux.Router, option *MasterOption, peers []string) *Maste if nil == seq { glog.Fatalf("create sequencer failed.") } - ms.Topo = topology.NewTopology("topo", seq, uint64(ms.option.VolumeSizeLimitMB)*1024*1024, ms.option.PulseSeconds, replicationAsMin) + ms.Topo = topology.NewTopology("topo", seq, uint64(ms.option.VolumeSizeLimitMB)*1024*1024, 5, replicationAsMin) ms.vg = topology.NewDefaultVolumeGrowth() glog.V(0).Infoln("Volume Size Limit is", ms.option.VolumeSizeLimitMB, "MB") |
