Skip to content

Commit 0998ab4

Browse files
authored
Merge pull request #104 from 0chain/feat/sharder-postgres-config
Update sharder postgresql.conf
2 parents a7f260f + 1d5e90c commit 0998ab4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

0chain/sharder-files/docker.local/config/postgresql.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ max_connections = 1000 # (change requires restart)
1818
# - Memory -
1919

2020
#1/4 RAM
21-
shared_buffers = 250MB # min 128kB 1/4 RAM
21+
shared_buffers = 5GB # min 128kB 1/4 RAM
2222
# (change requires restart)
2323
#huge_pages = try # on, off, or try
2424
# (change requires restart)
@@ -27,8 +27,8 @@ shared_buffers = 250MB # min 128kB 1/4 RAM
2727
# (change requires restart)
2828
# Caution: it is not advisable to set max_prepared_transactions nonzero unless
2929
# you actively intend to use prepared transactions.
30-
work_mem = 2MB # min 64kB
31-
maintenance_work_mem = 2MB # min 1MB
30+
work_mem = 20MB # min 64kB
31+
maintenance_work_mem = 30MB # min 1MB
3232
autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem
3333
#max_stack_depth = 2MB # min 100kB
3434
dynamic_shared_memory_type = posix # the default is the first option
@@ -66,7 +66,7 @@ min_wal_size = 2GB
6666

6767
#min_parallel_table_scan_size = 8MB
6868
#min_parallel_index_scan_size = 512kB
69-
effective_cache_size = 50MB
69+
effective_cache_size = 10GB
7070

7171
log_timezone = 'Etc/UTC'
7272

0 commit comments

Comments
 (0)