Skip to content
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

EQL: Add CircuitBreaker for sequence queries (#74381) #74683

Merged
merged 2 commits into from
Jun 29, 2021

Conversation

matriv
Copy link
Contributor

@matriv matriv commented Jun 29, 2021

The sequence matching algorithm holds some structures to keep track of
the matched and potentially matching sequences of events. When large
amount of events, sequence stages needs to be processed but also when
the requested size of the query (number of sequences to return) is large,
those structure can potentially increase the memory footprint.

Add a CircuitBreaker which can be configured through cluster settings,
which accounts for the memory used during the execution of a sequence
query. The memory accounting takes place every fetch_size number
of processed events (docs), to avoid significant performance overhead.

(cherry picked from commit c6f0fb8)

The sequence matching algorithm holds some structures to keep track of
the matched and potentially matching sequences of events. When large
amount of events, sequence stages needs to be processed but also when
the requested size of the query (number of sequences to return) is large,
those structure can potentially increase the memory footprint.

Add a CircuitBreaker which can be configured through cluster settings,
which accounts for the memory used during the execution of a sequence
query. The memory accounting takes place every fetch_size number
of processed events (docs), to avoid significant performance overhead.

(cherry picked from commit c6f0fb8)
@elasticmachine elasticmachine added the Team:QL (Deprecated) Meta label for query languages team label Jun 29, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-ql (Team:QL)

@matriv matriv merged commit 5745131 into elastic:7.x Jun 29, 2021
@matriv matriv deleted the backport-74381-7.x branch June 29, 2021 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/EQL EQL querying backport Team:QL (Deprecated) Meta label for query languages team v7.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants