1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add comment to info docs re queue depth limit setting

This commit is contained in:
Dave Conway-Jones 2021-08-18 14:05:42 +01:00
parent 4d26b806dd
commit ef1b3aa7f5
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
2 changed files with 5 additions and 1 deletions

View File

@ -337,6 +337,8 @@ module.exports = function(RED) {
node.status({}); node.status({});
}); });
} }
// The topic based fair queue and last arrived on all topics queue
else if ((node.pauseType === "queue") || (node.pauseType === "timed")) { else if ((node.pauseType === "queue") || (node.pauseType === "timed")) {
node.intervalID = setInterval(function() { node.intervalID = setInterval(function() {
if (node.pauseType === "queue") { if (node.pauseType === "queue") {

View File

@ -51,7 +51,7 @@
the configured time period. The status shows the number of messages currently in the queue. the configured time period. The status shows the number of messages currently in the queue.
It can optionally discard intermediate messages as they arrive.</p> It can optionally discard intermediate messages as they arrive.</p>
</p> </p>
<p> If set to allow override of the rate, the new rate will be applied immediately, <p>If set to allow override of the rate, the new rate will be applied immediately,
and will remain in effect until changed again, the node is reset, or the flow is restarted.</p> and will remain in effect until changed again, the node is reset, or the flow is restarted.</p>
<p>The rate limiting can be applied to all messages, or group them according to <p>The rate limiting can be applied to all messages, or group them according to
their <code>msg.topic</code> value. When grouping, intermediate messages are their <code>msg.topic</code> value. When grouping, intermediate messages are
@ -59,4 +59,6 @@
the most recent message for all topics, or release the most recent message the most recent message for all topics, or release the most recent message
for the next topic. for the next topic.
</p> </p>
<p><b>Note</b>: In rate limit mode the maximum queue depth can be set by a property in your
<i>settings.js</i> file. For example <code>nodeMessageBufferMaxLength: 1000,</code>
</script> </script>