我在批量导入数据的同时监控elasticsearch集群。
所以当我运行curl localhost:9200 / _cat / thread_pool?v
时它显示:
host ip bulk.active bulk.queue bulk.rejected index.active index.queue index.rejected search.active search.queue search.rejected
xye@OptiPlex 127.0.0.1 8 6 0 0 0 0 0 0 0
我目前正在同时运行5个脚本来导入数据,批量大小为500,我也将批量队列大小增加了300个。
所以我想知道bulk.queue 6意味着什么。它只是一个批量操作中的6个文档,还是6个批量请求,即6 * 500 = 3000个文档?
答案 0 :(得分:2)
bulk.queue
表示队列中的批量请求数,而不是文档数。 index.queue
表示index queue
中要编入索引的文档数。