We have replication lag on 8.0.34-commercial version and the same queries were running fine on mysql-5.7 version, any suggestions will helpful. Thanks.
Please see the global variables from primary and secondary servers.
Thanks,
Indhu
primary_global_variables.txt
secondary_global_vaiables.txt