小编Viv*_*oel的帖子

基于源ip(IP子网)的HAProxy负载均衡

我有 x 集群。这个集群看起来像

Cluster 1
192.168.1. (Server type 1)
192.168.2. (Server type 2)
192.168.3.1 (Server type 3) <Redis server> 

Cluster 2
192.167.1. (Server type 1)
192.167.2. (Server type 2)
192.167.3.1 (Server type 3) <Redis server> 
Run Code Online (Sandbox Code Playgroud)

目前我正在用代码管理集群组配置。是否有可能使用 haproxy 调用一个域,并且根据源 ip 需要哪些重定向?例如

192.167.* request gets redirect to 192.167.3.1
Run Code Online (Sandbox Code Playgroud)

192.168.* request gets redirect to 192.168.3.1
Run Code Online (Sandbox Code Playgroud)

routing load-balancing haproxy

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

haproxy ×1

load-balancing ×1

routing ×1