Skip to content

bug: APISIX route sometimes returns 503 for Consul-discovered service #12880

@theytc1007

Description

@theytc1007

Current Behavior

Image

I am using APISIX to discover services registered in Consul. I have a route configured to proxy requests to these services.
Image
Image
Image

When I probe the Consul service directly (e.g., via its IP or Consul HTTP API), it always responds correctly. However, when I access the service through the APISIX route domain, the requests sometimes return HTTP 503.
Image

When I probe directly to consul service, it always work. However, when probe from route domain it sometimes return code 503. I want to know why, how to aviod this problem?

Questions:

  1. Why does APISIX return 503 even when the backend service is healthy according to Consul?
  2. How can I configure APISIX to avoid these intermittent 503 errors?

Any advice or best practices would be appreciated.

My apisix version is 3.13.0.

Expected Behavior

No response

Error Logs

No response

Steps to Reproduce

config.yaml:
Image

Image Image Image

Environment

  • APISIX version 3.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions