mysql ocp第3题

在MySQL复制环境中,停止SQL线程而保持I/O线程运行可以有特定用途。停止SQL线程可以减少奴隶服务器的负载,允许在较低压力下创建备份,并实现特定时间点的恢复。这样可以避免大量事件积压,确保再次启动复制时不会出现执行积压。关闭SQL线程并不能防止事务死锁或阻止未验证的模式更改,这些通常通过其他机制来实现。
摘要由CSDN通过智能技术生成

You have a MySQL replication setup and you intentionally stop the SQL thread on the slave.

mysql> SHOW SLAVE STATUS\ G

...

Slave_IO_Running: Yes

Slave_SQL_Running: No

What are two reasons that you may stop the SQL thread on the slave while keeping the I/ O thread running?

A. to allow the remaining events to be processed on the slave while not receiving new events from the master

B. to allow a backup to be created under reduced load

C. to allow for point-in-time recovery on the slave

D. to prevent schema changes from propagating to the slave before they are validated

E. to prevent any transaction experiencing a deadlock

Answer:BC

关闭 Slave_SQL_Running,slave 依旧要接收信息的,所以错

stopping only the SQL thread can be useful if you want to perform a backup or other task.
B.不进行 sql 应用, 降低负载
C.没有 sql 应用,所以能取到当时时间点的数据
D.防止用户没有经过验证的改变,应该是指的延迟复制, CHANGE MASTER TO MASTER_DELAY =N
E.防止事务死锁, 没这效果

Stopping the I/O thread but permitting
the SQL thread to run helps ensure that there is not a massive backlog of events to be executed when replication is started again.

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值