-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Adding configurable connection count setting for S3 Sync Client #12028
Conversation
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
Compatibility status:Checks if related components are compatible with change 63a50be Incompatible componentsIncompatible components: [https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/cross-cluster-replication.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/security.git] |
❕ Gradle check result for 0140a0a: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #12028 +/- ##
============================================
- Coverage 71.36% 71.28% -0.09%
+ Complexity 59468 59397 -71
============================================
Files 4925 4925
Lines 279458 279475 +17
Branches 40631 40635 +4
============================================
- Hits 199446 199223 -223
- Misses 63437 63645 +208
- Partials 16575 16607 +32 ☔ View full report in Codecov by Sentry. |
plugins/repository-s3/src/test/java/org/opensearch/repositories/s3/S3ClientSettingsTests.java
Outdated
Show resolved
Hide resolved
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.
LGTM
plugins/repository-s3/src/main/java/org/opensearch/repositories/s3/S3ClientSettings.java
Show resolved
Hide resolved
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.
Code test coverage check not passing. Might need to add some more tests?
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.
LGMT otherwise
plugins/repository-s3/src/main/java/org/opensearch/repositories/s3/S3Service.java
Show resolved
Hide resolved
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
❕ Gradle check result for db45058: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
❕ Gradle check result for 63a50be: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-12028-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 4323af1973c6c19b7ab35754f3ff1d6a5437dce9
# Push it to GitHub
git push --set-upstream origin backport/backport-12028-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.x Then, create a pull request where the |
…search-project#12028) * Adding configurable connection count setting for S3 Sync Client Signed-off-by: Gaurav Bafna <gbbafna@amazon.com> * Address PR Comments Signed-off-by: Gaurav Bafna <gbbafna@amazon.com> * Increase number of connections to 500 Signed-off-by: Gaurav Bafna <gbbafna@amazon.com> --------- Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
…) (#12053) * Adding configurable connection count setting for S3 Sync Client * Address PR Comments * Increase number of connections to 500 --------- Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
@gbbafna Why wasn't |
We use sync client for get, list , delete and put for smaller sized files. Whereas async client is only used for multipart upload. The sync client would always be used in create shard, which we want to give dedicated connections. Else , it might wait much longer for connection, causing a node drop. That's why we have introduced dedicated connections for now. As we move everything to asyn client, we will need to address the cluster state applier thread prioritisation work as well. |
…search-project#12028) * Adding configurable connection count setting for S3 Sync Client Signed-off-by: Gaurav Bafna <gbbafna@amazon.com> * Address PR Comments Signed-off-by: Gaurav Bafna <gbbafna@amazon.com> * Increase number of connections to 500 Signed-off-by: Gaurav Bafna <gbbafna@amazon.com> --------- Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
…search-project#12028) * Adding configurable connection count setting for S3 Sync Client Signed-off-by: Gaurav Bafna <gbbafna@amazon.com> * Address PR Comments Signed-off-by: Gaurav Bafna <gbbafna@amazon.com> * Increase number of connections to 500 Signed-off-by: Gaurav Bafna <gbbafna@amazon.com> --------- Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
…search-project#12028) * Adding configurable connection count setting for S3 Sync Client Signed-off-by: Gaurav Bafna <gbbafna@amazon.com> * Address PR Comments Signed-off-by: Gaurav Bafna <gbbafna@amazon.com> * Increase number of connections to 500 Signed-off-by: Gaurav Bafna <gbbafna@amazon.com> --------- Signed-off-by: Gaurav Bafna <gbbafna@amazon.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Description
max_sync_connections
for sync client's max connections.connection_acquisition_timeout
for sync client as well . Today it is only used in async client.Related Issues
Resolves #12027
Check List
Public documentation issue/PR createdBy 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.