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

Add CAT segment replication API #2937

Merged
merged 15 commits into from
May 2, 2023
Merged

Add CAT segment replication API #2937

merged 15 commits into from
May 2, 2023

Conversation

kolchfa-aws
Copy link
Collaborator

Fixes #2627

Checklist

  • [ x] By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
    For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Fanit Kolchina <[email protected]>
@kolchfa-aws kolchfa-aws self-assigned this Feb 16, 2023
@kolchfa-aws kolchfa-aws added 1 - Backlog Issue: The issue is unassigned or assigned but not started v-TBD and removed v2.6.0 labels Feb 21, 2023
@Naarcha-AWS Naarcha-AWS added v2.7.0 2 - In progress Issue/PR: The issue or PR is in progress. and removed v-TBD 1 - Backlog Issue: The issue is unassigned or assigned but not started labels Mar 22, 2023
@Naarcha-AWS Naarcha-AWS added this to the v2.7 milestone Mar 22, 2023
@Naarcha-AWS Naarcha-AWS removed the 2 - In progress Issue/PR: The issue or PR is in progress. label Mar 22, 2023
@Naarcha-AWS Naarcha-AWS removed this from the v2.7 milestone Mar 22, 2023
@kolchfa-aws kolchfa-aws marked this pull request as ready for review April 19, 2023 17:25
_api-reference/cat/cat-segment-replication.md Outdated Show resolved Hide resolved
_api-reference/cat/cat-segment-replication.md Show resolved Hide resolved
Copy link
Collaborator

@Naarcha-AWS Naarcha-AWS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but left a suggestion about the intro.

@@ -3,7 +3,7 @@ layout: default
title: CAT repositories
parent: CAT API

Copy link
Collaborator

@Naarcha-AWS Naarcha-AWS Apr 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit, should we remove this blank line?

Introduced 2.7
{: .label .label-purple }

The CAT segment replication operation returns information about active and last completed [segment replication]({{site.url}}{{site.baseurl}}/opensearch/segment-replication/index) events on each replica shard. This API returns metrics on a shard level. The metrics provide information about how far behind the replicas are lagging with respect to the primary shard.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another small nit, I'm confused by "This API returns metrics on a shard level".
Will the API always return metrics on a shard level on top of the information about active and completed events on shards? Can you opt out of seeing metrics in the response (based on the examples, it will return the time comparison between the primary shard, and optionally return additional metrics)?

I would consider turning the description into a compound sentence:

Suggested change
The CAT segment replication operation returns information about active and last completed [segment replication]({{site.url}}{{site.baseurl}}/opensearch/segment-replication/index) events on each replica shard. This API returns metrics on a shard level. The metrics provide information about how far behind the replicas are lagging with respect to the primary shard.
The CAT segment replication operation returns information about active and last completed [segment replication]({{site.url}}{{site.baseurl}}/opensearch/segment-replication/index) events on each replica shard and related metrics on a shard level. These metrics provide information about how far behind the replicas are lagging with respect to the primary shard.

Copy link
Collaborator

@natebower natebower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kolchfa-aws Please see my comments and changes and let me know if you have any questions. Thanks!

_api-reference/cat/cat-segment-replication.md Outdated Show resolved Hide resolved
_api-reference/cat/cat-segment-replication.md Outdated Show resolved Hide resolved
_api-reference/cat/cat-segment-replication.md Outdated Show resolved Hide resolved
_api-reference/cat/cat-segment-replication.md Outdated Show resolved Hide resolved
_api-reference/cat/cat-segment-replication.md Outdated Show resolved Hide resolved
_api-reference/cat/cat-segment-replication.md Outdated Show resolved Hide resolved
_api-reference/cat/cat-segment-replication.md Outdated Show resolved Hide resolved
_api-reference/cat/cat-segment-replication.md Outdated Show resolved Hide resolved
_api-reference/cat/cat-segment-replication.md Outdated Show resolved Hide resolved
Introduced 2.7
{: .label .label-purple }

