aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount_std.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-01-20 23:30:14 -0800
committerChris Lu <chris.lu@gmail.com>2021-01-20 23:30:14 -0800
commit84f05787f8eecfcb61e49882346ad5855b6bb784 (patch)
treead27ed52332e5eceee1ee2332723ccfb9c7e362d /weed/command/mount_std.go
parentf98817cfe655d0285ed35f6d30068aa15938bd3d (diff)
downloadseaweedfs-84f05787f8eecfcb61e49882346ad5855b6bb784.tar.xz
seaweedfs-84f05787f8eecfcb61e49882346ad5855b6bb784.zip
mount: limit background requests and congestion threshold
Diffstat (limited to 'weed/command/mount_std.go')
-rw-r--r--weed/command/mount_std.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index 7e75b082d..9e955e344 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -150,6 +150,8 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
fuse.MaxReadahead(1024 * 128),
fuse.AsyncRead(),
fuse.WritebackCache(),
+ fuse.MaxBackground(128),
+ fuse.CongestionThreshold(128),
}
options = append(options, osSpecificMountOptions()...)