7c2869
From 8c1a79da71b6b99b70ded53b405fb534987c4107 Mon Sep 17 00:00:00 2001
7c2869
From: Atin Mukherjee <amukherj@redhat.com>
7c2869
Date: Thu, 28 Jun 2018 10:42:56 +0530
7c2869
Subject: [PATCH 678/678] extras/group : add database workload profile
7c2869
7c2869
Running DB workload patterns with all perf xlators enabled as default has
7c2869
resulted into some inconsistency issues. Based on the internal testing done by
7c2869
Elko Kuric (ekuric@redhat.com) there're certain set of perf xlators which need
7c2869
to be turned off to get these types of workload supported by Gluster.
7c2869
7c2869
The proposal is to leverage group profile infrastructure to group together all
7c2869
those tunables at one place so that users just need to apply the profile to the
7c2869
volume to use it for the data base workload.
7c2869
7c2869
Credits : Elko Kuric (ekuric@redhat.com)
7c2869
7c2869
> upstream patch : https://review.gluster.org/#/c/20414/
7c2869
7c2869
>Change-Id: I8a50e915278ad4085b9aaa3f160a33af7c0b0444
7c2869
>fixes: bz#1596020
7c2869
>Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
7c2869
7c2869
Change-Id: I8a50e915278ad4085b9aaa3f160a33af7c0b0444
7c2869
BUG: 1596076
7c2869
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
7c2869
Reviewed-on: https://code.engineering.redhat.com/gerrit/142750
7c2869
Tested-by: RHGS Build Bot <nigelb@redhat.com>
7c2869
Reviewed-by: Milind Changire <mchangir@redhat.com>
7c2869
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
7c2869
---
7c2869
 extras/Makefile.am       | 4 +++-
7c2869
 extras/group-db-workload | 8 ++++++++
7c2869
 glusterfs.spec.in        | 5 +++++
7c2869
 3 files changed, 16 insertions(+), 1 deletion(-)
7c2869
 create mode 100644 extras/group-db-workload
7c2869
7c2869
diff --git a/extras/Makefile.am b/extras/Makefile.am
7c2869
index 5a340da..6f17906 100644
7c2869
--- a/extras/Makefile.am
7c2869
+++ b/extras/Makefile.am
7c2869
@@ -12,7 +12,7 @@ SUBDIRS = init.d systemd benchmarking hook-scripts $(OCF_SUBDIR) LinuxRPM \
7c2869
 
7c2869
 confdir = $(sysconfdir)/glusterfs
7c2869
 conf_DATA = glusterfs-logrotate gluster-rsyslog-7.2.conf gluster-rsyslog-5.8.conf \
7c2869
-	logger.conf.example glusterfs-georep-logrotate group-virt.example group-metadata-cache group-gluster-block group-nl-cache
7c2869
+	logger.conf.example glusterfs-georep-logrotate group-virt.example group-metadata-cache group-gluster-block group-nl-cache group-db-workload
7c2869
 
7c2869
 voldir = $(sysconfdir)/glusterfs
7c2869
 vol_DATA = glusterd.vol
7c2869
@@ -42,3 +42,5 @@ install-data-local:
7c2869
 		$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/gluster-block
7c2869
 	$(INSTALL_DATA) $(top_srcdir)/extras/group-nl-cache \
7c2869
 		$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/nl-cache
7c2869
+	$(INSTALL_DATA) $(top_srcdir)/extras/group-db-workload \
7c2869
+		$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/db-workload
7c2869
diff --git a/extras/group-db-workload b/extras/group-db-workload
7c2869
new file mode 100644
7c2869
index 0000000..c9caf21
7c2869
--- /dev/null
7c2869
+++ b/extras/group-db-workload
7c2869
@@ -0,0 +1,8 @@
7c2869
+performance.open-behind=off
7c2869
+performance.write-behind=off
7c2869
+performance.stat-prefetch=off
7c2869
+performance.quick-read=off
7c2869
+performance.strict-o-direct=on
7c2869
+performance.read-ahead=off
7c2869
+performance.io-cache=off
7c2869
+performance.readdir-ahead=off
7c2869
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
7c2869
index d1aa3ea..6d59fef 100644
7c2869
--- a/glusterfs.spec.in
7c2869
+++ b/glusterfs.spec.in
7c2869
@@ -1062,6 +1062,7 @@ exit 0
7c2869
 %exclude %{_sysconfdir}/glusterfs/group-metadata-cache
7c2869
 %exclude %{_sysconfdir}/glusterfs/group-nl-cache
7c2869
 %exclude %{_sysconfdir}/glusterfs/group-gluster-block
7c2869
+%exclude %{_sysconfdir}/glusterfs/group-db-workload
7c2869
 %exclude %{_sysconfdir}/glusterfs/logger.conf.example
7c2869
 %exclude %_init_glusterd
7c2869
 %exclude %{_sysconfdir}/sysconfig/glusterd
7c2869
@@ -1389,6 +1390,7 @@ exit 0
7c2869
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/metadata-cache
7c2869
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/nl-cache
7c2869
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/gluster-block
7c2869
+            %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/db-workload
7c2869
        %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glusterfind
7c2869
        %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glusterfind/.keys
7c2869
 %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glustershd
7c2869
@@ -2068,6 +2070,9 @@ fi
7c2869
 %endif
7c2869
 
7c2869
 %changelog
7c2869
+* Fri Jun 29 2018 Atin Mukherjee <amukherj@redhat.com>
7c2869
+- Added db group profile (#1596076)
7c2869
+
7c2869
 * Thu Mar 22 2018 Kotresh HR <khiremat@redhat.com>
7c2869
 - Added util-linux as dependency to georeplication rpm (#1544382)
7c2869
 
7c2869
-- 
7c2869
1.8.3.1
7c2869