• Vitaly Lipatov's avatar
    fix route-health: bulk route flush + wider health window · 5f8a5bc3
    Vitaly Lipatov authored
    flush_gw_routes() deleted routes one-by-one in a loop (ip route del x127k),
    which hung the oneshot service for 20+ minutes under netlink contention and
    froze ALL gateway health monitoring. Replace with a single kernel-level
    "ip route flush table T via GW" -- the same idiom route-update.sh already uses
    for stale-gateway cleanup -- guarded by timeout 60.
    
    Also widen the ping and vpn_status InfluxDB query windows from 1m to 3m. The
    queries use last(), so a wider window does not delay reaction to a real outage;
    it only stops an empty result (=> false "dead") when telegraf momentarily
    starves under load. Together both changes break the flush->load->stale->flush
    feedback loop.
    
    Verified on igw: cycle time ~18s (was 20+ min), table 202 v6 routes via the
    ikev2.vdska peer restored to 127259.
    Co-Authored-By: 's avatarClaude <noreply@anthropic.com>
    5f8a5bc3
Name
Last commit
Last update
..
docs Loading commit data...
ikev2-keepalive Loading commit data...
scripts Loading commit data...
.gitignore Loading commit data...
a_add_manual.sh Loading commit data...
a_check_ip.sh Loading commit data...
a_del_manual.sh Loading commit data...
a_get_net.sh Loading commit data...
both_provs.sh Loading commit data...
check-vpn-status.sh Loading commit data...
check_connectivity.sh Loading commit data...
collect-googlevideo.sh Loading commit data...
egw_add_manual.sh Loading commit data...
egw_del_manual.sh Loading commit data...
fetch_antifilter.download.sh Loading commit data...
fetch_antifilter.network.sh Loading commit data...
fetch_lists.sh Loading commit data...
functions Loading commit data...
get_ip6s_egw.sh Loading commit data...
get_ip6s_z-i.sh Loading commit data...
get_ips_egw.sh Loading commit data...
get_ips_z-i.sh Loading commit data...
get_traffic.sh Loading commit data...
ogw_del_manual.sh Loading commit data...
only_ekvant.sh Loading commit data...
only_prometey.sh Loading commit data...
restart_check_connectivity.sh Loading commit data...
route-health.service Loading commit data...
route-health.sh Loading commit data...
route-health.timer Loading commit data...
route-stats-metrics.sh Loading commit data...
route-update.md Loading commit data...
route-update.service Loading commit data...
route-update.sh Loading commit data...
route-update.timer Loading commit data...
route-web-api.md Loading commit data...
route-web-api.py Loading commit data...
route-web-api.service Loading commit data...
set_hop.sh Loading commit data...
switch_back.sh Loading commit data...
switch_to_yota.sh Loading commit data...
transmission.sh Loading commit data...
update_egw.sh Loading commit data...
update_egw6.sh Loading commit data...
update_z-i-stop.sh Loading commit data...
update_z-i.sh Loading commit data...
update_z-i6.sh Loading commit data...
vpnc-script-minimal.sh Loading commit data...