pub struct Pool {
pub id: String,
pub created_on: DateTime<Utc>,
pub modified_on: DateTime<Utc>,
pub description: String,
pub name: String,
pub enabled: bool,
pub minimum_origins: u8,
pub monitor: String,
pub check_regions: Option<Vec<String>>,
pub origins: HashSet<Origin>,
pub notification_email: String,
}Expand description
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: String§created_on: DateTime<Utc>§modified_on: DateTime<Utc>§description: StringA human-readable description of the pool. e.g. “Primary data center - Provider XYZ”
name: String§enabled: 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.