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

load balancing - uri balance in several haproxy servers - Stack Overflow

programmeradmin1浏览0评论

I have 3 haproxy nodes with the same config

backend nginx_cache
    balance uri path-only
    hash-type consistent
    option httpchk HEAD /ping/alive
    default-server check maxconn 32000
    fullconn 250000
    server test1 192.168.1.2:8080
    server test2 192.168.1.3:8080
    server test3 192.168.1.4:8080

How can I ensure that each of the HAProxy servers uses the same hashing algorithm and directs traffic to only one server for the same URI path?

I tried passing the path-server mapping to Redis via a Lua script, but I encountered issues with connecting Lua to the Redis cluster.

Any ideas on how to solve this issue?

发布评论

评论列表(0)

  1. 暂无评论