Skip to content

Commit

Permalink
Update description of POSTGRESQL_SHARED_BUFFERS & POSTGRESQL_EFFECTIV…
Browse files Browse the repository at this point in the history
…E_CACHE_SIZE default values

The previous description was not completely correct, because when the container
is run in Kubernetes/Openshift, the default values are calculated:
https://github.com/sclorg/postgresql-container/blob/master/src/root/usr/share/container-scripts/postgresql/common.sh#L12
based on memory limit:
https://github.com/sclorg/container-common-scripts/blob/master/shared-scripts/core/usr/bin/cgroup-limits
  • Loading branch information
jpopelka committed Jun 9, 2022
1 parent 60f95e9 commit 07064a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/root/usr/share/container-scripts/postgresql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ The following environment variables influence the PostgreSQL configuration file.
**`POSTGRESQL_MAX_PREPARED_TRANSACTIONS (default: 0)`**
Sets the maximum number of transactions that can be in the "prepared" state. If you are using prepared transactions, you will probably want this to be at least as large as max_connections

**`POSTGRESQL_SHARED_BUFFERS (default: 32M)`**
**`POSTGRESQL_SHARED_BUFFERS (default: 1/4 of memory limit or 32M)`**
Sets how much memory is dedicated to PostgreSQL to use for caching data

**`POSTGRESQL_EFFECTIVE_CACHE_SIZE (default: 128M)`**
**`POSTGRESQL_EFFECTIVE_CACHE_SIZE (default: 1/2 of memory limit or 128M)`**
Set to an estimate of how much memory is available for disk caching by the operating system and within the database itself


Expand Down

0 comments on commit 07064a1

Please sign in to comment.