WSO2 EI如何增加端点超时?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WSO2 EI如何增加端点超时?相关的知识,希望对你有一定的参考价值。

我已经设置了配置和端点超时但它的响应低于响应。

如果我想增加端点超时,我应该注意什么?

<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中调整超时变量所需的配置。请再次参考。

https://docs.wso2.com/display/EI611/WSO2+Enterprise+Integrator+Best+Practices#WSO2EnterpriseIntegratorBestPractices-Workingwithendpoints

问题中共享的超时限制非常异常,为5小时。

请记住,以下..

  1. http.socket.timeout> max(全局端点超时,各个端点的超时)。
  2. 此外,如果您在端点级别配置了超时值,则不会考虑该端点的全局超时值。对于未配置超时值的所有其他端点,全局值将被视为超时值。

以上是关于WSO2 EI如何增加端点超时?的主要内容,如果未能解决你的问题,请参考以下文章

注入端点参数 wso2

如何启动仪表板微积分器 wso2 ei 7.0

WSO2 ESB / EI / AM 汉化方法

WSO2 ESB / EI / AM 汉化方法

WSO2 ESB / EI / AM 汉化方法

如何增加特定端点的超时?