2.11.5. 测试 HAProxy 配置
在 HAProxy 节点上,检查 以确保出现来自 keepalived 配置的虚拟 IP 地址。
[root@haproxy]# ip addr show
在 calamari 节点上,查看您是否能通过负载平衡器配置访问网关节点。例如:
[root@haproxy]# wget haproxy
这应该返回相同的结果,如下:
[root@haproxy]# wget rgw1
如果返回包含以下内容的 index.html 文件:
<?xml version="1.0" encoding="UTF-8"?>
<ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Owner>
<ID>anonymous</ID>
<DisplayName></DisplayName>
</Owner>
<Buckets>
</Buckets>
</ListAllMyBucketsResult>
然后,您的配置可以正常工作。