# Failure While Applyinf Template on Elasticsearch

**URL:** <https://discuss.elastic.co/t/failure-while-applyinf-template-on-elasticsearch/12504>\
**Category:** Elasticsearch\
**Created:** [June 21, 2013, 7:37am UTC](https://discuss.elastic.co/t/failure-while-applyinf-template-on-elasticsearch/12504 "2013-06-21T07:37:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravi1](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@ravi1](https://discuss.elastic.co/u/ravi1)\
**Post date:** [June 21, 2013, 7:37am UTC](https://discuss.elastic.co/t/failure-while-applyinf-template-on-elasticsearch/12504/1 "2013-06-21T07:37:28Z")

</div>

hi ,

I have an elasticsearch machine with all the default configuration running  
on production environment,there is only one node running.

The server was facing high CPU utilization and Memory usage.

So , after googling and reading some blogs, i found that the server was  
running with the default settings(1 replica and 5 shards ) so , i tried to  
change the settings and made a template for elasticsearch.  
But after restarting elasticsearch and logstash with the new template. The  
system stopped responding i.e. i was not able to fetch results from the web  
UI.

When i reverted the change (removed the template), the system still didn't  
came up(couldn't search anything).and few of the times i also got out of  
memory error.  
and after a few attempts of restarting , i got a huge list of Shard Missing  
Exception. Though I was able to see them in Elasticsearch Head tool.  
Finally i had to rebuild the whole data.

i have attached my setting file. I am not able to figure out what went  
wrong.  
and i have a few questions :

1. Does the change the template changes the current indexes also ?
2. Was the system, updating itself that's why it didn't show the results.
3. What lead to the Shard Missing Exception.
4. In future if i still want to apply the settings change, how can i do it  
without hampering the system.

System Config : 8 core 2GHz Xeon processor , 32G RAM.  
Total Size of the data Directory : 2.3T  
Elasticsearch Ver : 0.20.2  
Logstash Version : 1.1.9-monolithic

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:30am UTC](https://discuss.elastic.co/t/failure-while-applyinf-template-on-elasticsearch/12504/2 "2017-07-06T02:30:03Z")

</div>


