英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论