# Kibana optimize/bundules before start

**URL:** <https://discuss.elastic.co/t/kibana-optimize-bundules-before-start/74458>\
**Category:** Kibana\
**Created:** [February 9, 2017, 2:51am UTC](https://discuss.elastic.co/t/kibana-optimize-bundules-before-start/74458 "2017-02-09T02:51:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)\
**Post date:** [February 9, 2017, 2:51am UTC](https://discuss.elastic.co/t/kibana-optimize-bundules-before-start/74458/1 "2017-02-09T02:51:11Z")

</div>

can I run some command to generate the optimize/bundles files before I run ./kibana

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [February 9, 2017, 5:26pm UTC](https://discuss.elastic.co/t/kibana-optimize-bundules-before-start/74458/2 "2017-02-09T17:26:57Z")

</div>

I don't think so. Why do you want to?

---

<div class="post-metadata">

**Author:** ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)\
**Post date:** [February 15, 2017, 3:57am UTC](https://discuss.elastic.co/t/kibana-optimize-bundules-before-start/74458/3 "2017-02-15T03:57:13Z")

</div>

I run kibana behand a niginx proxy, I have some health check to judge whether the kibana is up. then tell user can access the kibana url

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [February 15, 2017, 4:11pm UTC](https://discuss.elastic.co/t/kibana-optimize-bundules-before-start/74458/4 "2017-02-15T16:11:22Z")

</div>

Can your health check wait for the optimize step to complete?

Someone else just mentioned checking Kibana readiness with

`curl http://${KIBANA_HOST}/api/status | jq '.status.overall.state'`

Kibana only has to do this optimize once initially, and then only when configuration changes. Are you automatically spinning up Kibana instances on demand?

---

<div class="post-metadata">

**Author:** ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)\
**Post date:** [February 17, 2017, 5:51am UTC](https://discuss.elastic.co/t/kibana-optimize-bundules-before-start/74458/5 "2017-02-17T05:51:34Z")

</div>

thx very much

---

<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:** [March 17, 2017, 5:51am UTC](https://discuss.elastic.co/t/kibana-optimize-bundules-before-start/74458/6 "2017-03-17T05:51:39Z")

</div>

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