lhotari commented on issue #24490:
URL: https://github.com/apache/pulsar/issues/24490#issuecomment-3056484249

   @dlg99 @sandeep-mst Diffing 
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentDispatcherMultipleConsumers.java
 
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentDispatcherMultipleConsumersClassic.java
 could be helpful.
   
   One major difference is the backoff settings when there's nothing to 
dispatch:
   
https://github.com/apache/pulsar/blob/7d54f40d9b5bb8d44468983ad7b04c17c7f6cf1b/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java#L1264-L1276
   
   It could be useful to run a test with `dispatcherRetryBackoffMaxTimeInMs=1` 
to see if it has an impact. Another alternative configuration is to disable 
backoff completely with 
   
   ```
   dispatcherRetryBackoffInitialTimeInMs=0
   dispatcherRetryBackoffMaxTimeInMs=0
   ```
   defaults:
   
https://github.com/apache/pulsar/blob/7d54f40d9b5bb8d44468983ad7b04c17c7f6cf1b/conf/broker.conf#L506-L514
   
   There is a tradeoff. With the backoff, CPU will be spared and in some cases 
end-to-end latency will increase. For lowest possible latency, it does make 
sense to disable the backoff, however that will consume more CPU.
   
   /cc @BewareMyPower @shibd 
   


-- 
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]

Reply via email to