暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

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

原创 岳彩磊 2022-12-09
531

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

#你有一个MySQL复制设置,并且有意停止从机上的SQL线程;

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?

#在保持I/O线程运行的同时,可以停止从机上的SQL线程的两个原因是什么?

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;


A关闭 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.

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

文章被以下合辑收录

评论