aboutsummaryrefslogtreecommitdiff
path: root/weed/command/server.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <lebedev_k@tochka.com>2020-08-26 16:16:11 +0500
committerKonstantin Lebedev <lebedev_k@tochka.com>2020-08-26 16:16:11 +0500
commit464d4c82ecb0aaaf58d9565cd7b7c9f28311c1e4 (patch)
treea59a8160a7bf25412be6221c3807722e356b306a /weed/command/server.go
parent1901f15cd2dc706a7d614dd2fc2c654e31883399 (diff)
downloadseaweedfs-464d4c82ecb0aaaf58d9565cd7b7c9f28311c1e4.tar.xz
seaweedfs-464d4c82ecb0aaaf58d9565cd7b7c9f28311c1e4.zip
stop send heartbeat before stop volume server
Diffstat (limited to 'weed/command/server.go')
-rw-r--r--weed/command/server.go1
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")