# Проблема с шардами после аварийного завершения работы

**URL:** <https://discuss.elastic.co/t/topic/98337>\
**Category:** Вопросы на русском языке\
**Created:** [August 25, 2017, 7:17am UTC](https://discuss.elastic.co/t/topic/98337 "2017-08-25T07:17:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drnoise8989](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Drnoise8989](https://discuss.elastic.co/u/Drnoise8989)\
**Post date:** [August 25, 2017, 7:17am UTC](https://discuss.elastic.co/t/topic/98337/1 "2017-08-25T07:17:59Z")

</div>

Добрый день.

Elasticsearch 5.5.0 одна нода( 8 CPU, 16 GB RAM, 8 Tb HDD), вчера при попытке выполнить запрос он упал и перестал отвечать, через systemctl остановить не получилось, пришлось убить процессы через kill -9 и стартовать процесс заново.

Сейчас нода поднялась, но возникла проблема с unassigned shards. На 2206 - нераспределенных 166.  
Попробовал POST /\_cluster/reroute?retry\_failed=true - не помогает.  
"0": [  
{  
"state": "STARTED",  
"primary": true,  
"node": "mxWJoUxOTUSDWXZIN9B0Og",  
"relocating\_node": null,  
"shard": 0,  
"index": "logstash-2017.08.15",  
"allocation\_id": {  
"id": "1jT0O8giRJSZtXq7I2-Afw"  
}  
},  
{  
"state": "UNASSIGNED",  
"primary": false,  
"node": null,  
"relocating\_node": null,  
"shard": 0,  
"index": "logstash-2017.08.15",  
"recovery\_source": {  
"type": "PEER"  
},  
"unassigned\_info": {  
"reason": "CLUSTER\_RECOVERED",  
"at": "2017-08-24T10:55:25.491Z",  
"delayed": false,  
"allocation\_status": "no\_attempt"  
}  
}  
],

GET /\_cluster/allocation/explain?pretty выдает  
{  
"index": ".monitoring-es-6-2017.08.20",  
"shard": 0,  
"primary": false,  
"current\_state": "unassigned",  
"unassigned\_info": {  
"reason": "CLUSTER\_RECOVERED",  
"at": "2017-08-24T10:55:25.489Z",  
"last\_allocation\_status": "no\_attempt"  
},  
"can\_allocate": "no",  
"allocate\_explanation": "cannot allocate because allocation is not permitted to any of the nodes",  
"node\_allocation\_decisions": [  
{  
"node\_id": "mxWJoUxOTUSDWXZIN9B0Og",  
"node\_name": "smsksyslog1",  
"transport\_address": "127.0.0.1:9300",  
"node\_attributes": {  
"ml.enabled": "true"  
},  
"node\_decision": "no",  
"deciders": [  
{  
"decider": "same\_shard",  
"decision": "NO",  
"explanation": "the shard cannot be allocated to the same node on which a copy of the shard already exists [[.monitoring-es-6-2017.08.20][0], node[mxWJoUxOTUSDWXZIN9B0Og], [P], s[STARTED], a[id=jcLYj8Q9THy7x06zOA4kUQ]]"  
}  
]  
}  
]  
}

С системой я работал очень мало. Просьба подсказать куда копать\как можно вернуть работоспособность в полном объеме. Спасибо.

---

<div class="post-metadata">

**Author:** ![Drnoise8989](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Drnoise8989](https://discuss.elastic.co/u/Drnoise8989)\
**Post date:** [August 28, 2017, 7:26am UTC](https://discuss.elastic.co/t/topic/98337/2 "2017-08-28T07:26:36Z")

</div>

Разобрался сам. Может пригодится новичку:  
PUT /имя\_проблемного\_индекса/\_settings  
{  
"index" : {  
"number\_of\_replicas" : 0  
}  
}

---

<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 25, 2017, 7:26am UTC](https://discuss.elastic.co/t/topic/98337/3 "2017-09-25T07:26:39Z")

</div>

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