asgard.workers.autoscaler package

Submodules

asgard.workers.autoscaler.app module

asgard.workers.autoscaler.app.scale_all_apps(app: asyncworker.app.App)[código fonte]

asgard.workers.autoscaler.asgard_cloudinterface module

class asgard.workers.autoscaler.asgard_cloudinterface.AsgardInterface[código fonte]

Base: asgard.workers.autoscaler.cloudinterface.CloudInterface

apply_decisions(scaling_decisions: List[asgard.workers.models.decision.Decision]) → List[Dict][código fonte]
fetch_all_apps() → List[asgard.workers.models.scalable_app.ScalableApp][código fonte]
get_all_scalable_apps() → List[asgard.workers.models.scalable_app.ScalableApp][código fonte]
get_app_stats(app: asgard.workers.models.scalable_app.ScalableApp) → asgard.workers.models.app_stats.AppStats[código fonte]

asgard.workers.autoscaler.cloudinterface module

class asgard.workers.autoscaler.cloudinterface.CloudInterface[código fonte]

Base: abc.ABC

apply_decisions(scaling_decisions: asgard.workers.models.decision.Decision) → List[asgard.workers.models.decision.Decision][código fonte]
fetch_all_apps() → List[asgard.workers.models.scalable_app.ScalableApp][código fonte]
get_all_scalable_apps() → List[asgard.workers.models.scalable_app.ScalableApp][código fonte]
get_app_stats(app: asgard.workers.models.scalable_app.ScalableApp) → asgard.workers.models.app_stats.AppStats[código fonte]

asgard.workers.autoscaler.decision_component_interface module

class asgard.workers.autoscaler.decision_component_interface.DecisionComponentInterface[código fonte]

Base: abc.ABC

decide_scaling_actions(apps_stats: List[asgard.workers.models.scalable_app.ScalableApp]) → List[asgard.workers.models.decision.Decision][código fonte]

asgard.workers.autoscaler.periodicstatechecker module

class asgard.workers.autoscaler.periodicstatechecker.PeriodicStateChecker(cloudinterface: asgard.workers.autoscaler.cloudinterface.CloudInterface)[código fonte]

Base: object

get_scalable_apps_stats() → List[asgard.workers.models.scalable_app.ScalableApp][código fonte]

asgard.workers.autoscaler.simple_decision_component module

class asgard.workers.autoscaler.simple_decision_component.DecisionComponent(logger=<JsonLogger json_logger (DEBUG)>)[código fonte]

Base: asgard.workers.autoscaler.decision_component_interface.DecisionComponentInterface

decide_scaling_actions(apps: List[asgard.workers.models.scalable_app.ScalableApp]) → List[asgard.workers.models.decision.Decision][código fonte]

Module contents