diff options
author | gjoranv <gv@yahoo-inc.com> | 2017-01-11 16:09:23 +0100 |
---|---|---|
committer | gjoranv <gv@yahoo-inc.com> | 2017-01-11 16:09:23 +0100 |
commit | 7393983d2f3bd3d5e003a5de3faeaa6a8d814471 (patch) | |
tree | 339b224f6f8ef1f9cd1bdd8b24ec9fe6f58f15ea /config-model/src/main/resources/schema/content.rnc | |
parent | 82b25369b093f9b36622710a01aa2fc7923da77d (diff) |
Move remaining parts of search.rnc into content.rnc.
Diffstat (limited to 'config-model/src/main/resources/schema/content.rnc')
-rw-r--r-- | config-model/src/main/resources/schema/content.rnc | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/config-model/src/main/resources/schema/content.rnc b/config-model/src/main/resources/schema/content.rnc index c3a8386ac5e..a1fef689253 100644 --- a/config-model/src/main/resources/schema/content.rnc +++ b/config-model/src/main/resources/schema/content.rnc @@ -1,6 +1,9 @@ # Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0" +include "container.rnc" +include "searchchains.rnc" + Redundancy = element redundancy { attribute reply-after { xsd:nonNegativeInteger }? & xsd:nonNegativeInteger @@ -275,3 +278,87 @@ Group = element group { ) ) } + +Tuning = element tuning { + element dispatch { + element max-hits-per-partition { xsd:nonNegativeInteger }? + }? & + element searchnode { + element requestthreads { + element search { xsd:nonNegativeInteger }? & + element persearch { xsd:nonNegativeInteger }? & + element summary { xsd:nonNegativeInteger }? + }? & + element flushstrategy { + element native { + element total { + element maxmemorygain { xsd:nonNegativeInteger }? & + element diskbloatfactor { xsd:double { minInclusive = "0.0" } }? + }? & + element component { + element maxmemorygain { xsd:nonNegativeInteger }? & + element diskbloatfactor { xsd:double { minInclusive = "0.0" } }? & + element maxage { xsd:nonNegativeInteger }? + }? & + element transactionlog { + element maxentries { xsd:nonNegativeInteger }? & + element maxsize { xsd:nonNegativeInteger }? + }? & + element conservative { + element memory-limit-factor { xsd:double { minInclusive = "0.0" maxInclusive = "1.0" } }? & + element disk-limit-factor { xsd:double { minInclusive = "0.0" maxInclusive = "1.0" } }? + }? + }? + }? & + element resizing { + element initialdocumentcount { xsd:nonNegativeInteger }? + }? & + element index { + element io { + element write { TuningIoOptionsLight }? & + element read { TuningIoOptionsLight }? & + element search { TuningIoOptionsFull }? + } + }? & + element attribute { + element io { + element write { TuningIoOptionsLight }? + } + }? & + element summary { + element io { + element write { TuningIoOptionsLight }? & + element read { TuningIoOptionsFull }? + }? & + element store { + element cache { + element maxsize { xsd:nonNegativeInteger }? & + element initialentries { xsd:nonNegativeInteger }? & + element maxentries { xsd:nonNegativeInteger }? & + TuningCompression? + }? & + element logstore { + element maxfilesize { xsd:nonNegativeInteger }? & + element maxdiskbloatfactor { xsd:double { minInclusive = "0.0" } }? & + element minfilesizefactor { xsd:double { minInclusive = "0.10" maxInclusive = "1.0" } }? & + element chunk { + element maxsize { xsd:nonNegativeInteger }? & + element maxentries { xsd:nonNegativeInteger }? & + TuningCompression? + }? + }? + }? + }? & + element initialize { + element threads { xsd:nonNegativeInteger }? + }? + }? +} + +TuningIoOptionsLight = string "normal" | string "directio" +TuningIoOptionsFull = string "normal" | string "directio" | string "mmap" | string "mlock" + +TuningCompression = element compression { + element type { string "none" | string "lz4" }? & + element level { xsd:nonNegativeInteger }? +} |