@control_command(args=[(u'max', int), (u'min', int)], signature=u'[max [min]]')
def autoscale(state, max=None, min=None):
 autoscaler = state.consumer.controller.autoscaler
 if autoscaler:
  (max_, min_) = autoscaler.update(max, min)
  return ok(u'autoscale now max={0} min={1}'.format(max_, min_))
 raise ValueError(u'Autoscale not enabled')

@ control_command ( args = [ ( u'max' , int ) , ( u'min' , int ) ] , signature = u'[max [min]]' ) def autoscale ( state , max = None , min = None ) : autoscaler = state . consumer . controller . autoscaler if autoscaler : ( max_ , min_ ) = autoscaler . update ( max , min ) return ok ( u'autoscale now max={0} min={1}' . format ( max_ , min_ ) ) raise ValueError ( u'Autoscale not enabled' )
modify autoscale settings .