Increse / decrease number of segments / threads for TrackingEventProcessor

38 views
Skip to first unread message

oli...@libutzki.de

unread,
Jul 1, 2020, 1:44:52 AM7/1/20
to Axon Framework Users
Hi,

I would like to increase/derease the number of segments for a given TrackingEventProcessor at application start time.

Unfortunately Axon Frameworks seems not to be able to increase or decrease the numbre of segments automatically.

I know there is an API for Splitting and Merging segments at runtime, but is this also necessary if I define the number of segments at start time? 

Thanks!

Steven van Beelen

unread,
Sep 16, 2020, 5:03:42 AM9/16/20
to Axon Framework Users
Hi Oliver,

The number of segments you define at start up, is called the "initialSegmentCount".
This field will only be used to deduce the initial number of segments if no segments are present.
Thus, when the Tracking Event Processor starts up for the first time.

So, if you want to scale the number of segments after the application has run, you will have to use the split and merge functionality.

Unfortunately Axon Frameworks seems not to be able to increase or decrease the numbre of segments automatically.
Although indeed unfortunate, an Axon Framework application on it's own could never deduce this, as a single application is not aware of any other application running the same Tracking Event Processor.
Hence why the API of split and merge is implemented and usable through the Axon Server dashboard, as it serves as the "man in the middle" which can coordinate these operations.

As such the automatic scaling of segments will very likely eventually end up in Axon Server.
Within a single Axon application however, I don't think this will be introduced due to the aforementioned reasons.

Trusting this clarifies things for you Oliver!

Cheers,
Steven

PS. It is important to note that this mailing list will be discontinued as specified in this thread.
The thread also specifies where to look further for help when it comes to Axon as soon as this mailing list is closed.

--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/axonframework/c12f9b36-a810-4c94-90aa-378b2f695608n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages