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

added connections alias and doc count in status api. #38

Merged
merged 1 commit into from
Jul 1, 2021

Conversation

naveenpajjuri
Copy link
Contributor

@naveenpajjuri naveenpajjuri commented Jul 1, 2021

Description

Added few more fields in status api useful for publishing metrics to cloudwatch.

New response :

syncing phase:

{
    "status": "SYNCING",
    "connection_alias": "source",
    "leader_index": "check6",
    "follower_index": "folcheck6",
    "replication_data": [
        {
            "shard_id": "[folcheck6][0]",
            "doc_count": 1,
            "syncing_task_details": {
                "remote_checkpoint": 0,
                "local_checkpoint": 0,
                "seq_no": 1
            }
        },
        {
            "shard_id": "[folcheck6][1]",
            "doc_count": 1,
            "syncing_task_details": {
                "remote_checkpoint": 0,
                "local_checkpoint": 0,
                "seq_no": 1
            }
        }
    ]
}

Bootstrap phase :

{
    "status": "BOOTSTRAPPING",
    "connection_alias": "source",
    "leader_index": "check6",
    "follower_index": "folcheck6",
    "replication_data": [
        {
            "shard_id": "[folcheck6][0]",
            "doc_count": 0,
            "bootstrap_task_details": {
                "bytes_total": 208,
                "bytes_recovered": 208,
                "bytes_percent": 100.0,
                "files_total": 1,
                "files_recovered": 1,
                "files_percent": 100.0,
                "start_time": 1625138711361,
                "running_time": 177
            }
        },
        {
            "shard_id": "[folcheck6][1]",
            "doc_count": 0,
            "bootstrap_task_details": {
                "bytes_total": 208,
                "bytes_recovered": 208,
                "bytes_percent": 100.0,
                "files_total": 1,
                "files_recovered": 1,
                "files_percent": 100.0,
                "start_time": 1625138711350,
                "running_time": 203
            }
        }
    ]
}```


 
### Check List
- [ ] Commits are signed per the DCO using --signoff 

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](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

Copy link
Contributor

@tbhanu-amzn tbhanu-amzn left a comment

Choose a reason for hiding this comment

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

lgtm

@naveenpajjuri naveenpajjuri merged commit 11d958f into main Jul 1, 2021
@gbbafna gbbafna deleted the status_improvements branch July 1, 2021 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants