预测 IO:为引擎配置超时
Prediction IO: Configure Timeouts for Engine
我有一个训练有素的模型,我可以毫不费力地部署它。但是,查询 API 将收到响应:
The server was not able to produce a timely response to your request
一个简单的 google 搜索(和过去的经验)告诉我这是 Spray 告诉我响应时间太长。我希望能够增加超时时间,但找不到如何配置引擎。
知道如何更改引擎使用的配置吗?
# The time after which an idle connection will be automatically closed.
# Set to `infinite` to completely disable idle connection timeouts.
idle-timeout = 60 s
# If a request hasn't been responded to after the time period set here
# a `spray.http.Timedout` message will be sent to the timeout handler.
# Set to `infinite` to completely disable request timeouts.
request-timeout = 20 s
还有一些其他与超时相关的设置,您可能需要调整。
我有一个训练有素的模型,我可以毫不费力地部署它。但是,查询 API 将收到响应:
The server was not able to produce a timely response to your request
一个简单的 google 搜索(和过去的经验)告诉我这是 Spray 告诉我响应时间太长。我希望能够增加超时时间,但找不到如何配置引擎。
知道如何更改引擎使用的配置吗?
# The time after which an idle connection will be automatically closed.
# Set to `infinite` to completely disable idle connection timeouts.
idle-timeout = 60 s
# If a request hasn't been responded to after the time period set here
# a `spray.http.Timedout` message will be sent to the timeout handler.
# Set to `infinite` to completely disable request timeouts.
request-timeout = 20 s
还有一些其他与超时相关的设置,您可能需要调整。