integration: add HA ping failover test
Block ping callbacks via iptables while keeping the Noise session alive to simulate a zombie-connected router. Verify the prober detects it, fails over, and does not flap on recovery. Updates #2129 Updates #2902
This commit is contained in:
parent
0378e2d2c6
commit
af26bab17a
2 changed files with 245 additions and 0 deletions
|
|
@ -273,6 +273,13 @@ func WithTuning(batchTimeout time.Duration, mapSessionChanSize int) Option {
|
|||
}
|
||||
}
|
||||
|
||||
func WithHAProbing(interval, timeout time.Duration) Option {
|
||||
return func(hsic *HeadscaleInContainer) {
|
||||
hsic.env["HEADSCALE_NODE_ROUTES_HA_PROBE_INTERVAL"] = interval.String()
|
||||
hsic.env["HEADSCALE_NODE_ROUTES_HA_PROBE_TIMEOUT"] = timeout.String()
|
||||
}
|
||||
}
|
||||
|
||||
func WithTimezone(timezone string) Option {
|
||||
return func(hsic *HeadscaleInContainer) {
|
||||
hsic.env["TZ"] = timezone
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue