server: set minimum number of tokio worker threads

This commit is contained in:
2025-11-27 16:17:20 +09:00
parent e51e8fe408
commit 3eac8ffd94
4 changed files with 28 additions and 1 deletions

View File

@@ -48,6 +48,12 @@ pub struct Supervisor {
impl Supervisor {
pub async fn new(config: ServerConfig, systemd_mode: bool) -> anyhow::Result<Self> {
log::debug!("Starting server supervisor");
log::debug!(
"Running in tokio with {} worker threads",
tokio::runtime::Handle::current().metrics().num_workers()
);
let mut watchdog_duration = None;
let mut watchdog_micro_seconds = 0;
let watchdog_task =