From f2fe639a3ad991d6f468ca4d41a9737180a04658 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Wed, 22 Apr 2015 15:51:55 +0200 Subject: [PATCH] Improve index templates: * Disable the `_all` field, because it isn't used. * Tune the history index for write throughput. Original commit: elastic/x-pack-elasticsearch@db946a42b7da3f84c2b1a78a5afb0be4753f2101 --- src/main/resources/watch_history.json | 7 ++++++- src/main/resources/watches.json | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/resources/watch_history.json b/src/main/resources/watch_history.json index 65c2f1b93c0..e50b7ebdaff 100644 --- a/src/main/resources/watch_history.json +++ b/src/main/resources/watch_history.json @@ -6,11 +6,16 @@ "index.number_of_replicas": 1, "index.watcher.template_version": 1, "index.mapper.dynamic" : false, - "index.refresh_interval" : "5m" + "index.refresh_interval" : "5m", + "index.translog.flush_threshold_size" : "1GB", + "index.store.throttle.type" : "none" }, "mappings": { "watch_record": { "dynamic" : "strict", + "_all" : { + "enabled" : false + }, "properties": { "watch_id": { "type": "string", diff --git a/src/main/resources/watches.json b/src/main/resources/watches.json index a3e8c174a5a..05be2487ae0 100644 --- a/src/main/resources/watches.json +++ b/src/main/resources/watches.json @@ -11,6 +11,9 @@ "mappings": { "watch": { "dynamic" : "strict", + "_all" : { + "enabled" : false + }, "properties": { "trigger" : { "type": "object",