chore: tune default postgres settings for 2c4g

This commit is contained in:
fawney19
2026-05-21 01:36:05 +08:00
parent e7f8b259ac
commit b84e4a96e2
4 changed files with 13 additions and 13 deletions
+4 -4
View File
@@ -22,10 +22,10 @@ services:
-c shared_preload_libraries=pg_stat_statements
-c pg_stat_statements.track=all
-c pg_stat_statements.max=10000
-c shared_buffers=${POSTGRES_SHARED_BUFFERS:-256MB}
-c effective_cache_size=${POSTGRES_EFFECTIVE_CACHE_SIZE:-768MB}
-c work_mem=${POSTGRES_WORK_MEM:-4MB}
-c maintenance_work_mem=${POSTGRES_MAINTENANCE_WORK_MEM:-64MB}
-c shared_buffers=${POSTGRES_SHARED_BUFFERS:-1GB}
-c effective_cache_size=${POSTGRES_EFFECTIVE_CACHE_SIZE:-3GB}
-c work_mem=${POSTGRES_WORK_MEM:-16MB}
-c maintenance_work_mem=${POSTGRES_MAINTENANCE_WORK_MEM:-256MB}
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s