NodeRED Resources on AXC2152, Using Balena/Docker

Hello,
I am running NodeRED on an AXC2152. I installed NodeRED using this procedure: https://github.com/plcnextusa/node-red
When NodeRED is running on the controller, the CPU load on both cores becomes exceptionally high, to the point that it will stop the controller. The memory usage also becomes extremely high, i.e. 90% +. This is independent of the NodeRED flows deployed, as the resource usage is not improved even when empty flows are deployed. I should also mention we are using OPCUA to pull data from the controller.
My question then is whether the Balena/Docker instance resources can be modified and monitored to reduce CPU allocation and overall CPU load. I know when running Docker on a PC, it is an option to allocate memory to the instance running.
Maybe the issue lies elsewhere? This would be a great solution if running NodeRED became less demanding…

One of my colleagues has a good bit of experience using Node Red on PLCnext Control devices. I asked him about your problem and this is his answer:
I am not facing these issues as described. But after installing several containers on my AXC F 2152 (Grafana, Influx DB, node red) the CPU load was really high but still everything worked.How many containers do you have installed? Remember that these are not deleted by a Type 1 or a Type 2 reset, and so it is easy to accumulate these and run into disk space issues (at least).
I am not familiar with the procedure in that github repository - perhaps if you open an issue on that repo, the maintainer(s) might have seen this issue before?

Well, at this point it is likely we have 3 or more containers on the controller. Multiple iterations attempting to get it right…
If the number of containers contributes to CPU load I will definitely want to remove those which are unused. Any idea how I might do so?

There is a brief description of how to remove OCI images etc. here, on the PLCnext Github page:
GitHub - PLCnext/Docker_GettingStarted: HowTo get a Docker like container engine (Balena-Engine) running on PLCnext Control. HowTo get a Docker like container engine (Balena-Engine) running on PLCnext Control. - GitHub - PLCnext/Docker_GettingStarted: HowTo get a Docker like container engine (Balena-Engine) running on PL…