Hello everyone,
I have large files (buffers), 500mb each, I wish to stream/encode them as Base64 array and calculate their length and size, over the HTTP request node. This works well on workloads smaller than 100mb but crashes NR when injecting a 500mb file. I'm trying to workaround this through MQTT and overcome the 256mb limit.
Assistance is greatly appreciated!
My flow:
[{"id":"1c215438d48f35aa","type":"tab","label":"Flow 2","disabled":false,"info":"","env":[]},{"id":"51cdd9eb19b46116","type":"http request","z":"1c215438d48f35aa","name":"","method":"GET","ret":"bin","paytoqs":"ignore","url":"{{{payload}}}","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":310,"y":160,"wires":[["43a29608901fbc7a"]]},{"id":"43a29608901fbc7a","type":"split","z":"1c215438d48f35aa","name":"","splt":"100000","spltType":"len","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":450,"y":160,"wires":[["f34213cdd3f624c5"]]},{"id":"66c2fd1271ca0f31","type":"inject","z":"1c215438d48f35aa","name":"500MB file","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"https://tusd.tusdemo.net/files/4a97c96a26cd01884982487fb396ce7c+LfcgbF6wjMo033pBNGJvoVKEuZ7RKZrbQnUNC.U2niIc9xDjI6NMLGC7Ry4LOFAFIyNAs2iNf2AVg08BY81DKzX4fXWjT8dUjaH5hXSuUZ6CPgp8hQwfsCJkzZ0rhlC2","payloadType":"str","x":140,"y":120,"wires":[["51cdd9eb19b46116"]]},{"id":"52a2658eb066e54c","type":"inject","z":"1c215438d48f35aa","name":"30MB file","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"https://tusd.tusdemo.net/files/97ebe7c598a8e65d25163f7479a41ce9+p_XgHic1QSeJcp8EKi3XOtbKdXeqNctrK8YLd2wVc413tYgElWNmYq0X6pKDJyKGOQbLcd5lP0LCvUO5HaIg9KZaPcc9Fgubbz6iN_85oSAYkD7tzAlOuj76VIjLNSLy","payloadType":"str","x":140,"y":160,"wires":[["51cdd9eb19b46116"]]},{"id":"d84bffdc47782828","type":"inject","z":"1c215438d48f35aa","name":"92Mb file","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"https://tusd.tusdemo.net/files/6feaab09a1411cfb1feaebfd8358eb74+kCPor2otXU2yz_BwXI6FfN61w_YxipgYzaRBC13B1rOJuyg.AVkTKpOn.8759NdHZNQv.CxjgMIfZIB9HL4i4iJIG6bkh7Q5uVY7VDDcjiamA0kQ0hFPpd3waK7N5T4B","payloadType":"str","x":160,"y":220,"wires":[["51cdd9eb19b46116"]]},{"id":"f34213cdd3f624c5","type":"base64","z":"1c215438d48f35aa","name":"","action":"","property":"payload","x":580,"y":160,"wires":[["e3020d85c1f0b5b2","0457128bb1cd79da"]]},{"id":"e3020d85c1f0b5b2","type":"join","z":"1c215438d48f35aa","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":710,"y":160,"wires":[["7c1e7515d90031e0"]]},{"id":"7c1e7515d90031e0","type":"debug","z":"1c215438d48f35aa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":850,"y":160,"wires":[]},{"id":"e4b5c24e7885b75d","type":"mqtt out","z":"1c215438d48f35aa","name":"","topic":"workload_test","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"ed237c6b.40d1b","x":760,"y":420,"wires":[]},{"id":"d1c438eb90c46f26","type":"mqtt in","z":"1c215438d48f35aa","name":"","topic":"workload_test","qos":"2","datatype":"auto","broker":"ed237c6b.40d1b","nl":false,"rap":true,"rh":0,"inputs":0,"x":370,"y":560,"wires":[["7e70b9d42a5064c5"]]},{"id":"889226a2366ee7bc","type":"debug","z":"1c215438d48f35aa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":810,"y":560,"wires":[]},{"id":"a90f8f9fed597b11","type":"inject","z":"1c215438d48f35aa","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"hello world","payloadType":"str","x":560,"y":380,"wires":[["e4b5c24e7885b75d"]]},{"id":"ac316d8458e31d3b","type":"inject","z":"1c215438d48f35aa","name":"80Mb file","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"https://tusd.tusdemo.net/files/1c62af7137fb8dd77b53b7db30d51b00+KF0QwCcjJFsE7WihvoUkaOEhK_1Vrz8stYGQAilyE9420eEL7FHCUotv287Sibhvedz3R58yZkvCoaFlMCpHa0iejOJMyCHLA7OjeYOApuUKIJ6XZCzN8sVkUnsLoNrE ","payloadType":"str","x":170,"y":280,"wires":[["51cdd9eb19b46116"]]},{"id":"0457128bb1cd79da","type":"debug","z":"1c215438d48f35aa","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":690,"y":220,"wires":[]},{"id":"4b4a73cdf6b4483b","type":"http request","z":"1c215438d48f35aa","name":"","method":"GET","ret":"bin","paytoqs":"ignore","url":"{{{payload}}}","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":310,"y":440,"wires":[["656654c2a23d41ab"]]},{"id":"656654c2a23d41ab","type":"split","z":"1c215438d48f35aa","name":"","splt":"100000","spltType":"len","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":450,"y":440,"wires":[["591493f638e1f465"]]},{"id":"823cb64c77a77371","type":"inject","z":"1c215438d48f35aa","name":"500MB file","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"https://tusd.tusdemo.net/files/4a97c96a26cd01884982487fb396ce7c+LfcgbF6wjMo033pBNGJvoVKEuZ7RKZrbQnUNC.U2niIc9xDjI6NMLGC7Ry4LOFAFIyNAs2iNf2AVg08BY81DKzX4fXWjT8dUjaH5hXSuUZ6CPgp8hQwfsCJkzZ0rhlC2","payloadType":"str","x":140,"y":380,"wires":[["4b4a73cdf6b4483b"]]},{"id":"e0fe8c702521e965","type":"inject","z":"1c215438d48f35aa","name":"30MB file","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"https://tusd.tusdemo.net/files/97ebe7c598a8e65d25163f7479a41ce9+p_XgHic1QSeJcp8EKi3XOtbKdXeqNctrK8YLd2wVc413tYgElWNmYq0X6pKDJyKGOQbLcd5lP0LCvUO5HaIg9KZaPcc9Fgubbz6iN_85oSAYkD7tzAlOuj76VIjLNSLy","payloadType":"str","x":140,"y":440,"wires":[["4b4a73cdf6b4483b"]]},{"id":"de9a0cb7fcbcc26e","type":"inject","z":"1c215438d48f35aa","name":"92Mb file","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"https://tusd.tusdemo.net/files/6feaab09a1411cfb1feaebfd8358eb74+kCPor2otXU2yz_BwXI6FfN61w_YxipgYzaRBC13B1rOJuyg.AVkTKpOn.8759NdHZNQv.CxjgMIfZIB9HL4i4iJIG6bkh7Q5uVY7VDDcjiamA0kQ0hFPpd3waK7N5T4B","payloadType":"str","x":160,"y":500,"wires":[["4b4a73cdf6b4483b"]]},{"id":"b7b19e9d3304dcda","type":"inject","z":"1c215438d48f35aa","name":"80Mb file","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"https://tusd.tusdemo.net/files/1c62af7137fb8dd77b53b7db30d51b00+KF0QwCcjJFsE7WihvoUkaOEhK_1Vrz8stYGQAilyE9420eEL7FHCUotv287Sibhvedz3R58yZkvCoaFlMCpHa0iejOJMyCHLA7OjeYOApuUKIJ6XZCzN8sVkUnsLoNrE ","payloadType":"str","x":170,"y":560,"wires":[["4b4a73cdf6b4483b"]]},{"id":"7e70b9d42a5064c5","type":"join","z":"1c215438d48f35aa","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"10","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":530,"y":560,"wires":[["889226a2366ee7bc"]]},{"id":"591493f638e1f465","type":"base64","z":"1c215438d48f35aa","name":"","action":"","property":"payload","x":580,"y":440,"wires":[["e4b5c24e7885b75d"]]},{"id":"b99ab97193f573fc","type":"comment","z":"1c215438d48f35aa","name":"Without MQTT","info":"","x":320,"y":80,"wires":[]},{"id":"e514964966978b29","type":"comment","z":"1c215438d48f35aa","name":"With MQTT","info":"","x":310,"y":360,"wires":[]},{"id":"ed237c6b.40d1b","type":"mqtt-broker","name":"test.mosquitto.org","broker":"test.mosquitto.org","port":"1883","tls":"ce0f0716.0b63b8","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""},{"id":"ce0f0716.0b63b8","type":"tls-config","name":"","cert":"","key":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":true}]