elasticsearch批量队列大小

时间:2016-01-19 19:47:41

标签: elasticsearch elasticsearch-bulk-api

我在批量导入数据的同时监控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个文档?

1 个答案:

答案 0 :(得分:2)

bulk.queue表示队列中的批量请求数,而不是文档数。 index.queue表示index queue中要编入索引的文档数。