smallrye / smallrye-stork

SmallRye Stork is a service discovery and client side-load balancing framework.

Home Page:http://smallrye.io/smallrye-stork/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Outdated Addresses in Consul

MehmetNuri opened this issue · comments

I have multiple Consul services with the same address but different ports. I register multiple instances with Consul in Quarkus, but when one or more of the instances are closed, it still keeps the old address in memory. Even if I use refresh-period in the settings, the addresses remain old. Instances need to be updated periodically.

Note: Even if I write a special Load Balancer, it does not make sense because the examples from Consul are the same.

quarkus.stork.red-service.service-discovery=consul
quarkus.stork.red-service.service-discovery.consul-host=localhost
quarkus.stork.red-service.service-discovery.consul-port=8500
quarkus.stork.red-service.service-discovery.type=consul
quarkus.stork.red-service.load-balancer.type=round-robin
quarkus.stork.red-service.refresh-period=2s

image

Quarkus Version: 3.6.3
Java Version: 21

The bug was fixed when I made the following setting
quarkus.stork.red-service.service-discovery.refresh-period=10s

Hi, thank you!