简体   繁体   English

wso2 esb重试配置

[英]wso2 esb retry configuration

I am using wso2 esb4.9 on windows7. 我在Windows7上使用wso2 esb4.9。 The JDK is 7.0. JDK是7.0。

I want to let esb to retry 5 times when timeout error happens. 我想让esb在发生超时错误时重试5次。

ESB log display 5 times retry... But there is no retry log is printed... ESB日志显示5次重试...但是没有打印重试日志...

<endpoint name="Sample_First" statistics="enable" >
    <address uri="http://localhost/myendpoint" statistics="enable" trace="disable">
        <timeout>
            <duration>60000</duration>
        </timeout>

        <markForSuspension>
            <errorCodes>101504, 101505</errorCodes>
            <retriesBeforeSuspension>5</retriesBeforeSuspension>
            <retryDelay>1</retryDelay>
        </markForSuspension>

        <suspendOnFailure>
            <errorCodes>101500, 101501, 101506, 101507, 101508</errorCodes>
            <initialDuration>1000</initialDuration>
            <progressionFactor>2</progressionFactor>
            <maximumDuration>60000</maximumDuration>
        </suspendOnFailure>

    </address>
</endpoint>

As I understand you are asking whether ESB tries to connect to the endpoint 4 more times if it gets timed out (fails to connect). 据我了解,您正在询问ESB是否超时(尝试连接失败)尝试再连接4次。 This is not the idea of <retriesBeforeSuspension> tag. 这不是<retriesBeforeSuspension>标记的想法。 This integer means ESB marks that endpoint as a SUSPENDED endpoint if 4(as per your configuration) more requests get timed out consecutively. 此整数表示如果连续有4个(根据您的配置)请求超时,则ESB将该端点标记为SUSPENDED端点。 These other requests should be done manually and its not done by ESB automatically. 这些其他请求应手动完成,而不是由ESB自动完成。 Thats the reason you don't see retry log 5 times. 这就是您没有看到5次重试日志的原因。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM