Fix batch_size=500 to avoid exceeding max memory limit and requests_per_second=250 to throttle update requests

Fix batch_size=500 to avoid exceeding max memory limit and requests_per_second=250 to throttle update requests
This commit is contained in:
Hongbo Wu 2022-05-05 21:08:27 +08:00
parent 46b390204b
commit b9c2c1186b

View file

@ -134,8 +134,7 @@ log('Starting adding default state to pages in elasticsearch...')
esClient
.update_by_query({
index: INDEX_ALIAS,
requests_per_second: 5,
scroll: '30s',
requests_per_second: 250,
scroll_size: 500,
timeout: '30m',
body: {