Blob Blame History Raw
From 429ef7d90b1508ed560e94ca5a0f9d2e3ff24868 Mon Sep 17 00:00:00 2001
From: Pranith Kumar K <pkarampu@redhat.com>
Date: Wed, 2 Aug 2017 07:22:13 +0530
Subject: [PATCH 587/587] extras: Turn eager-lock off for gluster-block

	Backport of https://review.gluster.org/17954

With the current implementation of eager-lock FINODELK is taking so much
time that cassandra workload times out and errors out. AFR eager-locking
needs to be changed similar to EC eager-locking to make things work
as expected. In the interim, it is better to turn it off

This is how the profile looks if eager-lock is turned on:
      0.35     628.26 us      64.00 us  129882.00 us          42278    FXATTROP
     17.45   16500.54 us     212.00 us  375829.00 us          79568       WRITE
     81.76  209862.12 us      15.00 us 1992486.00 us          29318    FINODELK

This is how profile looks if eager-lock is turned off:
      1.87     283.71 us      65.00 us  298970.00 us          68346    FXATTROP
      6.33     199.04 us      13.00 us  373428.00 us         330524    FINODELK
     10.37    3151.47 us      53.00 us 1528484.00 us          34172       FSYNC
     81.31    5110.45 us     270.00 us 1519722.00 us         165244       WRITE

 >BUG: 1477404
 >Change-Id: I98026b1ecf30002ddac01be76f375c2e8c0b7838
 >Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>

BUG: 1472273
Change-Id: I98026b1ecf30002ddac01be76f375c2e8c0b7838
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/114104
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Tested-by: Atin Mukherjee <amukherj@redhat.com>
---
 extras/group-gluster-block | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extras/group-gluster-block b/extras/group-gluster-block
index 12d5f90..82bd6ff 100644
--- a/extras/group-gluster-block
+++ b/extras/group-gluster-block
@@ -5,7 +5,7 @@ performance.stat-prefetch=off
 performance.open-behind=off
 performance.readdir-ahead=off
 network.remote-dio=disable
-cluster.eager-lock=enable
+cluster.eager-lock=disable
 cluster.quorum-type=auto
 cluster.data-self-heal-algorithm=full
 cluster.locking-scheme=granular
-- 
1.8.3.1