From 79d4206084d4124427e4344618c70ea58a2209b8 Mon Sep 17 00:00:00 2001 From: Krzysztof Ziobro Date: Mon, 12 Dec 2022 12:14:08 +0100 Subject: [PATCH 1/2] Increase runtime cache size --- docker/docker_entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/docker_entrypoint.sh b/docker/docker_entrypoint.sh index 159a734172..a4029370b8 100644 --- a/docker/docker_entrypoint.sh +++ b/docker/docker_entrypoint.sh @@ -31,6 +31,7 @@ TELEMETRY_URL=${TELEMETRY_URL:-'wss://telemetry.polkadot.io/submit/'} TELEMETRY_VERBOSITY_LVL=${TELEMETRY_VERBOSITY_LVL:-'0'} UNIT_CREATION_DELAY=${UNIT_CREATION_DELAY:-300} DB_CACHE=${DB_CACHE:-1024} +RUNTIME_CACHE_SIZE=${RUNTIME_CACHE_SIZE:-20} BACKUP_PATH=${BACKUP_PATH:-${BASE_PATH}/backup-stash} if [[ "true" == "$PURGE_BEFORE_START" ]]; then @@ -58,6 +59,7 @@ ARGS=( --unsafe-ws-external --unsafe-rpc-external --enable-log-reloading --db-cache "${DB_CACHE}" + --runtime-cache-size "${RUNTIME_CACHE_SIZE}" ) if [[ -n "${BOOT_NODES:-}" ]]; then From e73cf3e61355c7af943c33ceb1e45bbb89e9ffb0 Mon Sep 17 00:00:00 2001 From: Krzysztof Ziobro Date: Mon, 12 Dec 2022 12:21:34 +0100 Subject: [PATCH 2/2] Make runtime cache size configurable --- docker/docker_entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/docker_entrypoint.sh b/docker/docker_entrypoint.sh index a4029370b8..fe1b244382 100644 --- a/docker/docker_entrypoint.sh +++ b/docker/docker_entrypoint.sh @@ -31,7 +31,7 @@ TELEMETRY_URL=${TELEMETRY_URL:-'wss://telemetry.polkadot.io/submit/'} TELEMETRY_VERBOSITY_LVL=${TELEMETRY_VERBOSITY_LVL:-'0'} UNIT_CREATION_DELAY=${UNIT_CREATION_DELAY:-300} DB_CACHE=${DB_CACHE:-1024} -RUNTIME_CACHE_SIZE=${RUNTIME_CACHE_SIZE:-20} +RUNTIME_CACHE_SIZE=${RUNTIME_CACHE_SIZE:-2} BACKUP_PATH=${BACKUP_PATH:-${BASE_PATH}/backup-stash} if [[ "true" == "$PURGE_BEFORE_START" ]]; then