Well, the heap size for data nodes was 31Gb respectively and master node was 16Gb, and we use G1 GC. I am able to paste serveral configurations .
master node:
node.master: true
node.data: false
node.ingest: false
search.remote.connect: false
node.ml: false
bootstrap.memory_lock:true
cluster.remote.connect: true
cluster.max_shards_per_node: 20000
cluster.routing.allocation.node_initial_primaries_recoveries: 32
cluster.routing.allocation.node_concurrent_recoveries: 32
cluster.routing.allocation.cluster_concurrent_rebalance: 32
cluster.routing.allocation.disk.include_relocations: false
data nodes:
node.master: false
node.data: true
node.ingest: false
search.remote.connect: false
node.ml: false
bootstrap.memory_lock:true
cluster.remote.connect: true
cluster.max_shards_per_node: 20000
cluster.routing.allocation.node_initial_primaries_recoveries: 32
cluster.routing.allocation.node_concurrent_recoveries: 32
cluster.routing.allocation.cluster_concurrent_rebalance: 32
cluster.routing.allocation.disk.include_relocations: false
indices.queries:cache.size: 0%
terms phrase contains only a term,which is an array, array length varies from 1 to 6, those are our common cases.
multi_match is a 9 fields query.
mapping:
"mapping": {
"dynamic": "strict",
"properties": {
"accoNo": {
"type": "keyword"
},
"typeName": {
"analyzer": "standard",
"type": "text"
},
"time": {
"format": "yyyyMMddHHmmss",
"type": "date"
},
"remark": {
"analyzer": "standard",
"type": "text"
},
"channl": {
"analyzer": "standard",
"type": "text"
},
"desc": {
"analyzer": "standard",
"type": "text"
},
"summName": {
"analyzer": "standard",
"type": "text"
},
"telNo": {
"analyzer": "standard",
"type": "text"
},
"opsName": {
"analyzer": "standard",
"type": "text"
},
"companyName": {
"analyzer": "standard",
"type": "text"
},
"tacctScrt": {
"analyzer": "standard",
"type": "text"
},
...
}
}
DSL :
"query": {
"bool": {
"fitler": [
{
"range": {
"time": {
"from": "20200101000000"
"to": "20210101000000"
}
}
},
{
"terms": {
"accoNo": [
"00000000000000001",
"00000000000000002"
]
}
}
],
"should": [
{
"multi_match": {
"query": "some words",
"fields": [
"channl",
"typeName",
"desc",
"summName",
"telNo",
"opsName",
"companyName",
"remark",
"tacctScrt"
],
"type": "phrase",
"operator": "or",
"slop": 3
}
}
]
}
}