File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ The following environment variables are available to tune PostgreSQL:
82
82
- ` POSTGRES_MAX_WAL_SIZE ` (default: ` 1GB ` )
83
83
- ` POSTGRES_CHECKPOINT_TIMEOUT ` (default: ` 10min ` )
84
84
- ` POSTGRES_CHECKPOINT_COMPLETION_TARGET ` (default: ` 0.9 ` )
85
+ - ` POSTGRES_MAX_CONNECTIONS ` (default: ` 100 ` )
85
86
86
87
See https://nominatim.org/release-docs/5.1/admin/Installation/#tuning-the-postgresql-database for more details on those settings.
87
88
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ if [ ! -z "$POSTGRES_SYNCHRONOUS_COMMIT" ]; then sed -i "s/synchronous_commit =
41
41
if [ ! -z " $POSTGRES_MAX_WAL_SIZE " ]; then sed -i " s/max_wal_size = 1GB/max_wal_size = $POSTGRES_MAX_WAL_SIZE /g" /etc/postgresql/16/main/conf.d/postgres-tuning.conf; fi
42
42
if [ ! -z " $POSTGRES_CHECKPOINT_TIMEOUT " ]; then sed -i " s/checkpoint_timeout = 10min/checkpoint_timeout = $POSTGRES_CHECKPOINT_TIMEOUT /g" /etc/postgresql/16/main/conf.d/postgres-tuning.conf; fi
43
43
if [ ! -z " $POSTGRES_CHECKPOINT_COMPLETION_TARGET " ]; then sed -i " s/checkpoint_completion_target = 0.9/checkpoint_completion_target = $POSTGRES_CHECKPOINT_COMPLETION_TARGET /g" /etc/postgresql/16/main/conf.d/postgres-tuning.conf; fi
44
-
44
+ if [ ! -z " $POSTGRES_MAX_CONNECTIONS " ] ; then echo " max_connections = $POSTGRES_MAX_CONNECTIONS " >> /etc/postgresql/16/main/conf.d/postgres-tuning.conf ; fi
45
45
46
46
# import style tuning
47
47
You can’t perform that action at this time.
0 commit comments