poorbarcode commented on code in PR #24423: URL: https://github.com/apache/pulsar/pull/24423#discussion_r2371400317
########## pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java: ########## @@ -919,6 +919,47 @@ The max allowed delay for delayed delivery (in milliseconds). If the broker rece ) private int brokerMaxConnections = 0; + @FieldContext( + category = CATEGORY_POLICIES, + doc = "It relates to configuration \"WriteBufferHighWaterMark\" of Netty Channel Config. If the number of bytes" + + " queued in the write buffer exceeds this value, channel writable state will start to return \"false\"." + ) + private int pulsarChannelWriteBufferHighWaterMark = 64 * 1024; + + @FieldContext( + category = CATEGORY_POLICIES, + doc = "It relates to configuration \"WriteBufferLowWaterMark\" of Netty Channel Config. If the number of bytes" + + " queued in the write buffer is smaller than this value, channel writable state will start to return" + + " \"true\"." + ) + private int pulsarChannelWriteBufferLowWaterMark = 32 * 1024; + + @FieldContext( + category = CATEGORY_POLICIES, + doc = "If enabled, the channel will pause to deal with new request once the writer buffer is full, until it" + + " is changed to writable." + ) + private boolean pulsarChannelPauseReceivingRequestsIfUnwritable = false; + + @FieldContext( + category = CATEGORY_POLICIES, + doc = "After the connection is recovered from an unreadable state, the channel will be rate-limited for a" + + " period of time to avoid overwhelming due to the backlog of requests. This parameter defines how" + + " many requests should be allowed in the rate limiting period." Review Comment: > "in the rate limiting period" doesn't seem to be accurate here since it's fixed to 1 second in the implementation. It seems that it should be mentioned that the unit is requests per second. No, it is really `period`, see also https://github.com/apache/pulsar/pull/24423/files#diff-fea8de831ac8a5786fffe8d4e627a19a25966df38520cd36ced4578e84d1cdb0R106-R118 -- 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-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org