[−][src]Struct cloudflare_rs::endpoints::load_balancing::Pool
A pool is a set of origins that requests could be routed to (e.g. each of your data centers or regions have its own pool). Requests will be routed to particular pools according to your steering policy, and then balanced across origins in that pool, proportional to each origin's weight.
For example, you might have two pools: one for the US, and one for Oceania. Inside each pool, there would be many origins, with weight roughly proportional to the number of requests they can handle. Then you might use a "dynamic latency" steering policy to ensure requests get routed to whatever pool can serve them fastest. So US users will probably get routed to the US pool. If the US pool becomes unavailable, they'll fail over to the Oceania pool.
Fields
id: Stringcreated_on: DateTime<Utc>modified_on: DateTime<Utc>description: StringA human-readable description of the pool. e.g. "Primary data center - Provider XYZ"
name: Stringenabled: boolWhether to enable (the default) this pool. Disabled pools will not receive traffic and are excluded from health checks. Disabling a pool will cause any load balancers using it to failover to the next pool (if any).
minimum_origins: u8The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins falls below this number, the pool will be marked unhealthy and we will failover to the next available pool.
monitor: StringThe ID of the Monitor to use for health checking origins within this pool.
check_regions: Option<Vec<String>>origins: HashSet<Origin>The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy origins, provided the pool itself is healthy.
notification_email: StringThe email address to send health status notifications to. This can be an individual mailbox or a mailing list.
Trait Implementations
impl ApiResult for Pool[src]
impl Clone for Pool[src]
impl Debug for Pool[src]
impl<'de> Deserialize<'de> for Pool[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl<'a> Endpoint<Pool, (), ()> for PoolDetails<'a>[src]
fn method(&self) -> Method[src]
fn path(&self) -> String[src]
fn query(&self) -> Option<QueryType>[src]
fn body(&self) -> Option<BodyType>[src]
fn url(&self, environment: &Environment) -> Url[src]
fn content_type(&self) -> String[src]
impl<'a> Endpoint<Pool, (), Params<'a>> for CreatePool<'a>[src]
fn method(&self) -> Method[src]
fn path(&self) -> String[src]
fn body(&self) -> Option<Params<'a>>[src]
fn query(&self) -> Option<QueryType>[src]
fn url(&self, environment: &Environment) -> Url[src]
fn content_type(&self) -> String[src]
impl Eq for Pool[src]
impl PartialEq<Pool> for Pool[src]
impl Serialize for Pool[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralEq for Pool[src]
impl StructuralPartialEq for Pool[src]
Auto Trait Implementations
impl RefUnwindSafe for Pool
impl Send for Pool
impl Sync for Pool
impl Unpin for Pool
impl UnwindSafe for Pool
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized, [src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,