• Laurent Bernaille's avatar
    Handle UDP graceful termination · 437edead
    Laurent Bernaille authored
    The current logic is to delete a RS if the number of active connections
    is 0. This makes sense for TCP but for UDP the number of active
    connections is always 0. This is an issue for DNS queries because the RS
    will be deleted but the IPVS connection will remain until it expires
    (5mn by default) and if there are a lot of DNS queries, the port will be
    reused and queries blackholed. Of course for this to work properly the
    service needs to continue to serve queries until the connections expire
    (this works fine with the lameduck option of coredns).
    437edead
graceful_termination.go 6.32 KB