[Shell Command] MySQL叢集全域一覽表,mysql叢集

來源:互聯網
上載者:User

[Shell Command] MySQL叢集全域一覽表,mysql叢集

author:skate
time:2015/01/19


MySQL叢集全域一覽表

 

 

 

用法:
# monrep -h
Usage: monrep [-d dbname ]
  -d  Database Cluster name
  -h  Display basic help
#

例如我的一個叢集名為dbx,那使用如下:
# monrep -d dbx

 

實現目的:
當主機比較多,而你又想查看一個MySQL叢集內所有主機的和replication的基本即時情況時,就比較麻煩,如果你登入每個主機去查看,那太out了,一般
可以通過監控平台去全域查看(如果有的話)。我這裡為了方便,直接在路由機上用命令查看,類似上面情況,

實現語言:linux shell

特點:
1.每兩秒重新整理一次
2.為了提高展現的速度,這裡用一個含有40個進程的進程池實現並發(盡量規避網路因素)採集所有主機資訊
3.為了提供多使用者同時使用,採用每次啟動並執行pid命名的臨時檔案來儲存臨時資訊

 

 

--------end--------

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.