Bug 1372748 - [RFE] Improve Performance of Compliance Call
Summary: [RFE] Improve Performance of Compliance Call
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.9.51
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: candlepin-bugs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-02 14:35 UTC by smcdowel
Modified: 2022-03-04 10:29 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-04 10:29:29 UTC


Attachments (Terms of Use)

Description smcdowel 2016-09-02 14:35:02 UTC
With the new RHSM Web System Lists, we are exposing the System Status (Properly Subscribed, Partially Subscribed, etc.) for each system. While this is a very welcome enhancement for our customers, it comes with a performance cost, due to the compliance call (/consumers/compliance) we make to generate those statuses. We would like to explore options for improving this performance.

Along with better performance of the call itself, we would like to see compliantUntil added to the compliance response.  To get it out of the API, we need to construct our queries like this:

"/consumers/compliance?uuid=0cb583db-d949-4316-a37f-adbab3ff2132&uuid=e3013ff8-9ff5-42cf-8d6b-c68cc4d3e076&include=0cb583db-d949-4316-a37f-adbab3ff2132.compliantUntil&include=e3013ff8-9ff5-42cf-8d6b-c68cc4d3e076.compliantUntil&"

This is a query with two consumers. In order to avoid exceeding the maximum length of a url, RHSM must retrieve compliance data 50 consumers at a time. Ideally we should be able to retrieve the data in larger batches.


Version-Release number of selected component (if applicable): 0.9.51, 2.0

Comment 7 Nikos Moumoulidis 2022-03-04 10:29:29 UTC
This bug quite old now. We've have some other bzs to improve performance already, some already in flight, such as:
https://bugzilla.redhat.com/show_bug.cgi?id=2059131
https://bugzilla.redhat.com/show_bug.cgi?id=2044944
https://bugzilla.redhat.com/show_bug.cgi?id=1991960

And given that we don't plan on adding any features for Entitlement-based workflows, in favor of investing in SCA-based ones, we do not plan to add the proposed features here.


Note You need to log in before you can comment on or make changes to this bug.