aboutsummaryrefslogtreecommitdiff
path: root/weed/command/volume.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2022-06-15 23:16:44 -0700
committerGitHub <noreply@github.com>2022-06-15 23:16:44 -0700
commit82f3bcc65ebbd9514862dcf44a63dcc22603c701 (patch)
treebbe76ee3e9b521a4b93ab9a51b0bd787c1b06412 /weed/command/volume.go
parent40055211bd91744cf7a5f79d91eda10d4c7beaa7 (diff)
parentdf0ce31a2ee87bf4550da20cf7c1095d154b24e3 (diff)
downloadseaweedfs-82f3bcc65ebbd9514862dcf44a63dcc22603c701.tar.xz
seaweedfs-82f3bcc65ebbd9514862dcf44a63dcc22603c701.zip
Merge pull request #3081 from paochiang/volume_upload_limit_fix
exclude replication from the concurrentUploadLimitMB
Diffstat (limited to 'weed/command/volume.go')
-rw-r--r--weed/command/volume.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go
index b1455352c..158bdf162 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -65,7 +65,8 @@ type VolumeServerOptions struct {
preStopSeconds *int
metricsHttpPort *int
// pulseSeconds *int
- enableTcp *bool
+ enableTcp *bool
+ inflightUploadDataTimeout *time.Duration
}
func init() {
@@ -96,6 +97,7 @@ func init() {
v.metricsHttpPort = cmdVolume.Flag.Int("metricsPort", 0, "Prometheus metrics listen port")
v.idxFolder = cmdVolume.Flag.String("dir.idx", "", "directory to store .idx files")
v.enableTcp = cmdVolume.Flag.Bool("tcp", false, "<experimental> enable tcp port")
+ v.inflightUploadDataTimeout = cmdVolume.Flag.Duration("inflightUploadDataTimeout", 60*time.Second, "inflight upload data wait timeout of volume servers")
}
var cmdVolume = &Command{
@@ -244,6 +246,7 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
*v.fileSizeLimitMB,
int64(*v.concurrentUploadLimitMB)*1024*1024,
int64(*v.concurrentDownloadLimitMB)*1024*1024,
+ *v.inflightUploadDataTimeout,
)
// starting grpc server
grpcS := v.startGrpcService(volumeServer)