-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Expose more detailed profiling information #126525
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
Conversation
Pinging @elastic/es-analytical-engine (Team:Analytics) |
// whether the user has asked for CCS metadata to be in the JSON response (the overall took will always be present) | ||
private final boolean includeCCSMetadata; | ||
|
||
// fields that are not Writeable since they are only needed on the primary CCS coordinator | ||
private final transient Predicate<String> skipUnavailablePredicate; | ||
private final transient Long relativeStartNanos; // start time for an ESQL query for calculating took times | ||
private transient TimeValue planningTookTime; // time elapsed since start of query to calling ComputeService.execute |
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.
Moved down and converted to TimeSpan
s
@@ -90,18 +92,17 @@ public EsqlExecutionInfo(Predicate<String> skipUnavailablePredicate, boolean inc | |||
this.clusterInfo = ConcurrentCollections.newConcurrentMap(); | |||
this.skipUnavailablePredicate = skipUnavailablePredicate; | |||
this.includeCCSMetadata = includeCCSMetadata; | |||
this.relativeStartNanos = System.nanoTime(); | |||
this.relativeStart = TimeSpan.start(); |
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 be always present on coordinating node
// start time for the ESQL query for calculating time spans relative to the beginning of the query | ||
private final transient TimeSpan.Builder relativeStart; | ||
private transient TimeSpan overallTimeSpan; | ||
private transient TimeSpan planningTimeSpan; // time elapsed since start of query to calling ComputeService.execute |
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.
Okay, this actually need to be serialized in order to pass this information when executing query async
(cherry picked from commit 07cb14e)
This change adds the following to the profiling output:
This is not an exhausting planning profiling information, however it:
Related to: ES-11102