Couchbase XDCR获取重复的复制ID

huangapple go评论46阅读模式
英文:

Couchbase XDCR getting duplicate replication id

问题

在createReplication调用中,一直获得相同的复制ID。如何获取唯一的ID?要求是需要检查每个创建的复制的指标。假设我们通过编程方式创建复制,以定期调用统计API来监视它,当changes_left为0时,我们通过调用cancelreplication来编程停止复制。
Couchbase行为的问题是一直获得相同的复制ID。复制ID是如何计算的?

英文:

In createReplication call keep getting same replication id all the time. How to get unique Id? The requirement is need to check metrics per replication created. Say we are programmatically creating replication aim to monitor it by periodically call stats API and changes_left is 0 we are stopping replication programmatically by calling cancelreplication.
The issue with couchbase behavior is getting the same replication ID all the time. How the replication id is calculated?

答案1

得分: 2

复制 ID 最终由以下格式组成:

<远程集群 UUID>/<源存储桶名称>/<目标存储桶名称>

XDCR 内部具有随机生成的内部 ID,用于区分实例,但不会对外部公开。

英文:

Replication ID is ultimately composed in the following format:

&lt;Remote Cluster UUID&gt;/&lt;SourceBucketName&gt;/&lt;TargetBucketName&gt;

XDCR internally has a randomly generated Internal ID to differentiate between instances, but it is not exposed to the outside world.

huangapple
  • 本文由 发表于 2023年2月8日 22:14:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/75387032.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定