From 5d60d91d1f6117c9343c5a9652139448fb9a1a8c Mon Sep 17 00:00:00 2001 From: Luxian Date: Fri, 13 Mar 2026 16:41:02 +0800 Subject: [PATCH] chore(orion): tune buck2 and scorpio config - Add BUCKD_STARTUP_TIMEOUT=30 and BUCKD_STARTUP_INIT_TIMEOUT to all buck2 command invocations (Buck2::command, get_repo_targets, build) to prevent daemon startup timeouts under slow I/O environments - Bump scorpiofs dependency from 0.1.1 to 0.2.0 - Increase scorpio load_dir_depth from 3 to 5 and fetch_file_thread from 10 to 20 for better prefetch coverage and concurrency Signed-off-by: Luxian --- orion/Cargo.toml | 2 +- orion/buck/run.rs | 3 +++ orion/runner-config/scorpio.toml | 4 ++-- orion/src/buck_controller.rs | 6 +++++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/orion/Cargo.toml b/orion/Cargo.toml index 9f3dacad8..649bc99a7 100644 --- a/orion/Cargo.toml +++ b/orion/Cargo.toml @@ -32,5 +32,5 @@ utoipa.workspace = true common = { path = "../common" } ring = "0.17.14" hex = { workspace = true } -scorpiofs = "0.1.1" +scorpiofs = "0.2.0" tokio-util = { workspace = true } diff --git a/orion/buck/run.rs b/orion/buck/run.rs index 5071002e7..cca69882c 100644 --- a/orion/buck/run.rs +++ b/orion/buck/run.rs @@ -59,6 +59,9 @@ impl Buck2 { pub fn command(&self) -> Command { let mut command = Command::new(&self.program); + command + .env("BUCKD_STARTUP_TIMEOUT", "30") + .env("BUCKD_STARTUP_INIT_TIMEOUT", "1200"); match &self.isolation_dir { None => {} Some(isolation_dir) => { diff --git a/orion/runner-config/scorpio.toml b/orion/runner-config/scorpio.toml index 50e35b10a..9a5082972 100644 --- a/orion/runner-config/scorpio.toml +++ b/orion/runner-config/scorpio.toml @@ -22,8 +22,8 @@ git_email = "admin@mega.org" # Dicfuse 读取配置 dicfuse_readable = "true" -load_dir_depth = "3" -fetch_file_thread = "10" +load_dir_depth = "5" +fetch_file_thread = "20" dicfuse_import_concurrency = "4" dicfuse_dir_sync_ttl_secs = "5" dicfuse_reply_ttl_secs = "2" diff --git a/orion/src/buck_controller.rs b/orion/src/buck_controller.rs index 9ca1f627b..5b4c7df38 100644 --- a/orion/src/buck_controller.rs +++ b/orion/src/buck_controller.rs @@ -296,6 +296,8 @@ fn get_repo_targets(file_name: &str, repo_path: &Path) -> anyhow::Result