add docker-compose file to tune database
This commit is contained in:
parent
23c7271f05
commit
2b6c5c94f9
1 changed files with 36 additions and 0 deletions
36
docker-compose.pgsql-tuning.yml
Normal file
36
docker-compose.pgsql-tuning.yml
Normal file
|
@ -0,0 +1,36 @@
|
|||
services:
|
||||
db:
|
||||
command:
|
||||
- "postgres"
|
||||
- "-c"
|
||||
- "max_connections=40"
|
||||
- "-c"
|
||||
- "shared_buffers=1GB"
|
||||
- "-c"
|
||||
- "effective_cache_size=3GB"
|
||||
- "-c"
|
||||
- "maintenance_work_mem=512MB"
|
||||
- "-c"
|
||||
- "checkpoint_completion_target=0.9"
|
||||
- "-c"
|
||||
- "wal_buffers=16MB"
|
||||
- "-c"
|
||||
- "default_statistics_target=500"
|
||||
- "-c"
|
||||
- "random_page_cost=1.1"
|
||||
- "-c"
|
||||
- "effective_io_concurrency=200"
|
||||
- "-c"
|
||||
- "work_mem=6553kB"
|
||||
- "-c"
|
||||
- "min_wal_size=4GB"
|
||||
- "-c"
|
||||
- "max_wal_size=16GB"
|
||||
- "-c"
|
||||
- "max_worker_processes=4"
|
||||
- "-c"
|
||||
- "max_parallel_workers_per_gather=2"
|
||||
- "-c"
|
||||
- "max_parallel_workers=4"
|
||||
- "-c"
|
||||
- "max_parallel_maintenance_workers=2"
|
Loading…
Reference in a new issue