Hi,
Thank you so much for answers.

Please, can you explain more what's metric libraries ? and give me some
examples ?

Using nodetool status, to generate the history of my data center, i intend
to proceed as follows:

>From a node A:

For i  1 ..24 hours  (every 2 minutes do)

./nodetool status >> file.txt

End For

is it a good idea?

Thanks a lot.
Kind regards.

2018-07-05 1:30 GMT+01:00 Anthony Grasso <anthony.gra...@gmail.com>:

> Hi,
>
> Yes, you can use nodetool status to inspect the health/status of the
> cluster. Using *nodetool status <keyspace>* will show the cluster
> health/status as well as the amount of data that each node has for the
> specified *<keyspace>*.  Using *nodetool status* without the <keyspace>
> argument will only show the cluster health/status.
>
> Unless there is a special reason for using nodetool to capture history,
> you may want to consider using metric libraries to capture and push
> information about each node to a metric server. It is much easier to view
> the data captured on the metric server as there are tools already made for
> this. Using metrics libraries will save you time creating and maintaining a
> parser for the nodetool output. It also makes monitoring the health of
> cluster very easy.
>
> Regards,
> Anthony
>
> On Sun, 1 Jul 2018 at 20:19, Thouraya TH <thouray...@gmail.com> wrote:
>
>> Hi,
>> Thank you so much for answer.
>> Please, is it possible to use this command ?
>>
>> nodetool status mykeyspace
>>
>> Datacenter: datacenter1
>> =======================
>> Status=Up/Down
>> |/ State=Normal/Leaving/Joining/Moving
>> --  Address    Load       Tokens  Owns    Host ID                            
>>    Rack
>> UN  127.0.0.1  47.66 KB   1       33.3%   
>> aaa1b7c1-6049-4a08-ad3e-3697a0e30e10  rack1
>> UN  127.0.0.2  47.67 KB   1       33.3%   
>> 1848c369-4306-4874-afdf-5c1e95b8732e  rack1
>> UN
>>
>> Thank you so much.
>> Kind regards.
>>
>> 2018-06-29 1:40 GMT+01:00 Rahul Singh <rahul.xavier.si...@gmail.com>:
>>
>>>
>>>
>>> When you run TPstats or Tablestats subcommands in nodetool you are
>>> actually accessing data inside Cassandra via JMX.
>>>
>>> You can start there at first.
>>>
>>> Rahul
>>> On Jun 28, 2018, 10:55 AM -0500, Thouraya TH <thouray...@gmail.com>,
>>> wrote:
>>>
>>> Hi,
>>>
>>> Please, how can check the health of my cluster / data center using
>>> cassandra ?
>>> In fact i'd like to generate a hitory of the state of each node. an
>>> history about the failure of my cluster ( 20% of failure in a day, 40% of
>>> failure in a day etc...)
>>>
>>> Thank you so much.
>>> Kind regards.
>>>
>>>
>>

Reply via email to