GithubHelp home page GithubHelp logo

db's Introduction

db配置

  • mysql
  yum install -y Percona-Server-server-57 Percona-Server-tokudb-57 percona-toolkit percona-xtrabackup
  • mongodb
  yum install -y Percona-Server-MongoDB-server Percona-Server-MongoDB-mongos Percona-Server-MongoDB-tools
  • gh-ost
    https://github.com/github/gh-ost/blob/master/doc/cheatsheet.md
  • dbproxy
    https://github.com/Meituan-Dianping/DBProxy
    
    DBProxy是由美团点评公司技术工程部DBA团队(北京)开发维护的一个基于MySQL协议的数据中间层。它在奇虎360公司开源的Atlas基础上,修改了部分bug,并且添加了很多特性。目前DBProxy在美团点评广泛应用,包括美团支付、酒店旅游、外卖、团购等产品线,公司内部对DBProxy的开发全面转到github上,开源和内部使用保持一致。目前只支持MySQL(Percona)5.5和5.6。
    
    主要功能:
    
    读写分离
    从库负载均衡
    IP过滤
    分表
    DBA可平滑上下线DB
    自动摘除宕机的DB
    监控信息完备
    SQL过滤
    从库流量配置
    二、DBProxy相对于奇虎360公司开源Atlas的改进
    
    修改了部分bug并且新增了一些feature,详见release notes
    提供了丰富的监控信息,大量参数可配置化并且支持动态修改
    对原有的诸如日志等模块进行了优化,性能提升明显
    开源版本即为目前美团点评内部使用版本,并将一直对源码及其文档进行维护
    
  • SQLAdvisor 输入SQL,输出索引优化建议
    https://github.com/Meituan-Dianping/SQLAdvisor/blob/master/doc/THEORY_PRACTICES.md
    
    wget https://raw.githubusercontent.com/xiaomatech/db/master/libsqlparser.so -O /usr/lib64/libsqlparser-debug.so
    wget https://raw.githubusercontent.com/xiaomatech/db/master/sqladvisor -O /usr/sbin/sqladvisor
    chmod a+x /usr/sbin/sqladvisor
    
    sqladvisor -h xx  -P xx  -u xx -p 'xx' -d xx -q "sql" -v 1
    
    echo '
    [sqladvisor]
    username=xx
    password=xx
    host=xx
    port=xx
    dbname=xx
    sqls=sql1;sql2;sql3....
    '>sql.cnf
    
    sqladvisor -f sql.cnf  -v 1
    
    

db's People

Watchers

James Cloos 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.