如何使终点状态永久保持活动状态,无论终点是上升还是下降。
答案 0 :(得分:1)
如果发生超时,该端点将被挂起到30000ms(defualt)。如果对该端点有任何请求,则在暂停时间内,esb将忽略该请求。因此,通过禁用端点挂起将使端点状态保持活动状态总是
查看这篇文章[1],了解如何禁用暂停时间。
答案 1 :(得分:0)
设置以下高级端点选项
以下是端点配置示例
<endpoint xmlns="http://ws.apache.org/ns/synapse" name="SampleEndpoint">
<address uri="http://sample.com/services">
<suspendOnFailure>
<errorCodes>-1</errorCodes>
<progressionFactor>1.0</progressionFactor>
</suspendOnFailure>
<markForSuspension>
<errorCodes>-1</errorCodes>
<retriesBeforeSuspension>0</retriesBeforeSuspension>
<retryDelay>0</retryDelay>
</markForSuspension>
</address>
</endpoint>