diff --git a/README.md b/README.md index 522c7c78..4f7e10d4 100644 --- a/README.md +++ b/README.md @@ -363,7 +363,7 @@ This image uses the initial PostgreSQL values which disables the archiving optio * `-e WAL_SIZE=4GB` * `-e MIN_WAL_SIZE=2048MB` * `-e WAL_SEGSIZE=1024` -* `-e MAINTAINANCE_WORK_MEM=128MB` +* `-e MAINTENANCE_WORK_MEM=128MB` #### Configure networking diff --git a/scripts/env-data.sh b/scripts/env-data.sh index a1c6ff59..d6df53d8 100644 --- a/scripts/env-data.sh +++ b/scripts/env-data.sh @@ -174,8 +174,8 @@ if [ -z "${IP_LIST}" ]; then IP_LIST='*' fi -if [ -z "${MAINTAINANCE_WORKERS}" ]; then - MAINTAINANCE_WORKERS=2 +if [ -z "${MAINTENANCE_WORKERS}" ]; then + MAINTENANCE_WORKERS=2 fi if [ -z "${ARCHIVE_MODE}" ]; then @@ -251,8 +251,8 @@ if [ -z "${MAX_WORKERS}" ]; then MAX_WORKERS=4 fi -if [ -z "${MAINTAINANCE_WORK_MEM}" ]; then - MAINTAINANCE_WORK_MEM=128MB +if [ -z "${MAINTENANCE_WORK_MEM}" ]; then + MAINTENANCE_WORK_MEM=128MB fi diff --git a/scripts/setup-conf.sh b/scripts/setup-conf.sh index a0e60231..68cf76d5 100644 --- a/scripts/setup-conf.sh +++ b/scripts/setup-conf.sh @@ -27,11 +27,11 @@ superuser_reserved_connections= 10 listen_addresses = '${IP_LIST}' shared_buffers = ${SHARED_BUFFERS} work_mem = ${WORK_MEM} -maintenance_work_mem = ${MAINTAINANCE_WORK_MEM} +maintenance_work_mem = ${MAINTENANCE_WORK_MEM} wal_buffers = ${WAL_BUFFERS} random_page_cost = 2.0 xmloption = 'document' -max_parallel_maintenance_workers = ${MAINTAINANCE_WORKERS} +max_parallel_maintenance_workers = ${MAINTENANCE_WORKERS} max_parallel_workers = ${MAX_WORKERS} shared_preload_libraries = '${SHARED_PRELOAD_LIBRARIES}' cron.database_name = '${SINGLE_DB}'