-
Notifications
You must be signed in to change notification settings - Fork 193
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
Automated backport of #2543: Shortening datapath downtime for libreswan cable #2598
Automated backport of #2543: Shortening datapath downtime for libreswan cable #2598
Conversation
🤖 Created branch: z_pr2598/yboaron/automated-backport-of-#2543-origin-release-0.13 |
pkg/cable/libreswan/libreswan.go
Outdated
if !i.plutoStarted { | ||
// Ensure Pluto is started | ||
if err := i.runPluto(); err != nil { | ||
logger.FatalOnError(err, "Error running Pluto") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn’t supported on 0.13, you need to use klog
.
Currently there is about 2 seconds of downtime in datapath for libreswan cable when the gateway pod restarts. When Pluto starts running [1] the IPsec datapath rules created by the previous GW pod are cleared, and traffic is only recovered after ConnectToEndpoint events are handled by the libreswan cable driver. This PR reduces datapath downtime by: A. Checking Pluto control socket status at faster rate B. Starting Pluto right before the first ConnectToEndpoint event is handled by libreswan cable driver. With this PR, the datapath downtime is reduced to ~0.5 seconds. [1] https://github.com/submariner-io/submariner/blob/devel/pkg/cable/libreswan/libreswan.go#L158 Signed-off-by: Yossi Boaron <yboaron@redhat.com>
beea115
to
dc62215
Compare
🤖 Closed branches: [z_pr2598/yboaron/automated-backport-of-#2543-origin-release-0.13] |
Backport of #2543 on release-0.13.
#2543: Shortening datapath downtime for libreswan cable
For details on the backport process, see the backport requests page.