cobar alibaba github地址:https://github.com/alibaba?utf8=%E2%9C%93&query=cobar
搜索出兩樣東西:
1.cobar
基於MySQL的分佈式數據庫服務中間件
2.cobarclient
基於iBatis和Spring的輕量級分佈式數據訪問框架(DDAL)
下面分別使用cobar和cobarclient 學習一下:兩者是獨立的,兩者是獨立的,兩者是獨立的重要的事情說三遍
一:cobar的使用操作:
1.下載cobar server
2.在server上配置配置文件
1) rule.xml(路由規則)
2) schema.xml (數據節點配置)
3) server.xml(cobar server的屬性配置)
啓動cobar server。
3.測試操作
可通過mysql命令登錄Cobar,指定主機爲安裝Cobar的Server,username和password則是Cobar server.xml裏設置的用戶名和密碼
mysql -hip -uusername -ppassword -Pport -Ddatabasename
4.完畢。
二:cobarclient 介紹
它是一個分佈式數據訪問框架。
用於客戶端訪問分佈式數據庫,在客戶端制定路由規則。
這個是spring 與ibatis結合路由規則 達到在客戶端決定訪問的數據源是哪個的目標
參考的操作使用鏈接:http://blog.csdn.net/wxwzy738/article/details/17265577/
參考鏈接:
alibaba github:https://github.com/alibaba
mysql開源中間件產品:
cobar:
http://www.cnblogs.com/super-d2/p/4276021.html
cobarclient:
http://blog.csdn.net/wxwzy738/article/details/17265577/
http://www.tuicool.com/articles/iqaYJr6
http://www.open-open.com/lib/view/open1414463407309.html
由cobar的rule.xml配置 分區段分數據庫與1024的關係
參考:http://tieba.baidu.com/p/2928860908