Skip to content

New environment variable for control set_import_users() #1189

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

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

ovalenti
Copy link
Contributor

@ovalenti ovalenti commented Jun 5, 2023

Description

ROX_COLLECTOR_SET_IMPORT_USERS defaults to false, and is used to configure sinsp and its user-mgmt subsystem.

This is intended as a safeguard in case we would need to reenable it; and was deactivated to circumvent a memory management issue (CRI not available => containers never freed in user.cpp)
A detailed explanation of the changes in your PR.

Feel free to remove this section if it is overkill for your PR, and the title of your PR is sufficiently descriptive.

Checklist

  • Investigated and inspected CI test results
  • Setting the env var changes the config and can be seen in the logs

ROX_COLLECTOR_SET_IMPORT_USERS defaults to false, and is used
to configure sinsp and its user-mgmt subsystem.

This is intended as a safeguard in case we would need to reenable
it; and was deactivated to circumvent a memory management issue
(CRI not available => containers never freed in user.cpp)
@openshift-ci
Copy link

openshift-ci bot commented Jun 5, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link
Collaborator

@Stringy Stringy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@github-actions
Copy link

github-actions bot commented Jun 5, 2023

Kernel Method Without Collector Time (secs) With Collector Time (secs) Baseline median (secs) Collector median (secs) PValue
rhel.rhel-8 ebpf 117.824 123.595 204.92 213.7 🟢
ubuntu-os.ubuntu-1804-lts ebpf 165.096 158.775 206.11 213.49 🟢
ubuntu-os.ubuntu-2004-lts ebpf 251.259 245.713 236.1 234.97 🟢
ubuntu-os.ubuntu-2204-lts ebpf 137.268 141.598 222.56 229.05 🟢

@ovalenti ovalenti marked this pull request as ready for review June 5, 2023 09:21
@ovalenti ovalenti requested a review from a team as a code owner June 5, 2023 09:21
Copy link
Contributor

@erthalion erthalion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but probably ...SET... is not needed. sinsp uses it as verb, so ROX_COLLECTOR_IMPORT_USERS would be more straightforward.

@ovalenti
Copy link
Contributor Author

ovalenti commented Jun 5, 2023

Looks good, but probably ...SET... is not needed. sinsp uses it as verb, so ROX_COLLECTOR_IMPORT_USERS would be more straightforward.

It makes sense. I based my choice on the CURL flag, since it is similarly setting configuration for an other component, whereas flags like the core_bpf hard fail are behaviors of the collector logic itself.

@erthalion
Copy link
Contributor

Looks good, but probably ...SET... is not needed. sinsp uses it as verb, so ROX_COLLECTOR_IMPORT_USERS would be more straightforward.

It makes sense. I based my choice on the CURL flag, since it is similarly setting configuration for an other component, whereas flags like the core_bpf hard fail are behaviors of the collector logic itself.

Ah, I see. There seems to be some inconsistency here, so I don't mind it be either way.

@ovalenti ovalenti merged commit 74c30b1 into master Jun 5, 2023
@ovalenti ovalenti deleted the ovalenti/env_var_import_users branch June 5, 2023 09:41
ovalenti added a commit that referenced this pull request Jun 6, 2023
ROX_COLLECTOR_SET_IMPORT_USERS defaults to false, and is used
to configure sinsp and its user-mgmt subsystem.

This is intended as a safeguard in case we would need to reenable
it; and was deactivated to circumvent a memory management issue
(CRI not available => containers never freed in user.cpp)
ovalenti added a commit that referenced this pull request Jun 15, 2023
* Disable the import-users flag (#1186)

When the CRI is not available, the containers are never declared
destroyed; and the user-manager keeps user information forever.

* New environment variable to control set_import_users() (#1189)

ROX_COLLECTOR_SET_IMPORT_USERS defaults to false, and is used
to configure sinsp and its user-mgmt subsystem.

This is intended as a safeguard in case we would need to reenable
it; and was deactivated to circumvent a memory management issue
(CRI not available => containers never freed in user.cpp)
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.

3 participants