slave_compressed_protocol doesn't work properly with semi-sync replication. When it is enabled, It leads to intermittent SBM (Slave Behind Master) spikes and sometime gives below error.
2021-01-29 15:34:40 11 [ERROR] Read semi-sync reply magic number error
|
2021-01-29 15:34:50 9 [Warning] Timeout waiting for reply of binlog (file: master-bin.000001, pos: 479), semi-sync up to file master-bin.000001, position 329.
|
2021-01-29 15:34:50 9 [Note] Semi-sync replication switched OFF.
|
Looks like this is upstream bug. https://bugs.mysql.com/bug.php?id=86230
"The receiver thread for semisynchronous replication was not able to receive acknowledgements from slaves that used compression of the master/slave protocol (slave_compressed_protocol = ON) "