Blob Blame History Raw
From 8c1a79da71b6b99b70ded53b405fb534987c4107 Mon Sep 17 00:00:00 2001
From: Atin Mukherjee <amukherj@redhat.com>
Date: Thu, 28 Jun 2018 10:42:56 +0530
Subject: [PATCH 678/678] extras/group : add database workload profile

Running DB workload patterns with all perf xlators enabled as default has
resulted into some inconsistency issues. Based on the internal testing done by
Elko Kuric (ekuric@redhat.com) there're certain set of perf xlators which need
to be turned off to get these types of workload supported by Gluster.

The proposal is to leverage group profile infrastructure to group together all
those tunables at one place so that users just need to apply the profile to the
volume to use it for the data base workload.

Credits : Elko Kuric (ekuric@redhat.com)

> upstream patch : https://review.gluster.org/#/c/20414/

>Change-Id: I8a50e915278ad4085b9aaa3f160a33af7c0b0444
>fixes: bz#1596020
>Signed-off-by: Atin Mukherjee <amukherj@redhat.com>

Change-Id: I8a50e915278ad4085b9aaa3f160a33af7c0b0444
BUG: 1596076
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/142750
Tested-by: RHGS Build Bot <nigelb@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
---
 extras/Makefile.am       | 4 +++-
 extras/group-db-workload | 8 ++++++++
 glusterfs.spec.in        | 5 +++++
 3 files changed, 16 insertions(+), 1 deletion(-)
 create mode 100644 extras/group-db-workload

diff --git a/extras/Makefile.am b/extras/Makefile.am
index 5a340da..6f17906 100644
--- a/extras/Makefile.am
+++ b/extras/Makefile.am
@@ -12,7 +12,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 group-gluster-block group-nl-cache
+	logger.conf.example glusterfs-georep-logrotate group-virt.example group-metadata-cache group-gluster-block group-nl-cache group-db-workload
 
 voldir = $(sysconfdir)/glusterfs
 vol_DATA = glusterd.vol
@@ -42,3 +42,5 @@ install-data-local:
 		$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/gluster-block
 	$(INSTALL_DATA) $(top_srcdir)/extras/group-nl-cache \
 		$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/nl-cache
+	$(INSTALL_DATA) $(top_srcdir)/extras/group-db-workload \
+		$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/db-workload
diff --git a/extras/group-db-workload b/extras/group-db-workload
new file mode 100644
index 0000000..c9caf21
--- /dev/null
+++ b/extras/group-db-workload
@@ -0,0 +1,8 @@
+performance.open-behind=off
+performance.write-behind=off
+performance.stat-prefetch=off
+performance.quick-read=off
+performance.strict-o-direct=on
+performance.read-ahead=off
+performance.io-cache=off
+performance.readdir-ahead=off
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index d1aa3ea..6d59fef 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -1062,6 +1062,7 @@ exit 0
 %exclude %{_sysconfdir}/glusterfs/group-metadata-cache
 %exclude %{_sysconfdir}/glusterfs/group-nl-cache
 %exclude %{_sysconfdir}/glusterfs/group-gluster-block
+%exclude %{_sysconfdir}/glusterfs/group-db-workload
 %exclude %{_sysconfdir}/glusterfs/logger.conf.example
 %exclude %_init_glusterd
 %exclude %{_sysconfdir}/sysconfig/glusterd
@@ -1389,6 +1390,7 @@ exit 0
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/metadata-cache
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/nl-cache
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/gluster-block
+            %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/db-workload
        %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glusterfind
        %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glusterfind/.keys
 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glustershd
@@ -2068,6 +2070,9 @@ fi
 %endif
 
 %changelog
+* Fri Jun 29 2018 Atin Mukherjee <amukherj@redhat.com>
+- Added db group profile (#1596076)
+
 * Thu Mar 22 2018 Kotresh HR <khiremat@redhat.com>
 - Added util-linux as dependency to georeplication rpm (#1544382)
 
-- 
1.8.3.1