heat.scaling.scalingutil module

heat.scaling.scalingutil module

heat.scaling.scalingutil.calculate_new_capacity(current, adjustment, adjustment_type, min_adjustment_step, minimum, maximum)[source]

Calculates new capacity from the given adjustments.

Given the current capacity, calculates the new capacity which results from applying the given adjustment of the given adjustment-type. The new capacity will be kept within the maximum and minimum bounds.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.