Skip to content

Commit 5f7959d

Browse files
kahoona77cesmarvin
authored andcommitted
Merge branch 'release/v14.18-3'
2 parents 3a475af + c2e88c8 commit 5f7959d

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [v14.18-3] - 2025-09-19
11+
### Added
12+
- [#64] make max_connections to postgresql configurable
13+
1014
## [v14.18-2] - 2025-08-25
1115
### Fixed
1216
- [#60] Force drop database when removing service accounts

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN set -x -o errexit \
1818
FROM registry.cloudogu.com/official/base:3.18.9-3
1919

2020
LABEL NAME="official/postgresql" \
21-
VERSION="14.18-2" \
21+
VERSION="14.18-3" \
2222
maintainer="[email protected]"
2323

2424
ENV LANG=en_US.utf8 \

dogu.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Name": "official/postgresql",
3-
"Version": "14.18-2",
3+
"Version": "14.18-3",
44
"DisplayName": "PostgreSQL",
55
"Description": "PostgreSQL Database.",
66
"Url": "https://www.postgresql.org/",
@@ -118,6 +118,12 @@
118118
"Type": "BINARY_MEASUREMENT"
119119
}
120120
},
121+
{
122+
"Name": "database_config/max_connections",
123+
"Description": "Maximum amount of allowed database connections. Allowing to many connections can increase hardware requirements.",
124+
"Optional": true,
125+
"Default": "100"
126+
},
121127
{
122128
"Name": "logging/root",
123129
"Description": "Set the root log level to one of ERROR, WARN, INFO, DEBUG.",

resources/startup.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ function setDoguLogLevel() {
131131
echo "log_min_messages = ${POSTGRESQL_LOGLEVEL}" >>/var/lib/postgresql/postgresql.conf
132132
}
133133

134+
function setMaxConnections() {
135+
# replace default max connection count with configured max connection count
136+
cons=$(doguctl config 'database_config/max_connections')
137+
sed -i "/max_connections/c\max_connections = ${cons}" /var/lib/postgresql/postgresql.conf
138+
}
139+
134140
function runMain() {
135141
# check whether post-upgrade script is still running
136142
while [[ "$(doguctl config "local_state" -d "empty")" == "upgrading" ]]; do
@@ -147,6 +153,7 @@ function runMain() {
147153

148154
write_pg_hba_conf
149155
setDoguLogLevel
156+
setMaxConnections
150157

151158
# set stage for health check
152159
doguctl state ready

0 commit comments

Comments
 (0)