Skip to content

Feature: Allow to configure instance event store max size #5604

Closed

Description

@cdprete

Hello.

It would be great if the value used for https://github.com/codecentric/spring-boot-admin/blob/master/spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/eventstore/ConcurrentMapEventStore.java#L52 (and related subclasses) could be configurable with a property rather than being hardcoded to 100.

In this way, if wanted, some memory can be spared by running the compaction more often.

Activity

  1. changed the title [-]Feature: Allow to configure max instance event store size[/-] [+]Feature: Allow to configure instance event store max size[/+] on Aug 9, 2026
  2. ulischulte commented on Aug 14, 2026

    @ulischulte
    Contributor

    Hi @cdprete,

    the hardcoded value 100 is only used as a fallback in the AutoConfiguration when no EventStore is provided. To avoid the AutoConfiguration creating one automatically, you can simply instantiate an InstanceEventStore with any desired size yourself.

  3. cdprete commented on Aug 14, 2026

    @cdprete
    ContributorAuthor

    Hi @ulischulte.

    Fair enough. It's an overkill, but indeed it's possible.
    Of course, in general, we can overtake any bean with our own and redefine everything, but is this really the correct way forward you want to suggest to your consumers?

  4. ulischulte commented on Aug 21, 2026

    @ulischulte
    Contributor

    At least, that is the currently documented method for configuring the EventStore, referenced here Persistence and Event Store

  5. PineeAppleee commented on Sep 5, 2026

    @PineeAppleee
    Contributor

    Hi @cdprete @ulischulte @hzpz, since this was just labeled as an enhancement, I'd like to try implementing it if it's still up for grabs. My plan: add a configuration property (something like spring.boot.admin.monitor.event-store.max-size or similar, exact naming open to suggestion) that gets wired into the ConcurrentMapEventStore auto-configuration in place of the hardcoded 100, defaulting to 100 to keep current behavior unchanged. Let me know if that approach sounds right or if you'd prefer it named/structured differently before I start.

  6. cdprete commented on Sep 5, 2026

    @cdprete
    ContributorAuthor

    Hi @cdprete @ulischulte @hzpz, since this was just labeled as an enhancement, I'd like to try implementing it if it's still up for grabs. My plan: add a configuration property (something like spring.boot.admin.monitor.event-store.max-size or similar, exact naming open to suggestion) that gets wired into the ConcurrentMapEventStore auto-configuration in place of the hardcoded 100, defaulting to 100 to keep current behavior unchanged. Let me know if that approach sounds right or if you'd prefer it named/structured differently before I start.

    Sounds good to me, but it's not on me to decide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions