Sophia scheduler is responsible for planning all background tasks.
The schedule handles following tasks: garbage collection, node compaction, expire, log ration, and so on.
Sophia has multi-thread scallable compaction. Number of active background workers (threads) can be set using scheduler.threads variable.
sp_setint(env, "scheduler.threads", 5);
It is important to correctly set cache size, please check memory requirements.