cobar初识记录(mysql)

来源:互联网 发布:2017淘宝双十一攻略 编辑:程序博客网 时间:2024/06/05 05:21

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开源中间件产品:

http://www.guokr.com/blog/475765/


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

0 0
原创粉丝点击