mdbergmann / cl-gserver

Sento - Actor framework featuring actors and agents for easy access to state and asynchronous operations.

Home Page:https://mdbergmann.github.io/cl-gserver/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve dispatchers

mdbergmann opened this issue · comments

Dispatchers now use a fixed set of workers using actors with separate threads.
Those workers all run right from the start and also if there is no load on the system.
It would be great to be able to specify a 'core' number of workers that should run always and a 'max' number. If there is more load than the 'core' workers can handle then spawn more workers until 'max' is reached.
That however implies that there is a knowledge by the dispatcher which worker is currently busy and which is idle.