system-config/modules/logstash/files/es-logstash-template.json
Clark Boylan 2e6d20c87c Tune ElasticSearch settings.
* modules/logstash/templates/elasticsearch.yml.erb:
Give 33% of memory to indexing instead of 40%.

* modules/logstash/files/es-logstash-template.json:
Flush the translog every 50k operations instead of the default 5k
(we can do 5k ops every second or two so the flushing was happening too
often). Limit the total number of shards per index per node to 3. We
have 5 nodes and 10 shards per index, 5*3 > 10 so we should be fine.
Set the field cache to soft type so that its entries can be garbage
collected in memory constricted situations.

* modules/logstash/manifests/elasticsearch.pp:
Apply es-logstash-template.json to the elasticsearch servers.

Change-Id: I2337fc41998fd00e090b0acfd29f007dfb6ec8df
2013-07-19 16:11:49 -07:00

11 lines
279 B
JSON

{
"logstash_settings" : {
"template" : "logstash*",
"settings" : {
"index.routing.allocation.total_shards_per_node" : "3",
"index.translog.flush_threshold_ops" : "50000",
"index.cache.field.type" : "soft"
}
}
}