mysql - неверные метки времени репликации - PullRequest
0 голосов
/ 04 июля 2019

Я установил репликацию master-master между двумя mysql-серверами (v8.0.12), которые работают на двух машинах Windows в одной локальной сети.

Репликация пока работает нормально.Однако есть проблема: журнал ошибок заполняется следующими записями:

2019-07-04T11:17:54.694565+01:00 5 [Warning] [MY-010956] [Server] Invalid replication timestamps: original commit timestamp is more recent than the immediate commit timestamp. This may be an issue if delayed replication is active. Make sure that servers have their clocks set to the correct time. No further message will be emitted until after timestamps become valid again.
2019-07-04T11:17:54.696796+01:00 5 [Warning] [MY-010957] [Server] The replication timestamps have returned to normal values.
2019-07-04T11:17:54.702435+01:00 5 [Warning] [MY-010956] [Server] Invalid replication timestamps: original commit timestamp is more recent than the immediate commit timestamp. This may be an issue if delayed replication is active. Make sure that servers have their clocks set to the correct time. No further message will be emitted until after timestamps become valid again.
2019-07-04T11:17:54.704768+01:00 5 [Warning] [MY-010957] [Server] The replication timestamps have returned to normal values.
2019-07-04T11:17:54.711469+01:00 5 [Warning] [MY-010956] [Server] Invalid replication timestamps: original commit timestamp is more recent than the immediate commit timestamp. This may be an issue if delayed replication is active. Make sure that servers have their clocks set to the correct time. No further message will be emitted until after timestamps become valid again.
2019-07-04T11:17:54.713675+01:00 5 [Warning] [MY-010957] [Server] The replication timestamps have returned to normal values.
2019-07-04T11:17:54.716626+01:00 5 [Warning] [MY-010956] [Server] Invalid replication timestamps: original commit timestamp is more recent than the immediate commit timestamp. This may be an issue if delayed replication is active. Make sure that servers have their clocks set to the correct time. No further message will be emitted until after timestamps become valid again.
2019-07-04T11:17:54.718956+01:00 5 [Warning] [MY-010957] [Server] The replication timestamps have returned to normal values.

Сервер 1 действует как сервер времени Windows для Сервера 2, и, насколько я вижу, оба сервера имеютв то же время (и часовой пояс, конечно).Поскольку они находятся в одной и той же локальной сети, между ними нет явной задержки в сети (ping <1 мс).<code>@@global.time_zone переменная возвращает 'SYSTEM'.Тем не менее, я не установил часовой пояс в файле my.ini.SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP) возвращает '02: 00: 00 '.Я НЕ настраивал задержку репликации, потому что меня интересует быстрое распространение изменений.

Я довольно отчаялся, потому что журналы ошибок заполняются до размера> 5 ГБ в месяцы.Кто-нибудь знает, как продолжить анализ проблемы (например, любая внутренняя таблица mysql, которая показывает текущую задержку)?

Спасибо за любые подсказки, Лев

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...