From 9a815e014275218a47ca623053cca441b7356c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BC=82=E6=B5=81?= Date: Tue, 7 Nov 2023 15:28:53 +0800 Subject: [PATCH] chore: change default cache size config (#1531) chore: change default config --- devtools/chain/config.toml | 6 +++--- devtools/chain/k8s/node_1.toml | 6 +++--- devtools/chain/k8s/node_2.toml | 6 +++--- devtools/chain/k8s/node_3.toml | 6 +++--- devtools/chain/k8s/node_4.toml | 6 +++--- devtools/chain/nodes/node_1.toml | 6 +++--- devtools/chain/nodes/node_2.toml | 6 +++--- devtools/chain/nodes/node_3.toml | 6 +++--- devtools/chain/nodes/node_4.toml | 6 +++--- 9 files changed, 27 insertions(+), 27 deletions(-) diff --git a/devtools/chain/config.toml b/devtools/chain/config.toml index 19e964e1f..1b34f28f6 100644 --- a/devtools/chain/config.toml +++ b/devtools/chain/config.toml @@ -36,7 +36,7 @@ broadcast_txs_size = 200 broadcast_txs_interval = 200 [executor] -triedb_cache_size = 500 +triedb_cache_size = 200 [logger] filter = "info" @@ -44,14 +44,14 @@ log_to_console = true console_show_file_and_line = false log_path = "logs/" log_to_file = true -file_size_limit = 1073741824 # 1 GiB +file_size_limit = 1073741824 # 1 GiB metrics = true # you can specify log level for modules with config below # modules_level = { "overlord::state::process" = "debug", core_consensus = "error" } [rocksdb] max_open_files = 64 -cache_size = 200 +cache_size = 100 # Provide an options file to tune RocksDB for your workload and your system configuration. # More details can be found in [the official tuning guide](https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide). options_file = "default.db-options" diff --git a/devtools/chain/k8s/node_1.toml b/devtools/chain/k8s/node_1.toml index c4b5cff0d..661273a30 100644 --- a/devtools/chain/k8s/node_1.toml +++ b/devtools/chain/k8s/node_1.toml @@ -42,7 +42,7 @@ broadcast_txs_size = 200 broadcast_txs_interval = 200 [executor] -triedb_cache_size = 500 +triedb_cache_size = 200 [logger] filter = "info" @@ -50,14 +50,14 @@ log_to_console = true console_show_file_and_line = false log_path = "logs/" log_to_file = true -file_size_limit = 1073741824 # 1 GiB +file_size_limit = 1073741824 # 1 GiB metrics = true # you can specify log level for modules with config below # modules_level = { "overlord::state::process" = "debug" } [rocksdb] max_open_files = 64 -cache_size = 200 +cache_size = 100 # Provide an options file to tune RocksDB for your workload and your system configuration. # More details can be found in [the official tuning guide](https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide). options_file = "default.db-options" diff --git a/devtools/chain/k8s/node_2.toml b/devtools/chain/k8s/node_2.toml index f4afd65d2..0057fa332 100644 --- a/devtools/chain/k8s/node_2.toml +++ b/devtools/chain/k8s/node_2.toml @@ -42,7 +42,7 @@ broadcast_txs_size = 200 broadcast_txs_interval = 200 [executor] -triedb_cache_size = 500 +triedb_cache_size = 200 [logger] filter = "info" @@ -50,14 +50,14 @@ log_to_console = true console_show_file_and_line = false log_path = "logs/" log_to_file = true -file_size_limit = 1073741824 # 1 GiB +file_size_limit = 1073741824 # 1 GiB metrics = true # you can specify log level for modules with config below # modules_level = { "overlord::state::process" = "debug" } [rocksdb] max_open_files = 64 -cache_size = 200 +cache_size = 100 # Provide an options file to tune RocksDB for your workload and your system configuration. # More details can be found in [the official tuning guide](https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide). options_file = "default.db-options" diff --git a/devtools/chain/k8s/node_3.toml b/devtools/chain/k8s/node_3.toml index 13ebb3f7c..bcb547ee5 100644 --- a/devtools/chain/k8s/node_3.toml +++ b/devtools/chain/k8s/node_3.toml @@ -42,7 +42,7 @@ broadcast_txs_size = 200 broadcast_txs_interval = 200 [executor] -triedb_cache_size = 500 +triedb_cache_size = 200 [logger] filter = "info" @@ -50,14 +50,14 @@ log_to_console = true console_show_file_and_line = false log_path = "logs/" log_to_file = true -file_size_limit = 1073741824 # 1 GiB +file_size_limit = 1073741824 # 1 GiB metrics = true # you can specify log level for modules with config below # modules_level = { "overlord::state::process" = "debug" } [rocksdb] max_open_files = 64 -cache_size = 200 +cache_size = 100 # Provide an options file to tune RocksDB for your workload and your system configuration. # More details can be found in [the official tuning guide](https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide). options_file = "default.db-options" diff --git a/devtools/chain/k8s/node_4.toml b/devtools/chain/k8s/node_4.toml index c4f519b9b..029a304d4 100644 --- a/devtools/chain/k8s/node_4.toml +++ b/devtools/chain/k8s/node_4.toml @@ -42,7 +42,7 @@ broadcast_txs_size = 200 broadcast_txs_interval = 200 [executor] -triedb_cache_size = 500 +triedb_cache_size = 200 [logger] filter = "info" @@ -50,14 +50,14 @@ log_to_console = true console_show_file_and_line = false log_path = "logs/" log_to_file = true -file_size_limit = 1073741824 # 1 GiB +file_size_limit = 1073741824 # 1 GiB metrics = true # you can specify log level for modules with config below # modules_level = { "overlord::state::process" = "debug" } [rocksdb] max_open_files = 64 -cache_size = 200 +cache_size = 100 # Provide an options file to tune RocksDB for your workload and your system configuration. # More details can be found in [the official tuning guide](https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide). options_file = "default.db-options" diff --git a/devtools/chain/nodes/node_1.toml b/devtools/chain/nodes/node_1.toml index c184dde49..be9ba082b 100644 --- a/devtools/chain/nodes/node_1.toml +++ b/devtools/chain/nodes/node_1.toml @@ -41,7 +41,7 @@ broadcast_txs_size = 200 broadcast_txs_interval = 200 [executor] -triedb_cache_size = 500 +triedb_cache_size = 200 [logger] filter = "info" @@ -49,14 +49,14 @@ log_to_console = true console_show_file_and_line = false log_path = "logs/node_1/" log_to_file = true -file_size_limit = 1073741824 # 1 GiB +file_size_limit = 1073741824 # 1 GiB metrics = true # you can specify log level for modules with config below # modules_level = { "overlord::state::process" = "debug", core_consensus = "error" } [rocksdb] max_open_files = 64 -cache_size = 200 +cache_size = 100 # Provide an options file to tune RocksDB for your workload and your system configuration. # More details can be found in [the official tuning guide](https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide). options_file = "default.db-options" diff --git a/devtools/chain/nodes/node_2.toml b/devtools/chain/nodes/node_2.toml index 517b9cb8a..5a8d89475 100644 --- a/devtools/chain/nodes/node_2.toml +++ b/devtools/chain/nodes/node_2.toml @@ -41,7 +41,7 @@ broadcast_txs_size = 200 broadcast_txs_interval = 200 [executor] -triedb_cache_size = 500 +triedb_cache_size = 200 [logger] filter = "info" @@ -49,14 +49,14 @@ log_to_console = true console_show_file_and_line = false log_path = "logs/node_2/" log_to_file = true -file_size_limit = 1073741824 # 1 GiB +file_size_limit = 1073741824 # 1 GiB metrics = true # you can specify log level for modules with config below # modules_level = { "overlord::state::process" = "debug", core_consensus = "error" } [rocksdb] max_open_files = 64 -cache_size = 200 +cache_size = 100 # Provide an options file to tune RocksDB for your workload and your system configuration. # More details can be found in [the official tuning guide](https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide). options_file = "default.db-options" diff --git a/devtools/chain/nodes/node_3.toml b/devtools/chain/nodes/node_3.toml index 91d3991be..96e520711 100644 --- a/devtools/chain/nodes/node_3.toml +++ b/devtools/chain/nodes/node_3.toml @@ -41,7 +41,7 @@ broadcast_txs_size = 200 broadcast_txs_interval = 200 [executor] -triedb_cache_size = 500 +triedb_cache_size = 200 [logger] filter = "info" @@ -49,14 +49,14 @@ log_to_console = true console_show_file_and_line = false log_path = "logs/node_3" log_to_file = true -file_size_limit = 1073741824 # 1 GiB +file_size_limit = 1073741824 # 1 GiB metrics = true # you can specify log level for modules with config below # modules_level = { "overlord::state::process" = "debug", core_consensus = "error" } [rocksdb] max_open_files = 64 -cache_size = 200 +cache_size = 100 # Provide an options file to tune RocksDB for your workload and your system configuration. # More details can be found in [the official tuning guide](https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide). options_file = "default.db-options" diff --git a/devtools/chain/nodes/node_4.toml b/devtools/chain/nodes/node_4.toml index 6f9f03193..46cdeb74f 100644 --- a/devtools/chain/nodes/node_4.toml +++ b/devtools/chain/nodes/node_4.toml @@ -41,7 +41,7 @@ broadcast_txs_size = 200 broadcast_txs_interval = 200 [executor] -triedb_cache_size = 500 +triedb_cache_size = 200 [logger] filter = "info" @@ -49,14 +49,14 @@ log_to_console = true console_show_file_and_line = false log_path = "logs/node_4/" log_to_file = true -file_size_limit = 1073741824 # 1 GiB +file_size_limit = 1073741824 # 1 GiB metrics = true # you can specify log level for modules with config below # modules_level = { "overlord::state::process" = "debug", core_consensus = "error" } [rocksdb] max_open_files = 64 -cache_size = 200 +cache_size = 100 # Provide an options file to tune RocksDB for your workload and your system configuration. # More details can be found in [the official tuning guide](https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide). options_file = "default.db-options"