Automate segment split/merge with JPA event store

We are running our event store using JPA on a Postgres database and our application is deployed using Kubernetes with auto scaling enabled.

I was wondering how I could go about automating split/merge operations for segments.

Did I miss any official documentation on this topic?

Examples would be appreciated.

Thank you.

We actually have a section about this in the AxonIQ Library, right here.

We decided that, as a form of automation, it ideally has a UI for operators to act on. Axon Framework cannot be that UI, as I believe is a relatively clear choice. Instead, Axon Framework only provides the API to trigger a split, merge, release, or claim a segment.

But, AxonIQ does have an operator’s UI for Axon products, called AxonIQ Console. On AxonIQ Console, when connecting your application, you can define how segments should be load balanced over the amount of instances you have. You can even set it up such that it automatically splits or merges segments when your application node count changes.

If you prefer not to use AxonIQ Console, you will simply have to build it from scratch. However, I do recommend you give it a try. It provides a ton of other benefits for your operation-needs.

Anyhow, I hope that clarifies things, @mumia!

Yes, thank you.

The console is not an option for us. Our app lives on an internal environment and is restricted from calling external resources.

You’re not unique in that, so I get it.
If anything, you can take a look at what we do there, and base your implementation on that, of course.