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

Close PromQL engine when Prometheus exits #14064

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

aknuds1
Copy link
Contributor

@aknuds1 aknuds1 commented May 8, 2024

Close the PromQL engine, so resources can be released, when Prometheus exits. Follow-up to #14000.

I raised this issue in a Prometheus contributors sync, and @beorn7 thought it couldn't hurt to free the engine's resources on program exit/test cleanup :)

@aknuds1 aknuds1 force-pushed the arve/close-engine branch 3 times, most recently from 13becbb to 418b374 Compare May 8, 2024 13:07
@aknuds1 aknuds1 force-pushed the arve/close-engine branch 5 times, most recently from 161649a to 69e96c4 Compare May 9, 2024 13:47
@aknuds1 aknuds1 force-pushed the arve/close-engine branch 2 times, most recently from fec9def to f117bef Compare May 27, 2024 19:45
@aknuds1 aknuds1 changed the title WIP: Close PromQL engine when Prometheus exits Close PromQL engine when Prometheus exits May 27, 2024
@aknuds1 aknuds1 marked this pull request as ready for review May 27, 2024 19:46
@aknuds1 aknuds1 requested a review from machine424 May 27, 2024 19:47
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
@beorn7
Copy link
Member

beorn7 commented Jun 4, 2024

@machine424 are you planning to review this?

@machine424
Copy link
Collaborator

@machine424 are you planning to review this?

I wasn't aware of this, but I'm happy to review when it's ready ;)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
@aknuds1
Copy link
Contributor Author

aknuds1 commented Jun 5, 2024

@machine424 I pushed a fix for a minor omission during my resolution of merge conflicts. The PR should be ready for reviewing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants