21ab4e
From 7c669f5f2420b19d21c3b8f73780abb8cf26ae02 Mon Sep 17 00:00:00 2001
21ab4e
From: Pranith Kumar K <pkarampu@redhat.com>
21ab4e
Date: Wed, 10 May 2017 16:26:35 +0530
21ab4e
Subject: [PATCH 457/473] extras: Provide group set for gluster-block workloads
21ab4e
21ab4e
For gluster-block workloads I/O is always with o-direct so it doesn't
21ab4e
benefit by any of the perf xlators so disabling all of them to save
21ab4e
on memory.
21ab4e
performance.quick-read=off
21ab4e
performance.read-ahead=off
21ab4e
performance.io-cache=off
21ab4e
performance.stat-prefetch=off
21ab4e
performance.write-behind=off
21ab4e
performance.open-behind=off
21ab4e
performance.readdir-ahead=off
21ab4e
21ab4e
We want the I/O on the file to be with o-direct
21ab4e
network.remote-dio=enable
21ab4e
21ab4e
Options that are proven to give good performance with
21ab4e
VM workloads which is very similar to gluster-block
21ab4e
cluster.eager-lock=enable
21ab4e
cluster.quorum-type=auto
21ab4e
cluster.data-self-heal-algorithm=full
21ab4e
cluster.locking-scheme=granular
21ab4e
cluster.shd-max-threads=8
21ab4e
cluster.shd-wait-qlength=10000
21ab4e
features.shard=on
21ab4e
21ab4e
It is better to turn off things we are not using
21ab4e
user.cifs=off
21ab4e
21ab4e
It is better to have allow-insecure to be on so that
21ab4e
ports that are > 1024 in tcmu-runner are allowed.
21ab4e
server.allow-insecure=on
21ab4e
21ab4e
 >Change-Id: I9a21c824fa42242f02b57569feedd03d9b6f9439
21ab4e
 >BUG: 1450010
21ab4e
 >Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
21ab4e
 >Reviewed-on: https://review.gluster.org/17254
21ab4e
 >Smoke: Gluster Build System <jenkins@build.gluster.org>
21ab4e
 >Reviewed-by: Niels de Vos <ndevos@redhat.com>
21ab4e
 >CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
21ab4e
 >NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
21ab4e
 >Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
21ab4e
21ab4e
BUG: 1449226
21ab4e
Change-Id: I0224501839724a35f172b8ca79adbb71994e04b3
21ab4e
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
21ab4e
Reviewed-on: https://code.engineering.redhat.com/gerrit/106656
21ab4e
---
21ab4e
 extras/Makefile.am         |  4 +++-
21ab4e
 extras/group-gluster-block | 17 +++++++++++++++++
21ab4e
 glusterfs.spec.in          |  5 +++++
21ab4e
 3 files changed, 25 insertions(+), 1 deletion(-)
21ab4e
 create mode 100644 extras/group-gluster-block
21ab4e
21ab4e
diff --git a/extras/Makefile.am b/extras/Makefile.am
21ab4e
index 4555d34..e6964e6 100644
21ab4e
--- a/extras/Makefile.am
21ab4e
+++ b/extras/Makefile.am
21ab4e
@@ -9,7 +9,7 @@ SUBDIRS = init.d systemd benchmarking hook-scripts $(OCF_SUBDIR) LinuxRPM \
21ab4e
 
21ab4e
 confdir = $(sysconfdir)/glusterfs
21ab4e
 conf_DATA = glusterfs-logrotate gluster-rsyslog-7.2.conf gluster-rsyslog-5.8.conf \
21ab4e
-	logger.conf.example glusterfs-georep-logrotate group-virt.example group-metadata-cache
21ab4e
+	logger.conf.example glusterfs-georep-logrotate group-virt.example group-metadata-cache group-gluster-block
21ab4e
 
21ab4e
 voldir = $(sysconfdir)/glusterfs
21ab4e
 vol_DATA = glusterd.vol
21ab4e
@@ -35,3 +35,5 @@ install-data-local:
21ab4e
 		$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/virt
21ab4e
 	$(INSTALL_DATA) $(top_srcdir)/extras/group-metadata-cache \
21ab4e
 		$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/metadata-cache
21ab4e
+	$(INSTALL_DATA) $(top_srcdir)/extras/group-gluster-block \
21ab4e
+		$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/gluster-block
21ab4e
diff --git a/extras/group-gluster-block b/extras/group-gluster-block
21ab4e
new file mode 100644
21ab4e
index 0000000..0753d26
21ab4e
--- /dev/null
21ab4e
+++ b/extras/group-gluster-block
21ab4e
@@ -0,0 +1,17 @@
21ab4e
+performance.quick-read=off
21ab4e
+performance.read-ahead=off
21ab4e
+performance.io-cache=off
21ab4e
+performance.stat-prefetch=off
21ab4e
+performance.write-behind=off
21ab4e
+performance.open-behind=off
21ab4e
+performance.readdir-ahead=off
21ab4e
+network.remote-dio=enable
21ab4e
+cluster.eager-lock=enable
21ab4e
+cluster.quorum-type=auto
21ab4e
+cluster.data-self-heal-algorithm=full
21ab4e
+cluster.locking-scheme=granular
21ab4e
+cluster.shd-max-threads=8
21ab4e
+cluster.shd-wait-qlength=10000
21ab4e
+features.shard=on
21ab4e
+user.cifs=off
21ab4e
+server.allow-insecure=on
21ab4e
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
21ab4e
index c83f897..20af5d2 100644
21ab4e
--- a/glusterfs.spec.in
21ab4e
+++ b/glusterfs.spec.in
21ab4e
@@ -1054,6 +1054,7 @@ exit 0
21ab4e
 %exclude %{_sysconfdir}/glusterfs/gluster-rsyslog-7.2.conf
21ab4e
 %exclude %{_sysconfdir}/glusterfs/group-virt.example
21ab4e
 %exclude %{_sysconfdir}/glusterfs/group-metadata-cache
21ab4e
+%exclude %{_sysconfdir}/glusterfs/group-gluster-block
21ab4e
 %exclude %{_sysconfdir}/glusterfs/logger.conf.example
21ab4e
 %exclude %_init_glusterd
21ab4e
 %exclude %{_sysconfdir}/sysconfig/glusterd
21ab4e
@@ -1372,6 +1373,7 @@ exit 0
21ab4e
        %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/groups
21ab4e
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/virt
21ab4e
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/metadata-cache
21ab4e
+            %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/gluster-block
21ab4e
        %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glusterfind
21ab4e
        %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glusterfind/.keys
21ab4e
 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glustershd
21ab4e
@@ -2061,6 +2063,9 @@ end
21ab4e
 %endif
21ab4e
 
21ab4e
 %changelog
21ab4e
+* Wed May 10 2017 Pranith Kumar K <pkarampu@redhat.com>
21ab4e
+- Install /var/lib/glusterd/groups/gluster-block by default
21ab4e
+
21ab4e
 * Wed May 3 2017 Niels de Vos <ndevos@redhat.com>
21ab4e
 - /var/run/gluster owner gluster:gluster(0775) for qemu(gfapi) statedumps (#1445570)
21ab4e
 
21ab4e
-- 
21ab4e
1.8.3.1
21ab4e