[英]Elasticsearch indexing stops in middle
When i am indexing my data it stops in middle, i have attached screenshot.当我索引我的数据时,它停在中间,我附上了屏幕截图。 one thing i have noticed is when ES is not indexing, python start to use swap memory upto 50 GB, and every-time my indexing stops at 54%.
我注意到的一件事是当 ES 没有索引时,python 开始使用交换 memory 高达 50 GB,每次我的索引停止在 54%。 Any help is appreciated.
任何帮助表示赞赏。 Thanks
谢谢
` `
for ok, action in parallel_bulk(
client=client,
index=product_index_name,
actions=actions,
thread_count=4,
request_timeout=100,
chunk_size=100,
raise_on_error=True,
raise_on_exception=True
):
i have used parallel bulk, to increase indexing speed.我使用了并行批量来提高索引速度。 Also i had very very huge data set, which i reduced.
我也有非常非常大的数据集,我减少了。 That helped a lot
这很有帮助
https://elasticsearch-py.readthedocs.io/en/7.x/helpers.html#elasticsearch.helpers.parallel_bulk https://elasticsearch-py.readthedocs.io/en/7.x/helpers.html#elasticsearch.helpers.parallel_bulk
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.