Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified artifacts/blobber-files.zip
Binary file not shown.
36 changes: 19 additions & 17 deletions blobber-files/postgresql.conf
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ listen_addresses = '*'
# defaults to 'localhost'; use '*' for all
# (change requires restart)
#port = 5432 # (change requires restart)
max_connections = 450 # (change requires restart)
max_connections = 1000 # (change requires restart)
#superuser_reserved_connections = 3 # (change requires restart)
#unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
# (change requires restart)
Expand Down Expand Up @@ -115,17 +115,17 @@ max_connections = 450 # (change requires restart)
# - Memory -

#1/4 RAM
shared_buffers = 2GB # min 128kB 1/4 RAM
shared_buffers = 16GB # min 128kB 1/4 RAM
# (change requires restart)
#huge_pages = try # on, off, or try
# (change requires restart)
#temp_buffers = 8MB # min 800kB
temp_buffers = 16MB # min 800kB
#max_prepared_transactions = 0 # zero disables the feature
# (change requires restart)
# Caution: it is not advisable to set max_prepared_transactions nonzero unless
# you actively intend to use prepared transactions.
work_mem = 40MB # min 64kB
maintenance_work_mem = 820MB # min 1MB
work_mem = 512MB # min 64kB
maintenance_work_mem = 1GB # 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 @@ -164,12 +164,12 @@ dynamic_shared_memory_type = posix # the default is the first option

# - Asynchronous Behavior -

#effective_io_concurrency = 1 # 1-1000; 0 disables prefetching
#max_worker_processes = 8 # (change requires restart)
effective_io_concurrency = 300 # 1-1000; 0 disables prefetching
max_worker_processes = 256 # (change requires restart)
#max_parallel_maintenance_workers = 2 # taken from max_parallel_workers
#max_parallel_workers_per_gather = 2 # taken from max_parallel_workers
max_parallel_workers_per_gather = 8 # taken from max_parallel_workers
#parallel_leader_participation = on
#max_parallel_workers = 8 # maximum number of max_worker_processes that
max_parallel_workers = 128 # maximum number of max_worker_processes that
# can be used in parallel operations
#old_snapshot_threshold = -1 # 1min-60d; -1 disables; 0 is immediate
# (change requires restart)
Expand All @@ -189,7 +189,7 @@ fsync = on # flush data to disk for crash safety
# unrecoverable data corruption)
#synchronous_commit = on # synchronization level;
# off, local, remote_write, remote_apply, or on
#wal_sync_method = fsync # the default is the first option
wal_sync_method = fsync # the default is the first option
# supported by the operating system:
# open_datasync
# fdatasync (default on Linux and FreeBSD)
Expand All @@ -200,7 +200,7 @@ fsync = on # flush data to disk for crash safety
#wal_compression = off # enable compression of full-page writes
#wal_log_hints = off # also do full page writes of non-critical updates
# (change requires restart)
#wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
wal_buffers = 64MB # min 32kB, -1 sets based on shared_buffers
# (change requires restart)
#wal_writer_delay = 200ms # 1-10000 milliseconds
#wal_writer_flush_after = 1MB # measured in pages, 0 disables
Expand All @@ -211,7 +211,7 @@ commit_siblings = 10 # range 1-1000
# - Checkpoints -

#checkpoint_timeout = 5min # range 30s-1d
max_wal_size = 4GB
max_wal_size = 100GB
min_wal_size = 2GB
#checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
#checkpoint_flush_after = 256kB # measured in pages, 0 disables
Expand Down Expand Up @@ -314,7 +314,7 @@ min_wal_size = 2GB
# - Planner Cost Constants -

#seq_page_cost = 1.0 # measured on an arbitrary scale
#random_page_cost = 4.0 # same scale as above
random_page_cost = 1.0 # same scale as above
#cpu_tuple_cost = 0.01 # same scale as above
#cpu_index_tuple_cost = 0.005 # same scale as above
#cpu_operator_cost = 0.0025 # same scale as above
Expand All @@ -332,7 +332,7 @@ min_wal_size = 2GB

#min_parallel_table_scan_size = 8MB
#min_parallel_index_scan_size = 512kB
effective_cache_size = 6GB
effective_cache_size = 16GB

# - Genetic Query Optimizer -

Expand Down Expand Up @@ -530,7 +530,7 @@ log_timezone = 'Etc/UTC'
#autovacuum_analyze_threshold = 50 # min number of row updates before
# analyze
#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
#autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
autovacuum_analyze_scale_factor = 0.02 # fraction of table size before analyze
#autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
# (change requires restart)
#autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age
Expand All @@ -539,7 +539,7 @@ log_timezone = 'Etc/UTC'
#autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for
# autovacuum, in milliseconds;
# -1 means use vacuum_cost_delay
#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
autovacuum_vacuum_cost_limit = 3000 # default vacuum cost limit for
# autovacuum, -1 means use
# vacuum_cost_limit

Expand Down Expand Up @@ -614,7 +614,9 @@ default_text_search_config = 'pg_catalog.english'

# - Shared Library Preloading -

#shared_preload_libraries = '' # (change requires restart)
shared_preload_libraries = 'pg_stat_statements' # (change requires restart)
pg_stat_statements.max = 10000
pg_stat_statements.track = all
#local_preload_libraries = ''
#session_preload_libraries = ''
#jit_provider = 'llvmjit' # JIT library to use
Expand Down
1 change: 1 addition & 0 deletions chimney.sh
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ services:
networks:
default:
restart: "always"
shm_size: 16gb

validator:
image: 0chaindev/validator:${DOCKER_IMAGE}
Expand Down