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.
|
||||
|
||||
+----------------------+---------+----------+-----------+---------------------------------------+
|
||||
| Fields | Type | Required | Default | Value |
|
||||
+======================+=========+==========+===========+=======================================+
|
||||
| name | string | True | | name for cluster template |
|
||||
+----------------------+---------+----------+-----------+---------------------------------------+
|
||||
| description | string | | Empty | description |
|
||||
+----------------------+---------+----------+-----------+---------------------------------------+
|
||||
| cluster_configs | object | | | name_of_config_section: config: value |
|
||||
+----------------------+---------+----------+-----------+---------------------------------------+
|
||||
| node_group_templates | object | True | | name_of_node_group: count |
|
||||
+----------------------+---------+----------+-----------+---------------------------------------+
|
||||
| anti_affinity | boolean | | False | |
|
||||
+----------------------+---------+----------+-----------+---------------------------------------+
|
||||
+----------------------+--------+----------+-----------+---------------------------------------+
|
||||
| Fields | Type | Required | Default | Value |
|
||||
+======================+========+==========+===========+=======================================+
|
||||
| name | string | True | | name for cluster template |
|
||||
+----------------------+--------+----------+-----------+---------------------------------------+
|
||||
| description | string | | Empty | description |
|
||||
+----------------------+--------+----------+-----------+---------------------------------------+
|
||||
| cluster_configs | object | | | name_of_config_section: config: value |
|
||||
+----------------------+--------+----------+-----------+---------------------------------------+
|
||||
| node_group_templates | object | True | | name_of_node_group: count |
|
||||
+----------------------+--------+----------+-----------+---------------------------------------+
|
||||
| anti_affinity | array | | Empty | array of roles |
|
||||
+----------------------+--------+----------+-----------+---------------------------------------+
|
||||
|
||||
|
||||
Section "cluster"
|
||||
|
@ -231,7 +231,11 @@ SCHEMA = {
|
||||
}
|
||||
},
|
||||
"anti_affinity": {
|
||||
"type": "boolean"
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["name", "node_group_templates"],
|
||||
|
@ -41,6 +41,9 @@ clusters:
|
||||
node_group_templates:
|
||||
master: 1
|
||||
worker: 3
|
||||
anti_affinity:
|
||||
- namenode
|
||||
- datanode
|
||||
scenario:
|
||||
- run_jobs
|
||||
- scale
|
||||
|
Loading…
Reference in New Issue
Block a user