Skip to content

Commit

Permalink
chore: added review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Feb 13, 2024
1 parent d69d50d commit badf082
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 18 deletions.
3 changes: 1 addition & 2 deletions agent-chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"annotations": {
"type": "object"
}
},
"required": ["annotations"]
}
},
"upstream": {
"type": "object",
Expand Down
48 changes: 32 additions & 16 deletions agent-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,45 @@ resources:
db:
create: true
conf:
max_connections: 200
# Memory Configuration
shared_buffers: 1GB
effective_cache_size: 3GB
maintenance_work_mem: 256MB
wal_buffers: 16MB
effective_io_concurrency: 200
work_mem: 10MB
max_wal_size: 4GB
log_autovacuum_min_duration: 0
maintenance_work_mem: 205MB

# Checkpoint Related Configuration
min_wal_size: 2GB
max_wal_size: 3GB
checkpoint_completion_target: 0.9
wal_buffers: -1

# Network Related Configuration
listen_addresses: '*'
max_connections: 100

# Storage Configuration
random_page_cost: 1.1
effective_io_concurrency: 200

# Worker Processes Configuration
max_worker_processes: 8
max_parallel_workers_per_gather: 2
max_parallel_workers: 2

# Logging configuration for pgbadger
logging_collector: on
log_checkpoints: on
log_connections: on
log_destination: "csvlog"
log_directory: "/var/log/postgresql"
log_file_mode: 0640
log_filename: "postgresql.log"
log_line_prefix: "%h %m [%p] %q%u@%d "
log_disconnections: on
log_lock_waits: on
log_min_duration_statement: "1s"
log_rotation_age: 0
log_rotation_size: 0
log_statement: "all"
log_temp_files: 0
lc_messages: 'C'
log_timezone: "UTC"
logging_collector: on

# Adjust the minimum time to collect the data
log_min_duration_statement: '10s'
log_autovacuum_min_duration: 0
log_destination: 'csvlog'
ssl: off
timezone: "UTC"
password_encryption: scram-sha-256
Expand Down

0 comments on commit badf082

Please sign in to comment.