perf(pg_conf):增加、修改pg和tsdb优化的配置项
This commit is contained in:
@@ -59,25 +59,39 @@ postgresql:
|
||||
- postgres
|
||||
- scada
|
||||
parameters:
|
||||
max_connections: 100
|
||||
max_prepared_transactions: 150
|
||||
# This is rather small, but as this Helm Chart may be used to spin up
|
||||
# 1 access node and 4 data nodes on a single minikube/microk8s this is set
|
||||
# to a conservative value
|
||||
shared_buffers: 300MB
|
||||
work_mem: 16MB
|
||||
max_connections: 300
|
||||
max_prepared_transactions: 300
|
||||
effective_cache_size: 96272MB
|
||||
maintenance_work_mem: 2047MB
|
||||
max_worker_processes: 367
|
||||
max_parallel_workers_per_gather: 32
|
||||
max_parallel_workers: 64
|
||||
wal_buffers: 16MB
|
||||
shared_buffers: 32090MB
|
||||
work_mem: 5134kB
|
||||
default_statistics_target: 500
|
||||
random_page_cost: 1.1
|
||||
checkpoint_completion_target: 0.9
|
||||
max_locks_per_transaction: 512
|
||||
autovacuum_max_workers: 10
|
||||
autovacuum_naptime: 10
|
||||
effective_io_concurrency: 256
|
||||
log_connections: 'on'
|
||||
log_line_prefix: "%t [%p]: [%c-%l] %u@%d,app=%a [%e] "
|
||||
log_min_duration_statement: '1s'
|
||||
log_statement: ddl
|
||||
log_checkpoints: 'on'
|
||||
log_lock_waits: 'on'
|
||||
# These values are set as the default data volume size
|
||||
# is small as well.
|
||||
min_wal_size: 256MB
|
||||
max_wal_size: 512MB
|
||||
max_wal_senders: 0
|
||||
wal_level: minimal
|
||||
fsync: false
|
||||
min_wal_size: 512MB
|
||||
wal_writer_delay: 1000
|
||||
temp_file_limit: 1GB
|
||||
timescaledb.passfile: '/var/lib/postgresql/.pgpass'
|
||||
synchronous_commit: 'off'
|
||||
timescaledb.enable_2pc: false
|
||||
timescaledb.max_background_workers: 300
|
||||
|
||||
# https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
||||
nodeSelector: {}
|
||||
|
||||
Reference in New Issue
Block a user