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

NETOBSERV-578: allow passing env vars to FLP #180

Merged
merged 1 commit into from
Oct 10, 2022
Merged

NETOBSERV-578: allow passing env vars to FLP #180

merged 1 commit into from
Oct 10, 2022

Conversation

mariomac
Copy link
Contributor

Forwarding environment variables to FLP will allow tuning some performance parameters from e.g. the Go runtime.

Here is an example of trading with CPU/Memory by setting GOGC=400 vs GOGC=200 vs GOGC=100 (default value, unset):

image

image

@mariomac mariomac added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Oct 10, 2022
@openshift-ci
Copy link

openshift-ci bot commented Oct 10, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from mariomac by writing /assign @mariomac in a comment. For more information see:The Kubernetes Code Review Process.

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

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

@github-actions
Copy link

New image: ["quay.io/netobserv/network-observability-operator:5b6e4c6"]. It will expire after two weeks.

Copy link
Contributor

@jpinsonneau jpinsonneau left a comment

Choose a reason for hiding this comment

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

👍

@openshift-ci openshift-ci bot added the lgtm label Oct 10, 2022
@mariomac mariomac merged commit e816217 into netobserv:main Oct 10, 2022
@mariomac mariomac deleted the envvars branch October 10, 2022 13:34
Comment on lines +354 to +359
// env allows passing custom environment variables to the Flowlogs-Pipeline pod.
// This field is useful for passing some concrete performance-tuning options
// (e.g. GOGC, GOMAXPROCS) that shouldn't be
// publicly exposed as part of the FlowCollector descriptor.
//+optional
Env map[string]string `json:"env,omitempty"`
Copy link
Member

@jotak jotak Oct 10, 2022

Choose a reason for hiding this comment

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

As long as it's there, it's publicly exposed. I'm not 100% sure what we can do here ; e.g. in terms of support, if people start to put any env variable, how does it work, should we still support it? We should consider that first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm ok-to-test To set manually when a PR is safe to test. Triggers image build on PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants