Passing gateway.expected_nodes as a command line parameter?

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

"elasticsearch -Des.gateway.expected_nodes=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

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

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?