Merge "Enable anti_affinity feature in scenario test"
This commit is contained in:
commit
7f1a0df574
@ -275,19 +275,19 @@ Section "cluster_template"
|
|||||||
|
|
||||||
This section is dictionary-type.
|
This section is dictionary-type.
|
||||||
|
|
||||||
+----------------------+---------+----------+-----------+---------------------------------------+
|
+----------------------+--------+----------+-----------+---------------------------------------+
|
||||||
| Fields | Type | Required | Default | Value |
|
| Fields | Type | Required | Default | Value |
|
||||||
+======================+=========+==========+===========+=======================================+
|
+======================+========+==========+===========+=======================================+
|
||||||
| name | string | True | | name for cluster template |
|
| name | string | True | | name for cluster template |
|
||||||
+----------------------+---------+----------+-----------+---------------------------------------+
|
+----------------------+--------+----------+-----------+---------------------------------------+
|
||||||
| description | string | | Empty | description |
|
| description | string | | Empty | description |
|
||||||
+----------------------+---------+----------+-----------+---------------------------------------+
|
+----------------------+--------+----------+-----------+---------------------------------------+
|
||||||
| cluster_configs | object | | | name_of_config_section: config: value |
|
| cluster_configs | object | | | name_of_config_section: config: value |
|
||||||
+----------------------+---------+----------+-----------+---------------------------------------+
|
+----------------------+--------+----------+-----------+---------------------------------------+
|
||||||
| node_group_templates | object | True | | name_of_node_group: count |
|
| node_group_templates | object | True | | name_of_node_group: count |
|
||||||
+----------------------+---------+----------+-----------+---------------------------------------+
|
+----------------------+--------+----------+-----------+---------------------------------------+
|
||||||
| anti_affinity | boolean | | False | |
|
| anti_affinity | array | | Empty | array of roles |
|
||||||
+----------------------+---------+----------+-----------+---------------------------------------+
|
+----------------------+--------+----------+-----------+---------------------------------------+
|
||||||
|
|
||||||
|
|
||||||
Section "cluster"
|
Section "cluster"
|
||||||
|
@ -231,7 +231,11 @@ SCHEMA = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"anti_affinity": {
|
"anti_affinity": {
|
||||||
"type": "boolean"
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["name", "node_group_templates"],
|
"required": ["name", "node_group_templates"],
|
||||||
|
@ -41,6 +41,9 @@ clusters:
|
|||||||
node_group_templates:
|
node_group_templates:
|
||||||
master: 1
|
master: 1
|
||||||
worker: 3
|
worker: 3
|
||||||
|
anti_affinity:
|
||||||
|
- namenode
|
||||||
|
- datanode
|
||||||
scenario:
|
scenario:
|
||||||
- run_jobs
|
- run_jobs
|
||||||
- scale
|
- scale
|
||||||
|
Loading…
Reference in New Issue
Block a user