# How to speed up elasticsearch startup?

**URL:** https://discuss.elastic.co/t/how-to-speed-up-elasticsearch-startup/106180
**Category:** Elasticsearch
**Created:** [November 2, 2017, 11:27am UTC](https://discuss.elastic.co/t/how-to-speed-up-elasticsearch-startup/106180 "2017-11-02T11:27:34Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)
#### Post date: [November 2, 2017, 11:27am UTC](https://discuss.elastic.co/t/how-to-speed-up-elasticsearch-startup/106180/1 "2017-11-02T11:27:35Z")

</div>

Hi,

We are still using ES 5.1.2 in production as single instance.  
Is there any way to speed up the startup time?

I restarted because I updated the used jre. Startup takes about 40 minutes until all indices are at status yellow.

top shows the following:

```
top - 12:22:54 up 95 days, 44 min, 3 users, load average: 1.91, 2.20, 2.55
Tasks: 175 total, 1 running, 174 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.6 us, 0.3 sy, 0.0 ni, 86.8 id, 12.3 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 13186236+total, 617212 free, 16780212 used, 11446493+buff/cache
KiB Swap: 10484732 total, 10084992 free, 399740 used. 11034710+avail Mem

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27409 elastic+ 20 0 0.574t 0.016t 1.430g S 6.3 13.0 7:13.68 java
   61 root 20 0 0 0 0 S 0.7 0.0 18:26.83 kswapd0
 4720 root 20 0 30084 10760 2736 S 0.3 0.0 64:14.28 filebeat
19035 logiweb+ 20 0 159756 2308 1560 R 0.3 0.0 0:00.13 top
    1 root 20 0 195808 5696 3600 S 0.0 0.0 96:32.15 systemd
    2 root 20 0 0 0 0 S 0.0 0.0 0:08.37 kthreadd
    3 root 20 0 0 0 0 S 0.0 0.0 2:06.32 ksoftirqd/0
    5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
    7 root rt 0 0 0 0 S 0.0 0.0 4:38.58 migration/0
    8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
    9 root 20 0 0 0 0 S 0.0 0.0 105:02.70 rcu_sched
   10 root rt 0 0 0 0 S 0.0 0.0 3:20.08 watchdog/0
   11 root rt 0 0 0 0 S 0.0 0.0 2:27.83 watchdog/1
   12 root rt 0 0 0 0 S 0.0 0.0 4:00.98 migration/1

```

Wondering why the cpu load is that low and why io wait is only at 20%  
8CPU, 128GB RAM.

Logstash and kibana are currently stopped. Nothing else running on the machine.

Thanks, Andreas

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [November 2, 2017, 11:28am UTC](https://discuss.elastic.co/t/how-to-speed-up-elasticsearch-startup/106180/2 "2017-11-02T11:28:41Z")

</div>

How many indices and shards do you have? How much data?

---

<div class="post-metadata">

### Author: ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)
#### Post date: [November 2, 2017, 11:35am UTC](https://discuss.elastic.co/t/how-to-speed-up-elasticsearch-startup/106180/3 "2017-11-02T11:35:30Z")

</div>

data size 627 GB  
indices: 795 indices  
shards: 3258

Is there a way to set an order in which the indices are loaded?  
If so, I would like to use this:

.monitoring-\* (xpack)  
.kibana  
all data indices starting with the newest following by older ones

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [November 2, 2017, 12:29pm UTC](https://discuss.elastic.co/t/how-to-speed-up-elasticsearch-startup/106180/4 "2017-11-02T12:29:58Z")

</div>

That is a lot of quite small shards for a single node. How large portion of the indices are continuously being updated/added to?

---

<div class="post-metadata">

### Author: ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)
#### Post date: [November 2, 2017, 12:37pm UTC](https://discuss.elastic.co/t/how-to-speed-up-elasticsearch-startup/106180/5 "2017-11-02T12:37:44Z")

</div>

indices are rotated each day.

a day is looking like this:

```
yellow open .monitoring-es-2-2017.10.26 _PHbvUdTSLmeSPmGrl_t8A 1 1 3567205 12653 2gb 2gb
yellow open other-prod-2017.10.26 5F5kSArZRSqa8kxfPRbMSw 1 1 283625 0 112.7mb 112.7mb
yellow open perf-staging-2017.10.26 RjwLDHZ-Qee_gsqjlKkL4w 1 1 752292 0 266mb 266mb
yellow open tux-prod-2017.10.26 knwJrZPhSyKJ0h0yiAe_Ew 1 1 8982863 0 10gb 10gb
yellow open perf-prod-2017.10.26 wJ9P4iGfQ46-iBK9TdaDSA 1 1 1438301 0 754.4mb 754.4mb
yellow open .monitoring-kibana-2-2017.10.26 jSLAIOHySnC6Ru_AIm6ioA 1 1 8608 0 2.1mb 2.1mb
yellow open tux-staging-2017.10.26 OTwL64lsSeqxRz3qLdxUTw 1 1 1435865 0 1.2gb 1.2gb
yellow open perf-no_stage_defined-2017.10.26 4uyTjp97RVm8Pgh2EgjEqA 5 1 39016 0 34.9mb 34.9mb
yellow open other-staging-2017.10.26 ww_pp531TKyPEu1YAQ5EDg 1 1 17320 0 6mb 6mb

```

OK, I can reduce the shard size of _perf-no\_stage\_defined_, thought that was already done. But what can I do beside that?

We are only adding to the current day, maybe to yesterday if we had some problems.

---

<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: [November 30, 2017, 12:38pm UTC](https://discuss.elastic.co/t/how-to-speed-up-elasticsearch-startup/106180/6 "2017-11-30T12:38:18Z")

</div>

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