mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 07:25:51 +00:00
Enlarge the immutable SLE cache.
This commit is contained in:
@@ -510,14 +510,23 @@ void Config::load()
|
||||
int Config::getSize(SizedItemName item)
|
||||
{
|
||||
SizedItem sizeTable[] = { // tiny small medium large huge
|
||||
|
||||
{ siSweepInterval, { 10, 30, 60, 90, 120 } },
|
||||
|
||||
{ siLedgerFetch, { 2, 2, 3, 3, 3 } },
|
||||
|
||||
{ siValidationsSize, { 256, 256, 512, 1024, 1024 } },
|
||||
{ siValidationsAge, { 500, 500, 500, 500, 500 } },
|
||||
|
||||
{ siNodeCacheSize, { 8192, 65536, 262144, 2097152, 0 } },
|
||||
{ siNodeCacheAge, { 30, 60, 90, 300, 900 } },
|
||||
|
||||
{ siSLECacheSize, { 4096, 8192, 16384, 65536, 0 } },
|
||||
{ siSLECacheAge, { 30, 60, 90, 120, 300 } },
|
||||
|
||||
{ siLedgerSize, { 32, 128, 256, 2048, 0 } },
|
||||
{ siLedgerAge, { 30, 90, 180, 300, 900 } },
|
||||
|
||||
{ siHashNodeDBCache, { 4, 12, 24, 32, 64 } },
|
||||
{ siTxnDBCache, { 4, 12, 24, 32, 32 } },
|
||||
{ siLgrDBCache, { 4, 8, 16, 16, 16 } },
|
||||
|
||||
@@ -56,6 +56,8 @@ enum SizedItemName
|
||||
siValidationsAge,
|
||||
siNodeCacheSize,
|
||||
siNodeCacheAge,
|
||||
siSLECacheSize,
|
||||
siSLECacheAge,
|
||||
siLedgerSize,
|
||||
siLedgerAge,
|
||||
siLedgerFetch,
|
||||
|
||||
Reference in New Issue
Block a user