最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

frontend - Haproxy unable to reach backed server - Stack Overflow

programmeradmin0浏览0评论

Im trying to use a server address for sending some data, this is my haprox_cfg file, either I'm getting a layer6 timeout failure or 503 error

frontend haproxy-health
          bind *:8080
          mode http
          monitor-uri /health
          http-request return status 200
        frontend http-in
          bind *:80
          mode http
          option httplog
          default_backend write-backend
        backend write-backend
          mode http
          option forwardfor
          option httpchk GET /api/v2/health
          http-request set-header Host <hostaddress:443>
          http-request set-header Authorization "Basic <encoded>"
          http-request set-header Content-Type "text/plain; charset=utf-8"
          log global
          # Define ACL rules for API paths
          server influx "hostaddress:443" ssl verify none inter 5s
'''
Either Im getting a layer6 error or
127.0.0.1:43908 [05/Feb/2025:11:58:23.406] http-in write-backend/influx 0/0/-1/-1/3323 503 217 - - SC-- 1/1/0/0/3 0/0 "GET /health HTTP/1.1"

Feb 05 12:23:20 Health check for server write-backend/influx failed, reason: Layer6 timeout, check duration: 5001ms, status: 0/2 DOWN.
Feb 05 12:23:20 [WARNING]  (12679) : Server write-backend/influx is DOWN. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
Feb 05 12:23:20 Server write-backend/influx is DOWN. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
Feb 05 12:23:20[ALERT]    (12679) : backend 'write-backend' has no server available!
发布评论

评论列表(0)

  1. 暂无评论