From 08fadcc2a706342e4eee79dc7d9b48ba01fcb312 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Tue, 9 Jan 2018 15:11:00 +0530 Subject: mount/fuse: Add support for multi-threaded fuse readers Usage: Use 'reader-thread-count=' as command line option to set the thread count at the time of mounting the volume. Next task is to make these threads auto-scale based on the load, instead of having the user remount the volume everytime to change the thread count. Updates #412 Change-Id: I94aa1505e5ae6a133683d473e0e4e0edd139b76b Signed-off-by: Krutika Dhananjay --- xlators/mount/fuse/utils/mount.glusterfs.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xlators/mount/fuse/utils/mount.glusterfs.in') diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index fd616844d65..6890ff00121 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -225,6 +225,10 @@ start_glusterfs () cmd_line=$(echo "$cmd_line --event-history=$event_history"); fi + if [ -n "$reader_thread_count" ]; then + cmd_line=$(echo "$cmd_line --reader-thread-count=$reader_thread_count"); + fi + if [ -n "$volume_name" ]; then cmd_line=$(echo "$cmd_line --volume-name=$volume_name"); fi @@ -499,6 +503,9 @@ with_options() "event-history") event_history=$value ;; + "reader-thread-count") + reader_thread_count=$value + ;; "no-root-squash") if [ $value = "yes" ] || [ $value = "on" ] || -- cgit