FailMode

rpcx has three fail modes to handle invocation failures and you can set it when create XClient.

FailMode is meaningful only for sync call ().

Example:failfast

In this mode, rpcx will finished this call if it gets a failure. The failure is not business failure and business failures are normal responses. It may be caused by server crashing or network issues.

In this mode, rpcx will try another nodes if it gets a failure. it will try retries until the service returns normal response. The retries is defined in and it is 3 in the defaultOption.

Example:

In this mode, rpcx still try current selected nodes if it gets a failure. it will try retries until the service returns normal response. The is defined in Option and it is 3 in the defaultOption.

Example:failbackup

If you want to learn more details about backup request pattern, you can read Jeff Dean's

By smallnest updated 2018-03-27 11:12:10

原文:

http://doc.rpcx.site/part3/failmode.html