
The replication events use a redundant format that has both the length of the event and the position of the next event. The length can be modified so that the next event position of the previous event and the length of the curren event can be different. This includes overlap of the events where the next event position of an event is "inside" the current event. The next event position must retain its original value as that allows replication slaves to reconnect with the correct position when file and position based replication is used. For GTID replication, the slave asks for the coordinates from the master and uses those. When a slave receives a heartbeat event from a master, it checks that the binlog name matches and that the next event position in the event is not behind the slave's relay log position. These events must be modified to contain a fake next event position that will never be reached by the slave. This makes sure that the simple sanity checks never fail even if we've caused the slave's relay log to be ahead of the master's binlog.
MaxScale by MariaDB Corporation
The MariaDB Corporation MaxScale is an intelligent proxy that allows forwarding of database statements to one or more database servers using complex rules, a semantic understanding of the database statements and the roles of the various servers within the backend cluster of databases.
MaxScale is designed to provide load balancing and high availability functionality transparently to the applications. In addition it provides a highly scalable and flexible architecture, with plugin components to support different protocols and routing decisions.
For a detailed overview of what MaxScale can do, read the MaxScale page on the MariaDB website.
An Google Group exists for MaxScale that can be used to discuss ideas, issues and communicate with the MaxScale community.
We're also on the #maria and #maxscale channels on FreeNode.
Please report all feature requests, improvements and bugs in the MariaDB Jira.
Getting Started
Read the Documentation Overview for a list of all MaxScale documents.
Documentation
The official documentation can be found on the MariaDB Knowledge Base.
A MaxScale Troubleshooting Guide can be found on the MariaDB Knowledgebase. It answers common questions encountered when installing and using MaxScale.
The documentation can also be found in the Documentation directory of the source tree.
Contributing Code
Read the Contributing page on the wiki for more information on how to do pull request and where to do them.