You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhancement
To my understanding of the docs at https://docs.spring-boot-admin.com/3.5.5/docs/server/server#clustering and from trials I did in the past, to have Hazelcast clustering support in an SBA server, both the notification and event maps need to be configured, because otherwise it would crash (e.g.: #4258).
Given the weird behavior in #4599, which is not fixable if not by destroying the environment completely (on rolling updates / zero-downtime deployments, the event cache gets migrated from one old node to new one which is starting automatically), I would like to have the possibility to have only the notifications clustered - in order to avoid duplicates - and not the events as well.
Of course, to make the feature generic enough and profitable also by others, ideally it should be possible to say for each of the caches if they should be created or not.
As such, while not ideal, the workaround above implements this request for me.
Therefore, if wanted, this ticket can be closed if there is no plan/will to implement it.
Happy to head you found a way that "fixes" the setup for you.
As far as I understand the idea of Hazelcast, you have a set of applications that share a common state that is replicated to all nodes. In case of SBA this are events and notifications. Since every SBA server actively polls the registered services, this will lead to duplicated events, which is annoying, as every change of monitored services will trigger an event at each SBA server. The Hazelcast feature seems to be not though through, obviously, and would need much more time to rethink the architecture of SBA server.
But, to be honest, this is not our focus and therefore not high priority.
Thanks for the reply @SteKoe.
For the notifications it actually makes sense to me, in order to avoid duplicates, but for events I cannot understand the reason of it.
Given that every SBA instance anyway calls all the registered applications, what would be point of storing those information in a distributed (not replicated, as you said, because the provided example doesn't set it like that) cache?
Every SBA instance will eventually reach the same state of consistency.
Hello @SteKoe.
I was reading the new docs regarding this feature and I must say that's a bit confusing, especially when someone reads also this.
In particular:
the properties to configure the name of the maps are gone. That's true that they are not mentioned explicitly in the other page as well but, at least, there the constants holding the default values are mentioned and can be looked up in the code of SBA server.
the notification store is not mentioned at all
the docs in there give the impression that all those beans need to be defined explicitly when, instead, they're automatically created and only an Hazelcast's Config bean is necessary to be present
Here there is the impression that the management center can simply be enabled by config, while in here a Docker image/container for it is necessary (therefore it's not just a matter of a config change :))
Of course, this comment is a bit off-topic here, but I just took the chance given that we're discussing about it anyway ;)
@configuration(proxyBeanMethods = false)
public class SbaConfig { @bean
@ConditionalOnMissingBean(InstanceEventStore.class)
public InMemoryEventStore eventStore() {
return new InMemoryEventStore();
}
}
As such, while not ideal, the workaround above implements this request for me. Therefore, if wanted, this ticket can be closed if there is no plan/will to implement it.
Hey @SteKoe@erikpetzold@hzpz@ulischulte. :)
If you guys are open for a contribution for this topic, I can work an a PR that creates the relative Hazelcast store only if a MapConfig is defined for it and falls back to the in-memory one if it's not present.
Such an implementation would be backward compatible with the current possibilities that SBA server offers in terms of Hazelcast configuration (only the map name).
This would prevent breaking behaviors like in #4258.
Ideally, but this would be a breaking change, every store (events and notifications) should have an enabled property to say if it's wanted or not. But this would change the structure of the properties (i.e.: [...].event-store would become an object instead of just a String as it's now). That's why I'm claiming it's a breaking change.
Of course, it may still be possible, depending on what kind of changes are accepted under the 4**.x** part of the version.
Activity
cdprete commentedon Feb 10, 2026
I managed to achieve this by writing a
As such, while not ideal, the workaround above implements this request for me.
Therefore, if wanted, this ticket can be closed if there is no plan/will to implement it.
SteKoe commentedon Feb 10, 2026
Happy to head you found a way that "fixes" the setup for you.
As far as I understand the idea of Hazelcast, you have a set of applications that share a common state that is replicated to all nodes. In case of SBA this are events and notifications. Since every SBA server actively polls the registered services, this will lead to duplicated events, which is annoying, as every change of monitored services will trigger an event at each SBA server. The Hazelcast feature seems to be not though through, obviously, and would need much more time to rethink the architecture of SBA server.
But, to be honest, this is not our focus and therefore not high priority.
cdprete commentedon Feb 10, 2026
Thanks for the reply @SteKoe.
For the notifications it actually makes sense to me, in order to avoid duplicates, but for events I cannot understand the reason of it.
Given that every SBA instance anyway calls all the registered applications, what would be point of storing those information in a distributed (not replicated, as you said, because the provided example doesn't set it like that) cache?
Every SBA instance will eventually reach the same state of consistency.
cdprete commentedon Feb 14, 2026
Hello @SteKoe.
I was reading the new docs regarding this feature and I must say that's a bit confusing, especially when someone reads also this.
In particular:
Configbean is necessary to be presentOf course, this comment is a bit off-topic here, but I just took the chance given that we're discussing about it anyway ;)
cdprete commentedon Feb 24, 2026
Hey @SteKoe @erikpetzold @hzpz @ulischulte. :)
If you guys are open for a contribution for this topic, I can work an a PR that creates the relative Hazelcast store only if a MapConfig is defined for it and falls back to the in-memory one if it's not present.
Such an implementation would be backward compatible with the current possibilities that SBA server offers in terms of Hazelcast configuration (only the map name).
This would prevent breaking behaviors like in #4258.
Ideally, but this would be a breaking change, every store (events and notifications) should have an
enabledproperty to say if it's wanted or not. But this would change the structure of the properties (i.e.:[...].event-storewould become an object instead of just a String as it's now). That's why I'm claiming it's a breaking change.Of course, it may still be possible, depending on what kind of changes are accepted under the 4**.x** part of the version.