mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-04 00:05:19 -07:00
Add support to customize pg conf (#792)
This commit is contained in:
1 parent
501e1cde02
commit
72e3ec4e7c
4 files changed
+177
-2
No files matched your search
Executable
+56
@@ -0,0 +1,56 @@
|
||||
#------------------------------------------------------------------------------
|
||||
# POSTGRESQL DEFAULT CONFIGURATION
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Below is PostgreSQL default configuration.
|
||||
# You should apply your own customization in the CUSTOMIZED OPTIONS section below
|
||||
# to avoid merge conflict in the future.
|
||||
|
||||
listen_addresses = '*'
|
||||
max_connections = 100
|
||||
shared_buffers = 128MB
|
||||
dynamic_shared_memory_type = posix
|
||||
max_wal_size = 1GB
|
||||
min_wal_size = 80MB
|
||||
log_timezone = 'UTC'
|
||||
datestyle = 'iso, mdy'
|
||||
timezone = 'UTC'
|
||||
lc_messages = 'en_US.utf8'
|
||||
lc_monetary = 'en_US.utf8'
|
||||
lc_numeric = 'en_US.utf8'
|
||||
lc_time = 'en_US.utf8'
|
||||
default_text_search_config = 'pg_catalog.english'
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# SOURCEGRAPH RECOMMENDED OPTIONS
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Below is Sourcegraph recommended Postgres configuration based on the default resource configuration.
|
||||
# You should apply your own customization in the CUSTOMIZED OPTIONS section below
|
||||
# to avoid merge conflict in the future.
|
||||
|
||||
shared_buffers = 1GB
|
||||
work_mem = 5MB
|
||||
maintenance_work_mem = 250MB
|
||||
temp_file_limit = 20GB
|
||||
bgwriter_delay = 50ms
|
||||
bgwriter_lru_maxpages = 200
|
||||
effective_io_concurrency = 200
|
||||
max_worker_processes = 4
|
||||
max_parallel_maintenance_workers = 4
|
||||
max_parallel_workers_per_gather = 2
|
||||
max_parallel_workers = 4
|
||||
wal_buffers = 16MB
|
||||
max_wal_size = 8GB
|
||||
min_wal_size = 2GB
|
||||
random_page_cost = 1.1
|
||||
effective_cache_size = 3GB
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# CUSTOMIZED OPTIONS
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Add your customization here
|
||||
# Learn more: https://docs.sourcegraph.com/admin/config/postgres-conf
|
||||
Reference in new issue
Block a user