Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在运行两个实例,一个在新加坡,一个在俄勒冈州。如何让我的应用根据区域连接最近的运行实例?
如果我只能提供一个 IP 来针对这两个实例并根据延迟进行选择,有没有办法。
使用Route 53 基于延迟的路由:
CNAME
Latency
而已!然后域名将自动重定向到具有最低延迟连接的实例。
建议使用弹性 IP 地址以防实例停止(这可能导致 IP 地址更改)。
不可能“只提供一个针对两个实例的 IP”——相反,您需要使用domain name,它将解析为两个实例的 IP 地址之一。