The CAT segment replication operation returns information about active and last completed [segment replication]({{site.url}}{{site.baseurl}}/opensearch/segment-replication/index) events on each replica shard, including related shard-level metrics. These metrics provide information about how far behind the replicas are lagging with respect to the primary shard.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last sentence: "These metrics provide information about how far behind the primary shard the replicas are lagging"? As written, this may be initially read as though something is lagging behind the replicas.

kolchfa-aws and others added 3 commits April 20, 2023 08:44
Signed-off-by: Fanit Kolchina <[email protected]>
@kolchfa-aws kolchfa-aws added 6 - Done but waiting to merge PR: The work is done and ready to merge release-notes PR: Include this PR in the automated release notes labels Apr 24, 2023
@kolchfa-aws kolchfa-aws merged commit 9913d1d into main May 2, 2023
vagimeli added a commit that referenced this pull request May 4, 2023
* Add CAT segment replication API

Signed-off-by: Fanit Kolchina <[email protected]>

* Refactoring after a conversation with SMEs

Signed-off-by: Fanit Kolchina <[email protected]>

* Added copy buttons and changed sample to example

Signed-off-by: Fanit Kolchina <[email protected]>

* Revise for 2.7

Signed-off-by: Fanit Kolchina <[email protected]>

* Added aliases

Signed-off-by: Fanit Kolchina <[email protected]>

* Reorder pages

Signed-off-by: Fanit Kolchina <[email protected]>

* Update cat-segment-replication.md

* Apply suggestions from code review

Co-authored-by: Melissa Vagi <[email protected]>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <[email protected]>

* Update cat-segment-replication.md

* Apply suggestions from code review

Co-authored-by: Nathan Bower <[email protected]>

* Implemented editorial review comment

Signed-off-by: Fanit Kolchina <[email protected]>

* Fix link

Signed-off-by: Fanit Kolchina <[email protected]>

---------

Signed-off-by: Fanit Kolchina <[email protected]>
Co-authored-by: Melissa Vagi <[email protected]>
Co-authored-by: Nathan Bower <[email protected]>
vagimeli added a commit that referenced this pull request May 4, 2023
harshavamsi pushed a commit to harshavamsi/documentation-website that referenced this pull request Oct 31, 2023
* Add CAT segment replication API

Signed-off-by: Fanit Kolchina <[email protected]>

* Refactoring after a conversation with SMEs

Signed-off-by: Fanit Kolchina <[email protected]>

* Added copy buttons and changed sample to example

Signed-off-by: Fanit Kolchina <[email protected]>

* Revise for 2.7

Signed-off-by: Fanit Kolchina <[email protected]>

* Added aliases

Signed-off-by: Fanit Kolchina <[email protected]>

* Reorder pages

Signed-off-by: Fanit Kolchina <[email protected]>

* Update cat-segment-replication.md

* Apply suggestions from code review

Co-authored-by: Melissa Vagi <[email protected]>

* Implemented doc review comments

Signed-off-by: Fanit Kolchina <[email protected]>

* Update cat-segment-replication.md

* Apply suggestions from code review

Co-authored-by: Nathan Bower <[email protected]>

* Implemented editorial review comment

Signed-off-by: Fanit Kolchina <[email protected]>

* Fix link

Signed-off-by: Fanit Kolchina <[email protected]>

---------

Signed-off-by: Fanit Kolchina <[email protected]>
Co-authored-by: Melissa Vagi <[email protected]>
Co-authored-by: Nathan Bower <[email protected]>
@Naarcha-AWS Naarcha-AWS deleted the Fix2627-cat-segment-api branch March 28, 2024 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6 - Done but waiting to merge PR: The work is done and ready to merge release-notes PR: Include this PR in the automated release notes v2.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DOC] Add new _cat/segment_replication API documentation
5 participants