-
Notifications
You must be signed in to change notification settings - Fork 843
Improve software endpoint performance (Software titles page) #35799
Copy link
Copy link
Closed
Labels
#g-security-complianceSecurity & Compliance product groupSecurity & Compliance product group:loadtestIssue that requires a loadtestIssue that requires a loadtest:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.bugSomething isn't working as documentedSomething isn't working as documented~aging bugBug has been open more than 90 daysBug has been open more than 90 days
Milestone
Metadata
Metadata
Assignees
Labels
#g-security-complianceSecurity & Compliance product groupSecurity & Compliance product group:loadtestIssue that requires a loadtestIssue that requires a loadtest:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.bugSomething isn't working as documentedSomething isn't working as documented~aging bugBug has been open more than 90 daysBug has been open more than 90 days
Type
Projects
Status
Done
Fleet version:
4.76.0
💥 Actual behavior
In a load test with ~95K hosts and ~300K software titles, we're still seeing issues when calling the endpoint with some query parameters after applying fixes for #34677
What we don't know is how many other pages and commonly used endpoints by customers have performance issues (>5s latency). We don't know the extent of the real problem here.
🛠️ To fix
Improve
/software/titlesendpoint performance; timebox TBD at estimation. (See comment.)🧑💻 Steps to reproduce
🕯️ More info (optional)
The fix includes a small behavior change. The default primary sort of
/software/titlesremainshost_counts, but the secondary sort is nowsoftware_title_idand notname. This was necessary to optimize the endpoint. This means that if you have 1 host in your fleet, the software page will not show the software titles ordered by name anymore. For large fleets, this does not matter since all titles have different host counts.