LoadBalancer整合springboot

1、参数配置类 Configuration properties for the LoadBalancerClient.

LoadBalancerRetryProperties
private boolean enabled = true;

/**
 * Indicates retries should be attempted on operations other than
 * {@link HttpMethod#GET}.
 */
private boolean retryOnAllOperations = false;

/**
 * Number of retries to be executed on the same ServiceInstance.
 */
private int maxRetriesOnSameServiceInstance = 0;

/**
 * Number of retries to be executed on the next ServiceInstance. A
 * ServiceInstance is chosen before each retry call.
 */
private int maxRetriesOnNextServiceInstance = 1;

/**
 * A {@link Set} of status codes that should trigger a retry.
 */
private Set retryableStatusCodes = new HashSet<>();

/**
 * Properties for Reactor Retry back

你可能感兴趣的:(spring,java,spring,boot,java,spring)