mirror of
https://github.com/status-im/infra-role-postgres-ha.git
synced 2025-02-19 18:08:20 +00:00
* postgres-exporter for basic database metrics - pg-agent: optional, to identify query performence issues Signed-off-by: Alexis Pentori <alexis@status.im>
86 lines
2.8 KiB
YAML
86 lines
2.8 KiB
YAML
|
|
postgres_ha_service_name: 'postgres-ha'
|
|
postgres_ha_service_path: '/docker/{{ postgres_ha_service_name }}'
|
|
postgres_ha_compose_file: '{{ postgres_ha_service_path }}/docker-compose.yml'
|
|
|
|
postgres_ha_cont_name: '{{ postgres_ha_service_name }}'
|
|
postgres_ha_cont_data_vol: '{{ postgres_ha_service_path }}/data'
|
|
postgres_ha_cont_init_vol: '{{ postgres_ha_service_path }}/init'
|
|
postgres_ha_cont_backup_vol: '{{ postgres_ha_service_path }}/backup'
|
|
postgres_ha_cont_image: 'postgres:15.1-alpine'
|
|
postgres_ha_cont_networks: []
|
|
postgres_ha_cont_port: 5432
|
|
postgres_ha_cont_uid: 70
|
|
postgres_ha_host_uid: '{{ 100000 + postgres_ha_cont_uid | int }}'
|
|
postgres_ha_cont_run_size: '512K'
|
|
postgres_ha_cont_tmp_size: '256K'
|
|
|
|
#postgres_share_memory: '64m'
|
|
# Alter System
|
|
postgres_ha_alter_system_settings: {}
|
|
# max_wal_size: '1GB'
|
|
|
|
# Admin Auth
|
|
postgres_ha_admin_user: 'postgres'
|
|
postgres_ha_admin_pass: 'changeMeIfYouCare'
|
|
# Replication Auth
|
|
postgres_ha_replica_enabled: true
|
|
postgres_ha_replica_user: 'replicator'
|
|
postgres_ha_replica_pass: 'changeMeIfYouCare'
|
|
postgres_ha_replica_slot: 'main'
|
|
#postgres_ha_replica_host: 'db-master.example.org'
|
|
#postgres_ha_replica_port: 5432
|
|
#postgres_ha_replica_allowed_addresses: ['10.0.0.0/8']
|
|
|
|
# Mandatory Configuration
|
|
#postgres_ha_is_master: true
|
|
|
|
# Optional Configuration
|
|
postgres_ha_db_name: 'postgres'
|
|
|
|
# Additional Databases
|
|
postgres_ha_databases: []
|
|
# - name: 'dbtest'
|
|
# user: 'dbuser'
|
|
# pass: 'dbpass'
|
|
# locale: 'abc'
|
|
# script: 'qwe'
|
|
# template: 'xyz'
|
|
|
|
postgres_ha_users: []
|
|
# - user: 'dbuser'
|
|
# pass: 'dbpass'
|
|
|
|
# Metrics Exporter
|
|
postgres_ha_metrics_exporter_cont_name: 'pg-metrics-exporter'
|
|
postgres_ha_metrics_exporter_cont_version: 'v0.15.0'
|
|
postgres_ha_metrics_exporter_cont_image: 'quay.io/prometheuscommunity/postgres-exporter:{{ postgres_ha_metrics_exporter_cont_version}}'
|
|
postgres_ha_metrics_exporter_cont_port: 9187
|
|
|
|
# Performence Metrics Exporter
|
|
postgres_ha_perf_metrics_exporter_disabled: true
|
|
postgres_ha_perf_metrics_exporter_cont_name: 'pg-perf-metrics-exporter'
|
|
postgres_ha_perf_metrics_exporter_cont_version: '1.2.6'
|
|
postgres_ha_perf_metrics_exporter_cont_image: 'ghcr.io/coroot/coroot-pg-agent:{{ postgres_ha_perf_metrics_exporter_cont_version }}'
|
|
postgres_ha_perf_metrics_exporter_cont_port: 9188
|
|
# Backups
|
|
postgres_ha_backup: true
|
|
postgres_ha_backup_enabled: true
|
|
postgres_ha_backup_service_name: 'dump-{{ postgres_ha_service_name }}'
|
|
postgres_ha_backup_frequency: daily
|
|
postgres_ha_backup_timeout: 600
|
|
postgres_ha_backup_user: 'root'
|
|
|
|
# Consul
|
|
postgres_ha_consul_service: 'postgres'
|
|
postgres_ha_consul_check_disabled: false
|
|
postgres_ha_consul_check_interval: '60s'
|
|
postgres_ha_consul_check_timeout: '5s'
|
|
postgres_ha_consul_success_before_passing: 0
|
|
postgres_ha_consul_failures_before_warning: 1
|
|
postgres_ha_consul_failures_before_critical: 2
|
|
|
|
# general container management
|
|
compose_recreate: 'auto'
|
|
compose_state: 'present'
|