diff --git a/reference/html/appendix.html b/reference/html/appendix.html index 0c5680ec..039d4a11 100644 --- a/reference/html/appendix.html +++ b/reference/html/appendix.html @@ -295,7 +295,7 @@ Also, you can define your own properties.

spring.cloud.loadbalancer.cache.ttl

-

30s

+

35s

Time To Live - time counted from writing of the record, after which cache entries are expired, expressed as a {@link Duration}. The property {@link String} has to be in keeping with the appropriate syntax as specified in Spring Boot <code>StringToDurationConverter</code>. @see <a href= "https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/StringToDurationConverter.java">StringToDurationConverter.java</a>

@@ -305,7 +305,7 @@ Also, you can define your own properties.

spring.cloud.loadbalancer.health-check.interval

-

30s

+

25s

Interval for rerunning the HealthCheck scheduler.

diff --git a/reference/html/index.html b/reference/html/index.html index 91913112..72b19796 100644 --- a/reference/html/index.html +++ b/reference/html/index.html @@ -1461,7 +1461,7 @@ as the value of the spring.cloud.loadbalancer.cache.ttl property. You can also set your own LoadBalancer cache initial capacity by setting the value of the spring.cloud.loadbalancer.cache.capacity property.

-

The default setup includes ttl set to 30 seconds and the default initialCapacity is 256.

+

The default setup includes ttl set to 35 seconds and the default initialCapacity is 256.

You can also altogether disable loadBalancer caching by setting the value of spring.cloud.loadbalancer.cache.enabled @@ -1593,7 +1593,7 @@ We suggest passing a DiscoveryClientServiceInstanceListSupplier del

You could use this sample configuration to set it up:

-
+
public class CustomLoadBalancerConfiguration {
 
@@ -1603,7 +1603,6 @@ We suggest passing a DiscoveryClientServiceInstanceListSupplier del
         return ServiceInstanceListSupplier.builder()
                     .withDiscoveryClient()
                     .withHealthChecks()
-                    .withCaching()
                     .build(context);
         }
     }
@@ -1611,6 +1610,10 @@ We suggest passing a DiscoveryClientServiceInstanceListSupplier del
+
NOTE
+
+

HealthCheckServiceInstanceListSupplier has its own caching mechanism based on Reactor Flux replay(), therefore, if it’s being used, you may want to skip wrapping that supplier with CachingServiceInstanceListSupplier.

+
TIP

In order to make working on your own LoadBalancer configuration easier, we have added a builder() method to the ServiceInstanceListSupplier class.

diff --git a/reference/html/spring-cloud-commons.html b/reference/html/spring-cloud-commons.html index 91913112..72b19796 100644 --- a/reference/html/spring-cloud-commons.html +++ b/reference/html/spring-cloud-commons.html @@ -1461,7 +1461,7 @@ as the value of the spring.cloud.loadbalancer.cache.ttl property. You can also set your own LoadBalancer cache initial capacity by setting the value of the spring.cloud.loadbalancer.cache.capacity property.

-

The default setup includes ttl set to 30 seconds and the default initialCapacity is 256.

+

The default setup includes ttl set to 35 seconds and the default initialCapacity is 256.

You can also altogether disable loadBalancer caching by setting the value of spring.cloud.loadbalancer.cache.enabled @@ -1593,7 +1593,7 @@ We suggest passing a DiscoveryClientServiceInstanceListSupplier del

You could use this sample configuration to set it up:

-
+
public class CustomLoadBalancerConfiguration {
 
@@ -1603,7 +1603,6 @@ We suggest passing a DiscoveryClientServiceInstanceListSupplier del
         return ServiceInstanceListSupplier.builder()
                     .withDiscoveryClient()
                     .withHealthChecks()
-                    .withCaching()
                     .build(context);
         }
     }
@@ -1611,6 +1610,10 @@ We suggest passing a DiscoveryClientServiceInstanceListSupplier del
+
NOTE
+
+

HealthCheckServiceInstanceListSupplier has its own caching mechanism based on Reactor Flux replay(), therefore, if it’s being used, you may want to skip wrapping that supplier with CachingServiceInstanceListSupplier.

+
TIP

In order to make working on your own LoadBalancer configuration easier, we have added a builder() method to the ServiceInstanceListSupplier class.