poorbarcode commented on code in PR #23124: URL: https://github.com/apache/pulsar/pull/23124#discussion_r1708542663
########## pip/pip-370.md: ########## @@ -0,0 +1,48 @@ +# PIP-370: An optional flag: disable the replicators to automatically trigger topic creation + +# Background knowledge + +Users using Geo-Replication backup data across multi clusters, and Admin APIs related to Geo-Replication and internal replicators of brokers will trigger topics auto-creation between clusters. +- For partitioned topics. + - After enabled namespace-level Geo-Replication: broker will create topics on the remote cluster automatically when calling `pulsar-admin topics create-partitioned-topic`. It does not depend on enabling `allowAutoTopicCreation`. + - When enabling topic-level Geo-Replication on a partitioned topic: broker will create topics on the remote cluster automatically. It does not depend on enabling `allowAutoTopicCreation`. +- For non-partitioned topics and partitions of partitioned topics. + - The internal Geo-Replicator will trigger topics auto-creation for remote clusters. **(Highlight)** It depends on enabling `allowAutoTopicCreation`. In fact, this behavior is not related to Geo-Replication, it is the behavior of the internal producer of Geo Replicator, + +# Motivation + +But if users want to maintain pulsar resources manually, there is no choice that prevent pulsar resources creation affects each other between clusters. Review Comment: > clarifying question: what does it mean that a remote cluster "is not stable"? For example: **case-1**: Users deploying two clusters at the same time: when calling `pulsar-admin topics enable Geo-Replication` on the local cluster, maybe the remote cluster is starting. **case-2**: the `cluster-2` is for `cluster-1`'s backup, so few resources are allocated to it, and it will be more unstable than the primary cluster. **case-3**: the remote cluster are restarting -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
