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/server.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/server.go')
| -rw-r--r-- | weed/command/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/server.go b/weed/command/server.go index 4aeecbff0..6f40263bb 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -98,7 +98,7 @@ func init() { serverOptions.v.compactionMBPerSecond = cmdServer.Flag.Int("volume.compactionMBps", 0, "limit compaction speed in mega bytes per second") serverOptions.v.fileSizeLimitMB = cmdServer.Flag.Int("volume.fileSizeLimitMB", 1024, "limit file size to avoid out of memory") serverOptions.v.publicUrl = cmdServer.Flag.String("volume.publicUrl", "", "publicly accessible address") - serverOptions.v.preStopSeconds = cmdServer.Flag.Int("volume.preStopSeconds", 30, "number of seconds between stop send heartbeats and stop volume server") + serverOptions.v.preStopSeconds = cmdServer.Flag.Int("volume.preStopSeconds", 10, "number of seconds between stop send heartbeats and stop volume server") serverOptions.v.pprof = &False s3Options.port = cmdServer.Flag.Int("s3.port", 8333, "s3 server http listen port") |
