[英]WSO2 EI how to increasing Endpoint timeout?
我已经设置了configure和endpoint超时,但是它的响应如下。
如果要增加端点超时,应该注意什么?
<html>
<body>
<h1>504 Gateway Time-out</h1>
The server didn't respond in time.
</body>
</html>
设置超时有3个步骤,但它似乎是错误的。
1)在synapse.properties(EI_HOME \\ conf \\ synapse.properties)中定义的全局超时
synapse.global_timeout_interval = 17000000
2)在passthru-http.properties(EI_HOME \\ conf \\ passthru-http.properties)中定义的套接字超时
http.socket.timeout = 18000000
3)还要在API中设置超时。
<?xml version="1.0" encoding="UTF-8"?>
<endpoint name="ep_dsData" xmlns="http://ws.apache.org/ns/synapse">
<http method="post" uri-template="{uri.var.origin.ds}/api/v1/GetData">
<timeout>
<duration>17000000</duration>
<responseAction>fault</responseAction>
</timeout>
</http>
</endpoint>
以下链接明确说明了用于调整WSO2 EI中的超时变量所需的配置。 请再次参考。
问题中共享的超时限制非常异常,为5个小时。
请记住以下内容。
http.socket.timeout> max(全局端点超时,各个端点的超时)。
同样,如果您在端点级别配置了超时值,则该端点也不会考虑全局超时值。 对于所有其他未配置超时值的端点,将全局值视为超时值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.