Tuesday, 8 July 2014

Cassandra Multiple Node management (Cassandra Cluster Monitoring)


1. Cluster Health
2. Overall management  ( add, remove, decommission, pause)

 Option 1 : nodetool
 Option 2: datastax OpsCenter ---GUI

Case 1:  Examine Matrics Using : ‘ nodetool  ‘

user@cc1:~ Cassandra/bin$  ./nodetool ring 
It will show the current active node in ring
It will show  IP address, rack info, current status ,size of data load & percentage o load & token range.


user@cc1:~ Cassandra/bin$  ./nodetool status 
Abbreviates ‘nodetool ring’


user@cc1:~ Cassandra/bin$  ./nodetool netstats
Provides network information about the host.
This could indicate network

Example 1:
Example2:

user@cc1:~ Cassandra/bin$  ./nodetool gassipinfo 
.Provides the gossip information for the cluster
.The performance of the Gossip protocol 
.Reveals what Cassandra knows of your topology.
.Without the gossip pro Cassandra no way knowing the status of connected nodes information.


user@cc1:~ Cassandra/bin$  ./nodetool cfstats
.Provides statistics about one or more tables.It reveals all KEYSPACE and column family in Cluster.
user@cc1:~ Cassandra/bin$  ./nodetool cfstats User1;
It reveals only KEYSPACE and column family  in the User1 keyspace.
user@cc1:~ Cassandra/bin$  ./nodetool cleanup
Cassandra does not automatically remove data from nodes that lose part of their partition range to a newly added node. Run nodetool cleanup on the source node and on neighboring nodes that shared the same subrange after the new node is up and running. Failure to run this command after adding a node causes Cassandra to count the old data against the load on that node. Running the cleanup command causes a temporary increase in disk space usage proportional to the size of your largest SSTable. Disk I/O occurs when running this command. Optionally, this command takes a list of table names. By default, this command cleans all keyspaces if you do not specify a keyspace.
user@cc1:~ Cassandra/bin$  ./nodetool disablethrift
Disables the Thrift server. : Run if you believe a node is inconsistent.
user@cc1:~ Cassandra/bin$  ./nodetool statusthrift
Checks thrift availability: TCP :9160
user@cc1:~ Cassandra/bin$  ./nodetool decommission
.Takes the node offline from cluster
.Causes a live node to decommission itself, streaming its data to the next node on the ring.




Acknowledgements

Thank you Rakesh Budagam and David Letchumanan for this post.

2 comments:

  1. Evernote Premium Keygen: 7 What's new In Evernote Crack? 8 Evernote 10.45.18 Crack + Key For Mac/Windows: 9 .Evernote Cracked

    ReplyDelete
  2. Five expert-approved break-up texts to send instead of ghosting. It's official - rejection doesn't have to be brutal.Long Message For Boyfriend Break Up Tagalog

    ReplyDelete