zymap commented on a change in pull request #9810:
URL: https://github.com/apache/pulsar/pull/9810#discussion_r587995540



##########
File path: site2/docs/concepts-messaging.md
##########
@@ -23,6 +23,20 @@ Publish time | The timestamp of when the message is 
published. The timestamp is
 Event time | An optional timestamp attached to a message by applications. For 
example, applications attach a timestamp on when the message is processed. If 
nothing is set to event time, the value is `0`. 
 TypedMessageBuilder | It is used to construct a message. You can set message 
properties such as the message key, message value with `TypedMessageBuilder`. 
</br> When you set `TypedMessageBuilder`, set the key as a string. If you set 
the key as other types, for example, an AVRO object, the key is sent as bytes, 
and it is difficult to get the AVRO object back on the consumer.
 
+Pulsar default message size is 5MB, you can configure the message size by 
following configurations:
+
+In `broker.conf`:
+```bash
+# Max size of messages.
+maxMessageSize=5242880
+```
+
+In `bookkeeper.conf`:
+```bash
+# The maximum netty frame size in bytes. Any message received larger than this 
will be rejected. The default value is 5MB.
+nettyMaxFrameSizeBytes=5253120
+```
+

Review comment:
       Yes




----------------------------------------------------------------
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:
[email protected]


Reply via email to