NodeConfig#
- class NodeConfig(model=None, node_count=None, target_online_time=None, is_enabled=False, is_disregarded=False, node_source=None, node_resource_capacity=None, *args, **kwargs)#
Bases:
objectNode specification.
- Parameters:
model (required) – (
model) Model name of a node.node_count – (
node_count) Number of nodes in a model.target_online_time – (
target_online_time) Recommended time when a node should be live in a cluster.is_enabled (required) – (
is_enabled) Flag to indicate if node is to be taken into account while performing capacity scenario analysis. (Default False)is_disregarded – (
is_disregarded) Flag indicating whether the added node is an existing node from the cluster that should be excluded from the scenario. This flag must be used only when disregarding an existing node. (Default False)node_source (required) – (
node_source)node_resource_capacity – (
node_resource_capacity)
- property is_disregarded#
Flag indicating whether the added node is an existing node from the cluster that should be excluded from the scenario. This flag must be used only when disregarding an existing node.
- Type:
bool
- property is_enabled#
Flag to indicate if node is to be taken into account while performing capacity scenario analysis.
- Type:
bool
- property model#
Model name of a node.
- Type:
str
- property node_count#
Number of nodes in a model.
- Type:
int
- property node_resource_capacity#
- Type:
- property node_source#
- Type:
- property target_online_time#
Recommended time when a node should be live in a cluster.
- Type:
datetime
- to_dict()#
Returns the model properties as a dictionary
- to_str()#
Returns the string representation of the model