Querying Available Capacity for Specified Workloads

Querying Available Capacity for Specified Workloads

#340100

This use case assesses the available capacity of one or more hosting venues, given specific workload requirements. For example, an environment may have space for a different number of small, medium, or large Workloads, and for Workloads that meet specific business constraints.

When assessing multiple hosting venues, the available capacity of each hosting venue is assessed according to cost, capacity and Fit-for-Purpose, as described in Routing Requests–Available Capacity Query. This operation does not place Workloads or reserve capacity.

To perform this query through the Densify API, follow the sections below:

  1. Describing Workloads to Assess
  2. Querying Available Capacity
  3. Processing Capacity Query Results

Describing Workloads to Assess

Use the /workloads resource in the same way as the Routing Workloads for Immediate Placement or Routing Workloads to Reserve Capacity for a Future Date use cases to create one or more Workload definitions that specify the name, the reference system that acts like a clone, resource allocations and attributes for each Workload being assessed.

If the Workload requests are successful, the responses include ID, Name and Self Reference (id, name, href) to the newly created Workload objects. The Workloads can then be referenced in subsequent API calls such as querying for available capacity for the Workloads.

Querying Available Capacity

Use the /routing-requests/available-capacity-query resource to submit a request to determine the available capacity for the specified Workloads in the hosting venues in the request scope. This resource is used in the same way as the /routing-requests resource itself.

For the example below, as no environments and hosting venues are specified, the available capacity for all environments and their corresponding hosting venues are returned.

Optionally, the available capacity query can include specifications to narrow the scope of environments and/or hosting venues to consider.

Processing Capacity Query Results

For each hosting venue assessed by the query, the available capacity is expressed in terms of the number of available slots for the specified Workloads, the number of available slots for the sensor requirements, the hosting cost, the Fit-for-Purpose tests, and the overall hosting score, as described in Routing Requests–Available Capacity Query.

The number of available slots is estimated by computing the number of instances of the aggregate Workloads that can fit in the hosting venue. Thus, the higher the number of available slots in a hosting venue, the greater the amount of available capacity for the specified group of Workloads.

An example set of the available capacity query results is listed below:

Based on the above example, the first Infrastructure Group can accommodate "slots": 20 of the aggregate demand of the specified Workloads and the second Infrastructure Group can accommodate "slots": 28, with a total of "slots": 48 for the Control Environment.

The best hosting option is the first Infrastructure Group, as it has the highest score of "hosting_score": 97.