Re: a solution of getting cassandra cross-datacenter latency at a certain time

2016-08-08 Thread Stone Fang
thanks for you response. @Ryan Svihla,yeah you are right,there will be a ttl.only store most recent data. @Chris good idea on getting the instantaneous cross-datacenter latency.but seems still have issues. 1.based on application insert/update record,not a regular generate record.once the

Re: a solution of getting cassandra cross-datacenter latency at a certain time

2016-08-08 Thread Chris Lohfink
If you invoke the values operation on the mbean every minute (or whatever period) you can get a histogram of the cross dc the latencies. Just keep track of the values of each bin in histogram and look at the delta from previous time to the current time to find how many latencies occurred in each

Re: a solution of getting cassandra cross-datacenter latency at a certain time

2016-08-08 Thread Ryan Svihla
The first issue I can think of is the Latency table, if I understand you correctly, has an unbounded size for the partition key of DC and will over time just get larger as more measurements are recorded. Regards, Ryan Svihla > On Aug 8, 2016, at 2:58 AM, Stone Fang