0

我有一个训练有素的模型,我可以毫无困难地部署它。但是,查询 API 将收到响应:

服务器无法及时响应您的请求

一个简单的谷歌搜索(和过去的经验)告诉我这是喷雾告诉我响应时间太长了。我希望能够增加超时,但我找不到如何配置引擎。

知道如何更改引擎使用的配置吗?

4

1 回答 1

1

喷雾文档

# 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

还有一些其他与超时相关的设置,您可能需要调整。

于 2016-05-13T22:04:58.913 回答