Replies: 2 comments
-
I think we should avoid host scripts as much as possible. imo it would be better to just remove the downscaling of resources from scripts and always have the resources that are required for building/installing. It is just a max limit and LXCs only use what they need. |
Beta Was this translation helpful? Give feedback.
-
There are 2 variants:
|
Beta Was this translation helpful? Give feedback.
-
There are a few scripts that build the app from source, usually requiring more CPU/RAM to build than to run the app. We should think of a way to run the updates from the host so that resources could be adjusted by the script (without requiring the user to do it manually).
Related to PR #79
My initial suggestion would be to create script similar to
update-lxcs.sh
, that would execute the/usr/bin/update
command in each selected LXC.The tricky part is knowing when it is needed to increase resource and how much should it be increased. For this, I think we can leverage our brand new JSON database by adding this info
pct exec <ID> "/usr/bin/update"
We could add
build_cpu
andbuild_ram
to the JSON, something like this (sorry my JSON skills aren't that great):Beta Was this translation helpful? Give feedback.
All reactions