Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-6430

Document fields of rebalance report

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 6.5.x Doc Updates
    • None
    • rest
    • None
    • DOC-2020-S5-Mar22, DOC-2020-S6-Apr05
    • 1

    Description

      The REST API and fields in rebalance report need to be documented.

      The rest API that need to use get the latest rebalance report is given by lastReportURI field in tasks API.

      $ curl -sX GET -u Administrator:asdasd http://localhost:9002/pools/default/tasks | jq .
      [
        {
          "statusId": "3ca3e97d2354d89e385d3a5f00d81057",
          "type": "rebalance",
          "status": "notRunning",
          "statusIsStale": false,
          "masterRequestTimedOut": false,
          "lastReportURI": "/logs/rebalanceReport?reportID=5de0f65ff9cfca045fb67479d2130942"
        }
      ] 

      The report can be obtained as below,

      $ curl -sX GET -u Administrator:asdasd http://localhost:9002/logs/rebalanceReport?reportID=5de0f65ff9cfca045fb67479d2130942 | jq . > ~/Downloads/report.json 

       

      I have attached the sample report. report.json

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              tony.hillman Tony Hillman (Inactive)
              Abhijeeth.Nuthan Abhijeeth Nuthan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty