Skip to content

Commit

Permalink
Remove node_count_per_host
Browse files Browse the repository at this point in the history
With this commit we remove the provisioner variable
`node_count_per_host` which has been used to define the setting
`node.max_local_storage_nodes` in Elasticsearch. As the only value that
we ever allow (`1`) is identical to Elasticsearch's default, we remove
support for this variable.

Relates elastic/rally-teams#27
Relates elastic#691
  • Loading branch information
danielmitterdorfer authored May 23, 2019
1 parent 8a64996 commit 2f62d72
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion docs/car.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ If you open ``vanilla/templates/config/elasticsearch.yml`` you will see a few va

* ``network_host``
* ``http_port``
* ``node_count_per_host``

These values are derived by Rally internally based on command line flags and you cannot override them in your car definition. You also cannot use these names as names for variables because Rally would simply override them.

Expand Down
3 changes: 0 additions & 3 deletions esrally/mechanic/provisioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,6 @@ def variables(self):
"all_node_ips": "[\"%s\"]" % "\",\"".join(self.all_node_ips),
# at the moment we are strict and enforce that all nodes are master eligible nodes
"minimum_master_nodes": len(self.all_node_ips),
# We allow multiple nodes per host but we do not allow that they share their data directories
"node_count_per_host": 1,
"install_root_path": self.es_home_path
}
variables = {}
Expand Down Expand Up @@ -404,7 +402,6 @@ def __init__(self, car, node_name, cluster_settings, ip, http_port, node_root_di
"discovery_type": "single-node",
"http_port": "%d-%d" % (self.http_port, self.http_port + 100),
"transport_port": "%d-%d" % (self.http_port + 100, self.http_port + 200),
"node_count_per_host": 1,
"cluster_settings": cluster_settings
}

Expand Down
6 changes: 0 additions & 6 deletions tests/mechanic/provisioner_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def null_apply_config(source_root_path, target_root_path, config_vars):
"transport_port": "9300-9400",
"all_node_ips": "[\"10.17.22.22\",\"10.17.22.23\"]",
"minimum_master_nodes": 2,
"node_count_per_host": 1,
"install_root_path": "/opt/elasticsearch-5.0.0"
}, config_vars)

Expand Down Expand Up @@ -196,7 +195,6 @@ def null_apply_config(source_root_path, target_root_path, config_vars):
"transport_port": "9300-9400",
"all_node_ips": "[\"10.17.22.22\",\"10.17.22.23\"]",
"minimum_master_nodes": 2,
"node_count_per_host": 1,
"install_root_path": "/opt/elasticsearch-5.0.0",
"plugin_name": "x-pack-security",
"xpack_security_enabled": True
Expand Down Expand Up @@ -274,7 +272,6 @@ def null_apply_config(source_root_path, target_root_path, config_vars):
"transport_port": "9300-9400",
"all_node_ips": "[\"10.17.22.22\",\"10.17.22.23\"]",
"minimum_master_nodes": 2,
"node_count_per_host": 1,
"install_root_path": "/opt/elasticsearch-6.3.0",
"plugin_name": "x-pack-security",
"xpack_security_enabled": True
Expand Down Expand Up @@ -365,7 +362,6 @@ def test_prepare_default_data_paths(self, mock_rm, mock_ensure_dir, mock_decompr
"transport_port": "9300-9400",
"all_node_ips": "[\"10.17.22.22\",\"10.17.22.23\"]",
"minimum_master_nodes": 2,
"node_count_per_host": 1,
"install_root_path": "/install/elasticsearch-5.0.0-SNAPSHOT"
}, installer.variables)

Expand Down Expand Up @@ -402,7 +398,6 @@ def test_prepare_user_provided_data_path(self, mock_rm, mock_ensure_dir, mock_de
"transport_port": "9300-9400",
"all_node_ips": "[\"10.17.22.22\",\"10.17.22.23\"]",
"minimum_master_nodes": 2,
"node_count_per_host": 1,
"install_root_path": "/install/elasticsearch-5.0.0-SNAPSHOT"
}, installer.variables)

Expand Down Expand Up @@ -566,7 +561,6 @@ def test_provisioning_with_defaults(self, uuid4):
"network_host": "0.0.0.0",
"http_port": "39200-39300",
"transport_port": "39300-39400",
"node_count_per_host": 1,
"cluster_settings": {
"indices.query.bool.max_clause_count": 5000
},
Expand Down

0 comments on commit 2f62d72

Please sign in to comment.