From 2688a5566a81c1ac9079ae21e52d87e523ba4162 Mon Sep 17 00:00:00 2001 From: overtrue Date: Sat, 22 Aug 2026 11:49:03 +0800 Subject: [PATCH] fix(rpc): bound internode channel concurrency --- crates/protos/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/protos/src/lib.rs b/crates/protos/src/lib.rs index a9e59b8a0..ccfb8197d 100644 --- a/crates/protos/src/lib.rs +++ b/crates/protos/src/lib.rs @@ -2106,6 +2106,9 @@ pub enum ChannelClass { Bulk, } +// Keep multiplexed unary RPCs below h2's per-connection small-frame budget. +const INTERNODE_RPC_CONCURRENCY_LIMIT: usize = 64; + /// Whether control/bulk channel isolation is enabled (env-gated, default off for safe rollout). fn channel_isolation_enabled() -> bool { rustfs_utils::get_env_bool( @@ -2188,6 +2191,7 @@ async fn build_channel(dial_addr: &str, cache_key: &str) -> Result