The replica is lagging because of a big DELETE transaction that translated to many rows in row-based-replication:
root@tools-db-4:/srv/labsdb/binlogs# mysqlbinlog --base64-output=decode-rows --verbose --start-position 34717375 log.038614 |head -n30 /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; /*!40019 SET @@session.max_insert_delayed_threads=0*/; /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; DELIMITER /*!*/; # at 34717375 #250508 21:20:10 server id 2886729896 end_log_pos 34717417 CRC32 0x28242e8f GTID 2886729896-2886729896-2995730451 trans /*M!100101 SET @@session.skip_parallel_replication=0*//*!*/; /*M!100001 SET @@session.gtid_domain_id=2886729896*//*!*/; /*M!100001 SET @@session.server_id=2886729896*//*!*/; /*M!100001 SET @@session.gtid_seq_no=2995730451*//*!*/; START TRANSACTION /*!*/; # at 34717417 # at 34717460 #250508 21:20:10 server id 2886729896 end_log_pos 34717460 CRC32 0x205c13bb Annotate_rows: #Q> DELETE FROM qid_rank #250508 21:20:10 server id 2886729896 end_log_pos 34717636 CRC32 0x6ef18ac7 Table_map: `s56470__misssearch`.`qid_rank` mapped to number 6896083 # at 34717636 # at 34725823 # at 34734010 # at 34742197 # at 34750384 # at 34758571 # at 34766758 # at 34774945 # at 34783132 # at 34791319 # at 34799506 # at 34807693 # at 34815880 [...] # at 213325228
