MySQL Proxy 0.8.4 发布。2014-01-10 这是MySQL官方读写分离以及负载均衡工具,上一个版本还是2012-08-20的0.8.3.过了一年半。 国内360基于这个发布了Atlas。有兴趣的可以参考下。
MySQL-Proxy是处在你的MySQL数据库客户和服务端之间的程序,它还支持嵌入性脚本语言 Lua。这个代理可以用来分析、监控和变换(transform)通信数据,它支持非常广泛的使用场景:
负载平衡和故障转移处理
查询分析和日志
SQL宏(SQL macros)
查询重写(query rewriting)
执行shell命令
MySQL Proxy更强大的一项功能是实现“读写分离(Read/Write Splitting)”。基本的原理是让主数据库处理事务性查询,而从数据库处理SELECT查询。数据库复制被用来把事务性查询导致的变更同步到集群中的从数据库。
该版本主要改进:
Functionality Added or Changed
Theadminplugin now rejects empty passwords.
Bugs Fixed
Building with automake 1.13 is now supported. (Bug #17776451)
A too-strict test for protocol state resulted in writing excessive log output. (Bug #17434833)
Chassis log rotation functions did not work on Windows. (Bug #17275852)
Calls tonetwork_address_set_address()returned a malformed value on Windows. (Bug #16664004)
MySQL Proxy libtool-archive .lafiles were inadvertently included with distributions. (Bug #14773448)
MySQL Proxy crashed when started with an unknown option. (Bug #14665885)
MySQL Proxy could fail to connect to the IPv6 loopback address. (Bug #14677085)
If MySQL Proxy was configured to listen on a Unix socket file, it failed to remove the file when exiting, causing the next Proxy instance to fail at startup. (Bug #60781, Bug #14198411)
Theconnected_clientsvalue was incremented even if the backend was down. (Bug #66399, Bug #16389293)
A memory leak resulted from a missing callback to the memory-free function.
MySQL Proxy blocked port 4040.
Incorrect README files were included in distributions.
下载:ftp://mirror.switch.ch/mirror/mysql/Downloads/MySQL-Proxy/mysql-proxy-0.8.4.tar.gz