apache / pulsar

Apache Pulsar - distributed pub-sub messaging system
https://pulsar.apache.org/
Apache License 2.0
14.25k stars 3.58k forks source link

[Improve][Admin API] Clusters list API return clusters with local and remote flag #20581

Closed ericsyh closed 1 year ago

ericsyh commented 1 year ago

Search before asking

Motivation

After configuring the geo-replication on Pulsar clusters, the clusters list API will return multiple clusters, including the local Pulsar cluster and remote clusters like

bin/pulsar-admin clusters list
us-west
us-east
us-cent

But in this return, you can't distinguish the local and the remote cluster. When you need to remove the geo-replication configuration, it will be hard to decide which cluster should be removed on replicated tenants and namespaces unless you record the cluster information.

Solution

I am thinking about whether it's possible to add some flags on the clusters list API return data like

bin/pulsar-admin clusters list
us-west(local)
us-east(remote)
us-cent(remote)

That will be easy for users to distinguish.

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

github-actions[bot] commented 1 year ago

The issue had no activity for 30 days, mark with Stale label.