Tag-Archive for » MySQL / DB «

使用HAProxy对MySQL进行负载均衡和状态监控

转载请保留原文内容,并声明转载地址:http://www.toplee.com/blog/1284.html

乐搜(lesoo.com)使用HAProxy已经很久了,但主要用在前端web请求的负载均衡和状态监控上,对于后端的Memcached以及MySQL却一直没有应用,最近对系统架构进行了小规模的整理,把MySQL也收编到了HAProxy下,经过一段时间的使用,体验还是不错的。

详细的HAProxy的安装配置我就不说了,主要针对HAProxy如何监控检测后端MySQL服务器的状态说两句。

我们的环境由两台master和若干台slave数据库组成,在HA的配置中,可以设置灵活的策略和进行slave的分组,如果系统更大了,将还会根据业务系统来拆分若干个master和slave组。

声明:以下内容应用和验证环境是基于 FreeBSD 8.2 环境,MySQL在5.1以上版本,理论上 Linux 的各个版本基本都能通过,如果有不能通过的情况,请别随意张口扔板砖,欢迎添加评论留言向我提问

HA对MySQL状态监控实现的方式很多,不过大多逻辑都一样,使用自己编写的脚本程序(可以是shell、php、perl等你熟悉的语言)监控mysql的运行情况,然后通过HTTP的方式输出运行结果给HA,我使用的是shell程序来实现的监控,结合 FreeBSD的inetd服务来实现监控端口的提供

more »

MySQL Live Webinar for Asia PacificToday!

因为看男子体操决赛迟到了,快两点才加入,自动下载了个客户端进入, 可能时间太短了,收获不多,第一次受邀参加,感觉有些新奇,结束后就再也进不去了,忘记截屏和保存聊天记录了。

Date: Tuesday August 12, 2008

Time: 2:00 pm JPT, at 3:00 pm in Sydney, at 1:00 pm in Singapore, Beijing
and Manila Philippine, at 2:00 pm in Seoul, at 10:30 am in Mumbai

Event Number: 599 944 231

Event Address for Attendees:
https://mysqlinc.webex.com/mysqlinc/onstage/g.php?t=a&d=599944231

Join us for this informative webinar which will deliver a comprehensive
introduction of MySQL products and services such as MyQL Enterprise, MySQL
Cluster, MySQL Embedded, consulting service, along with examples of how
MySQL is used in an organization and what enterprise has chosen MySQL. Are
you considering to use MySQL or wondering what you can do with MySQL? Then
this is a good start to learn about MySQL and what benefits MySQL offers.
This webinar will help you find a solution which matches requirements of
your system.

Kajiyama Ryusuke, MySQL Senior Technical Evangelist

Category: MySQL / DB  Tags:  3 Comments