弹性搜索批量队列大小

elasticsearch bulk queue size

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

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

中要索引的文档数