mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 01:10:23 +08:00
tune(tunnel): 调整 tunnel 超时与连接池参数,增加冗余连接下限
- Gateway: 增大 idle timeout 至 2s、ping interval 至 500ms - Proxy: 统一 reconnect/ping/stale 超时为常量,降低 reconnect_max 至 250ms - 自动连接池引入 redundant floor(2),保证低负载时也有冗余连接
This commit is contained in:
@@ -46,8 +46,8 @@ pub(crate) const TUNNEL_NODE_STATUS_PATH: &str = "/api/internal/tunnel/node-stat
|
||||
pub(crate) const TUNNEL_RELAY_PATH_PATTERN: &str = "/api/internal/tunnel/relay/{node_id}";
|
||||
pub(crate) const TUNNEL_ROUTE_FAMILY: &str = "tunnel_manage";
|
||||
|
||||
const DEFAULT_PROXY_IDLE_TIMEOUT_MS: u64 = 900;
|
||||
const DEFAULT_PING_INTERVAL_MS: u64 = 250;
|
||||
const DEFAULT_PROXY_IDLE_TIMEOUT_MS: u64 = 2_000;
|
||||
const DEFAULT_PING_INTERVAL_MS: u64 = 500;
|
||||
const DEFAULT_MAX_STREAMS: usize = 2048;
|
||||
const DEFAULT_OUTBOUND_QUEUE_CAPACITY: usize = 128;
|
||||
const DEFAULT_ATTACHMENT_TTL_SECS: u64 = 90;
|
||||
|
||||
Reference in New Issue
Block a user