39

利用amoeba(变形虫)实现mysql数据库读写分离-星火燎愿

 4 years ago
source link: https://blog.51cto.com/13577495/2389109
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
关于mysql的读写分离架构有很多,百度的话几乎都是用mysql_proxy实现的。由于proxy是基于lua脚本语言实现的,所以网上不少网友表示proxy效率不高,也不稳定,不建议在生产环境使用;amoeba是阿里开发的一款数据库读写分离的项目(读写分离只是它的一个小功能),由于是基于java编写的,所以运行环境需要安装jdk;前期准备工作:1.两个数据库,一主一从,主从同步;master:17

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK