Home > Database > Mysql Tutorial > MYSQL使用经验(七)-读写分离集群方案之haproxy+keepalived+abstr

MYSQL使用经验(七)-读写分离集群方案之haproxy+keepalived+abstr

WBOY
Release: 2016-06-07 16:15:43
Original
1157 people have browsed it

MYSQL使用心得(七)----读写分离集群方案之haproxy+keepalived+abstractRoutingDataSource 在公司做mysql集群方案的时候,经过多次的分析与讨论,以及性能测试分析。发现haproxy方案最靠谱。用keepalived解决haproxy的单点问题。用spring的abstractRoutingData

MYSQL使用心得(七)----读写分离集群方案之haproxy+keepalived+abstractRoutingDataSource
在公司做mysql集群方案的时候,经过多次的分析与讨论,以及性能测试分析。发现haproxy方案最靠谱。用keepalived解决haproxy的单点问题。用spring的abstractRoutingDataSource解决读写分离的业务,主主集群来考虑主节点单点问题。无论从性能,部署的难度上,这种方案目前比较适合公司现阶段的发展。


MYSQL使用经验(七)-读写分离集群方案之haproxy+keepalived+abstr

其中keepalived的安装教程参考
http://phl.iteye.com/blog/1817550

haproxy的安装参考
http://phl.iteye.com/admin/blogs/1817551

abstractRoutingDataSource代码参考附件
一个是使用了spring的容器,一个没有使用

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template