-
Notifications
You must be signed in to change notification settings - Fork 151
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
add metrics support (Codahale) #12
base: master
Are you sure you want to change the base?
Conversation
add PoolingDataSource connection wait time histogram add PoolingDataSource in-use connections histrogram
Vlad, so you consider this pull request ready? If so, I will start reviewing it in preparation for merging. |
Hi, I think it is quite ready. I started a new "enhancement" in an attempt to find the right pool size. This is the project: https://github.com/vladmihalcea/flexy-pool I think it's also worth to have dedicated exceptions on BTM too. So instead of BitronixRuntimeException("XA pool of resource ... still empty after ... wait time") we could have a ConnectionAcquireTimeoutException What do you think? Vlad On Friday, March 21, 2014 10:52 AM, Brett Wooldridge [email protected] wrote: Vlad, so you consider this pull request ready? If so, I will start reviewing it in preparation for merging. |
Vlad, Throwing more specific exceptions could be done, obviously as long as that BTW, you should probably add support for Brett's HikariCP connection pool Ludovic On Fri, Mar 21, 2014 at 11:05 AM, Vlad Mihalcea [email protected]:
|
* | ||
* @author Vlad Mihalcea | ||
*/ | ||
public interface Metrics extends Serializable { |
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.
Why extending Serializable here?
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.
It should be removed.
Just to mention: we also use Codahale metrics in our BTM application, except we package them inside the WAR file. So abstracting the metrics from BTM strikes me as a Good Thing, because otherwise we would need to change how we deploy everything :-). |
Things to be done:
I tried a first attempt to change those and tests were failing. I will try to find a way to fix those in the following weeks. |
add PoolingDataSource connection wait time histogram
add PoolingDataSource in-use connections histrogram