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

I have 3 haproxy nodes with the same configbackend nginx_cachebalance uri path-onlyhash-type consisten

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?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745635464a4637365.html

相关推荐

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

    I have 3 haproxy nodes with the same configbackend nginx_cachebalance uri path-onlyhash-type consisten

    2小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信