A new 1.10 API microversion is added to return information that the
scheduler can use to select a particular set of resource providers to
claim resources for an instance.
The GET /allocation_candidates endpoint takes a "resources" querystring
parameter similar to the GET /resource_providers endpoint and returns a
dict with two top-level elements:
"allocation_requests" is a list of JSON objects that contain a
serialized HTTP body that the scheduler may subsequently use in a call
to PUT /allocations/{consumer_uuid} to claim resources against a
related set of resource providers.
"provider_summaries" is a JSON object, keyed by resource provider UUID,
of JSON objects of inventory/capacity information that the scheduler
can use to sort/weigh the results of the call when making its
destination host decisions.
Change-Id: I8dadb364746553d9495aa8bcffd0346ebc0b4baa
blueprint: placement-allocation-requests
11 lines
489 B
YAML
11 lines
489 B
YAML
---
|
|
features:
|
|
- |
|
|
A new 1.10 API microversion is added to the Placement REST API. This
|
|
microversion adds support for the GET /allocation_candidates resource
|
|
endpoint. This endpoint returns information about possible allocation
|
|
requests that callers can make which meet a set of resource constraints
|
|
supplied as query string parameters. Also returned is some inventory and
|
|
capacity information for the resource providers involved in the allocation
|
|
candidates.
|