a3470f
From 03bda9edb70d855cf602da06fde02c6131db3287 Mon Sep 17 00:00:00 2001
a3470f
From: Atin Mukherjee <amukherj@redhat.com>
a3470f
Date: Thu, 28 Jun 2018 10:42:56 +0530
a3470f
Subject: [PATCH 309/325] extras/group : add database workload profile
a3470f
a3470f
Running DB workload patterns with all perf xlators enabled as default has
a3470f
resulted into some inconsistency issues. Based on the internal testing done by
a3470f
Elko Kuric (ekuric@redhat.com) there're certain set of perf xlators which need
a3470f
to be turned off to get these types of workload supported by Gluster.
a3470f
a3470f
The proposal is to leverage group profile infrastructure to group together all
a3470f
those tunables at one place so that users just need to apply the profile to the
a3470f
volume to use it for the data base workload.
a3470f
a3470f
Credits : Elko Kuric (ekuric@redhat.com)
a3470f
a3470f
> upstream patch : https://review.gluster.org/#/c/20414/
a3470f
a3470f
>Change-Id: I8a50e915278ad4085b9aaa3f160a33af7c0b0444
a3470f
>fixes: bz#1596020
a3470f
>Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
a3470f
a3470f
>Change-Id: I8a50e915278ad4085b9aaa3f160a33af7c0b0444
a3470f
>BUG: 1596076
a3470f
>Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
a3470f
>Reviewed-on: https://code.engineering.redhat.com/gerrit/142750
a3470f
>Tested-by: RHGS Build Bot <nigelb@redhat.com>
a3470f
>Reviewed-by: Milind Changire <mchangir@redhat.com>
a3470f
>Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
a3470f
a3470f
Change-Id: I8a50e915278ad4085b9aaa3f160a33af7c0b0444
a3470f
BUG: 1597506
a3470f
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
a3470f
Reviewed-on: https://code.engineering.redhat.com/gerrit/143320
a3470f
Tested-by: RHGS Build Bot <nigelb@redhat.com>
a3470f
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
a3470f
---
a3470f
 .testignore              | 1 +
a3470f
 extras/Makefile.am       | 4 +++-
a3470f
 extras/group-db-workload | 8 ++++++++
a3470f
 glusterfs.spec.in        | 4 ++++
a3470f
 4 files changed, 16 insertions(+), 1 deletion(-)
a3470f
 create mode 100644 extras/group-db-workload
a3470f
a3470f
diff --git a/.testignore b/.testignore
a3470f
index 72c0b38..4a72bc4 100644
a3470f
--- a/.testignore
a3470f
+++ b/.testignore
a3470f
@@ -33,6 +33,7 @@ extras/command-completion/README
a3470f
 extras/create_new_xlator/README.md
a3470f
 extras/glusterfs.vim
a3470f
 extras/group-gluster-block
a3470f
+extras/group-db-workload
a3470f
 extras/group-metadata-cache
a3470f
 extras/group-nl-cache
a3470f
 extras/group-virt.example
a3470f
diff --git a/extras/Makefile.am b/extras/Makefile.am
a3470f
index d9572ac..7b791af 100644
a3470f
--- a/extras/Makefile.am
a3470f
+++ b/extras/Makefile.am
a3470f
@@ -12,7 +12,7 @@ SUBDIRS = init.d systemd benchmarking hook-scripts $(OCF_SUBDIR) LinuxRPM \
a3470f
 
a3470f
 confdir = $(sysconfdir)/glusterfs
a3470f
 conf_DATA = glusterfs-logrotate gluster-rsyslog-7.2.conf gluster-rsyslog-5.8.conf \
a3470f
-	logger.conf.example glusterfs-georep-logrotate group-virt.example group-metadata-cache group-gluster-block group-nl-cache
a3470f
+	logger.conf.example glusterfs-georep-logrotate group-virt.example group-metadata-cache group-gluster-block group-nl-cache group-db-workload
a3470f
 
a3470f
 voldir = $(sysconfdir)/glusterfs
a3470f
 vol_DATA = glusterd.vol
a3470f
@@ -47,3 +47,5 @@ install-data-local:
a3470f
 		$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/gluster-block
a3470f
 	$(INSTALL_DATA) $(top_srcdir)/extras/group-nl-cache \
a3470f
 		$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/nl-cache
a3470f
+	$(INSTALL_DATA) $(top_srcdir)/extras/group-db-workload \
a3470f
+		$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/db-workload
a3470f
diff --git a/extras/group-db-workload b/extras/group-db-workload
a3470f
new file mode 100644
a3470f
index 0000000..c9caf21
a3470f
--- /dev/null
a3470f
+++ b/extras/group-db-workload
a3470f
@@ -0,0 +1,8 @@
a3470f
+performance.open-behind=off
a3470f
+performance.write-behind=off
a3470f
+performance.stat-prefetch=off
a3470f
+performance.quick-read=off
a3470f
+performance.strict-o-direct=on
a3470f
+performance.read-ahead=off
a3470f
+performance.io-cache=off
a3470f
+performance.readdir-ahead=off
a3470f
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
a3470f
index 36b465a..c3f5748 100644
a3470f
--- a/glusterfs.spec.in
a3470f
+++ b/glusterfs.spec.in
a3470f
@@ -1513,6 +1513,7 @@ exit 0
a3470f
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/virt
a3470f
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/metadata-cache
a3470f
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/gluster-block
a3470f
+            %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/db-workload
a3470f
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/nl-cache
a3470f
        %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glusterfind
a3470f
        %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glusterfind/.keys
a3470f
@@ -2160,6 +2161,9 @@ fi
a3470f
 %endif
a3470f
 
a3470f
 %changelog
a3470f
+* Fri Jul 6 2018 Atin Mukherjee <amukherj@redhat.com>
a3470f
+- Added db group profile (#1597506)
a3470f
+
a3470f
 * Mon Apr 23 2018 Milind Changire <mchangir@redhat.com>
a3470f
 - make RHGS release number available in /usr/share/glusterfs/release (#1570514)
a3470f
 
a3470f
-- 
a3470f
1.8.3.1
a3470f