diff options
| author | Konstantin Lebedev <lebedev_k@tochka.com> | 2020-08-26 16:16:11 +0500 |
|---|---|---|
| committer | Konstantin Lebedev <lebedev_k@tochka.com> | 2020-08-26 16:16:11 +0500 |
| commit | 464d4c82ecb0aaaf58d9565cd7b7c9f28311c1e4 (patch) | |
| tree | a59a8160a7bf25412be6221c3807722e356b306a /weed/server/volume_server.go | |
| parent | 1901f15cd2dc706a7d614dd2fc2c654e31883399 (diff) | |
| download | seaweedfs-464d4c82ecb0aaaf58d9565cd7b7c9f28311c1e4.tar.xz seaweedfs-464d4c82ecb0aaaf58d9565cd7b7c9f28311c1e4.zip | |
stop send heartbeat before stop volume server
Diffstat (limited to 'weed/server/volume_server.go')
| -rw-r--r-- | weed/server/volume_server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go index fc6fa5cee..6612e9045 100644 --- a/weed/server/volume_server.go +++ b/weed/server/volume_server.go @@ -31,6 +31,7 @@ type VolumeServer struct { MetricsAddress string MetricsIntervalSec int fileSizeLimitBytes int64 + SendHeartbeat bool } func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, @@ -66,6 +67,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, grpcDialOption: security.LoadClientTLS(util.GetViper(), "grpc.volume"), compactionBytePerSecond: int64(compactionMBPerSecond) * 1024 * 1024, fileSizeLimitBytes: int64(fileSizeLimitMB) * 1024 * 1024, + SendHeartbeat: true, } vs.SeedMasterNodes = masterNodes vs.store = storage.NewStore(vs.grpcDialOption, port, ip, publicUrl, folders, maxCounts, minFreeSpacePercents, vs.needleMapKind) |
