Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-41885

XDCR: Determine remote cluster hostname based on stream ID

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • backlog
    • 6.6.0
    • XDCR
    • 1

    Description

      The list of all of the current XDCR replications can be identified using the following command.

      $ ./couchbase-cli xdcr-replicate -c localhost -u Administrator -p password --list
      stream id: f7de9194ac2122fc42769e26c2974399/beer-sample/beer-sample2
         status: running
         source: beer-sample
         target: /remoteClusters/f7de9194ac2122fc42769e26c2974399/buckets/beer-sample2
      stream id: fd85a8f5aac227cd446499a02ba5d80a/beer-sample/beer-sample
         status: running
         source: beer-sample
         target: /remoteClusters/fd85a8f5aac227cd446499a02ba5d80a/buckets/beer-sample
      

      It would be great if this list can also include the target remote cluster hostname for each replication.

      At the moment, one way to do this is by identifying the remote cluster UUID from the stream id, which can then be used to identify the remote hostname from the list returned by the following XDCR API call.

      $ curl -u Administrator:password localhost:8091/pools/default/remoteClusters
      

      Attachments

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

        Activity

          People

            jliang John Liang
            yuvraj.kanwar Yuvraj Kanwar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty