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/04/16 05:50:28 UTC

[GitHub] [pulsar] wolfstudy opened a new issue #4054: Exposing `MaxMessageSize` to user configuration

wolfstudy opened a new issue #4054: Exposing `MaxMessageSize` to user configuration
URL: https://github.com/apache/pulsar/issues/4054
 
 
   **Is your feature request related to a problem? Please describe.**
   
   Now, I want to send a larger message to pulsar, but pulsar's `MaxMessageSize` is in the form of hardcode. If the size of the message exceeds 5Mb, the pulsar client will fail.
   
   code as follows:
   
   ```
   // Max message size is limited by max BookKeeper entry size which is 5MB, and we need to account
       // for headers as well.
       public final static int MaxMessageSize = (5 * 1024 * 1024 - (10 * 1024));
       public final static int MaxFrameSize = 5 * 1024 * 1024;
   ```
   
   **Describe the solution you'd like**
   
   In kafka, `MaxMessageSize` is a configurable option. We can also consider exposing it to the user as a configurable option. Of course, we may need to modify the size of the bookkeeper for the size of the message.
   
   ```
   # The maximum netty frame size in bytes. Any message received larger than this will be rejeted. Default value is 5MB.
   # nettyMaxFrameSizeBytes=5242880
   ```
   

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