diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2020-08-26 07:28:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-26 07:28:07 -0700 |
| commit | fdb59d596844f6db8364b1f0016911f87d36a926 (patch) | |
| tree | a59a8160a7bf25412be6221c3807722e356b306a /weed/command/server.go | |
| parent | 1901f15cd2dc706a7d614dd2fc2c654e31883399 (diff) | |
| parent | 464d4c82ecb0aaaf58d9565cd7b7c9f28311c1e4 (diff) | |
| download | seaweedfs-fdb59d596844f6db8364b1f0016911f87d36a926.tar.xz seaweedfs-fdb59d596844f6db8364b1f0016911f87d36a926.zip | |
Merge pull request #1433 from kmlebedev/volumePreStop
stop send heartbeat before stop volume server
Diffstat (limited to 'weed/command/server.go')
| -rw-r--r-- | weed/command/server.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/server.go b/weed/command/server.go index d16095075..4aeecbff0 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -98,6 +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.pprof = &False s3Options.port = cmdServer.Flag.Int("s3.port", 8333, "s3 server http listen port") |
