KRAKEND – 上下文超时已过

huangapple go评论59阅读模式
英文:

KRAKEND - context deadline exceeded

问题

当使用Krakend端点对API进行负载测试,每秒事务数(TPS)高达3000时,我们不断收到以下错误:
[KRAKEND] 2023/07/12 - 12:33:03.383 ▶ 错误 [ENDPOINT: /v1/sms/send] 上下文截止时间已超过

所有请求都以500内部服务器错误失败。有人能告诉我为什么会出现这个错误,以及如何预防这种情况吗?

我希望请求能够成功进行,因为应用程序能够处理每秒3000次的事务。

英文:

When performing load testing by hitting an API with Krakend endpoint with TPS upto 3000, we are continuously getting the below error:
[KRAKEND] 2023/07/12 - 12:33:03.383 ▶ ERROR [ENDPOINT: /v1/sms/send] context deadline exceeded

All the requests are failing with 500 Internal Server Error. Can anyone tell why this error comes and what all to take care to prevent this.

I'm expecting the requests go through as the application is capable to handle 3000 TPS.

答案1

得分: 1

您的后端正在达到超时。因此,性能不足。提高超时时间或使用适当的后端进行测试。

英文:

Your backend is reaching a timeout. So it's not performant enough. Raise the timeout or use a proper backend for testing.

huangapple
  • 本文由 发表于 2023年7月12日 20:42:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76670683.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定