Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A0-1668 Make runtime cache configurable #801

Merged
merged 5 commits into from
Dec 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docker/docker_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:-2}
DamianStraszak marked this conversation as resolved.
Show resolved Hide resolved
BACKUP_PATH=${BACKUP_PATH:-${BASE_PATH}/backup-stash}

if [[ "true" == "$PURGE_BEFORE_START" ]]; then
Expand Down Expand Up @@ -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
Expand Down