跳到主要内容

Configuration Properties

Below you can find a list of configuration properties.

NameDefaultDescription
eureka.client.allow-redirectsfalseIndicates whether server can redirect a client request to a backup server/cluster. If set to false, the server will handle the request directly, If set to true, it may send HTTP redirect to the client, with a new server location.
eureka.client.availability-zonesGets the list of availability zones (used in AWS data centers) for the region in which this instance resides. The changes are effective at runtime at the next registry fetch cycle as specified by registryFetchIntervalSeconds.
eureka.client.backup-registry-implGets the name of the implementation which implements BackupRegistry to fetch the registry information as a fallback option for only the first time when the eureka client starts. This may be needed for applications which needs additional resiliency for registry information without which it cannot operate.
eureka.client.cache-refresh-executor-exponential-back-off-bound10Cache refresh executor exponential back off related property. It is a maximum multiplier value for retry delay, in case where a sequence of timeouts occurred.
eureka.client.cache-refresh-executor-thread-pool-size2The thread pool size for the cacheRefreshExecutor to initialise with.
eureka.client.client-data-acceptEurekaAccept name for client data accept.
eureka.client.decoder-nameThis is a transient config and once the latest codecs are stable, can be removed (as there will only be one).
eureka.client.disable-deltafalseIndicates whether the eureka client should disable fetching of delta and should rather resort to getting the full registry information. Note that the delta fetches can reduce the traffic tremendously, because the rate of change with the eureka server is normally much lower than the rate of fetches. The changes are effective at runtime at the next registry fetch cycle as specified by registryFetchIntervalSeconds
eureka.client.dollar-replacement_-Get a replacement string for Dollar sign <code>$</code> during serializing/deserializing information in eureka server.
eureka.client.enabledtrueFlag to indicate that the Eureka client is enabled.
eureka.client.encoder-nameThis is a transient config and once the latest codecs are stable, can be removed (as there will only be one).
eureka.client.escape-char-replacement__Get a replacement string for underscore sign <code>_</code> during serializing/ deserializing information in eureka server.
eureka.client.eureka-connection-idle-timeout-seconds30Indicates how much time (in seconds) that the HTTP connections to eureka server can stay idle before it can be closed. In the AWS environment, it is recommended that the values is 30 seconds or less, since the firewall cleans up the connection information after a few mins leaving the connection hanging in limbo.
eureka.client.eureka-server-connect-timeout-seconds5Indicates how long to wait (in seconds) before a connection to eureka server needs to timeout. Note that the connections in the client are pooled by {@link HttpClient} and this setting affects the actual connection creation and also the wait time to get the connection from the pool.
eureka.client.eureka-server-d-n-s-nameGets the DNS name to be queried to get the list of eureka servers.This information is not required if the contract returns the service urls by implementing serviceUrls. The DNS mechanism is used when useDnsForFetchingServiceUrls is set to true and the eureka client expects the DNS to configured a certain way so that it can fetch changing eureka servers dynamically. The changes are effective at runtime.
eureka.client.eureka-server-portGets the port to be used to construct the service url to contact eureka server when the list of eureka servers come from the DNS.This information is not required if the contract returns the service urls eurekaServerServiceUrls(String). The DNS mechanism is used when useDnsForFetchingServiceUrls is set to true and the eureka client expects the DNS to configured a certain way so that it can fetch changing eureka servers dynamically. The changes are effective at runtime.
eureka.client.eureka-server-read-timeout-seconds8Indicates how long to wait (in seconds) before a read from eureka server needs to timeout.
eureka.client.eureka-server-total-connections200Gets the total number of connections that is allowed from eureka client to all eureka servers.
eureka.client.eureka-server-total-connections-per-host50Gets the total number of connections that is allowed from eureka client to a eureka server host.
eureka.client.eureka-server-u-r-l-contextGets the URL context to be used to construct the service url to contact eureka server when the list of eureka servers come from the DNS. This information is not required if the contract returns the service urls from eurekaServerServiceUrls. The DNS mechanism is used when useDnsForFetchingServiceUrls is set to true and the eureka client expects the DNS to configured a certain way so that it can fetch changing eureka servers dynamically. The changes are effective at runtime.
eureka.client.eureka-service-url-poll-interval-seconds300Indicates how often(in seconds) to poll for changes to eureka server information. Eureka servers could be added or removed and this setting controls how soon the eureka clients should know about it.
eureka.client.fetch-registrytrueIndicates whether this client should fetch eureka registry information from eureka server.
eureka.client.fetch-remote-regions-registryComma separated list of regions for which the eureka registry information will be fetched. It is mandatory to define the availability zones for each of these regions as returned by availabilityZones. Failing to do so, will result in failure of discovery client startup.
eureka.client.filter-only-up-instancestrueIndicates whether to get the applications after filtering the applications for instances with only InstanceStatus UP states.
eureka.client.g-zip-contenttrueIndicates whether the content fetched from eureka server has to be compressed whenever it is supported by the server. The registry information from the eureka server is compressed for optimum network traffic.
eureka.client.healthcheck.enabledtrueEnables the Eureka health check handler.
eureka.client.heartbeat-executor-exponential-back-off-bound10Heartbeat executor exponential back off related property. It is a maximum multiplier value for retry delay, in case where a sequence of timeouts occurred.
eureka.client.heartbeat-executor-thread-pool-size2The thread pool size for the heartbeatExecutor to initialise with.
eureka.client.initial-instance-info-replication-interval-seconds40Indicates how long initially (in seconds) to replicate instance info to the eureka server.
eureka.client.instance-info-replication-interval-seconds30Indicates how often(in seconds) to replicate instance changes to be replicated to the eureka server.
eureka.client.jersey.enabledtrueEnables the use of JerseyClient for Eureka HTTP Client.
eureka.client.log-delta-difffalseIndicates whether to log differences between the eureka server and the eureka client in terms of registry information. Eureka client tries to retrieve only delta changes from eureka server to minimize network traffic. After receiving the deltas, eureka client reconciles the information from the server to verify it has not missed out some information. Reconciliation failures could happen when the client has had network issues communicating to server.If the reconciliation fails, eureka client gets the full registry information. While getting the full registry information, the eureka client can log the differences between the client and the server and this setting controls that. The changes are effective at runtime at the next registry fetch cycle as specified by registryFetchIntervalSecondsr
eureka.client.on-demand-update-status-changetrueIf set to true, local status updates via ApplicationInfoManager will trigger on-demand (but rate limited) register/updates to remote eureka servers.
eureka.client.order0Order of the discovery client used by CompositeDiscoveryClient for sorting available clients.
eureka.client.prefer-same-zone-eurekatrueIndicates whether or not this instance should try to use the eureka server in the same zone for latency and/or other reason. Ideally eureka clients are configured to talk to servers in the same zone The changes are effective at runtime at the next registry fetch cycle as specified by registryFetchIntervalSeconds
eureka.client.property-resolver
eureka.client.proxy-hostGets the proxy host to eureka server if any.
eureka.client.proxy-passwordGets the proxy password if any.
eureka.client.proxy-portGets the proxy port to eureka server if any.
eureka.client.proxy-user-nameGets the proxy user name if any.
eureka.client.refresh.enabletrueDetermines whether the EurekaClient instance can be refreshed or not(If disabled none of the Eureka client properties will be refreshable).
eureka.client.regionus-east-1Gets the region (used in AWS datacenters) where this instance resides.
eureka.client.register-with-eurekatrueIndicates whether or not this instance should register its information with eureka server for discovery by others. In some cases, you do not want your instances to be discovered whereas you just want do discover other instances.
eureka.client.registry-fetch-interval-seconds30Indicates how often(in seconds) to fetch the registry information from the eureka server.
eureka.client.registry-refresh-single-vip-addressIndicates whether the client is only interested in the registry information for a single VIP.
eureka.client.service-urlMap of availability zone to list of fully qualified URLs to communicate with eureka server. Each value can be a single URL or a comma separated list of alternative locations. Typically the eureka server URLs carry protocol,host,port,context and version information if any. Example: ec2-256-156-243-129.compute-1.amazonaws.com:7001/eureka/ The changes are effective at runtime at the next service url refresh cycle as specified by eurekaServiceUrlPollIntervalSeconds.
eureka.client.should-enforce-registration-at-initfalseIndicates whether the client should enforce registration during initialization. Defaults to false.
eureka.client.should-unregister-on-shutdowntrueIndicates whether the client should explicitly unregister itself from the remote server on client shutdown.
eureka.client.timeout.connect-request-timeout180000
eureka.client.timeout.connect-timeout180000Default values are set to 180000, in keeping with {@link RequestConfig} and {@link SocketConfig} defaults.
eureka.client.timeout.socket-timeout180000
eureka.client.tls.enabled
eureka.client.tls.key-password
eureka.client.tls.key-store
eureka.client.tls.key-store-password
eureka.client.tls.key-store-type
eureka.client.tls.trust-store
eureka.client.tls.trust-store-password
eureka.client.tls.trust-store-type
eureka.client.use-dns-for-fetching-service-urlsfalseIndicates whether the eureka client should use the DNS mechanism to fetch a list of eureka servers to talk to. When the DNS name is updated to have additional servers, that information is used immediately after the eureka client polls for that information as specified in eurekaServiceUrlPollIntervalSeconds. Alternatively, the service urls can be returned serviceUrls, but the users should implement their own mechanism to return the updated list in case of changes. The changes are effective at runtime.
eureka.client.webclient.enabledfalseEnables the use of WebClient for Eureka HTTP Client.
eureka.dashboard.enabledtrueFlag to enable the Eureka dashboard. Default true.
eureka.dashboard.path/The path to the Eureka dashboard (relative to the servlet path). Defaults to "/".
eureka.datacenterdefaultEureka datacenter. Defaults to "default".
eureka.environmenttestEureka environment. Defaults to "test".
eureka.instance.a-s-g-nameGets the AWS autoscaling group name associated with this instance. This information is specifically used in an AWS environment to automatically put an instance out of service after the instance is launched and it has been disabled for traffic..
eureka.instance.app-group-nameGet the name of the application group to be registered with eureka.
eureka.instance.appnameunknownGet the name of the application to be registered with eureka.
eureka.instance.async-client-initializationfalseIf true the EurekaClient will be initialized asynchronously when the InstanceRegistry bean is created.
eureka.instance.data-center-infoReturns the data center this instance is deployed. This information is used to get some AWS specific instance information if the instance is deployed in AWS.
eureka.instance.default-address-resolution-order[]
eureka.instance.environment
eureka.instance.health-check-urlGets the absolute health check page URL for this instance. The users can provide the healthCheckUrlPath if the health check page resides in the same instance talking to eureka, else in the cases where the instance is a proxy for some other server, users can provide the full URL. If the full URL is provided it takes precedence. <p> It is normally used for making educated decisions based on the health of the instance - for example, it can be used to determine whether to proceed deployments to an entire farm or stop the deployments without causing further damage. The full URL should follow the format ${eureka.hostname}:7001/ where the value ${eureka.hostname} is replaced at runtime.
eureka.instance.health-check-url-pathGets the relative health check URL path for this instance. The health check page URL is then constructed out of the hostname and the type of communication - secure or insecure as specified in securePort and nonSecurePort. It is normally used for making educated decisions based on the health of the instance - for example, it can be used to determine whether to proceed deployments to an entire farm or stop the deployments without causing further damage.
eureka.instance.home-page-urlGets the absolute home page URL for this instance. The users can provide the homePageUrlPath if the home page resides in the same instance talking to eureka, else in the cases where the instance is a proxy for some other server, users can provide the full URL. If the full URL is provided it takes precedence. It is normally used for informational purposes for other services to use it as a landing page. The full URL should follow the format ${eureka.hostname}:7001/ where the value ${eureka.hostname} is replaced at runtime.
eureka.instance.home-page-url-path/Gets the relative home page URL Path for this instance. The home page URL is then constructed out of the hostName and the type of communication - secure or insecure. It is normally used for informational purposes for other services to use it as a landing page.
eureka.instance.hostnameThe hostname if it can be determined at configuration time (otherwise it will be guessed from OS primitives).
eureka.instance.initial-statusupInitial status to register with remote Eureka server.
eureka.instance.instance-enabled-onitfalseIndicates whether the instance should be enabled for taking traffic as soon as it is registered with eureka. Sometimes the application might need to do some pre-processing before it is ready to take traffic.
eureka.instance.instance-idGet the unique Id (within the scope of the appName) of this instance to be registered with eureka.
eureka.instance.ip-addressGet the IPAdress of the instance. This information is for academic purposes only as the communication from other instances primarily happen using the information supplied in {@link #getHostName(boolean)}.
eureka.instance.lease-expiration-duration-in-seconds90Indicates the time in seconds that the eureka server waits since it received the last heartbeat before it can remove this instance from its view and there by disallowing traffic to this instance. Setting this value too long could mean that the traffic could be routed to the instance even though the instance is not alive. Setting this value too small could mean, the instance may be taken out of traffic because of temporary network glitches.This value to be set to at least higher than the value specified in leaseRenewalIntervalInSeconds.
eureka.instance.lease-renewal-interval-in-seconds30Indicates how often (in seconds) the eureka client needs to send heartbeats to eureka server to indicate that it is still alive. If the heartbeats are not received for the period specified in leaseExpirationDurationInSeconds, eureka server will remove the instance from its view, there by disallowing traffic to this instance. Note that the instance could still not take traffic if it implements HealthCheckCallback and then decides to make itself unavailable.
eureka.instance.metadata-mapGets the metadata name/value pairs associated with this instance. This information is sent to eureka server and can be used by other instances.
eureka.instance.metadata-map.weight1The weight of service instance for weighted load balancing.
eureka.instance.namespaceeurekaGet the namespace used to find properties. Ignored in Spring Cloud.
eureka.instance.non-secure-port80Get the non-secure port on which the instance should receive traffic.
eureka.instance.non-secure-port-enabledtrueIndicates whether the non-secure port should be enabled for traffic or not.
eureka.instance.prefer-ip-addressfalseFlag to say that, when guessing a hostname, the IP address of the server should be used in preference to the hostname reported by the OS.
eureka.instance.registry.default-open-for-traffic-count1Value used in determining when leases are cancelled, default to 1 for standalone. Should be set to 0 for peer replicated eurekas
eureka.instance.registry.expected-number-of-clients-sending-renews1
eureka.instance.secure-health-check-urlGets the absolute secure health check page URL for this instance. The users can provide the secureHealthCheckUrl if the health check page resides in the same instance talking to eureka, else in the cases where the instance is a proxy for some other server, users can provide the full URL. If the full URL is provided it takes precedence. <p> It is normally used for making educated decisions based on the health of the instance - for example, it can be used to determine whether to proceed deployments to an entire farm or stop the deployments without causing further damage. The full URL should follow the format ${eureka.hostname}:7001/ where the value ${eureka.hostname} is replaced at runtime.
eureka.instance.secure-port443Get the Secure port on which the instance should receive traffic.
eureka.instance.secure-port-enabledfalseIndicates whether the secure port should be enabled for traffic or not.
eureka.instance.secure-virtual-host-nameunknownGets the secure virtual host name defined for this instance. This is typically the way other instance would find this instance by using the secure virtual host name.Think of this as similar to the fully qualified domain name, that the users of your services will need to find this instance.
eureka.instance.status-page-urlGets the absolute status page URL path for this instance. The users can provide the statusPageUrlPath if the status page resides in the same instance talking to eureka, else in the cases where the instance is a proxy for some other server, users can provide the full URL. If the full URL is provided it takes precedence. It is normally used for informational purposes for other services to find about the status of this instance. Users can provide a simple HTML indicating what is the current status of the instance.
eureka.instance.status-page-url-pathGets the relative status page URL path for this instance. The status page URL is then constructed out of the hostName and the type of communication - secure or insecure as specified in securePort and nonSecurePort. It is normally used for informational purposes for other services to find about the status of this instance. Users can provide a simple HTML indicating what is the current status of the instance.
eureka.instance.virtual-host-nameunknownGets the virtual host name defined for this instance. This is typically the way other instance would find this instance by using the virtual host name.Think of this as similar to the fully qualified domain name, that the users of your services will need to find this instance.
eureka.server.a-s-g-cache-expiry-timeout-ms600000
eureka.server.a-s-g-query-timeout-ms300
eureka.server.a-s-g-update-interval-ms300000
eureka.server.a-w-s-access-id
eureka.server.a-w-s-secret-key
eureka.server.batch-replicationfalse
eureka.server.binding-strategyeip
eureka.server.delta-retention-timer-interval-in-ms30000
eureka.server.disable-deltafalse
eureka.server.disable-delta-for-remote-regionsfalse
eureka.server.disable-transparent-fallback-to-other-regionfalse
eureka.server.e-i-p-bind-rebind-retries3
eureka.server.e-i-p-binding-retry-interval-ms300000
eureka.server.e-i-p-binding-retry-interval-ms-when-unbound60000
eureka.server.enable-replicated-request-compressionfalse
eureka.server.enable-self-preservationtrue
eureka.server.eviction-interval-timer-in-ms
eureka.server.expected-client-renewal-interval-seconds30
eureka.server.g-zip-content-from-remote-regiontrue
eureka.server.initial-capacity-of-response-cache1000
eureka.server.json-codec-name
eureka.server.list-auto-scaling-groups-role-nameListAutoScalingGroups
eureka.server.log-identity-headerstrue
eureka.server.max-elements-in-peer-replication-pool10000
eureka.server.max-elements-in-status-replication-pool10000
eureka.server.max-idle-thread-age-in-minutes-for-peer-replication15
eureka.server.max-idle-thread-in-minutes-age-for-status-replication10
eureka.server.max-threads-for-peer-replication20
eureka.server.max-threads-for-status-replication1
eureka.server.max-time-for-replication30000
eureka.server.metrics.enabledfalseIndicates whether the metrics should be enabled for eureka instances.
eureka.server.min-available-instances-for-peer-replication-1
eureka.server.min-threads-for-peer-replication5
eureka.server.min-threads-for-status-replication1
eureka.server.my-url
eureka.server.number-of-replication-retries5
eureka.server.peer-eureka-nodes-update-interval-ms600000
eureka.server.peer-eureka-status-refresh-time-interval-ms
eureka.server.peer-node-connect-timeout-ms200
eureka.server.peer-node-connection-idle-timeout-seconds30
eureka.server.peer-node-read-timeout-ms200
eureka.server.peer-node-total-connections1000
eureka.server.peer-node-total-connections-per-host500
eureka.server.prime-aws-replica-connectionstrue
eureka.server.property-resolver
eureka.server.rate-limiter-burst-size10
eureka.server.rate-limiter-enabledfalse
eureka.server.rate-limiter-full-fetch-average-rate100
eureka.server.rate-limiter-privileged-clients
eureka.server.rate-limiter-registry-fetch-average-rate500
eureka.server.rate-limiter-throttle-standard-clientsfalse
eureka.server.registry-sync-retries0
eureka.server.registry-sync-retry-wait-ms
eureka.server.remote-region-app-whitelist
eureka.server.remote-region-connect-timeout-ms1000
eureka.server.remote-region-connection-idle-timeout-seconds30
eureka.server.remote-region-fetch-thread-pool-size20
eureka.server.remote-region-read-timeout-ms1000
eureka.server.remote-region-registry-fetch-interval30
eureka.server.remote-region-total-connections1000
eureka.server.remote-region-total-connections-per-host500
eureka.server.remote-region-trust-store
eureka.server.remote-region-trust-store-passwordchangeit
eureka.server.remote-region-urls
eureka.server.remote-region-urls-with-name
eureka.server.renewal-percent-threshold0.85
eureka.server.renewal-threshold-update-interval-ms900000
eureka.server.response-cache-auto-expiration-in-seconds180
eureka.server.response-cache-update-interval-ms30000
eureka.server.retention-time-in-m-s-in-delta-queue180000
eureka.server.route53-bind-rebind-retries3
eureka.server.route53-binding-retry-interval-ms300000
eureka.server.route53-domain-t-t-l30
eureka.server.sync-when-timestamp-differstrue
eureka.server.use-read-only-response-cachetrue
eureka.server.wait-time-in-ms-when-sync-empty300000
eureka.server.xml-codec-name
spring.cloud.compatibility-verifier.compatible-boot-versionsDefault accepted versions for the Spring Boot dependency. You can set {@code x} for the patch version if you don’t want to specify a concrete value. Example: {@code 3.5.x}
spring.cloud.compatibility-verifier.enabledfalseEnables creation of Spring Cloud compatibility verification.
spring.cloud.config.allow-overridetrueFlag to indicate that {@link #isOverrideSystemProperties() systemPropertiesOverride} can be used. Set to false to prevent users from changing the default accidentally. Default true.
spring.cloud.config.initialize-on-context-refreshfalseFlag to initialize bootstrap configuration on context refresh event. Default false.
spring.cloud.config.override-nonefalseFlag to indicate that when {@link #setAllowOverride(boolean) allowOverride} is true, external properties should take lowest priority and should not override any existing property sources (including local config files). Default false. This will only have an effect when using config first bootstrap.
spring.cloud.config.override-system-propertiestrueFlag to indicate that the external properties should override system properties. Default true.
spring.cloud.decrypt-environment-post-processor.enabledtrueEnable the DecryptEnvironmentPostProcessor.
spring.cloud.discovery.client.composite-indicator.enabledtrueEnables discovery client composite health indicator.
spring.cloud.discovery.client.health-indicator.enabledtrue
spring.cloud.discovery.client.health-indicator.include-descriptionfalse
spring.cloud.discovery.client.health-indicator.use-services-querytrueWhether or not the indicator should use {@link DiscoveryClient#getServices} to check its health. When set to {@code false} the indicator instead uses the lighter {@link DiscoveryClient#probe()}. This can be helpful in large deployments where the number of services returned makes the operation unnecessarily heavy.
spring.cloud.discovery.client.simple.instances
spring.cloud.discovery.client.simple.local.host
spring.cloud.discovery.client.simple.local.instance-id
spring.cloud.discovery.client.simple.local.metadata
spring.cloud.discovery.client.simple.local.port0
spring.cloud.discovery.client.simple.local.securefalse
spring.cloud.discovery.client.simple.local.service-id
spring.cloud.discovery.client.simple.local.uri
spring.cloud.discovery.client.simple.order
spring.cloud.discovery.enabledtrueEnables discovery client health indicators.
spring.cloud.features.enabledtrueEnables the features endpoint.
spring.cloud.httpclientfactories.apache.enabledtrueEnables creation of Apache Http Client factory beans.
spring.cloud.httpclientfactories.ok.enabledtrueEnables creation of OK Http Client factory beans.
spring.cloud.hypermedia.refresh.fixed-delay5000
spring.cloud.hypermedia.refresh.initial-delay10000
spring.cloud.inetutils.default-hostnamelocalhostThe default hostname. Used in case of errors.
spring.cloud.inetutils.default-ip-address127.0.0.1The default IP address. Used in case of errors.
spring.cloud.inetutils.ignored-interfacesList of Java regular expressions for network interfaces that will be ignored.
spring.cloud.inetutils.preferred-networksList of Java regular expressions for network addresses that will be preferred.
spring.cloud.inetutils.timeout-seconds1Timeout, in seconds, for calculating hostname.
spring.cloud.inetutils.use-only-site-local-interfacesfalseWhether to use only interfaces with site local addresses. See {@link InetAddress#isSiteLocalAddress()} for more details.
spring.cloud.loadbalancer.api-version.defaultSets default version that should be used for each request.
spring.cloud.loadbalancer.api-version.fallback-to-available-instancesfalseIndicates whether all the available instances should be returned if no instances for the specified version are available.
spring.cloud.loadbalancer.api-version.headerUses the HTTP header with the given name to obtain the version.
spring.cloud.loadbalancer.api-version.media-type-parametersUses the media type parameter with the given name to obtain the version.
spring.cloud.loadbalancer.api-version.path-segmentUses the path segment at the given index to obtain the version.
spring.cloud.loadbalancer.api-version.query-parameterUses the query parameter with the given name to obtain the version.
spring.cloud.loadbalancer.api-version.requiredfalseIndicates whether the API version is required with each request.
spring.cloud.loadbalancer.cache.caffeine.specThe spec to use to create caches. See CaffeineSpec for more details on the spec format.
spring.cloud.loadbalancer.cache.capacity256Initial cache capacity expressed as int.
spring.cloud.loadbalancer.cache.enabledtrueEnables Spring Cloud LoadBalancer caching mechanism.
spring.cloud.loadbalancer.cache.ttl35sTime 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>
spring.cloud.loadbalancer.call-get-with-request-on-delegatestrueIf this flag is set to {@code true}, {@code ServiceInstanceListSupplier#get(Request request)} method will be implemented to call {@code delegate.get(request)} in classes assignable from {@code DelegatingServiceInstanceListSupplier} that don’t already implement that method, with the exclusion of {@code CachingServiceInstanceListSupplier} and {@code HealthCheckServiceInstanceListSupplier}, which should be placed in the instance supplier hierarchy directly after the supplier performing instance retrieval over the network, before any request-based filtering is done, {@code true} by default.
spring.cloud.loadbalancer.clients
spring.cloud.loadbalancer.configurationsdefaultEnables a predefined LoadBalancer configuration.
spring.cloud.loadbalancer.eager-load.clientsNames of the clients.
spring.cloud.loadbalancer.enabledtrueEnables Spring Cloud LoadBalancer.
spring.cloud.loadbalancer.eureka.approximate-zone-from-hostnamefalseUsed to determine whether we should try to get the zone value from host name.
spring.cloud.loadbalancer.health-check.initial-delay0Initial delay value for the HealthCheck scheduler.
spring.cloud.loadbalancer.health-check.interval25sInterval for rerunning the HealthCheck scheduler.
spring.cloud.loadbalancer.health-check.pathPath at which the health-check request should be made. Can be set up per serviceId. A default value can be set up as well. If none is set up, /actuator/health will be used.
spring.cloud.loadbalancer.health-check.portPath at which the health-check request should be made. If none is set, the port under which the requested service is available at the service instance.
spring.cloud.loadbalancer.health-check.refetch-instancesfalseIndicates whether the instances should be refetched by the HealthCheckServiceInstanceListSupplier. This can be used if the instances can be updated and the underlying delegate does not provide an ongoing flux.
spring.cloud.loadbalancer.health-check.refetch-instances-interval25sInterval for refetching available service instances.
spring.cloud.loadbalancer.health-check.repeat-health-checktrueIndicates whether health checks should keep repeating. It might be useful to set it to false if periodically refetching the instances, as every refetch will also trigger a healthcheck.
spring.cloud.loadbalancer.health-check.update-results-listtrueIndicates whether the {@code healthCheckFlux} should emit on each alive {@link ServiceInstance} that has been retrieved. If set to {@code false}, the entire alive instances sequence is first collected into a list and only then emitted.
spring.cloud.loadbalancer.hintAllows setting the value of <code>hint</code> that is passed on to the LoadBalancer request and can subsequently be used in {@link ReactiveLoadBalancer} implementations.
spring.cloud.loadbalancer.hint-header-nameX-SC-LB-HintAllows setting the name of the header used for passing the hint for hint-based service instance filtering.
spring.cloud.loadbalancer.retry.avoid-previous-instancetrueEnables wrapping ServiceInstanceListSupplier beans with RetryAwareServiceInstanceListSupplier if Spring-Retry is in the classpath.
spring.cloud.loadbalancer.retry.backoff.enabledfalseIndicates whether Reactor Retry backoffs should be applied.
spring.cloud.loadbalancer.retry.backoff.jitter0.5Used to set RetryBackoffSpec.jitter.
spring.cloud.loadbalancer.retry.backoff.max-backoffLong.MAX msUsed to set RetryBackoffSpec.maxBackoff.
spring.cloud.loadbalancer.retry.backoff.min-backoff5 msUsed to set RetryBackoffSpec#minBackoff.
spring.cloud.loadbalancer.retry.enabledtrueEnables LoadBalancer retries.
spring.cloud.loadbalancer.retry.max-retries-on-next-service-instance1Number 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-instance0Number of retries to be executed on the same ServiceInstance.
spring.cloud.loadbalancer.retry.retry-on-all-exceptionsfalseIndicates retries should be attempted for all exceptions, not only those specified in retryableExceptions.
spring.cloud.loadbalancer.retry.retry-on-all-operationsfalseIndicates 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.timeoutString representation of Duration of the timeout for calls to service discovery.
spring.cloud.loadbalancer.stats.include-pathtrueIndicates whether the {@code path} should be added to {@code uri} tag in metrics. When {@link RestTemplate} is used to execute load-balanced requests with high cardinality paths, setting it to {@code false} is recommended.
spring.cloud.loadbalancer.stats.micrometer.enabledfalseEnables Spring Cloud LoadBalancer Micrometer stats.
spring.cloud.loadbalancer.sticky-session.add-service-instance-cookiefalseIndicates whether a cookie with the newly selected instance should be added by LoadBalancer.
spring.cloud.loadbalancer.sticky-session.instance-id-cookie-namesc-lb-instance-idThe name of the cookie holding the preferred instance id.
spring.cloud.loadbalancer.subset.instance-idInstance id of deterministic subsetting. If not set, {@link IdUtils#getDefaultInstanceId(PropertyResolver)} will be used.
spring.cloud.loadbalancer.subset.size100Max subset size of deterministic subsetting.
spring.cloud.loadbalancer.x-forwarded.enabledfalseTo Enable X-Forwarded Headers.
spring.cloud.loadbalancer.zoneSpring Cloud LoadBalancer zone.
spring.cloud.refresh.additional-property-sources-to-retainAdditional property sources to retain during a refresh. Typically only system property sources are retained. This property allows property sources, such as property sources created by EnvironmentPostProcessors to be retained as well.
spring.cloud.refresh.enabledtrueEnables autoconfiguration for the refresh scope and associated features.
spring.cloud.refresh.extra-refreshabletrueAdditional bean names or class names for beans to post process into refresh scope.
spring.cloud.refresh.never-refreshabletrueComma separated list of bean names or class names for beans to never be refreshed or rebound.
spring.cloud.refresh.on-restart.enabledtrueEnable refreshing context on start.
spring.cloud.service-registry.auto-registration.enabledtrueWhether service auto-registration is enabled. Defaults to true.
spring.cloud.service-registry.auto-registration.fail-fastfalseWhether startup fails if there is no AutoServiceRegistration. Defaults to false.
spring.cloud.service-registry.auto-registration.register-managementtrueWhether to register the management as a service. Defaults to true.
spring.cloud.util.enabledtrueEnables creation of Spring Cloud utility beans.