generated from MITLibraries/python-cli-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Why these changes are being introduced: We were getting 429 error responses during bulk indexing and needed to adjust configurations for the opensearchpy bulk helper. Although those adjustments didn't solve the problem, having them configurable via ENV variables is a better long-term solution than hard-coding them, so this commit adds that option. How this addresses that need: * Adds a new config function to configure opensearch bulk settings, reading from ENV variables if present with defaults if not. * Adds tests for new function. * Updates opensearch bulk_index function to configure settings using the new function. * Updates README to document new optional ENV variables. Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/TIMX-128
- Loading branch information
Showing
4 changed files
with
42 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters