Passing gateway.expected_nodes as a command line parameter?


(Sacheendra Talluri) #1

Would passing expected nodes to elasticsearch as a command line parameter like this work?

"elasticsearch -Des.gateway.expected_nodes=2"


(Shaunak Kashyap) #2

You should be able to pass expected nodes to elasticsearch as a commandline parameter like so:

elasticsearch --gateway.expected_nodes=2

Reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/_system_and_settings.html


(Mark Walkom) #3

Using -Des.gateway.expected_nodes=2 should work :slight_smile:


(Sacheendra Talluri) #4

I doubted whether this would work because when i tried the option -Des.bootstrap.mlockall=true it did not work, any idea why this did not work?


(system) #5