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