简体   繁体   English

什么应该首先超时(ALB 或服务器)

[英]What should timeout first (ALB or Server)

We have a server and an ALB, I was wondering what is the best practice for request timeouts.我们有一个服务器和一个 ALB,我想知道请求超时的最佳实践是什么。

Currently we have it configured such:目前我们将其配置为:

  • ALB request timeout is 120sec ALB 请求超时为 120 秒
  • Server request timeout is 115sec服务器请求超时为 115 秒

My gut tells me that the server should timeout first so the server has control of how to respond to the client, but wanted to see if there is any best practice when it comes to this?我的直觉告诉我,服务器应该先超时,这样服务器才能控制如何响应客户端,但想看看在这方面是否有任何最佳实践?

My gut tells me that the server should timeout first so the server has control of how to respond to the client我的直觉告诉我,服务器应该先超时,这样服务器才能控制如何响应客户端

This is absolutely how I would do it.这绝对是我会做的。 Leave the ALB timeouts for instances like when your server has stopped responding due to a crash or something.保留 ALB 超时,例如当您的服务器由于崩溃或其他原因停止响应时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM