Add periodic exec of one-shot commands

This commit is contained in:
eleksir
2025-03-23 11:34:05 +03:00
parent 5976d0b327
commit 81288389c6
7 changed files with 200 additions and 90 deletions

View File

@@ -4,8 +4,23 @@ daemon: true
# PID file for daemon.
pidfile: /var/run/reniced.pid
# Delay among iterations.
loop_delay: 5000
# Delay between process list update task consecutive runs.
process_list_update_period: 5000
# Delay between kill consecutive tasks.
process_kill_period: 5000
# Delay between changing niceness consecutive tasks.
process_nice_period: 5000
# Delay between changing io niceness consecutive tasks (linux-only).
process_ionice_period: 5000
# Period of time between consecutive periodic_process list tasks hammering.
periodic_process_invocation_period: 60000
# Period of time between process exec() invocations.
periodic_process_invocation_delay: 500
# Whether to print debug messages to stdout.
debug: true
@@ -15,7 +30,11 @@ 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
nb_capacity: 3000
# Time to time run these commands.
periodic_process:
- ps xa
kill:
- sig: stop