平臺項目~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

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