-
Notifications
You must be signed in to change notification settings - Fork 60
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
Logging of slow queries #111
base: master
Are you sure you want to change the base?
Conversation
For troubleshooting, it is possible to log queries that takes more than a certain amount of time with: cassandra-journal.log-slow-query = true cassandra-journal.slow-query-time = 2s Then if one of the journal query takes more than 2 seconds it will be logged at the DEBUG level to the "com.datastax.driver.core.QueryLogger.SLOW" slf4j logger.
@masterzen thanks for the PR, looks good to me except for the failing tests. Can you please take a look? Cheers, |
It was on my Todo list, I was just waiting to see if there would be an interest in the feature. Also, it doesn't seem to fail as much on my laptop, so I need to figure out what is the problem :) |
Great, thanks. Would you mind extending the README to document your contribution? |
@masterzen looks like a nice feature. What is the status? |
@masterzen can you update about the status of this ? looks a very promising feature. |
This code is working in production on our systems, but I lack the time to properly finish this PR. I hope to have a bit more time next week, in which case I'll amend those commits with a working test (I assume the test are failing as a side effect of enabling logging, so I need to separate the slow log test on his own class). |
when completing this, please open PR at https://github.com/akka/akka-persistence-cassandra, which is the new home for akka-persistence-cassandra |
Thanks @patriknw , I'll do that as soon as I can find some time to finish the work. |
thanks, it's a nice feature |
* Both Scala and Java API * It's a merge of previous CassandraSession in this project and the additional functionality that Lagom's CassandraSession provided. Lagom will use this one (delegate to it). * make ListenableFutureConverter public
…triknw Include public API for CassandraSession, krasserm#111
For troubleshooting, it is possible to log queries that takes more
than a certain amount of time with:
Then if one of the journal or snapshot query takes more than 2 seconds it will be
logged at the DEBUG level to the "com.datastax.driver.core.QueryLogger.SLOW"
slf4j logger.