|
@@ -61,7 +61,7 @@ listen_addresses = '*' # what IP address(es) to listen on;
|
|
# defaults to 'localhost', '*' = all
|
|
# defaults to 'localhost', '*' = all
|
|
# (change requires restart)
|
|
# (change requires restart)
|
|
port = 5432 # (change requires restart)
|
|
port = 5432 # (change requires restart)
|
|
-max_connections = 2000 # (change requires restart)
|
|
|
|
|
|
+max_connections = 5000 # (change requires restart)
|
|
# Note: Increasing max_connections costs ~400 bytes of shared memory per
|
|
# Note: Increasing max_connections costs ~400 bytes of shared memory per
|
|
# connection slot, plus lock space (see max_locks_per_transaction).
|
|
# connection slot, plus lock space (see max_locks_per_transaction).
|
|
#superuser_reserved_connections = 3 # (change requires restart)
|
|
#superuser_reserved_connections = 3 # (change requires restart)
|
|
@@ -105,8 +105,21 @@ ssl = false # (change requires restart)
|
|
#------------------------------------------------------------------------------
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
# - Memory -
|
|
# - Memory -
|
|
-
|
|
|
|
-shared_buffers = 32MB # min 128kB
|
|
|
|
|
|
+# values from: http://blog.pgaddict.com/posts/performance-since-postgresql-7-4-to-9-4-pgbench
|
|
|
|
+# details: http://www.postgresql.org/docs/9.4/static/runtime-config-resource.html
|
|
|
|
+# http://www.postgresql.org/docs/9.4/static/runtime-config-wal.html
|
|
|
|
+# http://www.postgresql.org/docs/9.4/static/runtime-config-query.html
|
|
|
|
+shared_buffers = 2GB # min 128kB
|
|
|
|
+work_mem = 64MB # min 64kB
|
|
|
|
+maintenance_work_mem = 512MB # min 1MB
|
|
|
|
+checkpoint_segments = 64
|
|
|
|
+checkpoint_completion_target = 0.9
|
|
|
|
+effective_cache_size = 8GB
|
|
|
|
+
|
|
|
|
+# when executed on the SSD (otherwise 4)
|
|
|
|
+random_page_cost = 2
|
|
|
|
+
|
|
|
|
+#shared_buffers = 32MB # min 128kB
|
|
# (change requires restart)
|
|
# (change requires restart)
|
|
#temp_buffers = 8MB # min 800kB
|
|
#temp_buffers = 8MB # min 800kB
|
|
#max_prepared_transactions = 0 # zero disables the feature
|
|
#max_prepared_transactions = 0 # zero disables the feature
|