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/command/volume.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/command/volume.go')
| -rw-r--r-- | weed/command/volume.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go index f942ec50b..bb63a1f86 100644 --- a/weed/command/volume.go +++ b/weed/command/volume.go @@ -40,7 +40,7 @@ type VolumeServerOptions struct { publicUrl *string bindIp *string masters *string - pulseSeconds *int + // pulseSeconds *int idleConnectionTimeout *int dataCenter *string rack *string @@ -62,7 +62,7 @@ func init() { v.publicUrl = cmdVolume.Flag.String("publicUrl", "", "Publicly accessible address") v.bindIp = cmdVolume.Flag.String("ip.bind", "0.0.0.0", "ip address to bind to") v.masters = cmdVolume.Flag.String("mserver", "localhost:9333", "comma-separated master servers") - v.pulseSeconds = cmdVolume.Flag.Int("pulseSeconds", 5, "number of seconds between heartbeats, must be smaller than or equal to the master's setting") + // v.pulseSeconds = cmdVolume.Flag.Int("pulseSeconds", 5, "number of seconds between heartbeats, must be smaller than or equal to the master's setting") v.idleConnectionTimeout = cmdVolume.Flag.Int("idleTimeout", 30, "connection idle seconds") v.dataCenter = cmdVolume.Flag.String("dataCenter", "", "current volume server's data center name") v.rack = cmdVolume.Flag.String("rack", "", "current volume server's rack name") @@ -161,7 +161,7 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v *v.ip, *v.port, *v.publicUrl, v.folders, v.folderMaxLimits, volumeNeedleMapKind, - strings.Split(masters, ","), *v.pulseSeconds, *v.dataCenter, *v.rack, + strings.Split(masters, ","), 5, *v.dataCenter, *v.rack, v.whiteList, *v.fixJpgOrientation, *v.readRedirect, *v.compactionMBPerSecond, |
