Skip to content

Commit

Permalink
Merge pull request #332 from OpenHistoricalMap/pg-db/prod
Browse files Browse the repository at this point in the history
Update values for api-db production
  • Loading branch information
Rub21 authored Jun 18, 2024
2 parents c29ed67 + 78f27e2 commit e97efa1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions images/db/config/postgresql.production.conf
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ max_connections = 250 # (change requires restart)

# - Memory -

shared_buffers = 128MB # min 128kB
shared_buffers = 2GB # min 128kB
# (change requires restart)
#huge_pages = try # on, off, or try
# (change requires restart)
Expand All @@ -135,9 +135,9 @@ temp_buffers = 512MB # min 800kB
# (change requires restart)
# Caution: it is not advisable to set max_prepared_transactions nonzero unless
# you actively intend to use prepared transactions.
work_mem = 32MB # min 64kB
work_mem = 20MB # min 64kB
#hash_mem_multiplier = 1.0 # 1-1000.0 multiplier on hash table work_mem
#maintenance_work_mem = 64MB # min 1MB
maintenance_work_mem = 512MB # min 1MB
#autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem
#logical_decoding_work_mem = 64MB # min 64kB
#max_stack_depth = 2MB # min 100kB
Expand Down Expand Up @@ -184,7 +184,7 @@ dynamic_shared_memory_type = posix # the default is the first option
# - Asynchronous Behavior -

#backend_flush_after = 0 # measured in pages, 0 disables
#effective_io_concurrency = 1 # 1-1000; 0 disables prefetching
effective_io_concurrency = 200 # 1-1000; 0 disables prefetching
#maintenance_io_concurrency = 10 # 1-1000; 0 disables prefetching
#max_worker_processes = 8 # (change requires restart)
#max_parallel_workers_per_gather = 2 # taken from max_parallel_workers
Expand Down Expand Up @@ -390,7 +390,7 @@ random_page_cost = 1.1 # same scale as above
#parallel_tuple_cost = 0.1 # same scale as above
#min_parallel_table_scan_size = 8MB
#min_parallel_index_scan_size = 512kB
effective_cache_size = 16GB
effective_cache_size = 6GB

#jit_above_cost = 100000 # perform JIT compilation if available
# and query more expensive than this;
Expand Down

0 comments on commit e97efa1

Please sign in to comment.