平台项目~go-inception使用

一 安装
   git clone https://github.com/hanchuanchuan/goInception.git cd goInception make parser go build -o goInception tidb-server/main.go ./goInception -config=config/config.toml
二 配置文件
   1 goInception利用的toml模块作为配置文件
   2 配置文件分为几个模块
     1 inc-审核规则 2 log-日志配置 3 gh-ost 工具参数配置
     3 具体gh-ost配置(具体问题具体分析)
      ghost_aliyun_rds =true
       ghost_on = true
       ghost_allow_on_master = true
       ghost_assume_rbr = true
       ghost_concurrent_rowcount = false
       ghost_ok_to_drop_table = false
       ghost_initially_drop_ghost_table=true
       ghost_initially_drop_old_table=true
       ghost_initially_drop_socket_file=true
       osc_critical_thread_connected=3000
       osc_max_thread_connected=3000
       osc_min_table_size=10
三 对比原生inception的优势
   1 对开源工具gh-ost的支持,可以不再使用触发器
   2 支持DML和DDL混合提交
   3 批量备份速度远远超过原生inception
   4 因为是go程序,所以不依赖于环境,执行执行即可,原生inception有一些包的问题
   5 支持某些原生incetpion不支持的语法,比如insert select这种带select关键字
四 用户权限细化
   insert,delete,update,insert,select,create,drop,alter,replication slave,replication client,process,super

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章