Or do you mean that the individual lines come too quickly? In which case insert a Delay node set to Rate Limit mode, with the rate set at 20 per second.
It would, however, be much more efficient to write them all at once by passing the influx node a complete array of records.
Or do you mean that the individual lines come too quickly? In which case insert a Delay node set to Rate Limit mode, with the rate set at 20 per second.
Oh, I see now, I haven't realized there was such an option.
It would, however, be much more efficient to write them all at once by passing the influx node a complete array of records.
Could you elaborate this please?
Edit: When I use Rate Limit, Node-RED dies for some reason.
node-red.service: Main process exited, code=killed, status=9/KILL
node-red.service: Failed with result 'signal'.
Hi @hkayan, I am not sure why your node-red died, but maybe your file is too large?
If you find that he delay node is not precise enough I suggest my custom node @cameo69/node-red-ratelimit. In my testing it works fairly precise even for short intervals and in my testing it handled even large queues of 1mio msg without issues.