mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
memcache: Reduce compression threshold for main caches.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user