Open vovagorodok opened 1 week ago
Hello, even on previous apps there was only on custom app the ability to disable those. What is the use case that you want to disable those?
You can set your cpu count and memory to the max of what the system has and achieve the same. But with limits it ensures that a misbehaving app won't starve your system
What is the use case that you want to disable those?
I will use TrueNAS only for one NextCloud app. That's why will be nice to give this app as match resources as is possible?
You can change the limits to the max of what your system has.
I'm wondering about one more case. What if we change/add RAM or CPU? How app limits will behave in cases when limits are enabled and disabled? Disabled limits means that them are set to max during app installation (fetched from TrueNAS host system)?
You can change the values anytime.
You can change the values anytime.
You're right. However, I wonder if the option of setting it to max and not thinking about it in the future wouldn't be better in these cases.
As I correctly understand it will set resources
attribute that is optional: https://docs.docker.com/reference/compose-file/deploy/#resources ?
Yes it sets this attribute.
Unfortunately to change that now, it will require a migration for every app. And I don't think at the moment it will happen as middleware does not have migration support at all (besides the k8s -> docker).
You current options is to manually set it to the desired max value, or use custom app.
Unfortunately to change that now, it will require a migration for every app. And I don't think at the moment it will happen as middleware does not have migration support at all (besides the k8s -> docker).
Sure. Maybe we can consider it on the following releases? Should we create somewhere additional issue in order to discuss this case at middleware side?
Migrations are planned to be added, so there isn't something to discuss there. But even with support added, this is not a priority, as it will need some time to do the migrations. And to be honest, I'm not sure that it's worth the time spent.
Migrations are planned to be added, so there isn't something to discuss there.
Just out of curiosity, does this have a dedicated PR or Issue?
But even with support added, this is not a priority, as it will need some time to do the migrations.
Obviously, there are topics with higher priority, especially after the migration to docker compose
And to be honest, I'm not sure that it's worth the time spent.
From my PoV it makes sense to allow the user not to limit resources for installed apps. Especially for users who have 1-2 apps
In newer version of apps there no possibility to disable app limits: Will it be added in the future?