This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UB-1760 : Added Tuning for max_connection (#284)
Changing postgresql max_connection to 1000 from current default 100.
- Loading branch information
1 parent
f455cba
commit 123decb
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
scripts/ubiquity-postgresql/docker-entrypoint-initdb.d/init-db-tuning.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ ! -z "$UBIQUITY_DB_MAX_CONNECTION" ] | ||
then | ||
echo "Updating max_connection to $UBIQUITY_DB_MAX_CONNECTION" | ||
sed -i "s/max_connections = 100/max_connections = ${UBIQUITY_DB_MAX_CONNECTION}/g" /var/lib/postgresql/data/postgresql.conf | ||
fi |