-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathdr-setup.yaml
More file actions
54 lines (46 loc) · 1.59 KB
/
Copy pathdr-setup.yaml
File metadata and controls
54 lines (46 loc) · 1.59 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# dr-setup.yaml
# Advanced example of a Disaster Recovery (DR) enabled Validator.
# This setup coordinate with a standby cluster for high availability across regions.
apiVersion: stellar.org/v1alpha1
kind: StellarNode
metadata:
name: validator-dr
namespace: stellar
spec:
nodeType: Validator
network: mainnet
version: "v21.0.0"
# Required rollout availability and spreading constraints.
maxUnavailable: 0
minAvailable: 1
topologySpreadConstraints: []
storage:
storageClass: "ssd-premium"
size: "500Gi"
validatorConfig:
seedSecretRef: "validator-seed-mainnet"
# Disaster Recovery configuration.
drConfig:
# Enable DR features (cross-cluster sync and health monitoring).
enabled: true
# This node is the 'primary' source of truth.
role: primary
# Identifier for the peer cluster performing standby duties.
peerClusterId: "secondary-region-1"
# 'consensus' strategy uses SCP to keep the standby in sync.
syncStrategy: consensus
# Automated health checks for the peer cluster connectivity.
healthCheckInterval: 30
# Automated DR drill scheduling (ensures failover works without data loss).
drillSchedule:
# Cron expression: every Sunday at 02:00 AM.
schedule: "0 2 * * 0"
# Timeout for the automated failover process.
timeoutSeconds: 300
# Automatically roll back to Primary after a successful drill.
autoRollback: true
rollbackDelaySeconds: 60
# DNS configuration for automated failover (Global Load Balancing).
failoverDns:
hostname: "validator-api.example.com"
ttl: 60