Producers for geo-replication should be excluded from the publishers
field of topic stats
#22442
Closed
2 tasks done
Labels
type/enhancement
The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Search before asking
Motivation
After upgrading the version of Pulsar used at our company, the
publishers
field of topic stats now includes producers whose names start withpulsar.repl.
, which were not included before. These are producers created by brokers in other clusters for geo-replication.Producers for geo-replication started to appear in
publishers
due to the following PR:#20229
Although this PR is treated as a bug fix, it seems that the exclusion of geo-replication producers from
publishers
was intentional, so I think this is a specification change.I think geo-replication producers should be excluded from
publishers
. These are unknown producers to normal users, so they confuse users who look at topic stats. I think that the mechanism for achieving geo-replication should be hidden from users as much as possible.Solution
I would like to revert #20229. In addition to that, the
publishers
andproducerCount
fields in broker stats also include the number of geo-replication producers, so I'd like to exclude that from them too if possible.Alternatives
If #20229 should not be completely reverted, there is an option to add a query parameter to the REST APIs for retrieving topic stats/broker stats to determine whether
publishers
should include geo-replication producers. Even in this case, I'd like to hide geo-replication producers by default. I suggestshowReplicatorProducers
as the name of the query parameter.Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: