diff options
Diffstat (limited to 'experiment/scripts/database.sh')
-rwxr-xr-x | experiment/scripts/database.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/experiment/scripts/database.sh b/experiment/scripts/database.sh index d3cfc53..9851b54 100755 --- a/experiment/scripts/database.sh +++ b/experiment/scripts/database.sh @@ -81,6 +81,9 @@ function setup_config() { sysctl -p fi + # disable swap + swapoff -a + # Allow longer lines to be logged by postgres sed -i '1 i\$MaxMessageSize 4k' /etc/rsyslog.conf @@ -179,7 +182,7 @@ function setup_config() { # When having replication, this one can be changed (in local only on and off are of use) # https://www.postgresql.org/docs/13/runtime-config-replication.html#GUC-SYNCHRONOUS-STANDBY-NAMES # on causes us to get 100% IO load - synchronous_commit = on + synchronous_commit = off # Default off wal_compression = off |