经过 floating IP 访问 VIP - 天天5分钟玩转 OpenStack(126)

前面咱们是直接用 curl 测试 VIP,在更为真实的场景中一般会使用 floating IP 访问 VIP。web

下面咱们给 VIP 关联一个 floating IP,再进行测试。网络

访问 Project -> Compute -> Access & Security,打开 Floating IPs 标签页,点击 “Allocate IP to Project” 按钮。curl

在下拉列表中选择 “ext_net”,Neutron 将从该网络中分配 floating IP。学习

点击 “Allocate IP”。测试

分配到的 IP 为 “10.10.10.7”。 点击 “Associate” 按钮。url

在 “Port to be associated” 列表中选择 “VIP for web servers: 172.16.100.11” 并点击 “Associate”。spa

成功将外网 IP 10.10.10.7 关联到 VIP。server

下面是在 IP 为 10.10.10.4 的 instance 中进行 curl 测试。ci

floating IP 生效,load balaner 工做正常。it

LBaaS 小节

LBaaS 为租户提供了横向扩展应用的能力。
租户能够将外部请求 balancing 到多个 instance 上,并经过 monitor 实现应用的高可用。

LBaaS 当前的实现是基于 HAProxy,其功能已经可以知足普通业务需求。

至此,Linux Bridge 实现 Neutron 网络的所有内容已经讨论完,下节咱们开始学习 Open vSwitch 实现。

相关文章
相关标签/搜索