Browse Source

Add missing properties to config and docs.

pull/1089/head
Olga Maciaszek-Sharma 3 years ago
parent
commit
63cbb815b0
  1. 2
      docs/src/main/asciidoc/_configprops.adoc
  2. 12
      spring-cloud-commons/src/main/resources/META-INF/additional-spring-configuration-metadata.json

2
docs/src/main/asciidoc/_configprops.adoc

@ -51,7 +51,9 @@ @@ -51,7 +51,9 @@
|spring.cloud.loadbalancer.retry.enabled | | Enables LoadBalancer retries.
|spring.cloud.loadbalancer.retry.max-retries-on-next-service-instance | `1` | Number of retries to be executed on the next `ServiceInstance`. A `ServiceInstance` is chosen before each retry call.
|spring.cloud.loadbalancer.retry.max-retries-on-same-service-instance | `0` | umber of retries to be executed on the same `ServiceInstance`.
|spring.cloud.loadbalancer.retry.retry-on-all-exceptions | `false` | Indicates retries should be attempted for all exceptions, not only those specified in `retryableExceptions`.
|spring.cloud.loadbalancer.retry.retry-on-all-operations | `false` | Indicates retries should be attempted on operations other than `HttpMethod.GET`}.
|spring.cloud.loadbalancer.retry.retryable-exceptions | `{}` | A `Set` of `Throwable` classes that should trigger a retry.
|spring.cloud.loadbalancer.retry.retryable-status-codes | `{}` | A `Set` of status codes that should trigger a retry.
|spring.cloud.loadbalancer.service-discovery.timeout | | String representation of Duration of the timeout for calls to service discovery.
|spring.cloud.loadbalancer.sticky-session | | Properties for LoadBalancer sticky-session.

12
spring-cloud-commons/src/main/resources/META-INF/additional-spring-configuration-metadata.json

@ -158,6 +158,18 @@ @@ -158,6 +158,18 @@
"defaultValue": false,
"description": "To Enable X-Forwarded Headers.",
"type": "java.lang.Boolean"
},
{
"name": "spring.cloud.loadbalancer.retry.retry-on-all-exceptions",
"defaultValue": false,
"description": "Indicates retries should be attempted for all exceptions, not only those specified in `retryableExceptions`.",
"type": "java.lang.Boolean"
},
{
"name": "spring.cloud.loadbalancer.retry.retryable-exceptions",
"defaultValue": "{}",
"description": "A `Set` of `Throwable` classes that should trigger a retry.",
"type": "java.util.Set"
}
]
}

Loading…
Cancel
Save