Skip to content

Commit

Permalink
Merge pull request #104 from 0chain/feat/sharder-postgres-config
Browse files Browse the repository at this point in the history
Update sharder postgresql.conf
  • Loading branch information
dabasov authored Dec 19, 2023
2 parents a7f260f + 1d5e90c commit 0998ab4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 0chain/sharder-files/docker.local/config/postgresql.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ max_connections = 1000 # (change requires restart)
# - Memory -

#1/4 RAM
shared_buffers = 250MB # min 128kB 1/4 RAM
shared_buffers = 5GB # min 128kB 1/4 RAM
# (change requires restart)
#huge_pages = try # on, off, or try
# (change requires restart)
Expand All @@ -27,8 +27,8 @@ shared_buffers = 250MB # min 128kB 1/4 RAM
# (change requires restart)
# Caution: it is not advisable to set max_prepared_transactions nonzero unless
# you actively intend to use prepared transactions.
work_mem = 2MB # min 64kB
maintenance_work_mem = 2MB # min 1MB
work_mem = 20MB # min 64kB
maintenance_work_mem = 30MB # min 1MB
autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem
#max_stack_depth = 2MB # min 100kB
dynamic_shared_memory_type = posix # the default is the first option
Expand Down Expand Up @@ -66,7 +66,7 @@ min_wal_size = 2GB

#min_parallel_table_scan_size = 8MB
#min_parallel_index_scan_size = 512kB
effective_cache_size = 50MB
effective_cache_size = 10GB

log_timezone = 'Etc/UTC'

Expand Down

0 comments on commit 0998ab4

Please sign in to comment.