提交 f411bfa8 编写于 作者: M Mars Liu

delay replication

上级 08b2eae4
{
"node_id": "mysql-ac73930a15c149b9ba0b250e46a109e2",
"keywords": [],
"children": [],
"export": [],
"keywords_must": [],
"keywords_forbid": [],
"group": 0
}
\ No newline at end of file
{ {
"node_id": "mysql-88333dcb84a946a78bfd9f413c6e795b", "node_id": "mysql-88333dcb84a946a78bfd9f413c6e795b",
"keywords": [], "keywords": ["chains", "slave", "master", "主从复制", "replication"],
"children": [], "children": [],
"export": [ "export": [
"ms2chains.json" "ms2chains.json"
......
{ {
"node_id": "mysql-2f6f847907d4415788e98d2f70f64d3c", "node_id": "mysql-2f6f847907d4415788e98d2f70f64d3c",
"keywords": [ "keywords": [
"链式复制", "chains",
"主从复制" "slave",
"master",
"主从复制",
"replication"
], ],
"children": [], "children": [],
"export": [ "export": [
......
{ {
"node_id": "mysql-91ba7f7a6b684b8aad01abd583cf0442", "node_id": "mysql-91ba7f7a6b684b8aad01abd583cf0442",
"keywords": [], "keywords": ["多源复制", "multimaster", "replication"],
"children": [], "children": [],
"export": [ "export": [
"multimaster.json" "multimaster.json"
......
{ {
"node_id": "mysql-b3cba2e9c7ea46d5beeb1948b41a74d5", "node_id": "mysql-b3cba2e9c7ea46d5beeb1948b41a74d5",
"keywords": ["复制过滤器","filter"], "keywords": [
"复制过滤器",
"filter",
"replication"
],
"children": [], "children": [],
"export": [], "export": [
"filter.json"
],
"keywords_must": [], "keywords_must": [],
"keywords_forbid": [], "keywords_forbid": [],
"group": 0 "group": 0
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
"author": "ccat", "author": "ccat",
"source": "filter.md", "source": "filter.md",
"notebook_enable": false, "notebook_enable": false,
"exercise_id": "117eea79277e4a7199307f48e96e2998" "exercise_id": "10d03ac17b0148509d1464cac9b1329a"
} }
\ No newline at end of file
{ {
"node_id": "mysql-9dee640902204fcbbe780c0f04bc7c18", "node_id": "mysql-9dee640902204fcbbe780c0f04bc7c18",
"keywords": ["delay", "延迟复制"], "keywords": [
"delay",
"延迟复制",
"replication"
],
"children": [], "children": [],
"export": [], "export": [
"delay.json"
],
"keywords_must": [], "keywords_must": [],
"keywords_forbid": [], "keywords_forbid": [],
"group": 0 "group": 0
......
{
"type": "code_options",
"author": "ccat",
"source": "delay.md",
"notebook_enable": false,
"exercise_id": "e1ee4c066ee8499382c61d0717ccc970"
}
\ No newline at end of file
# 延迟复制
`主从复制`一节里,Joe实现了一个点对点的主从复制架构,其中standby 是 trade的从库,现在,
Joe 要添加一个名为 backup 的新的复制节点,这个节点的同步进度要比 trade 晚半小时。他应该怎么做?
## 答案
`添加从库` 一节的步骤添加 backup 节点,在设置 backup 的主库订阅信息时,加入 `MASTER_DELAY=1800;`
## 选项
### A
`添加从库` 一节的步骤添加 backup 节点,在设置 backup 的主库订阅信息时,加入 `MASTER_DELAY=0.5;`
### B
`添加从库` 一节的步骤添加 backup 节点,在主库重启推送之前,执行 `SET BACKUP_DELAY=1800`
### C
所有都不对
\ No newline at end of file
{
"node_id": "mysql-f4d43d35c4c846baa2761d02fff5b09a",
"keywords": ["读写分离"],
"children": [],
"export": [],
"keywords_must": [],
"keywords_forbid": [],
"group": 0
}
\ No newline at end of file
{
"node_id": "mysql-46c46e16ac404db99e61412a948e3a3c",
"keywords": [],
"children": [],
"export": [],
"keywords_must": [],
"keywords_forbid": [],
"group": 0
}
\ No newline at end of file
...@@ -2366,7 +2366,13 @@ ...@@ -2366,7 +2366,13 @@
{ {
"从主从复制到链式复制": { "从主从复制到链式复制": {
"node_id": "mysql-88333dcb84a946a78bfd9f413c6e795b", "node_id": "mysql-88333dcb84a946a78bfd9f413c6e795b",
"keywords": [], "keywords": [
"chains",
"slave",
"master",
"主从复制",
"replication"
],
"children": [], "children": [],
"keywords_must": [], "keywords_must": [],
"keywords_forbid": [], "keywords_forbid": [],
...@@ -2377,8 +2383,11 @@ ...@@ -2377,8 +2383,11 @@
"从链式复制到主从复制": { "从链式复制到主从复制": {
"node_id": "mysql-2f6f847907d4415788e98d2f70f64d3c", "node_id": "mysql-2f6f847907d4415788e98d2f70f64d3c",
"keywords": [ "keywords": [
"链式复制", "chains",
"主从复制" "slave",
"master",
"主从复制",
"replication"
], ],
"children": [], "children": [],
"keywords_must": [], "keywords_must": [],
...@@ -2389,7 +2398,11 @@ ...@@ -2389,7 +2398,11 @@
{ {
"多源复制": { "多源复制": {
"node_id": "mysql-91ba7f7a6b684b8aad01abd583cf0442", "node_id": "mysql-91ba7f7a6b684b8aad01abd583cf0442",
"keywords": [], "keywords": [
"多源复制",
"multimaster",
"replication"
],
"children": [], "children": [],
"keywords_must": [], "keywords_must": [],
"keywords_forbid": [], "keywords_forbid": [],
...@@ -2400,7 +2413,9 @@ ...@@ -2400,7 +2413,9 @@
"复制过滤器": { "复制过滤器": {
"node_id": "mysql-b3cba2e9c7ea46d5beeb1948b41a74d5", "node_id": "mysql-b3cba2e9c7ea46d5beeb1948b41a74d5",
"keywords": [ "keywords": [
"复制过滤器" "复制过滤器",
"filter",
"replication"
], ],
"children": [], "children": [],
"keywords_must": [], "keywords_must": [],
...@@ -2411,37 +2426,11 @@ ...@@ -2411,37 +2426,11 @@
{ {
"延迟复制": { "延迟复制": {
"node_id": "mysql-9dee640902204fcbbe780c0f04bc7c18", "node_id": "mysql-9dee640902204fcbbe780c0f04bc7c18",
"keywords": [], "keywords": [
"children": [], "delay",
"keywords_must": [], "延迟复制",
"keywords_forbid": [], "replication"
"group": 0 ],
}
},
{
"读写分离": {
"node_id": "mysql-f4d43d35c4c846baa2761d02fff5b09a",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": [],
"group": 0
}
},
{
"HA高可用": {
"node_id": "mysql-46c46e16ac404db99e61412a948e3a3c",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": [],
"group": 0
}
},
{
"分区": {
"node_id": "mysql-ac73930a15c149b9ba0b250e46a109e2",
"keywords": [],
"children": [], "children": [],
"keywords_must": [], "keywords_must": [],
"keywords_forbid": [], "keywords_forbid": [],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册