-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Need a way to record CQ execution time #6909
Comments
The code for this is done, but I'm throwing this into the 1.1 milestone as I don't think this is urgent enough that this needs to go into 1.0 since we want to keep the number of changes before 1.0 to a minimum. @beckettsean if you think this should go into 1.0, please comment so that we can potentially change the milestone. Thanks. |
1.1 is fine. It will just make schema consults more challenging until then. |
For posterity abd because I was curious, the slow query log does catch continuous queries but it doesn't record execution time:
|
Looks like @jwilder OK'd the PR for this to go into 1.0.0 so I'm going to update the milestone. |
For extremely long-running CQs (a problem) And for everyone's reference, what would be the proper way to troubleshoot such a problem without the 'real-time' log reference? |
@MikeSchroll |
Feature Request
Proposal: [Description of the feature]
Log entries for CQs should give execution time
Current behavior: [What currently happens]
For ad hoc API queries, first we log the
[query]
statement and then the[httpd]
response, which gives the elapsed time for the request, and thus for the query:Continuous queries log the
[query]
entry, but since they don't pass through the HTTP API, the[continuous querier]
output doesn't log any execution time.Desired behavior: [What you would like to happen]
The
[continuous querier]
line should include the query execution time.Use case: [Why is this important (helps with prioritizing requests)]
There's no way to determine the performance of particular CQ queries within the system itself, nor is there any historical record to which to compare. Either CQs should log execution times or they should write them into
_internal
somewhere (could get very chatty there, logs seem better to me).The text was updated successfully, but these errors were encountered: