手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

MySQL半同步复制模式

[日期:2012-10-24] 来源:Linux社区  作者:itlaowu [字体:大 中 小]

这些执行完成后,半同步就配置完了。

Master看到的状态:

MySQL> show status like 'rpl%';

+--------------------------------------------+-------------+

| Variable_name                              | Value      |

+--------------------------------------------+-------------+

| Rpl_semi_sync_master_clients              | 1          |

| Rpl_semi_sync_master_net_avg_wait_time    | 0          |

| Rpl_semi_sync_master_net_wait_time        | 0          |

| Rpl_semi_sync_master_net_waits            | 0          |

| Rpl_semi_sync_master_no_times              | 0          |

| Rpl_semi_sync_master_no_tx                | 0          |

| Rpl_semi_sync_master_status                | ON          |

| Rpl_semi_sync_master_timefunc_failures    | 0          |

| Rpl_semi_sync_master_tx_avg_wait_time      | 0          |

| Rpl_semi_sync_master_tx_wait_time          | 0          |

| Rpl_semi_sync_master_tx_waits              | 0          |

| Rpl_semi_sync_master_wait_pos_backtraverse | 0          |

| Rpl_semi_sync_master_wait_sessions        | 0          |

| Rpl_semi_sync_master_yes_tx                | 0          |

| Rpl_status                                | AUTH_MASTER |

+--------------------------------------------+-------------+

15 rows in set (0.00 sec)

Slave看到的状态:

mysql> show status like 'rpl%';

+----------------------------+-------------+

| Variable_name              | Value      |

+----------------------------+-------------+

| Rpl_semi_sync_slave_status | ON          |

| Rpl_status                | AUTH_MASTER |

+----------------------------+-------------+

2 rows in set (0.01 sec)

linux
相关资讯       MySQL基础教程  MySQL同步复制 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款