Closed Muyangmin closed 3 months ago
Hi @Muyangmin,
using registry.getApplications()
should be the correct way to access this information, this is also what the frontend calls to display the data (via ApplicationsController
).
First you wrote the changes are delayed (showing up a bit later), then you wrote you have to restart (otherwise there will be no updates at all?).
spring.boot.admin.monitor.status-interval
, spring.boot.admin.monitor.info-interval
). Try to check the logs to see if Spring Boot Admin itself gets the new information.Also check if the data that is not being updated is coming from the monitored applications or from eureka. Maybe the Admin Server itself does not fetch updates from eureka (registryFetchIntervalSeconds
)?
As you can see, there could be many reasons. If you do not find a solution please provide more information (logs, configuration, more code, runnable example, ...)
Thanks for your detailed response. From the previous investigation, I can confirm that the information from SBA itself can be updated in a timely manner. Your reply has given me some new insights, and perhaps there are some potential issues in the infinite loop I use for updates. I will focus on investigating this aspect, and will reply here with any progress. 👍
I'm sorry for the delayed response. After carefully rechecking our program, we found that in some very rare scenarios, our update operation would fail, and there was no exception handling in the loop (what a foolish mistake). After modifying the program and redeploying it, we no longer observed the previous issue, so the problem should be resolved. Thank you very much for your support!
Spring Boot Admin Server information
Version: 2.7.14
Spring Boot version: 2.7.10
Configured Security: NONE
Webflux or Servlet application: Webflux
Client information
Spring Boot versions: 2.7.x
Used discovery mechanism: Eureka
Webflux or Servlet application: Servlet
Description
Sorry but I've really read the issue notes and asked a question on StackOverflow(Question Link Here) before, but got no answers for 10 days. This problem is really important for me so hope I can get some help here, Thanks!
Below is the question copy: