NASA-PDS / registry-sweepers

Scripts that run regularly on the registry database, to clean and consolidate information
Apache License 2.0
0 stars 1 forks source link

ensure repairkit compatibility with large-doc nodes #77

Closed alexdunnjpl closed 9 months ago

alexdunnjpl commented 9 months ago

🗒️ Summary

Repairkit hammers OpenSearch with queries requesting many (10k doc) docs, and doc updates. For nodes with large documents, this can cause errors both on the query side (450MB responses are not viable and cause overflows) and the update side (triggering indexing on 4.5GB of docs every couple of minutes also appears to be non-viable).

This PR implements repairkit-specific constraints to reduce page size, and limit the update throughput.

Logging is also improved significantly.

Of note, repairkit will now log an error at @jordanpadams request if it has to actually do anything, as this represents a failure of node-users to use an up-to-date version of harvest.

⚙️ Test Data and/or Report

Unit tests pass. Tested live against ATM-PROD and GEO-PROD

♻️ Related Issues

fixes #61