-
Notifications
You must be signed in to change notification settings - Fork 759
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
3 ping packet loss on CARP failover from Master -> Slave, fine failing back #3163
Comments
|
You can alter the demotion factor while in maintenance, the option sets the advskew on the interface, but there might be a small glitch (I'm not 100% sure) core/src/etc/inc/interfaces.inc Lines 1685 to 1687 in 2c61e06
|
|
By the time I've entered maintenance, the loss has already happened though? Or am I missing something? :)
If instead:
|
|
yes, your Difference is after reboot, it falls back, persistent mode keeps the advskew. It would be more fluent if persistent first would set net.inet.carp.demotion and kept the advskew for the next boot. |
|
Surely this should be classified as a bug then? Or is the 3 packet loss accepted as part of the current HA implementation? |
|
a feature request sure, a bug is debatable. |
|
I'd like to verify this on some systems before any changes are done. Are you sure your default demotions are good? |
|
@mimugmail thank you! |
|
@mimugmail as far as I can tell, no errors in the logs, sessions aren't lost etc. |
|
@mimugmail ping :) |
|
This week only homeoffice, sorry. I also have to hunt the 3 seconds timer when unplugging a cable from LACP bundle (someone an idea?). Next Wednesday I can test this. Sorry for delay :/ |
|
No worries, just curious about the state :) |
|
@AdSchellevis I can confirm that there's no packet loss when demoting to 240. Which doesn't happen when setting to mnt mode manually. Might confuse users .. perhaps you know the impact better than me :) |
|
@mimugmail I think you're looking for 0e9912c |
|
Best code in town, works great! :) |
|
Adding it to 19.1.8, thanks! |
Have HA setup and working well, however I noticed that when failing from Master -> Slave by enabling persistent carp maintenance mode, 3 pings are lost (state is synced fine, ssh sessions remain etc). When failing back from Slave -> Master everything is fine, no loss.
I ran a quick Google and it turned up the below, from pfSense:
https://forum.netgate.com/topic/123871/carp-master-manual-switch-introduces-packet-loss
The suggested workaround there seems to fix the problem. Executing the below on the master causes traffic to shift to the slave with 0 ping loss:
sysctl net.inet.carp.demotion 240
Is this a known/accepted issue?
The text was updated successfully, but these errors were encountered: