Open liammacisaac opened 3 years ago
There used to be filters for load balancing with ribbon. We should add those back so health check can be only used for loadbalancing. https://github.com/spring-cloud/spring-cloud-consul/tree/2.2.x/spring-cloud-consul-discovery/src/main/java/org/springframework/cloud/consul/discovery/filters
See also #712
@spencergibb As explained above, the spring.cloud.consul.discovery.query-passing=true
parameter works inconsistently. Is there currently any other way to exclude unhealthy services from gateway load balancing?
When using a basic configuration to support consul service discovery, we're seeing some inconsistent behaviour when using the queryPassing setting. An example configuration is shown below.
When queryPassing is false, we observe:
When queryPassing is true and the service is up before gateway, we observe:
When queryPassing is true and the service is started after gateway, we observe:
My initial thoughts on this are that we should be doing one of the following: