Skip to content

Comments

[CCXDEV-15960] Optimize the CPU usage of insights-runtime-extractor#60

Open
jmesnil wants to merge 6 commits intoopenshift:mainfrom
jmesnil:CCXDEV-15960
Open

[CCXDEV-15960] Optimize the CPU usage of insights-runtime-extractor#60
jmesnil wants to merge 6 commits intoopenshift:mainfrom
jmesnil:CCXDEV-15960

Conversation

@jmesnil
Copy link
Contributor

@jmesnil jmesnil commented Jan 30, 2026

This PR allows to collect runtime data for a subset of containers that will be requested by the Insights Operator.

It also requires changes in the Insights Operator that will be done in openshift/insights-operator#1220

The changes are backwards compatible so that this PR can be merged before the code of the insights operator is updated.

JIRA: https://issues.redhat.com/browse/CCXDEV-15960

The insights-runtime-extractor must be able to scan only a
subset of containers (requested by the Insights Operator)
instead of collecting data for *all* containers when the
Insights Operator has a hard limit on number of containers
that are gathered.

This addresses https://issues.redhat.com/browse/CCXDEV-15960.

Signed-off-by: Jeff Mesnil <jmesnil@redhat.com>
Signed-off-by: Jeff Mesnil <jmesnil@redhat.com>
The coordinator executable now accepts a comma-separated list
of container ID that needs to be collected.
If this list is empty, *all* running containers are collected.

Signed-off-by: Jeff Mesnil <jmesnil@redhat.com>
When a TCP connection is created, read a String that is expected to contain a list of container IDs.
If the string is empty (as was previously the case), all containers on the node are scanned.

Signed-off-by: Jeff Mesnil <jmesnil@redhat.com>
Add POST /gather_runtime_info endpoint that accepts a JSON body with
containerIds array to scan specific containers. The container IDs are
sent as comma-separated values over TCP to the extractor server.
Uses CloseWrite() to signal EOF for proper TCP stream handling.

Signed-off-by: Jeff Mesnil <jmesnil@redhat.com>
Signed-off-by: Jeff Mesnil <jmesnil@redhat.com>
@openshift-ci openshift-ci bot requested a review from tremes January 30, 2026 14:50
@openshift-ci
Copy link

openshift-ci bot commented Jan 30, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jmesnil

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 30, 2026
@jmesnil
Copy link
Contributor Author

jmesnil commented Feb 2, 2026

/retest

jmesnil added a commit to jmesnil/insights-operator that referenced this pull request Feb 2, 2026
Add the PRD that describe the required changes in the Insights Operator.

The changes to the insights-runtime-extractor are handled in openshift/insights-runtime-extractor#60.

JIRA: https://issues.redhat.com/browse/CCXDEV-15960

Signed-off-by: Jeff Mesnil <jmesnil@redhat.com>
jmesnil added a commit to jmesnil/insights-operator that referenced this pull request Feb 2, 2026
Add the PRD that describe the required changes in the Insights Operator.

The changes to the insights-runtime-extractor are handled in openshift/insights-runtime-extractor#60.

JIRA: https://issues.redhat.com/browse/CCXDEV-15960

Signed-off-by: Jeff Mesnil <jmesnil@redhat.com>
@jmesnil
Copy link
Contributor Author

jmesnil commented Feb 3, 2026

/retest

4 similar comments
@jmesnil
Copy link
Contributor Author

jmesnil commented Feb 6, 2026

/retest

@jmesnil
Copy link
Contributor Author

jmesnil commented Feb 9, 2026

/retest

@jmesnil
Copy link
Contributor Author

jmesnil commented Feb 9, 2026

/retest

@jmesnil
Copy link
Contributor Author

jmesnil commented Feb 10, 2026

/retest

@openshift-ci
Copy link

openshift-ci bot commented Feb 10, 2026

@jmesnil: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant