[MySQL 6.0 体验] 集群(cluster)+复制(replicate) -- 简单管理

5. 管理

在管理节点上,运行客户端工具 ndb_mgm:

/usr/local/mysql/bin/ndb_mgm
-- NDB Cluster -- Management Client --

#查看集群状态

ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)]     2 node(s)
id=3    @192.168.0.3  (mysql-6.0.3 ndb-6.2.6, Nodegroup: 0, Master)
id=4    @192.168.0.4  (mysql-6.0.3 ndb-6.2.6, Nodegroup: 0)

[ndb_mgmd(MGM)] 1 node(s)
id=1    @192.168.0.1  (mysql-6.0.3 ndb-6.2.6)

[mysqld(API)]   2 node(s)
id=2    @192.168.0.2  (mysql-6.0.3 ndb-6.2.6)
id=5 (not connected, accepting connect from any host)

#查看全部数据节点状态

ndb_mgm> all status
Node 3: started (mysql-6.0.3 ndb-6.2.6)
Node 4: started (mysql-6.0.3 ndb-6.2.6)

#报告数据节点的内存使用情况

ndb_mgm> 3 report memoryusage
Node 3: Data usage is 6%(2154 32K pages of total 32768)
Node 3: Index usage is 2%(3009 8K pages of total 131104)

#重启第3个节点

ndb_mgm> 3 restart
Node 3: Node shutdown initiated
Node 3: Node shutdown completed, restarting, no start.
Node 3 is being restarted

Node 3: Started (version 6.2.6)

回复

此内容将保密,不会被其他人看见。
  • 允许的 HTML 标签: <a> <b> <address> <blockquote> <br> <caption> <center> <code> <dd> <del> <div> <dl> <dt> <em> <font> <h2> <h3> <h4> <h5> <h6> <hr> <i> <img> <li> <ol> <p> <pre> <span> <strong> <sub> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <u> <ul> <tr>
  • 行和段被自动切分。
  • 网页地址和电子邮件地址将会被自动转换为链接。

更多格式化选项信息

随机验证
本功能用于防止垃圾信息
在输入框中输入图片上的字符(注意大小写)