§ High Availability


GreatSQL has made extensive improvements and enhancements to MGR, supporting features such as zone tags, arbitrator nodes, dynamic read/write VIP, fast single-primary mode, and smart primary election. In addition, it has deeply optimized several underlying MGR working mechanisms and algorithms, including the flow control algorithm, the transaction certification queue cleanup algorithm, the node join/leave mechanism, and the recovery mechanism, further improving the high availability guarantee and performance stability of MGR.

When a large transaction in MGR exceeds the group_replication_compression_threshold threshold, LZ4 compression is triggered. However, due to the inherent limitations of LZ4, compression may fail with an error, causing the transaction to fail. An error similar to the following is reported:

[GCS] Gcs_packet's payload is too big. Only packets smaller than 2113929216 bytes can be compressed. Payload size is 2197817290
1

GreatSQL has adjusted and optimized this mechanism to achieve the following two goals:

  1. When the transaction size exceeds the group_replication_compression_threshold threshold, compression is started.

  2. However, when the transaction size exceeds the LZ4 compression limit, an error is no longer reported. Instead, the original uncompressed transaction data is used for transmission, which is similar to the effect of setting group_replication_compression_threshold=0 (compression disabled).

For more details on other high availability improvements, please refer to: Other High Availability Improvements.

Scan the QR code to follow our WeChat official account

greatsql-wx