create-auto-scale-rules

subtitle

Create Auto Scaling rules for a DataHub cluster

version

0.9.126

Description

Create Auto Scaling rules for a DataHub cluster.

Synopsis

  create-auto-scale-rules
--cluster-name <value>
--auto-scale-policies <value>
[--enabled | --no-enabled]
[--cli-input-json <value>]
[--generate-cli-skeleton]

Options

--cluster-name (string)

The name or CRN of the cluster.

--auto-scale-policies (array)

The actual scaling policies for the cluster

JSON Syntax:

[
  {
    "hostGroups": "string",
    "scheduleBasedPolicy": {
      "schedules": [
        {
          "configuration": {
            "trigger": {
              "cronExpression": "string",
              "timeZone": "string"
            },
            "action": {
              "resourceAdjustmentType": "ABSOLUTE_COUNT",
              "resourceAdjustmentValue": integer
            }
          },
          "identifier": "string",
          "description": "string"
        }
        ...
      ]
    },
    "loadBasedPolicy": {
      "configuration": {
        "minResourceValue": integer,
        "maxResourceValue": integer,
        "coolDownMinutes": integer
      },
      "identifier": "string",
      "description": "string"
    }
  }
  ...
]

--enabled | --no-enabled (boolean)

true (default) to enable Autoscaling, false to disable AutoScaling.

--cli-input-json (string)

Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.

--generate-cli-skeleton (boolean)

Prints a sample input JSON to standard output. Note the specified operation is not run if this argument is specified. The sample input can be used as an argument for --cli-input-json.

Output

autoScaleRules -> (object)

Autoscale configuration

clusterName -> (string)

The name or CRN of the cluster.

enabled -> (boolean)

Whether autoscaling is enabled or not for the cluster

autoScalePolicies -> (array)

The actual scaling policy(ies) for the cluster

item -> (object)

An individual AutoScale Policy

hostGroups -> (string)

A single hostgroup, or a comma separated list of hostGroups to which the rules apply

scheduleBasedPolicy -> (object)

Schedule for AutoScaling

schedules -> (array)

List of individual schedules

item -> (object)

An individual schedule based policy

configuration -> (object)

The schedule configuration.

trigger -> (object)

The trigger for this rule.

cronExpression -> (string)

The cron expression for this schedule

timeZone -> (string)

The time zone for the cron expression

action -> (object)

The scaling action to take when triggered.

resourceAdjustmentType -> (string)

The type of resource adjustment. Only ABSOLUTE_COUNT supported at the moment.

resourceAdjustmentValue -> (integer)

The target value for the resource based on the AdjustmentType

identifier -> (string)

An identifier fot the specific schedule. Generally usefulf for debugging.

description -> (string)

Description for the specified schedule.

loadBasedPolicy -> (object)

Configuration for Load Based Scaling

configuration -> (object)

Configuration for load based scaling

minResourceValue -> (integer)

The lower bound for the resource

maxResourceValue -> (integer)

The upper bound for the resource

coolDownMinutes -> (integer)

Minimum time, in minutes, between autoscale activity

identifier -> (string)

An identifer for this rule. Useful for debugging and logging.

description -> (string)

Description for the specified schedule.

Form Factors

public