# Вопрос по статусам индексов

**URL:** <https://discuss.elastic.co/t/topic/258741>\
**Category:** Вопросы на русском языке\
**Created:** [December 15, 2020, 4:58pm UTC](https://discuss.elastic.co/t/topic/258741 "2020-12-15T16:58:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy4195](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@andy4195](https://discuss.elastic.co/u/andy4195)\
**Post date:** [December 15, 2020, 4:58pm UTC](https://discuss.elastic.co/t/topic/258741/1 "2020-12-15T16:58:27Z")

</div>

Добрый день. Периодически, при заполнении диска, БД ставит индексы в RO. Как программно, с помощью транспорта на Java проверять статус RO у индекса, чтобы можно было написать оповещение о проблеме в нашу службу эксплуатации?

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [December 15, 2020, 5:57pm UTC](https://discuss.elastic.co/t/topic/258741/2 "2020-12-15T17:57:53Z")

</div>

Может, лучше за размером свободного места на дисках следить и не допускать этого? 😆 Это можно посмотреть в [node stats](https://www.elastic.co/guide/en/elasticsearch/reference/7.9/cluster-nodes-stats.html).

Проверить можно посмотрев в [index settings](https://github.com/elastic/elasticsearch/blob/b4485ece1e4b43670ed3c593ee3ffc046953ab3c/client/rest-high-level/src/test/java/org/elasticsearch/client/IndicesClientIT.java#L261). Если индекс заблокирован, там `index.blocks.read_only` появиться со значением `true`.

---

<div class="post-metadata">

**Author:** ![andy4195](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@andy4195](https://discuss.elastic.co/u/andy4195)\
**Post date:** [December 16, 2020, 7:19am UTC](https://discuss.elastic.co/t/topic/258741/3 "2020-12-16T07:19:23Z")

</div>

спасибо )

---

<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:** [January 13, 2021, 7:19am UTC](https://discuss.elastic.co/t/topic/258741/4 "2021-01-13T07:19:27Z")

</div>

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