pub struct HttpPoolConfig {
pub max_idle_per_host: usize,
pub idle_timeout_secs: u64,
}Expand description
HTTP connection pool configuration
Fields§
§max_idle_per_host: usizeMaximum number of idle HTTP connections to keep alive per upstream host. Higher values improve performance under load by reusing connections.
- Fan-out scenarios (many upstreams): 100-300
- Single upstream scenarios: 1000-2000
idle_timeout_secs: u64How long (in seconds) to keep idle HTTP connections alive. 90s balances connection reuse with avoiding stale connections.
Trait Implementations§
Source§impl Clone for HttpPoolConfig
impl Clone for HttpPoolConfig
Source§fn clone(&self) -> HttpPoolConfig
fn clone(&self) -> HttpPoolConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpPoolConfig
impl Debug for HttpPoolConfig
Source§impl<'de> Deserialize<'de> for HttpPoolConfig
impl<'de> Deserialize<'de> for HttpPoolConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HttpPoolConfig
impl RefUnwindSafe for HttpPoolConfig
impl Send for HttpPoolConfig
impl Sync for HttpPoolConfig
impl Unpin for HttpPoolConfig
impl UnsafeUnpin for HttpPoolConfig
impl UnwindSafe for HttpPoolConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more