Giter Site home page Giter Site logo

mha-re-edition's Introduction

mha-re-edition's People

Contributors

hcymysql avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mha-re-edition's Issues

当主库遇到网络问题时,无法进行切换

直接干掉主库的网络连接,脚本执行故障切换的时候仍然会SSH去连接主库服务器删除VIP,但是会出现SSH失败,脚本直接挂掉

Thu Nov 24 20:45:58 2022 - [ERROR] 主库尝试连接3次后继续失败.
主机:10.105.255.169 ssh连接失败!!! 错误信息:timed out 
Traceback (most recent call last):
  File "masterha_manager_mysql.py", line 978, in <module>
  File "masterha_manager_mysql.py", line 484, in MasterMonitor
  File "masterha_manager_mysql.py", line 252, in ssh_exec
  File "paramiko/client.py", line 510, in exec_command
AttributeError: 'NoneType' object has no attribute 'open_session'
[473316] Failed to execute script 'masterha_manager_mysql' due to unhandled exception!

源代码

请问有源代码下载地址没

binlog server配置

app1.cnf能不能新增binlog server配置,来解决主库物理破坏导致binlog不能用导致切换数据不一致的问题

ubuntu 能否适配,centos已停止维护

在ubuntu1804 上无法生成VIP,能否开源或者帮忙适配一下。谢谢
Tue Apr 05 16:09:13 2022 - [INFO] Connected (version 2.0, client OpenSSH_7.6p1)
Tue Apr 05 16:09:13 2022 - [INFO] Authentication (password) successful!
Tue Apr 05 16:09:14 2022 - [INFO] 执行命令: /usr/sbin/ip addr | grep '172.16.131.100' 没有获取到该VIP地址,程序将自动添加.
Tue Apr 05 16:09:14 2022 - [INFO] Connected (version 2.0, client OpenSSH_7.6p1)
Tue Apr 05 16:09:14 2022 - [INFO] Authentication (password) successful!
Tue Apr 05 16:09:14 2022 - [ERROR] 添加VIP失败,退出主程序,请检查错误日志.

代码压缩包已坏

代码压缩包已受破坏,下载解压不了,麻烦教主更新一下代码压缩包。谢谢

新主read_only设置问题

我发现,切换后新主的read_only并不会设置为off,只会设置新主的super_read_only为off,这样在切换后,普通用户是没法写的,
image
看了你的源代码后发现用游标再加个cursor.execute('SET GLOBAL READ_ONLY = 0')就可以了,希望可以更新下包哈
image

vip 问题

哈喽大佬,有个vip的问题请教一下。
1、 vip 是不是要必须设置的?
2、vip 是设置在mysql节点上面的吗?跟着master走。
3、如果选择用proxysql做代理,那此处的vip是不是不需要设置?或者在所有mysql节点装proxysql?

级联主库

跨机房级联的一主两从不支持么,提示没有开启基于GTID全局事务ID复制,但其实是有开启的。

数据库连接未正常关闭问题

image 只关闭了cursor,数据库错误日志会有提示,希望大佬改一下。

2023-05-31T12:06:33.215602+09:00 23 [Note] [MY-010914] [Server] Aborted connection 23 to db: 'mysql' user: 'root' host: '172.19.13.111' (Got an error reading communication packets).

只读配置问题

根据描述,关闭候选主库的只读是通过“关闭候选主库的set global super_read_only = 0只读权限”,我测试的此配置只会修改super_read_only,不会将read_only设置为0,这会导致候选主库普通用户无法写入的情况,生效的是如下的方法:
关闭只读通过 set global read_only=off
开启只读通过 set global super_read_only=on

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.