0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Cassandra】nodetool status

Last updated at Posted at 2019-10-27

0. はじめに

・本記載は、ディストリビューション、バージョン = DSE 4.8.16をベースに記載

1. 統計値の説明

気になる統計値についてのメモ

① Owns列

( キースペースを指定しないで実行した場合 )
・キースペースを指定しないと、Own列は ? 表示になる。

# nodetool status 
Datacenter: DC1
===============
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address     Load       Tokens  Owns    Host ID                               Rack
UN  10.0.2.121  479.96 KB  256     ?       e52df442-eebb-490a-8787-372d4e2705c2  RAC1
UN  10.0.2.122  433.09 KB  256     ?       b1ccdf1e-a6ee-4f71-95c3-b3b5bd0f3e81  RAC1
UN  10.0.2.123  488.47 KB  256     ?       a4cfeb3a-1fa2-4f99-ac8b-e14e2aa44ec4  RAC1

Note: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless
# 

( キースペースを指定して実行した場合 )
・Owns列に利用可能なトークン範囲の割合を表示
・トークン範囲の割合は、各ノードが所有するトークンの割合とレプリケーション係数を乗算した値
 ・そのキースペースのreplication factorが2なら%の合計は200%、3なら300%になる。

( 正確には、DATASTAXのドキュメントの「重要: クラスターに、レプリケーション・ストラテジまたはレプリケーション係数の異なるキースペースがある場合、有意な所有権情報を得るには、nodetool status実行時にキースペースを指定してください。」というのが適切らしい。
( https://docs.datastax.com/ja/dse/5.1/dse-admin/datastax_enterprise/tools/nodetool/toolsStatus.html ) )

# nodetool status test01
Datacenter: DC1
===============
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address     Load       Tokens  Owns (effective)  Host ID                               Rack
UN  10.0.2.121  479.96 KB  256     31.7%             e52df442-eebb-490a-8787-372d4e2705c2  RAC1
UN  10.0.2.122  433.09 KB  256     30.9%             b1ccdf1e-a6ee-4f71-95c3-b3b5bd0f3e81  RAC1
UN  10.0.2.123  488.47 KB  256     37.4%             a4cfeb3a-1fa2-4f99-ac8b-e14e2aa44ec4  RAC1

# 
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?