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 2019/12/03 02:07:42 UTC

[GitHub] [pulsar] yjshen opened a new pull request #5788: [pulsar-java-client] Decouple partition switch frequency with maxPublishDelay in producer configuration

yjshen opened a new pull request #5788: [pulsar-java-client] Decouple partition switch frequency with maxPublishDelay in producer configuration
URL: https://github.com/apache/pulsar/pull/5788
 
 
   # Motivation
   
   Currently, while using round-robin message router, messages would be route to different partitions at the `maxPublishDelay` boundaries. However, when GC occurs, the output partition would change frequently and results in small batches. 
   
   This PR introduces a conf field setting the round-robin partition switch frequency: `batchingPartitionSwitchFrequencyByPublishDelay`. With this PR, the partition switch interval could be set as `maxPublishDelay` * `frequency`.
   
   ### Modifications
   
   `batchingPartitionSwitchFrequencyByPublishDelay` in `ProducerConfiguratiionData.java`
   
   ### Verifying this change
   
   
   This change is already covered by existing tests.
   
   ### Does this pull request potentially affect one of the following parts:
     - The public API: (yes)
   
   ### Documentation
   
     - Does this pull request introduce a new feature? (yes )
     - If yes, how is the feature documented? (docs / JavaDocs)
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services