Enable geo replication for topics via pulsar admin
- Dominant language
- Java
- Stars
- 15.3k
- Forks
- 3.8k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 160
Description
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Motivation
This is to allow admins of any topics to geo-replicate the topic in other connected clusters. For a use case when there are 2 clusters, tenants and namespaces are automatically replicated via adding flags 'allowedClusters' and 'replicationClusters' respectively using pulsar admin but it can't be done for a topic. There should be no requirement to go to the second cluster and create that separately. cc @hangc0276
### Solution
new parameters can be added in the createPersistantTopic for adding replicated clusters.
### Alternatives
_No response_
### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
Contributor guide
Research direction
Start by tracing the createPersistantTopic path in the Pulsar admin implementation and how allowedClusters and replicationClusters are handled for tenants and namespaces. Determine the topic-level parameters and verification needed so an administrator can configure replication from one connected cluster, then confirm the behavior across both clusters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100