recommend

Provides a recommended set of node pools on a given provider in a specific region.

Provides a recommended set of node pools on a given provider in a specific region.

post/recommender/provider/{provider}/service/{service}/region/{region}/cluster

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    none declared

Path parameters

providerstring required

provider

servicestring required

service

regionstring required

region

Request body

allowBurstboolean

Are burst instances allowed in recommendation

allowOlderGenboolean

AllowOlderGen allow older generations of virtual machines (applies for EC2 only)

categorystring[]

Category specifies the virtual machine category

excludesstring[]

Excludes is a blacklist - a slice with vm types to be excluded from the recommendation

includesstring[]

Includes is a whitelist - a slice with vm types to be contained in the recommendation

maxNodesinteger

Maximum number of nodes in the recommended cluster

minNodesinteger

Minimum number of nodes in the recommended cluster

networkPerfstring[]

NetworkPerf specifies the network performance category

onDemandPctinteger

Percentage of regular (on-demand) nodes in the recommended cluster

sameSizeboolean

If true, recommended instance types will have a similar size

sumCpunumber double

Total number of CPUs requested for the cluster

sumGpuinteger

Total number of GPUs requested for the cluster

sumMemnumber double

Total memory requested for the cluster (GB)

zonestring

Availability zone that the cluster should expand to

Response

recommendation response

providerstring

The cloud provider

regionstring

Service's region

servicestring

Provider's service

zonestring

Availability zone in the recommendation - a multi-zone recommendation means that all node pools should expand to all zones

Example response

{
  "provider": "provider",
  "zone": "zone",
  "service": "service",
  "accuracy": {
    "masterPrice": 6.027456183070403,
    "memory": 1.4658129805029452,
    "nodes": 5,
    "spotPrice": 9.301444243932576,
    "workerPrice": 2.027123023002322,
    "totalPrice": 3.616076749251911,
    "zone": "zone",
    "regularPrice": 2.3021358869347655,
    "cpu": 0.8008281904610115,
    "regularNodes": 5,
    "spotNodes": 7
  },
  "nodePools": [
    {
      "role": "role",
      "vmClass": "vmClass",
      "vm": {
        "currentGen": true,
        "memPerVm": 1.4894159098541704,
        "gpusPerVm": 1.0246457001441578,
        "networkPerf": "networkPerf",
        "avgPrice": 7.386281948385884,
        "burst": true,
        "category": "category",
        "networkPerfCategory": "networkPerfCategory",
        "type": "type",
        "zones": [
          "zones",
          "zones"
        ],
        "onDemandPrice": 6.84685269835264,
        "cpusPerVm": 1.2315135367772556
      },
      "sumNodes": 4
    },
    {
      "role": "role",
      "vmClass": "vmClass",
      "vm": {
        "currentGen": true,
        "memPerVm": 1.4894159098541704,
        "gpusPerVm": 1.0246457001441578,
        "networkPerf": "networkPerf",
        "avgPrice": 7.386281948385884,
        "burst": true,
        "category": "category",
        "networkPerfCategory": "networkPerfCategory",
        "type": "type",
        "zones": [
          "zones",
          "zones"
        ],
        "onDemandPrice": 6.84685269835264,
        "cpusPerVm": 1.2315135367772556
      },
      "sumNodes": 4
    }
  ],
  "region": "region"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.