-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ingestion #592
Update ingestion #592
Conversation
Signed-off-by: Amit Galitzky <[email protected]>
Signed-off-by: Amit Galitzky <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #592 +/- ##
============================================
- Coverage 79.03% 78.89% -0.15%
+ Complexity 4209 4201 -8
============================================
Files 296 296
Lines 17686 17686
Branches 1880 1880
============================================
- Hits 13979 13954 -25
- Misses 2808 2838 +30
+ Partials 899 894 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
|
hosts=[{'host': URL, 'port': 443}], | ||
use_ssl=True, | ||
verify_certs=False, | ||
http_auth=(USERNAME, PASSWORD), | ||
http_auth=('admin', 'admin'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You uploaded the wrong file, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my mistake
Signed-off-by: Amit Galitzky <[email protected]>
def main(): | ||
global client | ||
for i in range(0, THREADS): | ||
client.append(create_client(SECURITY, URL)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only saw you used the refactored create_client code, not anything else I sent to you. Does my fix solve the dropping entity issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I actually used the wrong file to ingest data, not the one with adding more retry logic in a loop. It worked for ingesting 1b documents, 7 days of 1440 points a day. I will try using the right file now with more retry logic for 14 days of 1440 points a day
Signed-off-by: Amit Galitzky <[email protected]>
Signed-off-by: Amit Galitzky <[email protected]> (cherry picked from commit 0bd6e0e)
Signed-off-by: Amit Galitzky <[email protected]> (cherry picked from commit 0bd6e0e)
Description
Update numpy to fix CVE, upgrade scipy to be compatible with upgraded numpy and upgrade opensearch-py to latest version. Changed accordingly the minimum Python version to 3.8 because of numpy upgrade. Added more retries to handle exceptions during bulk ingestions that would lead to threads being dropped.
Issues Resolved
#590
#591
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.