Merge pull request #685 from rabbitmq/in-memory-limits

Add x-max-in-memory-length and x-max-in-memory-bytes arguments to qq
This commit is contained in:
Karl Nilsson 2019-04-11 17:05:27 +01:00 committed by GitHub
commit b6542d2e9a
3 changed files with 15 additions and 2 deletions

View File

@ -163,6 +163,12 @@ var HELP = {
'queue-max-length-bytes':
'Total body size for ready messages a queue can contain before it starts to drop them from its head.<br/>(Sets the "<a target="_blank" href="https://rabbitmq.com/maxlength.html">x-max-length-bytes</a>" argument.)',
'queue-max-in-memory-length':
'How many (ready) messages a quorum queue can contain in memory before it starts storing them on disk only.<br/>(Sets the x-max-in-memory-length argument.)',
'queue-max-in-memory-bytes':
'Total body size for ready messages a quorum queue can contain in memory before it starts storing them on disk only.<br/>(Sets the x-max-in-memory-bytes argument.)',
'queue-auto-delete':
'If yes, the queue will delete itself after at least one consumer has connected, and then all consumers have disconnected.',

View File

@ -141,6 +141,9 @@
<th class="horizontal">Total</th>
<th class="horizontal">Ready</th>
<th class="horizontal">Unacked</th>
<% if (is_quorum(queue)) { %>
<th class="horizontal">In memory ready</th>
<% } %>
<% if (is_classic(queue)) { %>
<th class="horizontal">In memory</th>
<th class="horizontal">Persistent</th>
@ -161,10 +164,10 @@
<td class="r">
<%= fmt_num_thousands(queue.messages_unacknowledged) %>
</td>
<% if (is_classic(queue)) { %>
<td class="r">
<%= fmt_num_thousands(queue.messages_ram) %>
</td>
<% if (is_classic(queue)) { %>
<td class="r">
<%= fmt_num_thousands(queue.messages_persistent) %>
</td>
@ -187,10 +190,10 @@
<td class="r">
<%= fmt_bytes(queue.message_bytes_unacknowledged) %>
</td>
<% if (is_classic(queue)) { %>
<td class="r">
<%= fmt_bytes(queue.message_bytes_ram) %>
</td>
<% if (is_classic(queue)) { %>
<td class="r">
<%= fmt_bytes(queue.message_bytes_persistent) %>
</td>

View File

@ -296,6 +296,10 @@
<span class="argument-link" field="arguments" key="x-queue-mode" type="string" value="lazy">Lazy mode</span> <span class="help" id="queue-lazy"></span>
<span class="argument-link" field="arguments" key="x-queue-master-locator" type="string" value="">Master locator</span> <span class="help" id="queue-master-locator"></span>
<% } %>
<% if (queue_type == "quorum") { %>
<span class="argument-link" field="arguments" key="x-max-in-memory-length" type="number">Max in memory length</span><span class="help" id="queue-max-in-memory-length"></span><br/>
<span class="argument-link" field="arguments" key="x-max-in-memory-bytes" type="number">Max in memory bytes</span><span class="help" id="queue-max-in-memory-bytes"></span><br/>
<% } %>
</td>
</tr>
</table>