版本:6.8
现象:通过监控看到写入doc数和get数差距非常大
"indexing": {
"index_total": 15777623,
"index_time": "32m",
"index_time_in_millis": 1924849,
"index_current": 0,
"index_failed": 8,
"delete_total": 0,
"delete_time": "0s",
"delete_time_in_millis": 0,
"delete_current": 0,
"noop_update_total": 0,
"is_throttled": false,
"throttle_time": "0s",
"throttle_time_in_millis": 0
},
"get": {
"total": 22698126,
"getTime": "12.3m",
"time_in_millis": 740545,
"exists_total": 14056979,
"exists_time": "9.8m",
"exists_time_in_millis": 591843,
"missing_total": 8641147,
"missing_time": "2.4m",
"missing_time_in_millis": 148702,
"current": 0
}
确认对这个索引的操作是收口的,都是upsert:
/_bulk
[{update:{_index: "xxx"...}},{doc:"", "doc_as_upsert":true}]
update的时候应该是为了校验版本号会执行get,但不知道为什么get的次数比update多了这么多。
有了解这块的同学可以一起讨论下
现象:通过监控看到写入doc数和get数差距非常大
"indexing": {
"index_total": 15777623,
"index_time": "32m",
"index_time_in_millis": 1924849,
"index_current": 0,
"index_failed": 8,
"delete_total": 0,
"delete_time": "0s",
"delete_time_in_millis": 0,
"delete_current": 0,
"noop_update_total": 0,
"is_throttled": false,
"throttle_time": "0s",
"throttle_time_in_millis": 0
},
"get": {
"total": 22698126,
"getTime": "12.3m",
"time_in_millis": 740545,
"exists_total": 14056979,
"exists_time": "9.8m",
"exists_time_in_millis": 591843,
"missing_total": 8641147,
"missing_time": "2.4m",
"missing_time_in_millis": 148702,
"current": 0
}
确认对这个索引的操作是收口的,都是upsert:
/_bulk
[{update:{_index: "xxx"...}},{doc:"", "doc_as_upsert":true}]
update的时候应该是为了校验版本号会执行get,但不知道为什么get的次数比update多了这么多。
有了解这块的同学可以一起讨论下
0 个回复