-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable npm Module Installation with Temporary Memory Enhancement #3631
Comments
This is going to be very difficult (if not impossible) to implement
Potential alternative approaches:
|
Having looked at the Node-RED code there may be some hooks in the install process, but will need to talk to Nick to see if these can be used |
@hardillb for kube, would a pre-emptive approach be a possible first iteration? e.g. upon start up, add xx% memory. Once running, reduce to pre-set value? This is of course only viable for installs at fire up (i.e. does not take care of installations performed in the Node-RED editor palette) |
@Steve-Mcl the main problem is not the startup install, it's it failing to install nodes at run time. Also as noted, with the currently used version of kubernetes we just can't change the memory limits. |
@ppawlowski mentioned that we may be able to change resource limits vs request for the Instance Pod on K8s. Testing this in the staging environment with adding 128m extra to the limit value allows the installing of the This is not a great UX but is better than not installing at all. I have opened node-red/node-red#4622 to try and improve the NR side of the UX things. This extra memory should only be available to the npm or nr-launcher process (not NR) since we set the max old space size for the NR process in the launcher to be slightly less than the memory size (we may be able to increase this based on these findings) (this is of course limited to K8s installs, not docker which has similar limitations) |
Epic
#626
Description
As a FlowFuse user,
I want to be able to temporarily enhance the memory allocation of my instance (automatically) during npm module installations,
So that I can successfully install necessary modules even if my default instance memory is insufficient, as long as the increased memory requirement is only during the installation process.
Which customers would this be availble to
Everyone - CE/Starter/Team/Enterprise
Acceptance Criteria
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate
The text was updated successfully, but these errors were encountered: