# Is it safe to write into a green index in a red cluster?

**URL:** <https://discuss.elastic.co/t/is-it-safe-to-write-into-a-green-index-in-a-red-cluster/244743>\
**Category:** Elasticsearch\
**Created:** [August 12, 2020, 2:56pm UTC](https://discuss.elastic.co/t/is-it-safe-to-write-into-a-green-index-in-a-red-cluster/244743 "2020-08-12T14:56:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wenhoujx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wenhoujx/32/73759_2.png) [@wenhoujx](https://discuss.elastic.co/u/wenhoujx)\
**Post date:** [August 12, 2020, 2:56pm UTC](https://discuss.elastic.co/t/is-it-safe-to-write-into-a-green-index-in-a-red-cluster/244743/1 "2020-08-12T14:56:24Z")

</div>

hello, IIUC, i can write documents to a green index even if the cluster is red and trying to allocating shards.

but is it safe to do it? anything i should watch out for?

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 12, 2020, 10:10pm UTC](https://discuss.elastic.co/t/is-it-safe-to-write-into-a-green-index-in-a-red-cluster/244743/2 "2020-08-12T22:10:54Z")

</div>

If the index is green and you get a 200 response for the document(s), then you will be ok.

---

<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:** [September 9, 2020, 10:10pm UTC](https://discuss.elastic.co/t/is-it-safe-to-write-into-a-green-index-in-a-red-cluster/244743/3 "2020-09-09T22:10:58Z")

</div>

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