-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpatroni_proxy.yaml
More file actions
37 lines (32 loc) · 1.04 KB
/
patroni_proxy.yaml
File metadata and controls
37 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Patroni Proxy Configuration
clusters:
# 'local_cluster' is an arbitrary name for the cluster
local_cluster:
# List of Patroni API endpoints
hosts:
- "http://127.0.0.1:8008"
# - "http://127.0.0.2:8008"
# - "http://127.0.0.3:8008"
# TLS configuration for connecting to Patroni API (optional)
# tls:
# ca_cert: "/path/to/ca.crt"
# client_cert: "/path/to/client.crt"
# client_key: "/path/to/client.key"
# skip_verify: false
# Port mappings
ports:
# 'master' is an arbitrary name for this port configuration
master:
# Address to listen on
listen: "127.0.0.1:6432"
# Roles allowed for this port: leader, sync, async, any
roles: ["leader"]
# The actual Postgres port on the host
host_port: 6432
# Read-only service (sync or async replicas)
replicas:
listen: "127.0.0.1:6433"
roles: ["sync", "async"]
host_port: 6432
# Optional: Maximum replication lag in bytes
max_lag_in_bytes: 16777216