Select the lowest-latency cloud host region
select_regionGiven a user-population breakdown, find the cloud host region that minimizes population-weighted round-trip latency (argmin_j Σ_i P_i × L_ij), and compute the optimal multi-region split (each user region routed to its nearest host). Latency is estimated from great-circle distance via a fibre-propagation model, not measured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hosts | No | Optional comma-separated host region ids to restrict candidates (e.g. 'us-east-1,eu-west-2'). | |
| users | Yes | Comma-separated region:percent pairs (percentages auto-normalize), e.g. 'US-East:40,UK:30,Germany:30'. Region ids: US-East, US-West, Canada, Brazil, UK, Germany, France, Spain, Nigeria, South-Africa, UAE, India, Singapore, China, Japan, Australia. | |
| provider | No | Optional cloud provider filter, applied before the hosts whitelist. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| best | No | ||
| split | No | ||
| ranking | No |