Spring-boot-admin: Require minimum number of instances

Created on 11 Dec 2018  路  5Comments  路  Source: codecentric/spring-boot-admin

I want the ability to require a minimum number of instances of a service.

Currently it can see if a service is up and running or not but fails to see a problem if someone would turn scale down to 0 or delete the entire kubernetes workload, it would simply disappear from the Application list and Wallboard with no error.

I could turn off auto-deregistration but that would require manual purging of services after every image version update since k8s simply redeloys and deletes the services with new names and everything.

If there is a way to do this currently I've failed to find it and I'm sorry in advance.

enhancement server

Most helpful comment

@poludov this is actually an open source project. So get the code, try to understand and try to solve/implement the feature.
The main maintainer is just doing this is his spare time. If He does not need the feature or does not find it this usefull He will not implement it.
You want or need it try to implement it. I 鈽猴笍馃榿

All 5 comments

Anyone working on this? I am trying to setup Spring Boot Admin for our k8s cluster, but right now if we do a redeploy , the old services remain visible as offline. This should not happen in my opinion (or be configurable)

@NicoBijl
If you are using spring-cloud.kubernetes:
Stopped applications should disappear. Be aware that you need to add a @EnableScheduling to the SBA server so that the discovery client starts a watcher task that keeps the services in sync (see https://github.com/spring-cloud/spring-cloud-kubernetes/issues/385)

If you are using spring-boot-admin-client: There is an option that the services derigister on shutdown...

Anyone working on this?

I think this is a really useful feature.
Today out team have more than 20 microservice in production and we use SBA and we liked it!

But now there is one case then SBA does not show the real picture. If microservice is currently not working, then it is not displayed on the panel. However, one idle microservice can be a serious problem for the entire system. I would like to see this problem on the SBA-wallboard.

@poludov this is actually an open source project. So get the code, try to understand and try to solve/implement the feature.
The main maintainer is just doing this is his spare time. If He does not need the feature or does not find it this usefull He will not implement it.
You want or need it try to implement it. I 鈽猴笍馃榿

There has not been an update to this issue in a long time. Therefore I'm closing it. Feel free to reopen it if you think there is still something to be done.

Was this page helpful?
0 / 5 - 0 ratings