diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2018-01-09 15:11:00 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2018-04-02 06:10:30 +0000 |
commit | 08fadcc2a706342e4eee79dc7d9b48ba01fcb312 (patch) | |
tree | 64759c0d2701a80ca0aa5270a44018389306f2bb /xlators/mount/fuse/utils | |
parent | 25690197a6af67669346892c36cca471805b9305 (diff) |
mount/fuse: Add support for multi-threaded fuse readers
Usage: Use 'reader-thread-count=<NUM>' 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 <kdhananj@redhat.com>
Diffstat (limited to 'xlators/mount/fuse/utils')
-rwxr-xr-x | xlators/mount/fuse/utils/mount.glusterfs.in | 7 |
1 files changed, 7 insertions, 0 deletions
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" ] || |