我有一个训练有素的模型,我可以毫无困难地部署。但是,查询API将收到响应:
服务器无法及时回复您的请求
一个简单的谷歌搜索(以及过去的经验)告诉我,这是Spray告诉我,响应花了太长时间。我希望能够增加超时但我无法找到如何配置引擎。
知道如何更改引擎使用的配置吗?
答案 0 :(得分: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
还有一些其他与超时相关的设置,您可能需要调整它们。