Skip to content

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

@ericsyh

Description

@ericsyh

Search before asking

  • I searched in the issues and found nothing similar.

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?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

Labels

Staletype/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions