# Killing a shard for testing

**URL:** <https://discuss.elastic.co/t/killing-a-shard-for-testing/82439>\
**Category:** Elasticsearch\
**Created:** [April 14, 2017, 6:31pm UTC](https://discuss.elastic.co/t/killing-a-shard-for-testing/82439 "2017-04-14T18:31:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elastic\_boston](https://avatars.discourse-cdn.com/v4/letter/e/a183cd/32.png) [@elastic\_boston](https://discuss.elastic.co/u/elastic_boston)\
**Post date:** [April 14, 2017, 6:31pm UTC](https://discuss.elastic.co/t/killing-a-shard-for-testing/82439/1 "2017-04-14T18:31:48Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [April 15, 2017, 1:49pm UTC](https://discuss.elastic.co/t/killing-a-shard-for-testing/82439/2 "2017-04-15T13:49:13Z")

</div>

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](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html)

but in 2.X and before there is a \_shutdown

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 13, 2017, 1:53pm UTC](https://discuss.elastic.co/t/killing-a-shard-for-testing/82439/3 "2017-05-13T13:53:26Z")

</div>

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