Skip to content

Mixed Target Failover Broken (Local target ignored when Newt target is Unhealthy) #2448

Description

@pinionless

Describe the Bug

I am running a mixed configuration for a single resource with two targets:

  • Newt Target: has health check.
  • Local Target, no health check possible (Status: Unknown / -).
    When the Newt target goes down and reports as Unhealthy, Pangolin does not use the Local target.
    Instead, it returns: no available server.
    I have to disable the unhealthy target to switch to local target.

Environment

  • OS Type & Version: Ubuntu 22.04
  • Pangolin Version: v1.15.2
  • Gerbil Version: latest
  • Traefik Version: 3.6.7
  • Newt Version: 1.9.0

To Reproduce

  1. Create a resource with two targets:
    Target A: Site = Newt, (Status: Healthy)
    Target B: Site = Local, (Status: Unknown)
  2. Verify traffic flows to Target A (Newt).
  3. Simulate Failure for Target A to become Unhealthy

Result: Request returns: no available server.. Traffic is not routed to Target B, even though is reachable from the Pangolin host.

Expected Behavior

Use local site if all other sites report unhealthy

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions