Skip to content

Commit

Permalink
Merge pull request #169 from stuttter/issue/168
Browse files Browse the repository at this point in the history
Issue/168 - Remove master/slave
  • Loading branch information
JJJ authored Jun 19, 2024
2 parents d3dc0da + bd551bf commit fb7ccde
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 64 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ The second callback is called after a connection to a replica is established. It

## Sample replication lag detection configuration

To detect replication lag, try [mk-heartbeat](http://www.maatkit.org/doc/mk-heartbeat.html) or pt-heartbeat from Percona Toolkit. These tools insert a timestamp into a table on the master and then check the lag on the replicas. The lag is the difference in seconds between the current time and the timestamp on the replica.
To detect replication lag, try [mk-heartbeat](http://www.maatkit.org/doc/mk-heartbeat.html) or pt-heartbeat from Percona Toolkit. These tools insert a timestamp into a table on the primary and then check the lag on the replicas. The lag is the difference in seconds between the current time and the timestamp on the replica.

This implementation requires the database user to have read access to the heartbeat table.

Expand Down
2 changes: 1 addition & 1 deletion ludicrousdb/drop-ins/db-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
);

/**
* This adds the same server again, only this time it is configured as a slave.
* This adds the same server again, only this time it is configured as a replica.
* The last three parameters are set to the defaults but are shown for clarity.
*/
$wpdb->add_database(
Expand Down
Loading

0 comments on commit fb7ccde

Please sign in to comment.