问题描述
我有一个ELB和后面的3个节点.
I have an ELB and 3 nodes behind it.
有人可以向我解释一下ELB在这些情况下会做什么:
Can someone please explain me what will ELB do in these scenarios:
- 客户端请求-> ELB-> Node1在请求中间失败(ELB超时)
- 客户端请求-> ELB-> Node1超时(服务器超时和运行状况检查尚未启动)
我特别想知道ELB是否将请求重试到另一个节点?
Particularly I'm wondering if ELB retries the request to another node?
我进行了测试,但似乎没有,但是也许我错过了一个设置.
I made a test and it doesn't seem to, but maybe there's a setting that I've missed.
谢谢
推荐答案
AWS Elastic Load Balancing服务使用运行状况检查来识别健康/不健康的Amazon EC2实例.如果实例标记为不正常,则不会有新流量发送到该服务器.一旦将其标识为Heathy,流量将再次发送到该实例.
The AWS Elastic Load Balancing service uses Health Checks to identify healthy/unhealthy Amazon EC2 instances. If an instance is marked as Unhealthy, then no new traffic will be sent to that server. Once it is identified as Heathy, traffic will once again be sent to the instance.
如果将请求发送到实例并且没有收到响应(由于应用程序失败或触发了超时),则该请求将不会重新发送,也不会发送到另一台服务器.重新发送请求取决于发起者(例如,用户或应用).
If a request is sent to an instance and no response is received (either because the app fails or a timeout is triggered), the request will not be resent nor sent to another server. It would be up to the originator (eg a user or an app) to resend the request.
这篇关于AWS ELB-如果节点发生故障,它将重试请求吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!