diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-09-12 04:05:33 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-09-12 04:05:33 -0700 |
| commit | cd9b89ba55b434394ae5c8f53bbdffc546a6210b (patch) | |
| tree | df3c155f70cbc1a902ce5f385f894ce304521b01 /weed/command/volume.go | |
| parent | e2c741f76f6f81718f50c649e0382324546f52e1 (diff) | |
| download | seaweedfs-cd9b89ba55b434394ae5c8f53bbdffc546a6210b.tar.xz seaweedfs-cd9b89ba55b434394ae5c8f53bbdffc546a6210b.zip | |
reduce default wait time to 10s before shutting down
Diffstat (limited to 'weed/command/volume.go')
| -rw-r--r-- | weed/command/volume.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go index c8f24802c..33d075d20 100644 --- a/weed/command/volume.go +++ b/weed/command/volume.go @@ -67,7 +67,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.preStopSeconds = cmdVolume.Flag.Int("preStopSeconds", 30, "number of seconds between stop send heartbeats and stop volume server") + v.preStopSeconds = cmdVolume.Flag.Int("preStopSeconds", 10, "number of seconds between stop send heartbeats and stop volume server") // 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") |
