Wso2 端点[状态:挂起]
当wso2 ESB端点尝试调用的URL在一秒钟内不可用时,我们面临一个问题,wso2 ESB端点将被挂起3000毫秒,因为这种挂起,即使后端URL可用,对同一端点的下一次调用也会失败 下面是我们在端点挂起时得到的相同日志,以及我们现在使用的端点配置Wso2 端点[状态:挂起],wso2,wso2esb,Wso2,Wso2esb,当wso2 ESB端点尝试调用的URL在一秒钟内不可用时,我们面临一个问题,wso2 ESB端点将被挂起3000毫秒,因为这种挂起,即使后端URL可用,对同一端点的下一次调用也会失败 下面是我们在端点挂起时得到的相同日志,以及我们现在使用的端点配置 TID: [-1234] [] [2019-10-30 15:08:39,121] WARN {org.apache.synapse.endpoints.EndpointContext} - Endpoint : conf//endpoint/e
TID: [-1234] [] [2019-10-30 15:08:39,121] WARN {org.apache.synapse.endpoints.EndpointContext} - Endpoint : conf//endpoint/epsomebackendurl with address https://somebackendurl.com will be marked SUSPENDED as it failed
TID: [-1234] [] [2019-10-30 15:08:39,121] WARN {org.apache.synapse.endpoints.EndpointContext} - Suspending endpoint : conf//endpoint/epsomebackendurl with address https://somebackendurl.com - current suspend duration is : 30000ms - Next retry after : Wed Oct 30 15:09:09 GMT 2019
Endpoint Configuration
<?xml version="1.0" encoding="UTF-8"?>
<endpoint xmlns="http://ws.apache.org/ns/synapse"
name="conf//endpoint/epsomebackendurl">
<property name="System-Name" value="JUNIFER" scope="default"
type="STRING"/>
<http uri-template="https://somebackendurl.com"
method="get">
<suspendOnFailure>
<progressionFactor>1.0</progressionFactor>
</suspendOnFailure>
<markForSuspension>
<retriesBeforeSuspension>0</retriesBeforeSuspension>
<retryDelay>0</retryDelay>
</markForSuspension>
</http>
</endpoint>
TID:[-1234][[2019-10-30 15:08:39121]警告{org.apache.synapse.endpoints.EndpointContext}-Endpoint:conf//Endpoint/epsomebackendurl,带地址https://somebackendurl.com 失败时将被标记为暂停
TID:[-1234][[2019-10-30 15:08:39121]警告{org.apache.synapse.endpoints.EndpointContext}-挂起端点:conf//endpoint/epsomebackendurl,地址为https://somebackendurl.com -当前挂起持续时间:30000ms-下一次重试时间:2019年10月30日星期三15:09:09 GMT
端点配置
1
0
0
请让我知道我们还有没有其他办法可以阻止endpint被暂停
我们正在使用wso2esb-5.0.0版本
感谢默认行为是对Synapse endpoint的请求进行故障处理,该端点将暂停30000ms 如果要停止挂起,则永远不会挂起以下端点
<endpoint name="NoSuspendEndpoint">
<address uri="http://localhost:9000/services/SimpleStockQuoteService">
<timeout>
<duration>30000</duration>
<responseAction>fault</responseAction>
</timeout>
<suspendOnFailure>
<errorCodes>-1</errorCodes>
<initialDuration>0</initialDuration>
<progressionFactor>1.0</progressionFactor>
<maximumDuration>0</maximumDuration>
</suspendOnFailure>
<markForSuspension>
<errorCodes>-1</errorCodes>
</markForSuspension>
</address>
30000
过错
-1
0
1
0
-1
解决了您的问题?谢谢您的建议Pramodya。我们已经在我们的测试环境中实现了这个变更,并对其进行了监控。希望这能解决我们的问题。另外,这两种配置的唯一区别是markonsuspension标记中没有提到的错误代码。这就是造成不同的原因吗?标记悬挂元件标记悬挂终点。所以我认为最好还是保持上面的样子。