Skip to content
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

Created new urgent priority threadpool for remote cluster state uploads #10685

Merged

Conversation

shiv0408
Copy link
Member

@shiv0408 shiv0408 commented Oct 18, 2023

Description

Created a new Urgent WritePriority and created new S3 threadpool and client to upload the remote cluster states.

Testing

Spun up a new single node cluster with remote cluster state enabled and ran few operations which requires cluster state update.

We can see following threadpool stats in nodes/_stats response after that.

              "urgent_future_completion": {
                    "threads": 1,
                    "queue": 0,
                    "active": 0,
                    "rejected": 0,
                    "largest": 1,
                    "completed": 7
                },
                "urgent_stream_reader": {
                    "threads": 1,
                    "queue": 0,
                    "active": 0,
                    "rejected": 0,
                    "largest": 1,
                    "completed": 7
                },

Related Issues

Resolves #9816

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • GitHub issue/PR created in OpenSearch documentation repo for the required public documentation changes (#[Issue/PR number])

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.

…or this priority which is being used to upload cluster state

Signed-off-by: Shivansh Arora <shivansh.arora@protonmail.com>
Signed-off-by: Shivansh Arora <shivansh.arora@protonmail.com>
@github-actions github-actions bot added Cluster Manager enhancement Enhancement or improvement to existing feature or request v2.11.0 Issues and PRs related to version 2.11.0 labels Oct 18, 2023
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT:
  • URL:
  • CommitID: 00c29ed
    Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green.
    Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Contributor

github-actions bot commented Oct 18, 2023

Compatibility status:

Checks if related components are compatible with change a636b9b

Incompatible components

Incompatible components: [https://github.com/opensearch-project/cross-cluster-replication.git]

Skipped components

Compatible components

Compatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/neural-search.git]

Signed-off-by: Shivansh Arora <shivansh.arora@protonmail.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

Merging #10685 (967c4e1) into main (7453daa) will decrease coverage by 0.02%.
Report is 2 commits behind head on main.
The diff coverage is 58.69%.

❗ Current head 967c4e1 differs from pull request most recent head a636b9b. Consider uploading reports for the commit a636b9b to get more accurate results

@@             Coverage Diff              @@
##               main   #10685      +/-   ##
============================================
- Coverage     71.22%   71.21%   -0.02%     
+ Complexity    58643    58507     -136     
============================================
  Files          4869     4853      -16     
  Lines        276492   275826     -666     
  Branches      40204    40142      -62     
============================================
- Hits         196944   196442     -502     
+ Misses        63040    62908     -132     
+ Partials      16508    16476      -32     
Files Coverage Δ
...search/repositories/s3/AmazonAsyncS3Reference.java 84.61% <100.00%> (+1.28%) ⬆️
.../repositories/s3/AmazonAsyncS3WithCredentials.java 100.00% <100.00%> (ø)
...org/opensearch/repositories/s3/S3AsyncService.java 72.28% <100.00%> (+1.09%) ⬆️
...va/org/opensearch/repositories/s3/S3BlobStore.java 74.57% <100.00%> (+6.32%) ⬆️
...a/org/opensearch/repositories/s3/S3Repository.java 70.08% <100.00%> (+0.25%) ⬆️
...h/common/blobstore/stream/write/WritePriority.java 100.00% <100.00%> (ø)
...epositories/blobstore/ChecksumBlobStoreFormat.java 95.00% <ø> (-0.17%) ⬇️
...rg/opensearch/repositories/s3/S3BlobContainer.java 80.73% <60.00%> (+0.05%) ⬆️
...ch/repositories/s3/async/AsyncTransferManager.java 82.43% <71.42%> (+0.31%) ⬆️
...earch/repositories/s3/async/AsyncPartsHandler.java 85.18% <20.00%> (+1.85%) ⬆️
... and 1 more

... and 535 files with indirect coverage changes

Signed-off-by: Shivansh Arora <shivansh.arora@protonmail.com>
Signed-off-by: Shivansh Arora <shivansh.arora@protonmail.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Shivansh Arora <shivansh.arora@protonmail.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Shivansh Arora <shivansh.arora@protonmail.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Shivansh Arora <shivansh.arora@protonmail.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@shwetathareja
Copy link
Member

Flaky test
#10154

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@shwetathareja
Copy link
Member

@shwetathareja shwetathareja merged commit a2b5f0e into opensearch-project:main Oct 24, 2023
@shwetathareja shwetathareja added backport 2.x Backport to 2.x branch and removed v2.11.0 Issues and PRs related to version 2.11.0 labels Oct 24, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 24, 2023
…ds (#10685)

* Created new Urgent WritePriority and a new threadpools and S3Client for this priority which is being used to upload cluster state

Signed-off-by: Shivansh Arora <shivansh.arora@protonmail.com>
(cherry picked from commit a2b5f0e)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@shiv0408 shiv0408 deleted the remote-state-threadpool branch October 25, 2023 04:05
sachinpkale pushed a commit that referenced this pull request Oct 25, 2023
…ds (#10685) (#10879)

* Created new Urgent WritePriority and a new threadpools and S3Client for this priority which is being used to upload cluster state


(cherry picked from commit a2b5f0e)

Signed-off-by: Shivansh Arora <shivansh.arora@protonmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
shiv0408 added a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
…ds (opensearch-project#10685)

* Created new Urgent WritePriority and a new threadpools and S3Client for this priority which is being used to upload cluster state

Signed-off-by: Shivansh Arora <shivansh.arora@protonmail.com>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch Cluster Manager enhancement Enhancement or improvement to existing feature or request skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Remote Cluster State] Allow Remote Cluster state writes to remote use a dedicated threadpool
4 participants