-
Notifications
You must be signed in to change notification settings - Fork 507
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
Conversation
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Co-authored-by: Melissa Vagi <[email protected]>
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, but left a suggestion about the intro.
@@ -3,7 +3,7 @@ layout: default | |||
title: CAT repositories | |||
parent: CAT API | |||
|
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.
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. |
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.
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:
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. |
Signed-off-by: Fanit Kolchina <[email protected]>
…ch-project/documentation-website into Fix2627-cat-segment-api
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.
@kolchfa-aws Please see my comments and changes and let me know if you have any questions. Thanks!
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. |
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.
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.
Co-authored-by: Nathan Bower <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
* 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]>
* 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]>
Fixes #2627
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.