psql conf
This commit is contained in:
+2
-4
@@ -5,10 +5,8 @@
|
||||
RETENTION_DAYS=28
|
||||
|
||||
wait_for_midnight() {
|
||||
NOW=$(date +%s)
|
||||
MIDNIGHT=$(date -d 'tomorrow 00:00' +%s 2>/dev/null || \
|
||||
date -d "$(date -d tomorrow '+%Y-%m-%d') 00:00:00" +%s)
|
||||
SLEEP=$(( MIDNIGHT - NOW ))
|
||||
ELAPSED=$(( $(date +%H) * 3600 + $(date +%M) * 60 + $(date +%S) ))
|
||||
SLEEP=$(( 86400 - ELAPSED ))
|
||||
echo "Waiting ${SLEEP}s until midnight..."
|
||||
sleep "$SLEEP"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
listen_addresses = '*'
|
||||
max_connections = 150
|
||||
dynamic_shared_memory_type = posix
|
||||
max_wal_size = 1GB
|
||||
min_wal_size = 80MB
|
||||
log_timezone = 'Etc/UTC'
|
||||
datestyle = 'iso, mdy'
|
||||
timezone = 'Etc/UTC'
|
||||
lc_messages = 'en_US.utf8'
|
||||
lc_monetary = 'en_US.utf8'
|
||||
lc_numeric = 'en_US.utf8'
|
||||
lc_time = 'en_US.utf8'
|
||||
default_text_search_config = 'pg_catalog.english'
|
||||
shared_buffers = 2GB
|
||||
effective_cache_size = 10GB
|
||||
effective_io_concurrency = 100
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
echo "Running prsync ./sbin"
|
||||
prsync -h "/app/host_vars/hosts" -avz ./sbin/ /4server/sbin/
|
||||
template templates/.profile /home/4server/.profile
|
||||
template templates/postgresql.conf /4server/data/postgres/etc/postgresql.conf
|
||||
template templates/postgresql.conf /4server/data/postgres/data/postgresql.conf
|
||||
|
||||
rex doas rc-service api restart
|
||||
|
||||
|
||||
Reference in New Issue
Block a user