# Shards remain "unassigned " after server restart

**URL:** https://discuss.elastic.co/t/shards-remain-unassigned-after-server-restart/8419
**Category:** Elasticsearch
**Created:** [July 15, 2012, 10:48am UTC](https://discuss.elastic.co/t/shards-remain-unassigned-after-server-restart/8419 "2012-07-15T10:48:38Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Eran\_Kutner\_2](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@Eran\_Kutner\_2](https://discuss.elastic.co/u/Eran_Kutner_2)
#### Post date: [July 15, 2012, 10:48am UTC](https://discuss.elastic.co/t/shards-remain-unassigned-after-server-restart/8419/1 "2012-07-15T10:48:38Z")

</div>

Hi,  
I've restarted a server in a cluster. After that the sards that used to be  
on that server remain unassigned.  
I tried to shut it down completly so the master will relocate those shards  
but it doesn't. The master logs says something like the following for each  
unassigned shard:  
[2012-07-15 06:32:48,021][DEBUG][cluster.routing.allocation] [es1-02]  
[6090122\_m][1] allocated on  
[[es1-03][a6JkCp4jRJ2ccRl9wxNRvw][inet[/10.1.101.153:9300]]{data\_center=ny4}],  
but can no longer be allocated on it, moving...  
[2012-07-15 06:32:48,021][DEBUG][cluster.routing.allocation] [es1-02]  
[6090122\_m][1] can't move  
[2012-07-15 06:32:48,022][DEBUG][cluster.routing.allocation] [es1-02]  
[6129251\_s][1] allocated on  
[[es1-02][-EURPWy\_RqicD\_9koodbVA][inet[/10.1.101.152:9300]]{data\_center=ny4}],  
but can no longer be allocated on it, moving...  
[2012-07-15 06:32:48,022][DEBUG][cluster.routing.allocation] [es1-02]  
[6129251\_s][1] can't move

Until eventually it say:  
[2012-07-15 06:45:48,972][DEBUG][cluster.service] [es1-02]  
processing [routing-table-updater]: no change in cluster\_state

Note that the server I shutdown is es1-01 not the ones the log is taking  
about.

-eran

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [July 15, 2012, 10:57pm UTC](https://discuss.elastic.co/t/shards-remain-unassigned-after-server-restart/8419/2 "2012-07-15T22:57:39Z")

</div>

Can you share your special configuration in terms of allocation? And  
possibly the full log?

On Sun, Jul 15, 2012 at 12:48 PM, Eran [eran@gigya-inc.com](mailto:eran@gigya-inc.com) wrote:

> Hi,  
> I've restarted a server in a cluster. After that the sards that used to be  
> on that server remain unassigned.  
> I tried to shut it down completly so the master will relocate those shards  
> but it doesn't. The master logs says something like the following for each  
> unassigned shard:  
> [2012-07-15 06:32:48,021][DEBUG][cluster.routing.allocation] [es1-02]  
> [6090122\_m][1] allocated on  
> [[es1-03][a6JkCp4jRJ2ccRl9wxNRvw][inet[/10.1.101.153:9300]]{data\_center=ny4}],  
> but can no longer be allocated on it, moving...  
> [2012-07-15 06:32:48,021][DEBUG][cluster.routing.allocation] [es1-02]  
> [6090122\_m][1] can't move  
> [2012-07-15 06:32:48,022][DEBUG][cluster.routing.allocation] [es1-02]  
> [6129251\_s][1] allocated on  
> [[es1-02][-EURPWy\_RqicD\_9koodbVA][inet[/10.1.101.152:9300]]{data\_center=ny4}],  
> but can no longer be allocated on it, moving...  
> [2012-07-15 06:32:48,022][DEBUG][cluster.routing.allocation] [es1-02]  
> [6129251\_s][1] can't move
> 
> Until eventually it say:  
> [2012-07-15 06:45:48,972][DEBUG][cluster.service] [es1-02]  
> processing [routing-table-updater]: no change in cluster\_state
> 
> Note that the server I shutdown is es1-01 not the ones the log is taking  
> about.
> 
> -eran

---

<div class="post-metadata">

### Author: ![Eran\_Kutner\_2](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@Eran\_Kutner\_2](https://discuss.elastic.co/u/Eran_Kutner_2)
#### Post date: [July 16, 2012, 7:38am UTC](https://discuss.elastic.co/t/shards-remain-unassigned-after-server-restart/8419/3 "2012-07-16T07:38:15Z")

</div>

Here is my config: [ES config · GitHub](https://gist.github.com/3121344)  
All the servers in the cluster are now local, and connected to the same  
high speed network segment (no more remote servers in a secondary data  
center).  
The logs are pretty large so i'm not sure uploading all of them will be  
helpful. Is there anything in particular I should be looking for?

To give more context on the shard allocation/initialization problem, it  
seems to be random, every time I restart a server (or the entire cluster) a  
different set of shards will be loaded and a few will remain unallocated or  
stuck in "initializing" state. Once in a few tries it actually manages to  
load all of them. The version of this cluster is 0.19.7 but I've had the  
same problem with a 0.19.8 cluster. In the other cluster case I didn't even  
restart it, just started with a clean cluster and pushed data (also  
creating a lot of indexes in the process), after a while it turned  
red/yellow and remained stuck on yellow, until I restarted the cluster a  
few times and then it managed to load the all the shards. Usually once all  
the shards have been loaded they remain stable.

By the way, when I came in this morning one of the nodes decided it  
couldn't discover the master. I'm certain that if I restart that server it  
will discover the master just fine.

-eran

On Monday, July 16, 2012 1:57:39 AM UTC+3, kimchy wrote:

> Can you share your special configuration in terms of allocation? And  
> possibly the full log?
> 
> On Sun, Jul 15, 2012 at 12:48 PM, Eran wrote:
> 
> > Hi,  
> > I've restarted a server in a cluster. After that the sards that used to  
> > be on that server remain unassigned.  
> > I tried to shut it down completly so the master will relocate those  
> > shards but it doesn't. The master logs says something like the following  
> > for each unassigned shard:  
> > [2012-07-15 06:32:48,021][DEBUG][cluster.routing.allocation] [es1-02]  
> > [6090122\_m][1] allocated on  
> > [[es1-03][a6JkCp4jRJ2ccRl9wxNRvw][inet[/10.1.101.153:9300]]{data\_center=ny4}],  
> > but can no longer be allocated on it, moving...  
> > [2012-07-15 06:32:48,021][DEBUG][cluster.routing.allocation] [es1-02]  
> > [6090122\_m][1] can't move  
> > [2012-07-15 06:32:48,022][DEBUG][cluster.routing.allocation] [es1-02]  
> > [6129251\_s][1] allocated on  
> > [[es1-02][-EURPWy\_RqicD\_9koodbVA][inet[/10.1.101.152:9300]]{data\_center=ny4}],  
> > but can no longer be allocated on it, moving...  
> > [2012-07-15 06:32:48,022][DEBUG][cluster.routing.allocation] [es1-02]  
> > [6129251\_s][1] can't move
> > 
> > Until eventually it say:  
> > [2012-07-15 06:45:48,972][DEBUG][cluster.service] [es1-02]  
> > processing [routing-table-updater]: no change in cluster\_state
> > 
> > Note that the server I shutdown is es1-01 not the ones the log is taking  
> > about.
> > 
> > -eran

---

<div class="post-metadata">

### Author: ![Eran\_Kutner\_2](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@Eran\_Kutner\_2](https://discuss.elastic.co/u/Eran_Kutner_2)
#### Post date: [July 19, 2012, 8:32pm UTC](https://discuss.elastic.co/t/shards-remain-unassigned-after-server-restart/8419/4 "2012-07-19T20:32:24Z")

</div>

This is still happening. No matter what I try (and I've tried quite a few  
things), I can't get the cluster to load all the shards. The best I could  
get to was 4 shards that we're left unassigned.

The logs show a lot of things, don't know which ones are relevant so I'll  
just post a sample of the messages I see, but keep in mind that there are  
many more similar messages in the log:  
[2012-07-19 16:21:59,867][DEBUG][gateway.local] [es1-02]  
[6144971\_xs][0]: throttling allocation [[6144971\_xs][0], node[null], [R],  
s[UNASSIGNED]] to  
[[es1-04][opCgkyHhRmaX47hMysvw9Q][inet[/10.1.101.154:9300]]{data\_center=ny4,  
max\_local\_storage\_nodes=1, master=true}] in order to reuse its unallocated  
persistent store with total\_size [615.2kb]  
[2012-07-19 16:21:59,867][TRACE][gateway.local] [es1-02]  
[6087422\_s][1], node[null], [R], s[UNASSIGNED]: checking node  
[[es1-03][D7zFpmccSbmObxfuYT0W7A][inet[/10.1.101.153:9300]]{data\_center=ny4,  
max\_local\_storage\_nodes=1, master=true}]  
[2012-07-19 16:21:59,868][TRACE][gateway.local] [es1-02]  
[6087422\_s][1], node[null], [R], s[UNASSIGNED]: checking node  
[[es1-02][LGPVC4ZDSz6ZP9M5GVTY5Q][inet[/10.1.101.152:9300]]{data\_center=ny4,  
max\_local\_storage\_nodes=1, master=true}]  
[2012-07-19 16:21:59,868][TRACE][gateway.local] [es1-02]  
[6087422\_s][1], node[null], [R], s[UNASSIGNED]: checking node  
[[es1-01][e\_SR\_BfIQnKAljzB7DjgLA][inet[/10.1.101.151:9300]]{data\_center=ny4,  
max\_local\_storage\_nodes=1, master=true}]  
[2012-07-19 16:21:59,868][TRACE][gateway.local] [es1-02]  
[6087422\_s][1], node[null], [R], s[UNASSIGNED]: checking node  
[[es1-04][opCgkyHhRmaX47hMysvw9Q][inet[/10.1.101.154:9300]]{data\_center=ny4,  
max\_local\_storage\_nodes=1, master=true}]  
[2012-07-19 16:21:59,869][DEBUG][gateway.local] [es1-02]  
[6087422\_s][1]: throttling allocation [[6087422\_s][1], node[null], [R],  
s[UNASSIGNED]] to  
[[es1-04][opCgkyHhRmaX47hMysvw9Q][inet[/10.1.101.154:9300]]{data\_center=ny4,  
max\_local\_storage\_nodes=1, master=true}] in order to reuse its unallocated  
persistent store with total\_size [177.2kb]

[2012-07-19 16:30:57,328][DEBUG][indices.memory] [es1-02]  
marking shard [6090102\_m][2] as inactive (inactive\_time[30m]) indexing  
wise, setting size to [500kb]  
[2012-07-19 16:30:57,330][DEBUG][indices.memory] [es1-02]  
marking shard [6090172\_m][1] as inactive (inactive\_time[30m]) indexing  
wise, setting size to [500kb]  
[2012-07-19 16:30:57,330][DEBUG][indices.memory] [es1-02]  
marking shard [6173411\_s][0] as inactive (inactive\_time[30m]) indexing  
wise, setting size to [500kb]  
[2012-07-19 16:30:57,330][DEBUG][indices.memory] [es1-02]  
marking shard [6090032\_m][1] as inactive (inactive\_time[30m]) indexing  
wise, setting size to [500kb]  
[2012-07-19 16:30:57,331][DEBUG][indices.memory] [es1-02]  
marking shard [6190951\_l][4] as inactive (inactive\_time[30m]) indexing  
wise, setting size to [500kb]  
[2012-07-19 16:30:57,331][DEBUG][indices.memory] [es1-02]  
marking shard [6186901\_m][2] as inactive (inactive\_time[30m]) indexing  
wise, setting size to [500kb]  
[2012-07-19 16:30:57,331][DEBUG][indices.memory] [es1-02]  
marking shard [6181771\_m][4] as inactive (inactive\_time[30m]) indexing  
wise, setting size to [500kb]  
[2012-07-19 16:30:57,333][DEBUG][index.engine.robin] [es1-02]  
[6090102\_m][2] using bloom filter enhanced delete handling  
[2012-07-19 16:30:57,336][DEBUG][index.engine.robin] [es1-02]  
[6090172\_m][1] using bloom filter enhanced delete handling  
[2012-07-19 16:30:57,341][DEBUG][index.engine.robin] [es1-02]  
[6173411\_s][0] using bloom filter enhanced delete handling  
[2012-07-19 16:30:57,354][DEBUG][index.engine.robin] [es1-02]  
[6090032\_m][1] using bloom filter enhanced delete handling  
[2012-07-19 16:30:57,360][DEBUG][index.engine.robin] [es1-02]  
[6190951\_l][4] using bloom filter enhanced delete handling  
[2012-07-19 16:30:57,362][DEBUG][index.engine.robin] [es1-02]  
[6186901\_m][2] using bloom filter enhanced delete handling  
[2012-07-19 16:30:57,364][DEBUG][index.engine.robin] [es1-02]  
[6181771\_m][4] using bloom filter enhanced delete handling  
[2012-07-19 16:30:57,365][DEBUG][indices.memory] [es1-02]  
recalculating shard indexing buffer (reason=shards became active/inactive  
(indexing wise)), total is [5.9gb] with [61] active shards, each shard set  
to [100.6mb]  
[2012-07-19 16:31:27,366][DEBUG][indices.memory] [es1-02]  
marking shard [6090112\_m][3] as active indexing wise  
[2012-07-19 16:31:27,367][DEBUG][indices.memory] [es1-02]  
recalculating shard indexing buffer (reason=shards became active/inactive  
(indexing wise)), total is [5.9gb] with [62] active shards, each shard set  
to [99mb]  
[2012-07-19 16:31:57,368][DEBUG][indices.memory] [es1-02]  
marking shard [6190951\_l][1] as inactive (inactive\_time[30m]) indexing  
wise, setting size to [500kb]  
[2012-07-19 16:31:57,371][DEBUG][index.engine.robin] [es1-02]  
[6190951\_l][1] using bloom filter enhanced delete handling  
[2012-07-19 16:31:57,372][DEBUG][indices.memory] [es1-02]  
recalculating shard indexing buffer (reason=shards became active/inactive  
(indexing wise)), total is [5.9gb] with [61] active shards, each shard set  
to [100.6mb]

-eran

On Monday, July 16, 2012 10:38:15 AM UTC+3, Eran wrote:

> Here is my config: [ES config · GitHub](https://gist.github.com/3121344)  
> All the servers in the cluster are now local, and connected to the same  
> high speed network segment (no more remote servers in a secondary data  
> center).  
> The logs are pretty large so i'm not sure uploading all of them will be  
> helpful. Is there anything in particular I should be looking for?
> 
> To give more context on the shard allocation/initialization problem, it  
> seems to be random, every time I restart a server (or the entire cluster) a  
> different set of shards will be loaded and a few will remain unallocated or  
> stuck in "initializing" state. Once in a few tries it actually manages to  
> load all of them. The version of this cluster is 0.19.7 but I've had the  
> same problem with a 0.19.8 cluster. In the other cluster case I didn't even  
> restart it, just started with a clean cluster and pushed data (also  
> creating a lot of indexes in the process), after a while it turned  
> red/yellow and remained stuck on yellow, until I restarted the cluster a  
> few times and then it managed to load the all the shards. Usually once all  
> the shards have been loaded they remain stable.
> 
> By the way, when I came in this morning one of the nodes decided it  
> couldn't discover the master. I'm certain that if I restart that server it  
> will discover the master just fine.
> 
> -eran
> 
> On Monday, July 16, 2012 1:57:39 AM UTC+3, kimchy wrote:
> 
> > Can you share your special configuration in terms of allocation? And  
> > possibly the full log?
> > 
> > On Sun, Jul 15, 2012 at 12:48 PM, Eran wrote:
> > 
> > > Hi,  
> > > I've restarted a server in a cluster. After that the sards that used to  
> > > be on that server remain unassigned.  
> > > I tried to shut it down completly so the master will relocate those  
> > > shards but it doesn't. The master logs says something like the following  
> > > for each unassigned shard:  
> > > [2012-07-15 06:32:48,021][DEBUG][cluster.routing.allocation] [es1-02]  
> > > [6090122\_m][1] allocated on  
> > > [[es1-03][a6JkCp4jRJ2ccRl9wxNRvw][inet[/10.1.101.153:9300]]{data\_center=ny4}],  
> > > but can no longer be allocated on it, moving...  
> > > [2012-07-15 06:32:48,021][DEBUG][cluster.routing.allocation] [es1-02]  
> > > [6090122\_m][1] can't move  
> > > [2012-07-15 06:32:48,022][DEBUG][cluster.routing.allocation] [es1-02]  
> > > [6129251\_s][1] allocated on  
> > > [[es1-02][-EURPWy\_RqicD\_9koodbVA][inet[/10.1.101.152:9300]]{data\_center=ny4}],  
> > > but can no longer be allocated on it, moving...  
> > > [2012-07-15 06:32:48,022][DEBUG][cluster.routing.allocation] [es1-02]  
> > > [6129251\_s][1] can't move
> > > 
> > > Until eventually it say:  
> > > [2012-07-15 06:45:48,972][DEBUG][cluster.service] [es1-02]  
> > > processing [routing-table-updater]: no change in cluster\_state
> > > 
> > > Note that the server I shutdown is es1-01 not the ones the log is taking  
> > > about.
> > > 
> > > -eran

---

<div class="post-metadata">

### Author: ![Eran\_Kutner\_2](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@Eran\_Kutner\_2](https://discuss.elastic.co/u/Eran_Kutner_2)
#### Post date: [July 24, 2012, 11:34am UTC](https://discuss.elastic.co/t/shards-remain-unassigned-after-server-restart/8419/5 "2012-07-24T11:34:22Z")

</div>

After enough restarts I was able to get the cluster to load all shards and  
go to "green". But something is definitely messed up with how ES is loading  
shards after a restart.  
I've uploaded a gist of all the server logs for one shard that refused to  
load for a few attempts. These logs represent multiple server restarts but  
they do show some bizarre errors.

> <https://gist.github.com/anonymous/3169484>

On Thursday, July 19, 2012 11:32:24 PM UTC+3, Eran wrote:

> This is still happening. No matter what I try (and I've tried quite a few  
> things), I can't get the cluster to load all the shards. The best I could  
> get to was 4 shards that we're left unassigned.
> 
> The logs show a lot of things, don't know which ones are relevant so I'll  
> just post a sample of the messages I see, but keep in mind that there are  
> many more similar messages in the log:  
> [2012-07-19 16:21:59,867][DEBUG][gateway.local] [es1-02]  
> [6144971\_xs][0]: throttling allocation [[6144971\_xs][0], node[null], [R],  
> s[UNASSIGNED]] to  
> [[es1-04][opCgkyHhRmaX47hMysvw9Q][inet[/10.1.101.154:9300]]{data\_center=ny4,  
> max\_local\_storage\_nodes=1, master=true}] in order to reuse its unallocated  
> persistent store with total\_size [615.2kb]  
> [2012-07-19 16:21:59,867][TRACE][gateway.local] [es1-02]  
> [6087422\_s][1], node[null], [R], s[UNASSIGNED]: checking node  
> [[es1-03][D7zFpmccSbmObxfuYT0W7A][inet[/10.1.101.153:9300]]{data\_center=ny4,  
> max\_local\_storage\_nodes=1, master=true}]  
> [2012-07-19 16:21:59,868][TRACE][gateway.local] [es1-02]  
> [6087422\_s][1], node[null], [R], s[UNASSIGNED]: checking node  
> [[es1-02][LGPVC4ZDSz6ZP9M5GVTY5Q][inet[/10.1.101.152:9300]]{data\_center=ny4,  
> max\_local\_storage\_nodes=1, master=true}]  
> [2012-07-19 16:21:59,868][TRACE][gateway.local] [es1-02]  
> [6087422\_s][1], node[null], [R], s[UNASSIGNED]: checking node  
> [[es1-01][e\_SR\_BfIQnKAljzB7DjgLA][inet[/10.1.101.151:9300]]{data\_center=ny4,  
> max\_local\_storage\_nodes=1, master=true}]  
> [2012-07-19 16:21:59,868][TRACE][gateway.local] [es1-02]  
> [6087422\_s][1], node[null], [R], s[UNASSIGNED]: checking node  
> [[es1-04][opCgkyHhRmaX47hMysvw9Q][inet[/10.1.101.154:9300]]{data\_center=ny4,  
> max\_local\_storage\_nodes=1, master=true}]  
> [2012-07-19 16:21:59,869][DEBUG][gateway.local] [es1-02]  
> [6087422\_s][1]: throttling allocation [[6087422\_s][1], node[null], [R],  
> s[UNASSIGNED]] to  
> [[es1-04][opCgkyHhRmaX47hMysvw9Q][inet[/10.1.101.154:9300]]{data\_center=ny4,  
> max\_local\_storage\_nodes=1, master=true}] in order to reuse its unallocated  
> persistent store with total\_size [177.2kb]
> 
> [2012-07-19 16:30:57,328][DEBUG][indices.memory] [es1-02]  
> marking shard [6090102\_m][2] as inactive (inactive\_time[30m]) indexing  
> wise, setting size to [500kb]  
> [2012-07-19 16:30:57,330][DEBUG][indices.memory] [es1-02]  
> marking shard [6090172\_m][1] as inactive (inactive\_time[30m]) indexing  
> wise, setting size to [500kb]  
> [2012-07-19 16:30:57,330][DEBUG][indices.memory] [es1-02]  
> marking shard [6173411\_s][0] as inactive (inactive\_time[30m]) indexing  
> wise, setting size to [500kb]  
> [2012-07-19 16:30:57,330][DEBUG][indices.memory] [es1-02]  
> marking shard [6090032\_m][1] as inactive (inactive\_time[30m]) indexing  
> wise, setting size to [500kb]  
> [2012-07-19 16:30:57,331][DEBUG][indices.memory] [es1-02]  
> marking shard [6190951\_l][4] as inactive (inactive\_time[30m]) indexing  
> wise, setting size to [500kb]  
> [2012-07-19 16:30:57,331][DEBUG][indices.memory] [es1-02]  
> marking shard [6186901\_m][2] as inactive (inactive\_time[30m]) indexing  
> wise, setting size to [500kb]  
> [2012-07-19 16:30:57,331][DEBUG][indices.memory] [es1-02]  
> marking shard [6181771\_m][4] as inactive (inactive\_time[30m]) indexing  
> wise, setting size to [500kb]  
> [2012-07-19 16:30:57,333][DEBUG][index.engine.robin] [es1-02]  
> [6090102\_m][2] using bloom filter enhanced delete handling  
> [2012-07-19 16:30:57,336][DEBUG][index.engine.robin] [es1-02]  
> [6090172\_m][1] using bloom filter enhanced delete handling  
> [2012-07-19 16:30:57,341][DEBUG][index.engine.robin] [es1-02]  
> [6173411\_s][0] using bloom filter enhanced delete handling  
> [2012-07-19 16:30:57,354][DEBUG][index.engine.robin] [es1-02]  
> [6090032\_m][1] using bloom filter enhanced delete handling  
> [2012-07-19 16:30:57,360][DEBUG][index.engine.robin] [es1-02]  
> [6190951\_l][4] using bloom filter enhanced delete handling  
> [2012-07-19 16:30:57,362][DEBUG][index.engine.robin] [es1-02]  
> [6186901\_m][2] using bloom filter enhanced delete handling  
> [2012-07-19 16:30:57,364][DEBUG][index.engine.robin] [es1-02]  
> [6181771\_m][4] using bloom filter enhanced delete handling  
> [2012-07-19 16:30:57,365][DEBUG][indices.memory] [es1-02]  
> recalculating shard indexing buffer (reason=shards became active/inactive  
> (indexing wise)), total is [5.9gb] with [61] active shards, each shard set  
> to [100.6mb]  
> [2012-07-19 16:31:27,366][DEBUG][indices.memory] [es1-02]  
> marking shard [6090112\_m][3] as active indexing wise  
> [2012-07-19 16:31:27,367][DEBUG][indices.memory] [es1-02]  
> recalculating shard indexing buffer (reason=shards became active/inactive  
> (indexing wise)), total is [5.9gb] with [62] active shards, each shard set  
> to [99mb]  
> [2012-07-19 16:31:57,368][DEBUG][indices.memory] [es1-02]  
> marking shard [6190951\_l][1] as inactive (inactive\_time[30m]) indexing  
> wise, setting size to [500kb]  
> [2012-07-19 16:31:57,371][DEBUG][index.engine.robin] [es1-02]  
> [6190951\_l][1] using bloom filter enhanced delete handling  
> [2012-07-19 16:31:57,372][DEBUG][indices.memory] [es1-02]  
> recalculating shard indexing buffer (reason=shards became active/inactive  
> (indexing wise)), total is [5.9gb] with [61] active shards, each shard set  
> to [100.6mb]
> 
> -eran
> 
> On Monday, July 16, 2012 10:38:15 AM UTC+3, Eran wrote:
> 
> > Here is my config: [ES config · GitHub](https://gist.github.com/3121344)  
> > All the servers in the cluster are now local, and connected to the same  
> > high speed network segment (no more remote servers in a secondary data  
> > center).  
> > The logs are pretty large so i'm not sure uploading all of them will be  
> > helpful. Is there anything in particular I should be looking for?
> > 
> > To give more context on the shard allocation/initialization problem, it  
> > seems to be random, every time I restart a server (or the entire cluster) a  
> > different set of shards will be loaded and a few will remain unallocated or  
> > stuck in "initializing" state. Once in a few tries it actually manages to  
> > load all of them. The version of this cluster is 0.19.7 but I've had the  
> > same problem with a 0.19.8 cluster. In the other cluster case I didn't even  
> > restart it, just started with a clean cluster and pushed data (also  
> > creating a lot of indexes in the process), after a while it turned  
> > red/yellow and remained stuck on yellow, until I restarted the cluster a  
> > few times and then it managed to load the all the shards. Usually once all  
> > the shards have been loaded they remain stable.
> > 
> > By the way, when I came in this morning one of the nodes decided it  
> > couldn't discover the master. I'm certain that if I restart that server it  
> > will discover the master just fine.
> > 
> > -eran
> > 
> > On Monday, July 16, 2012 1:57:39 AM UTC+3, kimchy wrote:
> > 
> > > Can you share your special configuration in terms of allocation? And  
> > > possibly the full log?
> > > 
> > > On Sun, Jul 15, 2012 at 12:48 PM, Eran wrote:
> > > 
> > > > Hi,  
> > > > I've restarted a server in a cluster. After that the sards that used to  
> > > > be on that server remain unassigned.  
> > > > I tried to shut it down completly so the master will relocate those  
> > > > shards but it doesn't. The master logs says something like the following  
> > > > for each unassigned shard:  
> > > > [2012-07-15 06:32:48,021][DEBUG][cluster.routing.allocation] [es1-02]  
> > > > [6090122\_m][1] allocated on  
> > > > [[es1-03][a6JkCp4jRJ2ccRl9wxNRvw][inet[/10.1.101.153:9300]]{data\_center=ny4}],  
> > > > but can no longer be allocated on it, moving...  
> > > > [2012-07-15 06:32:48,021][DEBUG][cluster.routing.allocation] [es1-02]  
> > > > [6090122\_m][1] can't move  
> > > > [2012-07-15 06:32:48,022][DEBUG][cluster.routing.allocation] [es1-02]  
> > > > [6129251\_s][1] allocated on  
> > > > [[es1-02][-EURPWy\_RqicD\_9koodbVA][inet[/10.1.101.152:9300]]{data\_center=ny4}],  
> > > > but can no longer be allocated on it, moving...  
> > > > [2012-07-15 06:32:48,022][DEBUG][cluster.routing.allocation] [es1-02]  
> > > > [6129251\_s][1] can't move
> > > > 
> > > > Until eventually it say:  
> > > > [2012-07-15 06:45:48,972][DEBUG][cluster.service] [es1-02]  
> > > > processing [routing-table-updater]: no change in cluster\_state
> > > > 
> > > > Note that the server I shutdown is es1-01 not the ones the log is  
> > > > taking about.
> > > > 
> > > > -eran

---

<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: [July 6, 2017, 3:19am UTC](https://discuss.elastic.co/t/shards-remain-unassigned-after-server-restart/8419/6 "2017-07-06T03:19:20Z")

</div>


