diff options
| author | msementsov <47177265+m-sementsov@users.noreply.github.com> | 2025-12-05 23:24:38 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-05 12:24:38 -0800 |
| commit | c0dad091f149d80c6737f006c7ab98f4cd69478b (patch) | |
| tree | 81001c4dc20746261701723b63c7669029a884c3 /weed/server/volume_server.go | |
| parent | 4cc6a2a4e58ac03ae79816b636bc8bbf5797b707 (diff) | |
| download | seaweedfs-c0dad091f149d80c6737f006c7ab98f4cd69478b.tar.xz seaweedfs-c0dad091f149d80c6737f006c7ab98f4cd69478b.zip | |
Separate vacuum speed from replication speed (#7632)
Diffstat (limited to 'weed/server/volume_server.go')
| -rw-r--r-- | weed/server/volume_server.go | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go index 65909996a..0647c4196 100644 --- a/weed/server/volume_server.go +++ b/weed/server/volume_server.go @@ -42,16 +42,17 @@ type VolumeServer struct { guard *security.Guard grpcDialOption grpc.DialOption - needleMapKind storage.NeedleMapKind - ldbTimout int64 - FixJpgOrientation bool - ReadMode string - compactionBytePerSecond int64 - metricsAddress string - metricsIntervalSec int - fileSizeLimitBytes int64 - isHeartbeating bool - stopChan chan bool + needleMapKind storage.NeedleMapKind + ldbTimout int64 + FixJpgOrientation bool + ReadMode string + compactionBytePerSecond int64 + maintenanceBytePerSecond int64 + metricsAddress string + metricsIntervalSec int + fileSizeLimitBytes int64 + isHeartbeating bool + stopChan chan bool } func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, @@ -65,6 +66,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, fixJpgOrientation bool, readMode string, compactionMBPerSecond int, + maintenanceMBPerSecond int, fileSizeLimitMB int, concurrentUploadLimit int64, concurrentDownloadLimit int64, @@ -94,6 +96,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, ReadMode: readMode, grpcDialOption: security.LoadClientTLS(util.GetViper(), "grpc.volume"), compactionBytePerSecond: int64(compactionMBPerSecond) * 1024 * 1024, + maintenanceBytePerSecond: int64(maintenanceMBPerSecond) * 1024 * 1024, fileSizeLimitBytes: int64(fileSizeLimitMB) * 1024 * 1024, isHeartbeating: true, stopChan: make(chan bool), |
