pub struct HttpClusterConfig {Show 25 fields
pub cluster_id: String,
pub frontends: Vec<HttpFrontendConfig>,
pub backends: Vec<BackendConfig>,
pub sticky_session: bool,
pub https_redirect: bool,
pub load_balancing: LoadBalancingAlgorithms,
pub load_metric: Option<LoadMetric>,
pub answer_503: Option<String>,
pub http2: Option<bool>,
pub answers: BTreeMap<String, String>,
pub https_redirect_port: Option<u32>,
pub authorized_hashes: Vec<String>,
pub www_authenticate: Option<String>,
pub max_connections_per_ip: Option<u64>,
pub max_connections_per_subnet: Option<u64>,
pub retry_after: Option<u32>,
pub health_check: Option<HealthCheckConfig>,
pub health_check_header_files: Vec<FileHealthCheckHeader>,
pub udp: Option<UdpClusterConfig>,
pub affinity_header: Option<String>,
pub affinity_cookie: Option<String>,
pub shard_percent: Option<u32>,
pub shard_min_backends: Option<u32>,
pub shard_mode: Option<ShardMode>,
pub max_connection_attempts: Option<u32>,
}Fields§
§cluster_id: String§frontends: Vec<HttpFrontendConfig>§backends: Vec<BackendConfig>§sticky_session: bool§https_redirect: bool§load_balancing: LoadBalancingAlgorithms§load_metric: Option<LoadMetric>§answer_503: Option<String>§http2: Option<bool>§answers: BTreeMap<String, String>Per-status template body map (already loaded from disk). Maps to
the proto Cluster::answers field.
https_redirect_port: Option<u32>§www_authenticate: Option<String>§max_connections_per_ip: Option<u64>Per-cluster override of the global max_connections_per_ip. See
FileClusterConfig::max_connections_per_ip for semantics.
max_connections_per_subnet: Option<u64>Per-cluster override of the global max_connections_per_subnet.
See FileClusterConfig::max_connections_per_subnet for
semantics: an independent second cap, not a replacement for the
per-IP one.
retry_after: Option<u32>Per-cluster override of the global retry_after HTTP-429 header
value (seconds). See FileClusterConfig::retry_after.
health_check: Option<HealthCheckConfig>Optional HTTP health-check configuration. The probe wire format
follows cluster.http2: HTTP/1.1 when false, HTTP/2 prior-knowledge
(h2c) when true.
health_check_header_files: Vec<FileHealthCheckHeader>Where each header named by health_check reads its value from, in the
same order. References, never values: they are kept for the protected
activation and never copied into an AddCluster order.
udp: Option<UdpClusterConfig>Optional UDP-specific cluster configuration. Always None for HTTP
clusters; carried for shape uniformity with the proto Cluster.
affinity_header: Option<String>Request header keying HRW/MAGLEV selection. See
FileClusterConfig::affinity_header.
Request cookie keying HRW/MAGLEV selection. See
FileClusterConfig::affinity_cookie.
shard_percent: Option<u32>Shuffle-sharding share of the backends. See
FileClusterConfig::shard_percent.
shard_min_backends: Option<u32>§shard_mode: Option<ShardMode>§max_connection_attempts: Option<u32>Implementations§
Source§impl HttpClusterConfig
impl HttpClusterConfig
pub fn generate_requests(&self) -> Result<Vec<Request>, ConfigError>
Trait Implementations§
Source§impl Clone for HttpClusterConfig
impl Clone for HttpClusterConfig
Source§impl Debug for HttpClusterConfig
impl Debug for HttpClusterConfig
Source§impl<'de> Deserialize<'de> for HttpClusterConfig
impl<'de> Deserialize<'de> for HttpClusterConfig
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>,
impl Eq for HttpClusterConfig
Source§impl Hash for HttpClusterConfig
impl Hash for HttpClusterConfig
Source§impl PartialEq for HttpClusterConfig
impl PartialEq for HttpClusterConfig
Source§impl Serialize for HttpClusterConfig
impl Serialize for HttpClusterConfig
impl StructuralPartialEq for HttpClusterConfig
Auto Trait Implementations§
impl Freeze for HttpClusterConfig
impl RefUnwindSafe for HttpClusterConfig
impl Send for HttpClusterConfig
impl Sync for HttpClusterConfig
impl Unpin for HttpClusterConfig
impl UnsafeUnpin for HttpClusterConfig
impl UnwindSafe for HttpClusterConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.