...
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
XML configuration
Info | ||
---|---|---|
| ||
You can configure the Failover endpoint using XML. Click on Switch to source view link in the Failover Group page. |
Code Block | ||
---|---|---|
| ||
<failover> <endpoint .../>+ </failover> |
...
UI configuration
The following page is opened by clicking Failover Group in the Add Endpoint tab of the Manage Endpoints page.
...
- Enter a name for the failover group endpoint, and if you want to add any properties, click Add Property and specify the properties.
- To add a child endpoint to the failover endpoint, click Add Child, and then select the required endpoint type from the list.
- Do the following:
- Enter the basic details for the child endpoint, such as the name and address.
- Click Show Advanced Options and specify the advanced options you want for this endpoint.
- To add properties to the child endpoint, click Add Property and specify the properties.
- Click Update.
- Add more child endpoints as needed, and then save the failover group endpoint.
Handling errors in failover endpoints
An endpoint can be in one of the following states: Active
, Timeout
or Suspended
. You can handle errors and configure the looping between the failover child endpoints via the <timeout>
, <suspendOnFailure>
and <markForSuspension>
properties based on these states. For more information about these states and properties, see Endpoint Error Handling.
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Sample failover with one address endpoint
When message failure is not tolerable even though there is only one service endpoint, then failovers are possible with a single endpoint as shown in the below configuration.
...
In this configuration, we assume that these errors are rare and if they happen once in a while, it is okay to retry again. If they happen frequently and continuously, it means that it requires immediate attention to get it back to normal state.
Sample failover with multiple address endpoints
When a message reaches a failover endpoint with multiple address endpoints, it will go through its list of endpoints to pick the first one in Active
or Timeout
state (not in the Suspended
state). Then, it will send the message using that particular endpoint.
...