increase scribe history tx lfu cache size
This commit is contained in:
parent
bffd1b1394
commit
35483fa0b1
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ class BlockchainEnv(Env):
|
||||||
if isinstance(rebuild_address_status_from_height, int) else -1
|
if isinstance(rebuild_address_status_from_height, int) else -1
|
||||||
self.daemon_ca_path = daemon_ca_path if daemon_ca_path else None
|
self.daemon_ca_path = daemon_ca_path if daemon_ca_path else None
|
||||||
self.history_tx_cache_size = history_tx_cache_size if history_tx_cache_size is not None else \
|
self.history_tx_cache_size = history_tx_cache_size if history_tx_cache_size is not None else \
|
||||||
self.integer('HISTORY_TX_CACHE_SIZE', 524288)
|
self.integer('HISTORY_TX_CACHE_SIZE', 4194304)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def contribute_to_arg_parser(cls, parser):
|
def contribute_to_arg_parser(cls, parser):
|
||||||
|
@ -42,7 +42,7 @@ class BlockchainEnv(Env):
|
||||||
help="Rebuild address statuses, set to 0 to reindex all address statuses or provide a "
|
help="Rebuild address statuses, set to 0 to reindex all address statuses or provide a "
|
||||||
"block height to start reindexing from. Defaults to -1 (off).")
|
"block height to start reindexing from. Defaults to -1 (off).")
|
||||||
parser.add_argument('--history_tx_cache_size', type=int,
|
parser.add_argument('--history_tx_cache_size', type=int,
|
||||||
default=cls.integer('HISTORY_TX_CACHE_SIZE', 524288),
|
default=cls.integer('HISTORY_TX_CACHE_SIZE', 4194304),
|
||||||
help="Size of the lfu cache of txids in transaction histories for addresses. "
|
help="Size of the lfu cache of txids in transaction histories for addresses. "
|
||||||
"Can be set in the env with 'HISTORY_TX_CACHE_SIZE'")
|
"Can be set in the env with 'HISTORY_TX_CACHE_SIZE'")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue