slave_pending_jobs_size_max

自己的复制环境(5.7.10)还没有使用并发复制,所以想尝试一下 :

原参数如下:

| slave_parallel_type          | DATABASE                      |
| slave_parallel_workers       | 0                             |

将参数更改如下:

| slave_parallel_type          | LOGICAL_CLOCK                 |
| slave_parallel_workers       | 4                            |
 

两天后,备库遇到了一个错误:

[root@localhost data]# cat  localhost.localdomain.err | grep 'Cannot schedule' | more
2018-06-23T01:52:06.212083Z 1284585 [ERROR] Slave SQL for channel 'semir_33': Cannot schedule event Query, relay-log name ./localhost-relay-bin-semir_33.0337
54, position 969425791 to Worker thread because its size 19800765 exceeds 16777216 of slave_pending_jobs_size_max. Error_code: 1864
2018-06-23T01:52:06.212142Z 1284585 [Warning] Slave: Cannot schedule event Query, relay-log name ./localhost-relay-bin-semir_33.033754, position 969425791 to
 Worker thread because its size 19800765 exceeds 16777216 of slave_pending_jobs_size_max. Error_code: 1864

好像是说数据超过了 slave_pending_jobs_size_max 的最大值,查看从库参数当前值,确实是16777216 ,改成 29999104 ,备库能够正常起来了 。

root@localhost :(none)12:00:11>show variables like 'slave_pending_jobs_size_max';
+-----------------------------+----------+
| Variable_name               | Value    |
+-----------------------------+----------+
| slave_pending_jobs_size_max | 16777216 |
+-----------------------------+----------+

 

但是还发现一个问题,有很多note 的信息,并且复制的速度并没有什么提升,暂时改回去了

2018-06-26T02:55:26.836074Z 1285873 [Note] Multi-threaded slave statistics for channel 'semir_33': seconds elapsed = 120; events assigned = 138388481; worker queues filled over overrun level = 14564; waited due a Worker queue full = 0; waited due the total size = 39834; waited at clock conflicts = 94796032330100 waited (count) when Workers occupied = 206047 waited when Workers occupied = 6291101300
2018-06-26T02:59:25.314146Z 1285873 [Note] Multi-threaded slave statistics for channel 'semir_33': seconds elapsed = 239; events assigned = 138404865; worker queues filled over overrun level = 14564; waited due a Worker queue full = 0; waited due the total size = 39834; waited at clock conflicts = 95034306234300 waited (count) when Workers occupied = 206047 waited when Workers occupied = 6291101300
2018-06-26T03:01:43.792496Z 1285873 [Note] Multi-threaded slave statistics for channel 'semir_33': seconds elapsed = 138; events assigned = 138508289; worker queues filled over overrun level = 14564; waited due a Worker queue full = 0; waited due the total size = 39834; waited at clock conflicts = 95171245248000 waited (count) when Workers occupied = 206047 waited when Workers occupied = 6291101300

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

huangliang0703

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值