Skip to content

Ensure performance tuning is always applied#43670

Merged
thaJeztah merged 1 commit intomoby:masterfrom
evol262:ipvs-module-idempotency
May 31, 2022
Merged

Ensure performance tuning is always applied#43670
thaJeztah merged 1 commit intomoby:masterfrom
evol262:ipvs-module-idempotency

Conversation

@evol262
Copy link

@evol262 evol262 commented May 31, 2022

Previously, with the patch from #43146, it was possible for a
network configured with a single ingress or load balancer on a
distribution which does not have the ip_vs kernel module loaded
by default to try to apply sysctls which did not exist yet, and
subsequently dynamically load the module as part of ipvs/netlink.go.

This module is vendored, and not a great place to try to tie back
into core libnetwork functionality, so also ensure that the sysctls
(which are idempotent) are called after ingress/lb creation once
ipvs has been initialized.

Signed-off-by: Ryan Barry [email protected]

Previously, with the patch from moby#43146, it was possible for a
network configured with a single ingress or load balancer on a
distribution which does not have the `ip_vs` kernel module loaded
by default to try to apply sysctls which did not exist yet, and
subsequently dynamically load the module as part of ipvs/netlink.go.

This module is vendored, and not a great place to try to tie back
into core libnetwork functionality, so also ensure that the sysctls
(which are idempotent) are called after ingress/lb creation once
`ipvs` has been initialized.

Signed-off-by: Ryan Barry <[email protected]>
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah
Copy link
Member

All green now; bringing this in; thanks!

@thaJeztah thaJeztah merged commit 5a8304c into moby:master May 31, 2022
evol262 pushed a commit to evol262/libnetwork that referenced this pull request May 31, 2022
Pull moby/moby#43146 and
moby/moby#43670 into 20.10

relates to #35082, moby#2491

Previously, values for expire_quiescent_template, conn_reuse_mode,
and expire_nodest_conn were set only system-wide. Also apply them
for new lb_* and ingress_sbox sandboxes, so they are appropriately
propagated

Signed-off-by: Ryan Barry <[email protected]>
evol262 pushed a commit to evol262/libnetwork that referenced this pull request May 31, 2022
Pull moby/moby#43146 and
moby/moby#43670 into 20.10

relates to #35082, moby#2491

Previously, values for expire_quiescent_template, conn_reuse_mode,
and expire_nodest_conn were set only system-wide. Also apply them
for new lb_* and ingress_sbox sandboxes, so they are appropriately
propagated

Signed-off-by: Ryan Barry <[email protected]>
evol262 pushed a commit to evol262/libnetwork that referenced this pull request May 31, 2022
Pull moby/moby#43146 and
moby/moby#43670 into 20.10

relates to #35082, moby#2491

Previously, values for expire_quiescent_template, conn_reuse_mode,
and expire_nodest_conn were set only system-wide. Also apply them
for new lb_* and ingress_sbox sandboxes, so they are appropriately
propagated

Signed-off-by: Ryan Barry <[email protected]>
evol262 pushed a commit to evol262/libnetwork that referenced this pull request Jun 1, 2022
Pull moby/moby#43146 and
moby/moby#43670 into 20.10

relates to #35082, moby#2491

Previously, values for expire_quiescent_template, conn_reuse_mode,
and expire_nodest_conn were set only system-wide. Also apply them
for new lb_* and ingress_sbox sandboxes, so they are appropriately
propagated

Signed-off-by: Ryan Barry <[email protected]>
Co-authored-by: Bjorn Neergaard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants