Skip to content

Commit 763bfda

Browse files
committed
Fix archival explosion
1 parent 7a74e8a commit 763bfda

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ci/release_notes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Improvements
2+
- Disabled archival of WAL, instead using `/bin/true`
3+
- Bumped WAL segment retention to 128 segments
4+
- Changed logging format for PostgreSQL logs

jobs/postgres/templates/config/postgresql.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# postgres main configuration
22
unix_socket_directories = '/var/vcap/sys/run/postgres/'
3-
log_line_prefix = '%t '
3+
log_line_prefix = '%m: proc=%p,user=%u,db=%d,host=%r '
44

55
##
66
<%
@@ -21,9 +21,9 @@ log_line_prefix = '%t '
2121

2222
config["wal_level"] ||= 'hot_standby'
2323
config["max_wal_senders "] ||= 5
24-
config["wal_keep_segments"] ||= 32
24+
config["wal_keep_segments"] ||= 128
2525
config["archive_mode"] ||= 'on'
26-
config["archive_command"] ||= 'cp -i "%p" /var/vcap/store/postgres/db/archive/"%f" </dev/null'
26+
config["archive_command"] ||= '/bin/true'
2727
config["hot_standby"] ||= 'on'
2828
end
2929

0 commit comments

Comments
 (0)