class Azure::BatchAI::Mgmt::V2018_05_01::Models::AutoScaleSettings

Auto-scale settings for the cluster. The system automatically scales the cluster up and down (within minimumNodeCount and maximumNodeCount) based on the number of queued and running jobs assigned to the cluster.

Attributes

initial_node_count[RW]

@return [Integer] Initial node count. The number of compute nodes to allocate on cluster creation. Note that this value is used only during cluster creation. Default: 0. Default value: 0 .

maximum_node_count[RW]

@return [Integer] Maximum node count. The maximum number of compute nodes the cluster can have.

minimum_node_count[RW]

@return [Integer] Minimum node count. The minimum number of compute nodes the Batch AI service will try to allocate for the cluster. Note, the actual number of nodes can be less than the specified value if the subscription has not enough quota to fulfill the request.

Private Class Methods

mapper() click to toggle source

Mapper for AutoScaleSettings class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2018-05-01/generated/azure_mgmt_batchai/models/auto_scale_settings.rb, line 37
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AutoScaleSettings',
    type: {
      name: 'Composite',
      class_name: 'AutoScaleSettings',
      model_properties: {
        minimum_node_count: {
          client_side_validation: true,
          required: true,
          serialized_name: 'minimumNodeCount',
          type: {
            name: 'Number'
          }
        },
        maximum_node_count: {
          client_side_validation: true,
          required: true,
          serialized_name: 'maximumNodeCount',
          type: {
            name: 'Number'
          }
        },
        initial_node_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'initialNodeCount',
          default_value: 0,
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end