Database Master-Slave Replication

MySQL/MariaDB/PostgreSQL/MongoDB master-slave replication. Business+.

engine_kind routing

  • mysql_binlog — MySQL/MariaDB binlog
  • pg_streaming — PG WAL streaming
  • pg_logical — PG logical (selected tables)
  • mongo_replica_set — Mongo replica set

Do NOT import legacy replication

Customer's "wild" pre-existing replications shouldn't be imported (config may conflict, state machine inconsistent). Correct flow: dump → NK new instance → import → set up replication.

Status + monitoring

seconds_behind_master / last_io_error / last_sql_error / state (running/behind/broken). Lag over threshold triggers alert.