-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refresh-period not triggering any periodic discovery #373
Comments
Hi Andreas, I don't see anything wrong in the config. |
I've got nothing ready for github. But we basically follow this approach: Inject a channel object as described here
Then on application start we create one async stub on the channel:
The boundary of the application contains an JAX-RS service. On every REST call, we have some bidirectional communication on the stub:
|
Ok, can you confirm that the problem is about the refreshing of the cache? I mean that the service instances are collected the first time and cache is gathered with them or it is never fetching the instances from the cluster? I will try to set up an scenario equivalent in order to see if there is a problem but we have not detected anything recently. Can you please confirm the Quarkus and Stork versions used? I'll be off to an event 2 days next week so you can expect some delay in my investigations. |
If you have access to the cluster, Could you please verify that the following command returns the instances that you expect Stork to discover? |
Yes, its about refreshing the caches view, e.g. after scaling up pods. So basic reproducer is:
|
After recent PR #374 we hoped for some improvement, but the issue remains. Tested with latest Quarkus 2.14.2. Any workaround idea for how to get service instances discovered properly after scaling up ? Thanks in advance. |
Similar issue with Quarkus 3.0.4. When I deploy a new version, new pods are created and the old ones destroyed. The client application detects the new pods but then use the old ones again.
Here the logs on the client side (logs are old, with Quarkus v2 but same issue with Quarkus v3) : |
Hi, sorry for the delay, I haven't been able to take a look on this because of traveling, I will do later on this week and try to provide a response. |
Hi here! I finally was able to reproduce this issue. I will do a fix beginning of next week. |
Fixed by #611 |
…3507c4 in main branch) Related to smallrye#373
Just to let you know that it also fixes the similar bug I had using Quarkus v3.2.1 Thanks a lot for the fix! |
Hi,
we use Stork on Quarkus with Kubernetes Service Discovery.
It turns out, that Stork does not consider refresh-period properly, when using a configuration like
We debugged the application remotely in k8s, and see that
KubernetesServiceDiscovery.fetchNewServiceInstances(List previousInstances) is not invoked regulary. Even not when having traffic on the application.
We expected that new services get discovered (after refresh-period) automatically, e.g. when scaling up a client pod, or restarting a pod. But thats obviously not the case.
Latest Quarkus Release uses Stork 1.1.2, but there don't seem any change on CachingServiceDiscovery in Stork 1.2.0.
Any advice ?
Best regards
Andreas
The text was updated successfully, but these errors were encountered: