b51a1f
From 88523814fe296c9cc9f7619e06210830f59c5edf Mon Sep 17 00:00:00 2001
b51a1f
From: Xavi Hernandez <xhernandez@redhat.com>
b51a1f
Date: Fri, 12 Mar 2021 10:32:09 +0100
b51a1f
Subject: [PATCH 539/539] extras: disable lookup-optimize in virt and block
b51a1f
 groups
b51a1f
b51a1f
lookup-optimize doesn't provide any benefit for virtualized
b51a1f
environments and gluster-block workloads, but it's known to cause
b51a1f
corruption in some cases when sharding is also enabled and the volume
b51a1f
is expanded or shrunk.
b51a1f
b51a1f
For this reason, we disable lookup-optimize by default on those
b51a1f
environments.
b51a1f
b51a1f
Backport of:
b51a1f
> Upstream-patch-link: https://github.com/gluster/glusterfs/pull/2254
b51a1f
> Fixes: #2253
b51a1f
> Change-Id: I25861aa50b335556a995a9c33318dd3afb41bf71
b51a1f
> Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
b51a1f
b51a1f
BUG: 1939372
b51a1f
Change-Id: I25861aa50b335556a995a9c33318dd3afb41bf71
b51a1f
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
b51a1f
Reviewed-on: https://code.engineering.redhat.com/gerrit/231173
b51a1f
Tested-by: RHGS Build Bot <nigelb@redhat.com>
b51a1f
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
b51a1f
---
b51a1f
 extras/group-distributed-virt | 1 +
b51a1f
 extras/group-gluster-block    | 1 +
b51a1f
 extras/group-virt.example     | 1 +
b51a1f
 3 files changed, 3 insertions(+)
b51a1f
b51a1f
diff --git a/extras/group-distributed-virt b/extras/group-distributed-virt
b51a1f
index a960b76..6da3de0 100644
b51a1f
--- a/extras/group-distributed-virt
b51a1f
+++ b/extras/group-distributed-virt
b51a1f
@@ -8,3 +8,4 @@ user.cifs=off
b51a1f
 client.event-threads=4
b51a1f
 server.event-threads=4
b51a1f
 performance.client-io-threads=on
b51a1f
+cluster.lookup-optimize=off
b51a1f
diff --git a/extras/group-gluster-block b/extras/group-gluster-block
b51a1f
index 1e39801..b8d3e8d 100644
b51a1f
--- a/extras/group-gluster-block
b51a1f
+++ b/extras/group-gluster-block
b51a1f
@@ -25,3 +25,4 @@ features.shard-block-size=64MB
b51a1f
 user.cifs=off
b51a1f
 server.allow-insecure=on
b51a1f
 cluster.choose-local=off
b51a1f
+cluster.lookup-optimize=off
b51a1f
diff --git a/extras/group-virt.example b/extras/group-virt.example
b51a1f
index 3a441eb..155f5f5 100644
b51a1f
--- a/extras/group-virt.example
b51a1f
+++ b/extras/group-virt.example
b51a1f
@@ -21,3 +21,4 @@ server.tcp-user-timeout=20
b51a1f
 server.keepalive-time=10
b51a1f
 server.keepalive-interval=2
b51a1f
 server.keepalive-count=5
b51a1f
+cluster.lookup-optimize=off
b51a1f
-- 
b51a1f
1.8.3.1
b51a1f