Git Product home page Git Product logo

mkf's Introduction

项目名称:mkf (mysql keepalived failover)

部署步骤:

1.创建第三方mysql库dbfailover 执行脚本install_dbfailover.sql 将mkf需要维护的主库信息初始化至master_info

2.在被管理的主库执行install_dbtarget.sql

3.部署python数据抽取程序(可以和dbfailover同服务器) 安装python3环境 requirement: PyMySQL==0.9.3 DBUtils==1.3 APScheduler==3.6.3

设置mkf.py中的dbmanager连接池信息: managerdb_pool = PooledDB(host='dbmanater_ip',user='user1',passwd='password1')

启动脚本: python mkf.py

4.在被管理的mysql主从服务器上部署keepalived 主从配置文件分别用:keepalived_master.conf、keepalived_slave.conf,需设置主从节点的物理IP 主脚本:notify_backup.sh,需设置文件头的环境变量 从脚本:notify_master.sh,需设置文件头的环境变量

完毕。

mkf's People

Contributors

meishd avatar

Watchers

 avatar

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.