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

Extremely poor DB reader performance on query #22122

Closed
rfairburn opened this issue Sep 16, 2024 · 4 comments
Closed

Extremely poor DB reader performance on query #22122

rfairburn opened this issue Sep 16, 2024 · 4 comments
Assignees
Labels
bug Something isn't working as documented customer-rosner #g-mdm MDM product group :incoming New issue in triage process. P1 Prioritize as critical :release Ready to write code. Scheduled in a release. See "Making changes" in handbook. ~released bug This bug was found in a stable release.
Milestone

Comments

@rfairburn
Copy link
Contributor

Fleet version: v4.56.0
Web browser and operating system:


💥  Actual behavior

A DB scaled to 2x the size of the recommeded architecture went to 99.9% usage with the following query accounting for essentially all of it:

SELECT CASE ( CASE WHEN EXISTS ( SELECT 1 FROM host_mdm_apple_profiles hmap WHERE h.uuid = hmap.host_uuid AND hmap.status = 'failed' AND NOT EXISTS ( SELECT 1 FROM host_mdm_apple_profiles hmap WHERE FALSE )) THEN 'profiles_failed' WHEN EXISTS ( SELECT 1 FROM host_mdm_apple_profiles hmap
image image

🧑‍💻  Steps to reproduce

Unknown cause. Looks like mdm-related given the query.

🕯️ More info (optional)

N/A

@rfairburn rfairburn added bug Something isn't working as documented ~released bug This bug was found in a stable release. customer-rosner :incoming New issue in triage process. P0 Prioritize as emergency labels Sep 16, 2024
@georgekarrv georgekarrv added #g-mdm MDM product group :release Ready to write code. Scheduled in a release. See "Making changes" in handbook. labels Sep 17, 2024
@lukeheath lukeheath added P1 Prioritize as critical and removed P0 Prioritize as emergency labels Sep 18, 2024
@lukeheath
Copy link
Member

Downgrading to P1 as the initial issue as been temporarily resolved.

@zayhanlon
Copy link
Contributor

hey @gillespi314 any updates that we can share with the customer on where we are with this? thanks!

@gillespi314
Copy link
Contributor

@zayhanlon, there is a PR under review currently. I'm hoping that we'll get that merged tomorrow and can start load testing.

@fleet-release
Copy link
Contributor

Query strains, performance wanes,
Fleet whispers in code refrains,
Efficiency regains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as documented customer-rosner #g-mdm MDM product group :incoming New issue in triage process. P1 Prioritize as critical :release Ready to write code. Scheduled in a release. See "Making changes" in handbook. ~released bug This bug was found in a stable release.
Development

No branches or pull requests

6 participants