-
Notifications
You must be signed in to change notification settings - Fork 3.8k
More accord metrics #4466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More accord metrics #4466
Conversation
c2f71a2 to
36c8733
Compare
ifesdjeen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
the only question i have remaining is whether 0th percentile is meaningless.
in general, i am wondering if this holds:
@Override
public double getValue(double quantile)
{
return get((long)Math.ceil(totalCount * quantile));
}
should we find min/max and then compute percentile indices based on those?
| { | ||
| return Serialize.fromBytes(key, (ByteBuffer)shrunk); | ||
| ByteBuffer bb = (ByteBuffer)shrunk; | ||
| bb.position(prefixBytes(bb)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we duplicate here maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, good idea. we should be discarding it, but better safe than sorry and can do it without any net cost by skipping the internal duplicate
| Timestamp trxTimestamp = cmd.txnId(); | ||
| metrics.preapplyLatency.update(now - trxTimestamp.hlc(), TimeUnit.MICROSECONDS); | ||
| long elapsed = elapsed(cmd.txnId()); | ||
| System.err.println("Recording preapply latency of " + elapsed + " for " + cmd.txnId()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should this be trace?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, whoops. sorry this was debugging
|
I've pushed improvements to getMin, getMax and getPercentile(0d) |
7c9143a to
2ce1eaa
Compare
Also Introduce: - Sharded/LogLinearDecayingHistogram Also Improve: - Do not take a reference to CFK unless relevant Also Fix: - Sharded/LogLinearHistogram - ExecuteFlags serialization bug in ReadData patch by Benedict; reviewed by Alex Petrov for CASSANDRA-21017
2ce1eaa to
d5243a1
Compare
Thanks for sending a pull request! Here are some tips if you're new here:
Commit messages should follow the following format:
The Cassandra Jira