Active-Passive topology is a special mode where replication-manager monitors a single active database server without managing replication or performing automatic failover. This topology is useful for scenarios requiring external orchestration or when automatic failover is not desired.
replication-active-passive (3.1)| Item | Value |
|---|---|
| Description | Enable Active-Passive topology |
| Type | boolean |
| Default Value | false |
In Active-Passive mode:
Active-Passive topology is automatically enabled when:
replication-active-passive = truedb-servers-hosts list1. External Orchestration
Use Active-Passive mode when failover is managed by external systems:
2. Development/Testing
Monitor a standalone database without replication complexity:
3. Single-Server Production
Monitor production databases that don't require high availability:
4. Monitoring-Only Deployments
Collect metrics and health information without infrastructure changes:
Active-Passive mode supports:
Active-Passive mode disables:
read_only flag[default]
db-servers-hosts = "192.168.1.100:3306"
db-servers-credential = "root:password"
replication-active-passive = true
monitoring-datadir = "/var/lib/replication-manager"
[myapp]
db-servers-hosts = "db.example.com:3306"
db-servers-credential = "monitor:password"
replication-credential = "replication:password"
replication-active-passive = true
# Monitoring
monitoring-datadir = "/var/lib/replication-manager/myapp"
monitoring-write-heartbeat = false
graphite-metrics = true
graphite-embedded = true
# Backups
backup-restic = true
backup-restic-repository = "s3:https://s3.amazonaws.com/my-backups"
backup-keep-daily = 7
backup-keep-weekly = 4
# Schema monitoring
monitoring-schema-change = true
monitoring-schema-change-script = "/usr/local/bin/schema-alert.sh"
# Query monitoring
monitoring-queries = true
monitoring-long-query-time = 5000
[cluster1]
db-servers-hosts = "server1:3306,server2:3306,server3:3306"
db-servers-credential = "root:password"
replication-active-passive = true
When multiple servers are configured with Active-Passive mode:
To disable automatic failover on an existing replicated cluster:
replication-active-passive = true
replication-manager will:
To enable automatic failover:
replication-active-passive = false
In Active-Passive mode, API endpoints behave differently:
Blocked endpoints:
POST /api/clusters/{cluster}/actions/switchover - Returns errorPOST /api/clusters/{cluster}/actions/failover - Returns errorPOST /api/clusters/{cluster}/servers/{server}/actions/rejoin - Returns errorAvailable endpoints:
GET endpoints for monitoring| Feature | Active-Passive | Master-Slave | Multi-Master |
|---|---|---|---|
| Replication | No | Yes | Yes |
| Auto Failover | No | Yes | Yes |
| Read-only enforcement | No | Yes | Conditional |
| Rejoin | No | Yes | Yes |
| Privilege checks | No | Yes | Yes |
| Server count | 1+ | 2+ | 2+ |
Problem: Cannot perform switchover in Active-Passive mode
Solution: Active-Passive mode disables failover/switchover by design. Either:
replication-active-passive = falseProblem: replication-manager not detecting replication
Solution: Active-Passive mode ignores replication status. If replication monitoring is needed:
replication-active-passive = true from configurationProblem: Multiple servers all showing as "Unconnected"
Solution: In Active-Passive with multiple servers, this is expected. Only the first server is marked as master. To change active server:
PUT /api/clusters/{cluster}/servers/{server}/actions/set-masterdb-servers-prefered-master to specify desired active serverMonitoring without disruption:
Backup automation:
Schema tracking:
monitoring-schema-change to detect unplanned schema modificationsmonitoring-schema-change-script for alertingMetrics collection:
Security:
PROCESS, REPLICATION CLIENT, SELECT