The watcher.decision_engine.model.model_root
Module¶
Openstack implementation of the cluster graph.
-
class
watcher.decision_engine.model.model_root.
ModelRoot
(stale=False)[source]¶ Bases:
networkx.classes.digraph.DiGraph
,watcher.decision_engine.model.base.Model
Cluster graph for an Openstack cluster.
-
map_instance
(*args, **kwargs)[source]¶ Map a newly created instance to a node
Parameters: - instance (str or
Instance
) –Instance
object or instance UUID - node (str or
Instance
) –ComputeNode
object or node UUID
- instance (str or
-