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