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

chore: use setting to fallback to kill query on cluster #27196

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

Daesgar
Copy link
Contributor

@Daesgar Daesgar commented Dec 31, 2024

Problem

Even though we are killing queries on the initiator now, many times the KILL QUERY ON CLUSTER fallback path is still executed because the query_id does not exist in system.processes or even the id does not exist at all (not even in the query_log).

Changes

The setting will allow us to monitor if performance is degraded (because maybe we are not killing as many queries as we should). But, if everything looks fine, we will remove the ON CLUSTER path.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

Yes.

How did you test this code?

Through the PostHog local app.

@Daesgar Daesgar requested a review from a team December 31, 2024 11:21
@Daesgar Daesgar merged commit 1a4c624 into master Dec 31, 2024
93 checks passed
@Daesgar Daesgar deleted the kill-on-cluster-setting branch December 31, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants