func (n *NodeGroup) IncreaseSize(delta int) error {
	if delta <= 0 {
		return fmt.Errorf("delta must be positive, have: %d", delta)
	}

	targetSize := n.target + delta

	if targetSize > n.MaxSize() {
		return fmt.Errorf("size increase is too large. current: %d desired: %d max: %d",
			n.target, targetSize, n.MaxSize())
	}

	err := n.manager.addUnits(delta)
	if err != nil {
		return err
	}

	// update internal cache
	n.target = targetSize

	return nil
}
// IncreaseSize increases the size of the node group. To delete a node you need
// to explicitly name it and use DeleteNode. This function should wait until
// node group size is updated. Implementation required.
IncreaseSize increases the size of the node group. To delete a node you need
to explicitly name it and use DeleteNode. This function should wait until
node group size is updated. Implementation required.
// IncreaseSize increases the size of the node group . To delete a node you need // to explicitly name it and use DeleteNode . This function should wait until // node group size is updated . Implementation required .
func (n *NodeGroup) IncreaseSize(delta int) error {
	if delta <= 0 {
		return fmt.Errorf("delta must be positive, have: %d", delta)
	}
	targetSize := n.target + delta
	if targetSize > n.MaxSize() {
		return fmt.Errorf("size increase is too large. current: %d desired: %d max: %d",
			n.target, targetSize, n.MaxSize())
	}
	err := n.manager.addUnits(delta)
	if err != nil {
		return err
	}
	n.target = targetSize
	return nil
}
func ( n * NodeGroup ) IncreaseSize ( delta int ) error { if delta <= 0 { return fmt . Errorf ( " " , delta ) } targetSize := n . target + delta if targetSize > n . MaxSize ( ) { return fmt . Errorf ( " " , n . target , targetSize , n . MaxSize ( ) ) } err := n . manager . addUnits ( delta ) if err != nil { return err } n . target = targetSize return nil }
IncreaseSize increases the size of the node group.
IncreaseSize increases the size of the node group .
// update internal cache