@@ -20,7 +20,7 @@ The Ansible automation deploys a complete aggregation mode stack consisting of:
2020
21211 . ** PostgreSQL Auto-Failover Cluster** (3 servers)
2222 - 1 Monitor node (EC2)
23- - 2 Data nodes (Primary + Secondary) with automatic failover (Scaleway Elastic Metal)
23+ - 2 Data nodes with automatic failover (Scaleway Elastic Metal)
2424 - Password authentication with scram-sha-256
2525
26262 . ** Gateway Service** (2 servers)
@@ -51,15 +51,15 @@ The Ansible automation deploys a complete aggregation mode stack consisting of:
5151├─────────────────────────────────────────────────────────────────┤
5252│ │
5353│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
54- │ │ PG Monitor │ │ PG Primary │ │ PG Secondary │ │
54+ │ │ PG Monitor │ │ PG Node 1 │ │ PG Node 2 │ │
5555│ │ (EC2) │ │ (Scaleway) │ │ (Scaleway) │ │
5656│ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘ │
5757│ │ │ │ │
5858│ └──────────────────┴──────────────────┘ │
5959│ pg_auto_failover │
6060│ │
6161│ ┌────────────────────────┐ ┌────────────────────────┐ │
62- │ │ Gateway Primary │ │ Gateway Secondary │ │
62+ │ │ Gateway 1 │ │ Gateway 2 │ │
6363│ │ ├─ Gateway (8080+443)│ │ ├─ Gateway (8080+443) │ │
6464│ │ └─ Poller │ │ └─ Poller │ │
6565│ └────────────────────────┘ └────────────────────────┘ │
@@ -152,7 +152,7 @@ make agg_mode_deploy_all ENV=mainnet
152152```
153153
154154This will:
155- 1 . Deploy PostgreSQL cluster (monitor, primary, secondary )
155+ 1 . Deploy PostgreSQL cluster (monitor, node 1, node 2 )
1561562 . Run database migrations
1571573 . Deploy gateway and poller on both servers
1581584 . Deploy Prometheus and Grafana
@@ -175,7 +175,7 @@ make postgres_deploy ENV=mainnet
175175This will:
176176- Deploy monitor with scram-sha-256 auth
177177- Set password for autoctl_node user
178- - Deploy primary and secondary nodes
178+ - Deploy node 1 and node 2
179179- Configure replication with password auth
180180- Run database migrations
181181
@@ -202,14 +202,14 @@ node_2 | 3 | 100.x.x.x:5432 | 1: 0/... | read-only | seconda
202202``` bash
203203# For Hoodi
204204make gateway_deploy ENV=hoodi
205- make gateway_primary_deploy ENV=hoodi
206- make gateway_secondary_deploy ENV=hoodi
205+ make gateway_1_deploy ENV=hoodi
206+ make gateway_2_deploy ENV=hoodi
207207make gateway_deploy ENV=hoodi FORCE_REBUILD=true
208208
209209# For Mainnet
210210make gateway_deploy ENV=mainnet
211- make gateway_primary_deploy ENV=mainnet
212- make gateway_secondary_deploy ENV=mainnet
211+ make gateway_1_deploy ENV=mainnet
212+ make gateway_2_deploy ENV=mainnet
213213make gateway_deploy ENV=mainnet FORCE_REBUILD=true
214214```
215215
@@ -313,13 +313,13 @@ Force rebuild always rebuilds binaries from the latest code, even if they alread
313313``` bash
314314# For Hoodi
315315make gateway_deploy ENV=hoodi FORCE_REBUILD=true
316- make gateway_primary_deploy ENV=hoodi FORCE_REBUILD=true
317- make gateway_secondary_deploy ENV=hoodi FORCE_REBUILD=true
316+ make gateway_1_deploy ENV=hoodi FORCE_REBUILD=true
317+ make gateway_2_deploy ENV=hoodi FORCE_REBUILD=true
318318
319319# For Mainnet
320320make gateway_deploy ENV=mainnet FORCE_REBUILD=true
321- make gateway_primary_deploy ENV=mainnet FORCE_REBUILD=true
322- make gateway_secondary_deploy ENV=mainnet FORCE_REBUILD=true
321+ make gateway_1_deploy ENV=mainnet FORCE_REBUILD=true
322+ make gateway_2_deploy ENV=mainnet FORCE_REBUILD=true
323323```
324324
325325This will:
@@ -838,26 +838,26 @@ ansible-playbook infra/aggregation_mode/ansible/playbooks/pg_monitor.yaml \
838838# Deploy only gateway (no poller) - Hoodi
839839ansible-playbook infra/aggregation_mode/ansible/playbooks/gateway.yaml \
840840 -i infra/aggregation_mode/ansible/hoodi-inventory.yaml \
841- -e " host=gateway_primary " \
841+ -e " host=gateway_1 " \
842842 -e " env=hoodi"
843843
844844# Deploy only gateway (no poller) - Mainnet
845845ansible-playbook infra/aggregation_mode/ansible/playbooks/gateway.yaml \
846846 -i infra/aggregation_mode/ansible/mainnet-inventory.yaml \
847- -e " host=gateway_primary " \
847+ -e " host=gateway_1 " \
848848 -e " env=mainnet"
849849
850850# Deploy gateway with forced rebuild (Hoodi)
851851ansible-playbook infra/aggregation_mode/ansible/playbooks/gateway.yaml \
852852 -i infra/aggregation_mode/ansible/hoodi-inventory.yaml \
853- -e " host=gateway_primary " \
853+ -e " host=gateway_1 " \
854854 -e " env=hoodi" \
855855 -e " force_rebuild=true"
856856
857857# Deploy gateway with forced rebuild (Mainnet)
858858ansible-playbook infra/aggregation_mode/ansible/playbooks/gateway.yaml \
859859 -i infra/aggregation_mode/ansible/mainnet-inventory.yaml \
860- -e " host=gateway_primary " \
860+ -e " host=gateway_1 " \
861861 -e " env=mainnet" \
862862 -e " force_rebuild=true"
863863```
0 commit comments