[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-grid5k] 22/73: add pgbouncer, tune pg config
From: |
gnunet |
Subject: |
[taler-grid5k] 22/73: add pgbouncer, tune pg config |
Date: |
Tue, 14 Dec 2021 15:10:04 +0100 |
This is an automated email from the git hooks/post-receive script.
marco-boss pushed a commit to branch master
in repository grid5k.
commit e4e134208e0ab84865da7fd4a7609617a503d719
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Mon Nov 29 19:55:20 2021 +0100
add pgbouncer, tune pg config
---
experiment/scripts/database.sh | 6 ++++--
image/taler-debian11.yaml | 6 +++---
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/experiment/scripts/database.sh b/experiment/scripts/database.sh
index 1dc7119..69503c0 100755
--- a/experiment/scripts/database.sh
+++ b/experiment/scripts/database.sh
@@ -24,10 +24,12 @@ then
effective_cache_size=$(($(awk '/MemTotal/ {print $2}' /proc/meminfo) *
3/4))kB
#
(https://www.postgresql.org/docs/current/runtime-config-wal.html#GUC-MAX-WAL-SIZE)
max_wal_size=2GB
- max_worker_processes=16
+ wal_buffers=16MB
+ max_worker_processes=$(lscpu | grep "CPU(s)" | head -n 1 | awk '{print $2}')
max_connections=200
# out of shared memory
- max_locks_per_transaction=80
+ max_locks_per_transaction=85
+ # idle_in_transaction_session_timeout=5000
" >> /etc/postgresql/13/main/postgresql.conf
# Enable password for taler since this is commonly the case
diff --git a/image/taler-debian11.yaml b/image/taler-debian11.yaml
index 3ea9ed8..d950b75 100644
--- a/image/taler-debian11.yaml
+++ b/image/taler-debian11.yaml
@@ -40,9 +40,9 @@ global:
## Environment visibility
# g5k_visibility: "shared"
taler_build_packages: "recutils autoconf uncrustify autopoint libtool
python3-pip libgcrypt20-dev libjansson-dev libcurl4-gnutls-dev libsodium-dev
libidn2-dev libunistring-dev libmicrohttpd-dev libsqlite3-dev libqrencode-dev
valgrind libpq-dev texinfo gdb make npm zip python3-distutils pkg-config"
- taler_packages: "nginx postgresql-13 postgresql-contrib curl jq bc sudo git
zile dnsutils prometheus-postgres-exporter prometheus-nginx-exporter net-tools
netcat parallel nodejs tshark dnsmasq bind9 systemd-coredump bash-completion"
- taler_packages_no_recommends: "prometheus prometheus-node-exporter"
- taler_disable_services: "nginx postgresql prometheus
prometheus-postgres-exporter prometheus-nginx-exporter prometheus-node-exporter
named gettext-base dnsmasq"
+ taler_packages: "nginx postgresql-13 postgresql-contrib curl jq bc sudo git
zile dnsutils prometheus-postgres-exporter prometheus-nginx-exporter net-tools
netcat parallel nodejs tshark dnsmasq bind9 systemd-coredump bash-completion
pgbouncer pgstat"
+ taler_packages_no_recommends: "prometheus prometheus-node-exporter
prometheus-pgbouncer-exporter"
+ taler_disable_services: "nginx postgresql prometheus
prometheus-postgres-exporter prometheus-nginx-exporter prometheus-node-exporter
named gettext-base dnsmasq prometheus-pgbouncer-exporter"
taler_loki_version: "v2.4.0"
gnunet_tar: gnunet.tar.gz
exchange_tar: exchange.tar.gz
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-grid5k] 20/73: issue in logbackup, (continued)
- [taler-grid5k] 20/73: issue in logbackup, gnunet, 2021/12/14
- [taler-grid5k] 19/73: running make two times seems to work, gnunet, 2021/12/14
- [taler-grid5k] 10/73: update service files, gnunet, 2021/12/14
- [taler-grid5k] 34/73: exporter for merchant now on monitor too, gnunet, 2021/12/14
- [taler-grid5k] 24/73: cleanup with functions - try work_mem and idle_in_transaction, gnunet, 2021/12/14
- [taler-grid5k] 15/73: build wallet from source since dist does not work, gnunet, 2021/12/14
- [taler-grid5k] 25/73: enable postgres-exporter again, gnunet, 2021/12/14
- [taler-grid5k] 29/73: switch to transaction mode since otherwise its all the same as when pgbouncer not used at all, gnunet, 2021/12/14
- [taler-grid5k] 23/73: disable pgbouncer per default, gnunet, 2021/12/14
- [taler-grid5k] 52/73: possible to configure max_requests with env file, gnunet, 2021/12/14
- [taler-grid5k] 22/73: add pgbouncer, tune pg config,
gnunet <=
- [taler-grid5k] 16/73: fix wallet build - broken on master, gnunet, 2021/12/14
- [taler-grid5k] 61/73: refactor db.sh, gnunet, 2021/12/14
- [taler-grid5k] 30/73: increase default pool size, gnunet, 2021/12/14
- [taler-grid5k] 43/73: update config of db and exch, gnunet, 2021/12/14
- [taler-grid5k] 44/73: -resolve conflict, gnunet, 2021/12/14
- [taler-grid5k] 41/73: update installer script, gnunet, 2021/12/14
- [taler-grid5k] 54/73: enable huge_pages, implement exchange scrape logic, gnunet, 2021/12/14
- [taler-grid5k] 48/73: update install script, gnunet, 2021/12/14
- [taler-grid5k] 37/73: bootstrap seems to work with sudo, gnunet, 2021/12/14
- [taler-grid5k] 47/73: fix stupid bug and fix arguments for bank, gnunet, 2021/12/14