cb8e9e
From f288faff1ddfbcaff9b37740ee7bb61c91166b66 Mon Sep 17 00:00:00 2001
cb8e9e
From: Venky Shankar <vshankar@redhat.com>
cb8e9e
Date: Mon, 13 Jul 2015 11:59:33 +0530
cb8e9e
Subject: [PATCH 241/244] features/bitrot: throttle signer
cb8e9e
cb8e9e
    Backport of http://review.gluster.org/11641/
cb8e9e
cb8e9e
Pass -DDBR_RATE_LIMIT_SIGNER CFLAGS to enable fixed value throttling
cb8e9e
based on TBF to rate limit signer. The following messags is dumped
cb8e9e
in bitd log file that this change introduces.
cb8e9e
cb8e9e
[
cb8e9e
    [Rate Limit Info] "tokens/sec (rate): 131072, maxlimit: 524288"
cb8e9e
]
cb8e9e
cb8e9e
Bug: 1242585
cb8e9e
Change-Id: I063e41d4c7bcddd7a940cc175e89536cd4fe2804
cb8e9e
Signed-off-by: Venky Shankar <vshankar@redhat.com>
cb8e9e
Reviewed-on: https://code.engineering.redhat.com/gerrit/52934
cb8e9e
Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
cb8e9e
Tested-by: Raghavendra Bhat <raghavendra@redhat.com>
cb8e9e
---
cb8e9e
 xlators/features/bit-rot/src/bitd/Makefile.am |    2 +-
cb8e9e
 1 files changed, 1 insertions(+), 1 deletions(-)
cb8e9e
cb8e9e
diff --git a/xlators/features/bit-rot/src/bitd/Makefile.am b/xlators/features/bit-rot/src/bitd/Makefile.am
cb8e9e
index 154cdfb..f06cf9e 100644
cb8e9e
--- a/xlators/features/bit-rot/src/bitd/Makefile.am
cb8e9e
+++ b/xlators/features/bit-rot/src/bitd/Makefile.am
cb8e9e
@@ -15,6 +15,6 @@ bit_rot_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
cb8e9e
 
cb8e9e
 noinst_HEADERS = bit-rot.h bit-rot-scrub.h bit-rot-tbf.h bit-rot-bitd-messages.h bit-rot-ssm.h
cb8e9e
 
cb8e9e
-AM_CFLAGS = -Wall $(GF_CFLAGS)
cb8e9e
+AM_CFLAGS = -Wall -DBR_RATE_LIMIT_SIGNER $(GF_CFLAGS)
cb8e9e
 
cb8e9e
 CLEANFILES =
cb8e9e
-- 
cb8e9e
1.7.1
cb8e9e