Skip to main content

autoscale

Modify autoscale settings.

def autoscale(
state: object,
max: integer = None,
min: integer = None
) - > string

Modify autoscale settings.

Parameters

NameTypeDescription
stateobjectThe current application state containing the consumer and controller instances
maxinteger = NoneThe maximum number of workers the autoscaler is permitted to spawn
mininteger = NoneThe minimum number of workers the autoscaler must maintain

Returns

TypeDescription
stringA success message indicating the updated maximum and minimum worker limits