From 123473021d4edb116a099050276d6aebf00c367d Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Thu, 2 May 2013 14:59:10 -0700 Subject: [PATCH] memcache: Reduce compression threshold for main caches. --- r2/r2/lib/app_globals.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/r2/r2/lib/app_globals.py b/r2/r2/lib/app_globals.py index 54fd820a0..e772b85a8 100755 --- a/r2/r2/lib/app_globals.py +++ b/r2/r2/lib/app_globals.py @@ -426,7 +426,11 @@ class Globals(object): num_mc_clients = self.num_mc_clients # the main memcache pool. used for most everything. - self.memcache = CMemcache(self.memcaches, num_clients=num_mc_clients) + self.memcache = CMemcache( + self.memcaches, + min_compress_len=50 * 1024, + num_clients=num_mc_clients, + ) # a smaller pool of caches used only for distributed locks. # TODO: move this to ZooKeeper