ARTEMIS-3943 Changing default broker.xml and xsd with max-page-read comments and defaults

This commit is contained in:
Clebert Suconic 2022-08-30 13:28:53 -04:00 committed by clebertsuconic
parent 37c7da4e50
commit d4cbbfde1e
2 changed files with 9 additions and 12 deletions

View File

@ -146,14 +146,11 @@ ${cluster-security.settings}${cluster.settings}${replicated.settings}${shared-st
Lower this setting if you have too many queues in memory. -->
<page-size-bytes>10M</page-size-bytes>
<!-- uncomment the next parameter if you want to customize how many messages are read from paging into queues.
-1 means do not set a limit by messages. -->
<!-- <max-read-page-messages>-1</max-read-page-messages> -->
<!-- limit how many messages are read from paging into the Queue. -->
<max-read-page-messages>-1</max-read-page-messages>
<!-- uncomment the next parameter if you want to customize how much memory is used to keep messages from paging on the queues.
if you set it to -1 it means no limit is set. If both max-read-page-messages and max-read-page-bytes are -1, the system
will just allow infinite reading as long as consumers are issuing credits, independently of the ack state of these messages. -->
<!-- <max-read-page-bytes>1M</max-read-page-bytes> -->
<!-- limit how much memory is read from paging into the Queue. -->
<max-read-page-bytes>20M</max-read-page-bytes>
<message-counter-history-day-limit>10</message-counter-history-day-limit>
<address-full-policy>${full-policy}</address-full-policy>

View File

@ -3988,11 +3988,11 @@
</xsd:annotation>
</xsd:element>
<xsd:element name="max-read-page-messages" type="xsd:int" default="10" maxOccurs="1" minOccurs="0">
<xsd:element name="max-read-page-messages" type="xsd:int" default="-1" maxOccurs="1" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
How many messages are we allowed to read from page into memory each time. We should read more data from pages as messages are acknowledged until it fills up the size.
Between this and max-read-page-bytes the system will stop reading based on whatever hits the mark first
How many messages are we allowed to read from page into the Queue each time. We should read more data from pages as messages are acknowledged until it fills up the size.
Between this and max-read-page-bytes the system will stop reading based on whatever hits the mark first.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
@ -4000,8 +4000,8 @@
<xsd:element name="max-read-page-bytes" type="xsd:string" default="20M" maxOccurs="1" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
How many bytes are we allowed to read from page into memory each time. We should read more data from pages as messages are acknowledged until it fills up the size.
Between this and max-read-page-messages the system will stop reading based on whatever hits the mark first
How many bytes are we allowed to read from page into the Queue each time. We should read more data from pages as messages are acknowledged until it fills up the size.
Between this and max-read-page-messages the system will stop reading based on whatever hits the mark first.
</xsd:documentation>
</xsd:annotation>
</xsd:element>