diff --git a/config/postgresql.conf b/config/postgresql.conf index 283d3b6c4..17517f32f 100644 --- a/config/postgresql.conf +++ b/config/postgresql.conf @@ -61,7 +61,7 @@ listen_addresses = '*' # what IP address(es) to listen on; # defaults to 'localhost', '*' = all # (change requires restart) port = 5432 # (change requires restart) -max_connections = 200 # (change requires restart) +max_connections = 1000 # (change requires restart) # Note: Increasing max_connections costs ~400 bytes of shared memory per # connection slot, plus lock space (see max_locks_per_transaction). #superuser_reserved_connections = 3 # (change requires restart) @@ -115,8 +115,8 @@ shared_buffers = 512MB # min 128kB # per transaction slot, plus lock space (see max_locks_per_transaction). # It is not advisable to set max_prepared_transactions nonzero unless you # actively intend to use prepared transactions. -work_mem = 64MB # min 64kB -maintenance_work_mem = 2GB # min 1MB +work_mem = 5MB # min 64kB +maintenance_work_mem = 512MB # min 1MB #max_stack_depth = 2MB # min 100kB # - Kernel Resource Usage - @@ -411,7 +411,7 @@ log_line_prefix = '%t %h' # special values: # AUTOVACUUM PARAMETERS #------------------------------------------------------------------------------ -#autovacuum = on # Enable autovacuum subprocess? 'on' +autovacuum = on # Enable autovacuum subprocess? 'on' # requires track_counts to also be on. #log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and # their durations, > 0 logs only diff --git a/fabfile.py b/fabfile.py index fa2b2da68..947e67cd5 100644 --- a/fabfile.py +++ b/fabfile.py @@ -1064,6 +1064,7 @@ def setup_do(name, size=2): env.host_string = host time.sleep(10) add_user_to_do() + do() def do_name(name): if re.search(r"[0-9]", name):