Cassandra (9) nodetool
nodetool 常用指令:
1. nodetool status:
用 nodetool status 分析一下我的叢集:
Datacenter: dc1 =============== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns (effective) Host ID Rack UN 127.0.0.1 288.36 KiB 256 31.8% a84bcf48-4683-4141-92b7-8b99b0f61edb rack1 UN 192.0.0.2 404.12 KiB 256 31.3% b85071dc-4d88-4183-9d78-920e961208fc rack1 UN 192.0.0.3 417.49 KiB 256 36.9% fff47680-518b-47f9-9dd2-d7f108e744d3 rack1
- 節點狀態: 節點狀態用兩個字母表示,第一個字母代表 U (up) or D (down),第二個字母代表 N (normal), L (leaving), J (joining), M (moving)
- Address: 節點 IP
- Load: 資料大小
- Tokens: Tokens 數
- Owns: Ring 負責範圍的百分比
- Rack: 所屬機架
2. nodetool ring:
用 nodetoool ring 觀察一下每個人的 Token 範圍:
Datacenter: dc1 ========== Address Rack Status State Load Owns Token 9209105687517135177 127.0.0.1 rack1 Up Normal 417.49 KiB 36.88% -9195422962422523215 127.0.0.2 rack1 Up Normal 417.49 KiB 36.88% -9189567342144766392 127.0.0.3 rack1 Up Normal 288.36 KiB 31.79% -9155433180208108923
留言
張貼留言