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@db946a42b7
This commit is contained in:
Martijn van Groningen 2015-04-22 15:51:55 +02:00
parent ebda02438e
commit f2fe639a3a
2 changed files with 9 additions and 1 deletions

View File

@ -6,11 +6,16 @@
"index.number_of_replicas": 1, "index.number_of_replicas": 1,
"index.watcher.template_version": 1, "index.watcher.template_version": 1,
"index.mapper.dynamic" : false, "index.mapper.dynamic" : false,
"index.refresh_interval" : "5m" "index.refresh_interval" : "5m",
"index.translog.flush_threshold_size" : "1GB",
"index.store.throttle.type" : "none"
}, },
"mappings": { "mappings": {
"watch_record": { "watch_record": {
"dynamic" : "strict", "dynamic" : "strict",
"_all" : {
"enabled" : false
},
"properties": { "properties": {
"watch_id": { "watch_id": {
"type": "string", "type": "string",

View File

@ -11,6 +11,9 @@
"mappings": { "mappings": {
"watch": { "watch": {
"dynamic" : "strict", "dynamic" : "strict",
"_all" : {
"enabled" : false
},
"properties": { "properties": {
"trigger" : { "trigger" : {
"type": "object", "type": "object",