【发布时间】:2021-01-22 13:13:57
【问题描述】:
我将一个大型 3D 模型部署到 aws sagemaker。推理需要 2 分钟或更长时间。从 Python 调用预测器时出现以下错误:
An error occurred (ModelError) when calling the InvokeEndpoint operation: Received server error (0) from model with message "Your invocation timed out while waiting for a response from container model. Review the latency metrics for each container in Amazon CloudWatch, resolve the issue, and try again."'
在 Cloud Watch 中,我还看到容器正在处理时出现一些 PING 超时:
2020-10-07T16:02:39.718+02:00 2020/10/07 14:02:39 https://forums.aws.amazon.com/ 106#106: *251 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 10.32.0.2, server: , request: "GET /ping HTTP/1.1", upstream: "http://unix:/tmp/gunicorn.sock/ping", host: "model.aws.local:8080"
如何增加调用超时时间?
或者有没有办法对 sagemaker 端点进行异步调用?
【问题讨论】:
-
您的赏金将在几个小时后结束。我的回答够了吗?如果是这样,请考虑接受或授予赏金,否则请考虑澄清问题或就您遇到的任何问题对我的回答发表评论。 stackoverflow.com/help/bounty
标签: python amazon-web-services timeout amazon-sagemaker inference