{% include 'admin/partials/header.html' %} {% include 'admin/partials/sidebar.html' %}
HIGH AVAILABILITY

Database Replication

Maintain a read-only standby database for backup, recovery, and low-downtime promotion.

{% if $databaseRole !== 'primary' %}
Failover mode activeThe primary database could not be opened. NexusForum is currently operating from the secondary database.{{ $primaryFailure }}
{% else %}
Primary database activeNormal traffic is using {{ $activeDriver }}.
{% endif %}
Active role{{ $databaseRole }}
Primary driver{{ $activeDriver }}
Standby driver{{ $replication['secondary']['driver'] }}
Last sync{{ $replication['last_sync_at'] }}

Standby configuration

The secondary is overwritten during a full synchronization and should not receive independent writes.

Database-independent recovery access

Configure a separate emergency credential that works even when the primary database and normal Admin CP authentication are unavailable.

{{ $recoveryConfigured?'Configured':'Not configured' }}
{{ $forcedSecondary?'Forced standby mode active':'Primary-first mode' }}Emergency console: {{ $baseUrl }}/recovery/database

The emergency console uses a separate secure session, filesystem audit log, rate-limited authentication, and does not query the members table.

Synchronize standby

Replace the standby with a verified copy of the active primary.

This performs a full table copy, preserves record IDs, and verifies row counts before reporting success.

Recovery and promotion

Destructive high-availability operations.

Replication history

Recent full synchronization attempts.

{% foreach $runs as $run %}{% endforeach %}
StatusDirectionRowsDriversStartedDetails
{{ $run['status'] }}{{ $run['direction'] }}{{ $run['rows_processed'] }}{{ $run['source_driver'] }} → {{ $run['target_driver'] }}{{ $run['started_at'] }}{{ $run['error_message'] }}
{% include 'admin/partials/footer.html' %}