Add task pool, minor changes

- Add task pool to smooth impact when list in config is pretty long
- Update dependencies
- Update config
This commit is contained in:
eleksir
2024-04-06 12:39:41 +03:00
parent 4d04731aeb
commit dc89d197d9
21 changed files with 1558 additions and 157 deletions

View File

@@ -1,14 +1,25 @@
# Fork and run as real unix daemon.
daemon: true
# PID file for daemon.
pidfile: /var/run/reniced.pid
# Delay between subsequent renices or kills, to lower cpu load peaks.
cmd_delay: 33
# Delay between addition and execution of tasks to task pool, to lower cpu load peaks.
cmd_delay: 20
# Delay among iterations.
loop_delay: 5000
# Wheather to print debug messages to stdout.
# Whether to print debug messages to stdout.
debug: true
# Maximum worker in command pool.
max_workers: 3
# Capacity of non-blocking tasks. All tasks that exceeding this capacity will block submission of new tasks until queue
# has vacant place for new task.
nb_capacity: 30
kill:
- sig: stop
name: