You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/04/25 12:55:40 UTC

[GitHub] [pulsar] fu-turer opened a new issue, #15313: Broker LoadBalance uneffective because broker ResourceUsage is always 0

fu-turer opened a new issue, #15313:
URL: https://github.com/apache/pulsar/issues/15313

   **Describe the bug**
   
   ···
   
   ···
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Go to '...'
   2. Click on '....'
   3. Scroll down to '....'
   4. See error
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   **Screenshots**
   If applicable, add screenshots to help explain your problem.
   
   **Desktop (please complete the following information):**
    - OS: [e.g. iOS]
   
   **Additional context**
   Add any other context about the problem here.
   


-- 
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: commits-unsubscribe@pulsar.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] fu-turer commented on issue #15313: Broker LoadBalance uneffective because broker ResourceUsage is always 0

Posted by GitBox <gi...@apache.org>.
fu-turer commented on issue #15313:
URL: https://github.com/apache/pulsar/issues/15313#issuecomment-1109201153

   broker data in zk path /loadbalance/brokers/10.244.2.23:8080
   ```
   {"webServiceUrl":"http://10.244.2.23:8080","webServiceUrlTls":"https://10.244.2.23:8081","pulsarServiceUrlTls":"pulsar+ssl://10.244.2.23:6651","persistentTopicsEnabled":true,"nonPersistentTopicsEnabled":false,"cpu":{"usage":3.1577712104798255,"limit":100.0},"memory":{"usage":609.6469955444336,"limit":1228.0},"directMemory":{"usage":32.0,"limit":1228.0},"bandwidthIn":{"usage":0.0,"limit":0.0},"bandwidthOut":{"usage":0.0,"limit":0.0},"msgThroughputIn":0.0,"msgThroughputOut":0.0,"msgRateIn":0.0,"msgRateOut":0.0,"lastUpdate":1650886425227,"lastStats":{"pulsar/pulsar/10.244.2.23:8080/0x00000000_0xffffffff":{"msgRateIn":0.0,"msgThroughputIn":0.0,"msgRateOut":0.0,"msgThroughputOut":0.0,"consumerCount":0,"producerCount":0,"topics":1,"cacheSize":0}},"numTopics":1,"numBundles":1,"numConsumers":0,"numProducers":0,"bundles":["pulsar/pulsar/10.244.2.23:8080/0x00000000_0xffffffff"],"lastBundleGains":[],"lastBundleLosses":[],"brokerVersionString":"2.11.0-hw-0.0.4-SNAPSHOT","protocols":{},"advert
 isedListeners":{},"bundleStats":{"pulsar/pulsar/10.244.2.23:8080/0x00000000_0xffffffff":{"msgRateIn":0.0,"msgThroughputIn":0.0,"msgRateOut":0.0,"msgThroughputOut":0.0,"consumerCount":0,"producerCount":0,"topics":1,"cacheSize":0}},"maxResourceUsage":0.49645519256591797,"loadReportType":"LocalBrokerData"}
   
   ```
   deserialize  to `org.apache.pulsar.policies.data.loadbalancer.LocalBrokerData`
   
   @michaeljmarshall 


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] fu-turer commented on issue #15313: Broker LoadBalance uneffective because broker ResourceUsage is always 0

Posted by GitBox <gi...@apache.org>.
fu-turer commented on issue #15313:
URL: https://github.com/apache/pulsar/issues/15313#issuecomment-1108573108

   @michaeljmarshall 


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] michaeljmarshall commented on issue #15313: Broker LoadBalance uneffective because broker ResourceUsage is always 0

Posted by GitBox <gi...@apache.org>.
michaeljmarshall commented on issue #15313:
URL: https://github.com/apache/pulsar/issues/15313#issuecomment-1108917850

   > The reason is zk json data deserialize to pojo `org.apache.pulsar.policies.data.loadbalancer.ResourceUsage` will not use constructor `ResourceUsage(double usage, double limit)`, so that percentUsage is always 0
   
   @fu-turer - can you clarify where this deserialization happens? I took a quick look, but I couldn't find it.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] lhotari closed issue #15313: Broker LoadBalance uneffective because broker ResourceUsage is always 0

Posted by GitBox <gi...@apache.org>.
lhotari closed issue #15313: Broker LoadBalance uneffective because broker ResourceUsage is always 0
URL: https://github.com/apache/pulsar/issues/15313


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] michaeljmarshall commented on issue #15313: Broker LoadBalance uneffective because broker ResourceUsage is always 0

Posted by GitBox <gi...@apache.org>.
michaeljmarshall commented on issue #15313:
URL: https://github.com/apache/pulsar/issues/15313#issuecomment-1109276234

   @fu-turer - thanks for the reference. I didn't understand the nuance until I read through your test on the PR. I was confused because I didn't know that Gson could set final fields.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org