HAProxy,如何将variables“dst”(IP客户端)添加到选项httpchk GET行

我有memcached集群与couchbase。 为了平衡使用HAProxy。 但是检查健康有问题。

为了检查是否符合要求:

curl -v http://10.0.110.1:8091/pools/default/buckets/default/nodes/10.0.110.1%3A8091/stats 

响应是200或404。

在HAProxy:

 option httpchk GET /pools/default/buckets/default/nodes/10.0.110.1%3A8091/stats server memcached1 10.0.110.1:11211 check inter 3s port 8091 server memcached2 10.0.110.2:11211 check inter 3s port 8091 server memcached3 10.0.110.3:11211 check inter 3s port 8091 

问题是“/ pools / default / buckets / default / nodes / 10.0.110.1 %3A8091 / stats”。 如何添加主机的variablesIP。

也许使用一个variables“dst”。 但没有为我工作:

 option httpchk GET /pools/default/buckets/default/nodes/%25%5Bdst%5D%3A8091/stats 

请帮我解决这个问题。

为什么不在每个指向Couchbase存储桶的应用程序服务器节点上安装Couchbase的Moxi(memcached代理)? 那么你得到了所有的Couchbase的HAfunction,但不需要修改你的应用程序代码? 也不需要HAProxy。 Moxi将代表您使用Couchbase的分片function来平均分配数据。