Skip to main content

MariaDB Interview Preparation: From Galera Architecture to Disaster Recovery

Updated 4 min readMarkdown
MariaDB Interview Preparation: From Galera Architecture to Disaster Recovery

Database reliability requires understanding more than the database engine itself.

Replication topology, proxy configuration, storage performance and application behavior all influence whether a system remains available.

This makes MariaDB an interesting subject for senior DevOps, SRE and database engineering interviews.

Galera and traditional replication solve different problems

Galera coordinates transactions through certification-based replication across its cluster members.

Traditional asynchronous replication allows a primary to commit transactions without waiting for replicas to receive and apply them.

Characteristic Galera Asynchronous replication
Write architecture Multi-primary capable Usually single primary
Replication model Write-set certification Binary log replication
Availability concern Quorum Primary availability and replica promotion
Performance concern Certification and flow control Replication lag
Recovery concern Authoritative cluster state Correct replication position

Neither architecture removes the need for backups, monitoring or recovery testing.

Scenario 1: Galera throughput suddenly drops

The database is accepting connections, but write latency has increased across the cluster.

One possible explanation is flow control.

Inspect:

SHOW GLOBAL STATUS WHERE Variable_name IN (
  'wsrep_flow_control_paused',
  'wsrep_local_recv_queue_avg',
  'wsrep_local_send_queue_avg'
);

A slow member may struggle to apply incoming write-sets, causing replication throttling.

Investigate CPU saturation, storage latency, large transactions and apply capacity before changing configuration.

Scenario 2: A replica cannot keep up

Start by inspecting replication status:

SHOW REPLICA STATUS\G

Determine whether events are arriving successfully and whether the replica can apply them quickly enough.

Inspect MariaDB's GTID positions:

SELECT
  @@global.gtid_binlog_pos,
  @@global.gtid_slave_pos,
  @@global.gtid_current_pos;

Interpret these positions in the context of the actual replication topology.

MariaDB and MySQL use different GTID formats, so their GTID implementations should not be treated as interchangeable.

Scenario 3: Failover succeeds, but the application reports errors

A proxy such as MaxScale can automate parts of primary failover.

That does not guarantee uninterrupted application transactions.

Connections can break, requests may time out and clients may become uncertain about transaction outcomes.

A reliable architecture needs both database failover and application-level error handling.

Scenario 4: InnoDB performance degrades under write pressure

Modified InnoDB pages must eventually be flushed to storage.

If the database generates changes faster than storage can persist them, flushing pressure may contribute to increasing request latency.

Useful diagnostic commands include:

SHOW ENGINE INNODB STATUS\G

SHOW GLOBAL STATUS LIKE 'Innodb_buffer_pool_pages_dirty';

SHOW GLOBAL STATUS LIKE 'Innodb_buffer_pool_wait_free';

Do not treat buffer pool size, redo log capacity or I/O capacity as universal tuning constants.

Measure the actual workload and storage characteristics.

Scenario 5: A schema change threatens availability

Modern MariaDB versions support online DDL capabilities for many operations.

Options such as ALGORITHM=INSTANT and ALGORITHM=INPLACE can help avoid unnecessarily disruptive table rebuilds.

However, support depends on the exact operation, storage engine and MariaDB version.

Even online operations can encounter metadata locks and resource pressure.

Galera adds another layer of coordination because schema changes may affect multiple cluster members.

Always verify the supported DDL method and rehearse large schema changes in staging.

Scenario 6: The backups exist, but recovery has never been tested

A backup job reporting success is not proof that your recovery objectives are achievable.

Physical backups, logical exports and binary log retention should form a tested recovery strategy.

Restore a representative dataset in isolation, verify its consistency and measure the elapsed recovery time.

That evidence is more valuable than an untested recovery estimate.

Preparing for senior database interviews

For each scenario, practice explaining:

  • The expected architecture.
  • The failure symptoms.
  • The diagnostic commands.
  • The likely root cause.
  • A safe recovery procedure.
  • Preventive measures.

I've collected a complete set of 50 MariaDB interview questions across Galera, MaxScale, InnoDB, replication, query optimization and disaster recovery.

Read the full guide here:

MariaDB Interview Questions (2026): Top 50 Production Scenarios

Good database engineering isn't about knowing the most configuration variables. It's about understanding the consequences of changing them.

About the author

  • Senior DevOps, Cloud & Site Reliability Engineer at DigitalOcean. I write about modern container orchestration, Linux systems, and cloud-native architecture. Explore my guides, architectures, and portfolio: • Website: https://naveedkumbhar.com • Resume: https://cv.naveedkumbhar.com • Blog: https://blog.naveedkumbhar.com • Newsletter: https://news.naveedkumbhar.com

No comments yet. Be the first to comment.

More from this blog