codecentric / spring-boot-admin

Admin UI for administration of spring boot applications
Apache License 2.0
12.35k stars 3.07k forks source link

Use bus-refresh endpoint if enabled / Allow refresh on multiple instances #1187

Open ditdajou opened 5 years ago

ditdajou commented 5 years ago

Based on the current SBA front-end design, we can click on an instance and refresh the context of a particular property to our liking.

However, when there are too many instances (imagine there are 30 of them), we need to manually refresh the property in each instance and repeating it for 30 times can be cumbersome.

I would like to know if Spring Boot Admin supports the property propagation for all other instances of the same name if a property is refreshed on one instance, i.e. through "actuator/bus-refresh". Else, I would like this to be a feature request.

steve-oakey commented 5 years ago

If the bus-refresh JMX Endpoint is enabled for your Admin Server, you should be able to achieve this using the JVM/JMX page, under the org.springframework.boot domain and executing the busRefresh or busRefreshWithDestination operations.

joshiste commented 5 years ago

Imho there are two (additive?) solutions to this:

ditdajou commented 5 years ago

If the bus-refresh JMX Endpoint is enabled for your Admin Server, you should be able to achieve this using the JVM/JMX page, under the org.springframework.boot domain and executing the busRefresh or busRefreshWithDestination operations.

Yes ,we can trigger it manually using cURL , but we would like to trigger it on Spring Boot Admin Web UI, currently the button "Refresh Context" will only trigger actuator/refresh.

If there is a new button that can trigger actuator/bus-refresh , will be more convenient to people especially when they don't know how to trigger at JVM page / Fire the request themselves.