Killing a shard for testing

I need to test my application under heavy load - especially when one or more shards goes down.

Is there any way to force a shard failure through java? Or through a curl call?

in Elasticsearch 5.X no, you have to kill it at the cli
https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html

but in 2.X and before there is a _shutdown

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.