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.