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

MySQL5.7 OCP每日一题--Question: 3

原创 everything 2024-04-25
75
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 
复制

解析: 什么情况下我们会主动停止salve节点上主从同步的SQL线程?SQL线程停止后,IO线程还在运行。从节点依然可以接受到主节点的binlog并且转存为relay log,只是停止将relay log应用到从节点,因此A错误;在从库负载比较高的情况下进行备份时,可以stop slave sql_thread停止sql线程,暂时降低负载加快备份;从库同步一般是同步的,无法做到恢复到某个时间点,只有在延迟的从库上,能进行延迟时间范围内的时间点恢复;。

答案:BC

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

文章被以下合辑收录

评论