summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorAnoop C S <anoopcs@redhat.com>2018-12-06 15:05:20 +0530
committerAmar Tumballi <amarts@redhat.com>2018-12-14 05:13:40 +0000
commita6a5f7aa6f05d21db7e8b4fbc39f2c6f843aac39 (patch)
treefe44a8ec219ca13b695184ae7a7c1505eaf2838c /extras
parent930d8b706136e2aaa1f3d173f79e1a4970e65561 (diff)
extras: New group volume set command for Samba integration
# gluster volume set <VOLNAME> group samba List of volume set options from group-samba are aimed at improving the below workloads which consumes time and network hops in SMB world: * Listing of large directories * Negative lookups during creation of files Caching the necessary metadata required for these workloads saves us time and network hops. On the other side we have to ensure correctness(avoiding stale cache) in caching(via md-cache) with the help of cache invalidation in an environment where multiple client access is expected. Change-Id: Icdd2d8e5eb290e12bc509105418c668f432f4eae fixes: bz#1656771 Signed-off-by: Anoop C S <anoopcs@redhat.com>
Diffstat (limited to 'extras')
-rw-r--r--extras/Makefile.am6
-rw-r--r--extras/group-samba10
2 files changed, 14 insertions, 2 deletions
diff --git a/extras/Makefile.am b/extras/Makefile.am
index d0ef4137380..cf4e9264bed 100644
--- a/extras/Makefile.am
+++ b/extras/Makefile.am
@@ -18,7 +18,7 @@ if WITH_SERVER
conf_DATA = glusterfs-logrotate gluster-rsyslog-7.2.conf gluster-rsyslog-5.8.conf \
logger.conf.example glusterfs-georep-logrotate group-virt.example \
group-metadata-cache group-gluster-block group-nl-cache \
- group-db-workload group-distributed-virt
+ group-db-workload group-distributed-virt group-samba
endif
voldir = $(sysconfdir)/glusterfs
@@ -40,7 +40,7 @@ endif
EXTRA_DIST = glusterfs-logrotate gluster-rsyslog-7.2.conf gluster-rsyslog-5.8.conf \
logger.conf.example glusterfs-georep-logrotate group-virt.example \
group-metadata-cache group-gluster-block group-nl-cache \
- group-db-workload specgen.scm glusterfs-mode.el glusterfs.vim \
+ group-db-workload group-samba specgen.scm glusterfs-mode.el glusterfs.vim \
migrate-unify-to-distribute.sh backend-xattr-sanitize.sh \
backend-cleanup.sh disk_usage_sync.sh clear_xattrs.sh \
glusterd-sysconfig glusterd.vol post-upgrade-script-for-quota.sh \
@@ -69,4 +69,6 @@ install-data-local:
$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/db-workload
$(INSTALL_DATA) $(top_srcdir)/extras/group-distributed-virt \
$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/distributed-virt
+ $(INSTALL_DATA) $(top_srcdir)/extras/group-samba \
+ $(DESTDIR)$(GLUSTERD_WORKDIR)/groups/samba
endif
diff --git a/extras/group-samba b/extras/group-samba
new file mode 100644
index 00000000000..ee392024c47
--- /dev/null
+++ b/extras/group-samba
@@ -0,0 +1,10 @@
+features.cache-invalidation=on
+features.cache-invalidation-timeout=600
+performance.cache-samba-metadata=on
+performance.stat-prefetch=on
+performance.cache-invalidation=on
+performance.md-cache-timeout=600
+network.inode-lru-limit=200000
+performance.nl-cache=on
+performance.nl-cache-timeout=600
+performance.parallel-readdir=on