Skip to content

Commit

Permalink
Use single node discovery type if suitable
Browse files Browse the repository at this point in the history
With this commit we use the discovery type "single-node" when it makes
sense.

Relates elastic#681
  • Loading branch information
danielmitterdorfer authored Apr 15, 2019
1 parent 8e27e8e commit ce923fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions esrally/mechanic/provisioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ def __init__(self, car, node_name, cluster_settings, ip, http_port, node_root_di
"heap_dump_path": "/usr/share/elasticsearch/heapdump",
# Docker container needs to expose service on external interfaces
"network_host": "0.0.0.0",
"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,
Expand Down
1 change: 1 addition & 0 deletions tests/mechanic/provisioner_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ def test_provisioning_with_defaults(self, uuid4):
"data_paths": ["/usr/share/elasticsearch/data"],
"log_path": "/var/log/elasticsearch",
"heap_dump_path": "/usr/share/elasticsearch/heapdump",
"discovery_type": "single-node",
"network_host": "0.0.0.0",
"http_port": "39200-39300",
"transport_port": "39300-39400",
Expand Down

0 comments on commit ce923fb

Please sign in to comment.