Open crossoverJie opened 1 year ago
The issue had no activity for 30 days, mark with Stale label.
@Technoboy- @codelipenghui do we agree on this direction? Or it's just won't do.
I can imagine that "loop call org.apache.pulsar.client.admin.BrokerStats#getLoadReport" doesn't sound too bad.
The issue had no activity for 30 days, mark with Stale label.
@Technoboy- @codelipenghui do we agree on this direction? Or it's just won't do.
I can imagine that "loop call org.apache.pulsar.client.admin.BrokerStats#getLoadReport" doesn't sound too bad.
Ah, sorry for the late response. It's ok to add this kind of the API.
Refer to the org.apache.pulsar.testclient.BrokerMonitor implementation to get information from ZooKeeper.
Looks better
@Technoboy- Please assign it to me, thanks.
The issue had no activity for 30 days, mark with Stale label.
Search before asking
Motivation
I want to get the load information of all brokers and currently I can only do it by a loop call
org.apache.pulsar.client.admin.BrokerStats#getLoadReport
Also, I need to save additional IP information for all brokers.
Solution
Add a new admin API
getAllLoadReport()
to get information about all brokers.Alternatives
At the moment I can think of two implementation options:
getLoadReport
API of all brokers to aggregate their data.org.apache.pulsar.testclient.BrokerMonitor
implementation to get information fromZooKeeper
. https://github.com/apache/pulsar/blob/002fa49692ff4b8b038bf2edeeb3b32ed218e64f/pulsar-testclient/src/main/java/org/apache/pulsar/testclient/BrokerMonitor.java#L51-L55Any better suggestions?
Anything else?
No response
Are you willing to submit a PR?