From a27d3b9689414fc89741cb6cdeeca86ecff9616f Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Tue, 19 Oct 2021 16:18:28 -0400 Subject: [PATCH] set default `CACHE_MB` to 1024mb and the default `QUERY_TIMEOUT_MS` to 10s --- lbry/wallet/server/env.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbry/wallet/server/env.py b/lbry/wallet/server/env.py index 16490b0d4..d081ab8c8 100644 --- a/lbry/wallet/server/env.py +++ b/lbry/wallet/server/env.py @@ -51,7 +51,7 @@ class Env: self.coin = Coin.lookup_coin_class(coin_name, network) self.es_index_prefix = self.default('ES_INDEX_PREFIX', '') self.es_mode = self.default('ES_MODE', 'writer') - self.cache_MB = self.integer('CACHE_MB', 4096) + self.cache_MB = self.integer('CACHE_MB', 1024) self.reorg_limit = self.integer('REORG_LIMIT', self.coin.REORG_LIMIT) # Server stuff self.tcp_port = self.integer('TCP_PORT', None) @@ -97,7 +97,7 @@ class Env: self.identities = [identity for identity in (clearnet_identity, tor_identity) if identity is not None] - self.database_query_timeout = float(self.integer('QUERY_TIMEOUT_MS', 3000)) / 1000.0 + self.database_query_timeout = float(self.integer('QUERY_TIMEOUT_MS', 10000)) / 1000.0 @classmethod def default(cls, envvar, default):