es version: 6.5.1 docker
cluster machine: 3* 16c64G
kibana monitor show:
status:
I have a index, which has 196mill docs and the total size is 377GB, mapping data:
{
"mapping": {
"t": {
"properties": {
....
"briefIntroduction": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"business": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"businessId": {
"type": "long"
},
"businessScope": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"capitalUnit": {
"type": "keyword"
},
"cityCode": {
"type": "keyword"
},
"clueSource": {
"type": "long"
},
"clue_relation": {
"type": "join",
"eager_global_ordinals": true,
"relations": {
"company": [
"product",
"to_clue",
"statistics",
"browse"
]
}
},
"companyId": {
"type": "long"
},
"companyName": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
},
"analyzer": "index_ansj"
},
"companyNature": {
"type": "long"
},
"companyOrgType": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"companyScale": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"companyScore": {
"type": "long"
},
"competingCount": {
"type": "long"
},
"createTime": {
"type": "date"
},
"dataType": {
"type": "long"
},
"detailUrl": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"enterpriseId": {
"type": "long"
},
"establishTime": {
"type": "date"
},
"fromTime": {
"type": "date"
},
"fromUserId": {
"type": "long"
},
"fromUserName": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"id": {
"type": "long"
},
"industryCode": {
"type": "keyword"
},
"intro": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
....
}
}
}
}
problem:
After insert about 30 docs, I find that the doc cannot be searched in 10 second, so i invoke the 'clue-test/_refresh ' api in manually, I found that it take 10+ seconds to response, sometimes it takes 20+ second, in meaning time I only see the log " overhead, spent [490ms] collecting in the last [1s]", I don't know what happened in meaning time.