gpt4 book ai didi

WSO2 EI 如何增加端点超时?

转载 作者:行者123 更新时间:2023-12-04 17:47:16 25 4
gpt4 key购买 nike

我已经设置了配置和端点超时,但它有以下响应。

增加端点超时需要注意什么?

<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小时。

记住,以下..

  • http.socket.timeout > max(全局端点超时,单个端点的超时)。
  • 此外,如果您在端点级别配置了超时值,则不会考虑该端点的全局超时值。对于没有配置超时值的所有其他端点,全局值被视为超时值。
  • 关于WSO2 EI 如何增加端点超时?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47884415/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com