Resource Limits - Do I have to manually per account?

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.5
Webmin version 2.621
Usermin version 2.521
Virtualmin version 8.1.0 Professional
Theme version 26.22
Apache version 2.4.52
Package updates All installed packages are up to date

I am just looking at the new Resource Limits page under Manage Virtual Server and I can, once I learn the settings, configure for a domain.

Does this have to be done manually on every Virtual Server that I want to control?

I could not find it in packages and also the Server template page CPU and memory resource limits also does not have it.

These options should be configures as part of a package, and maybe the Resource Limits kept as an override page but this might cause complication.

Has anyone else used this feature and can give me some pointers?

Thanks

no - as it is only available in Pro.

but I think the headline

These limits apply to the Unix user that owns this virtual server and all sub-servers. They use systemd user slices, so they cap total usage across all processes for that user, including SSH logins and scripts

seems reasonably clear that it applies per VS and its sub-servers.

I have pro :smiley: and I know I can manually set them on every Virtual Server but I wante to know if there was a way like cpanel where you set the package and then it applied to all in that package etc..

Alian :alien: to me

roughly speaking

  • every account has a package
  • every package has a feature list
  • You only edit the package or the feature list and all of the changes are pushed/used by the accounts
  • Packages = bandwith, resources, number of emails + you define a featue list
  • Features = what they can use such as email forwarding, awstats, cronjobs, SSL etc..

I would use cpanel then

or move Administrator's Webmin modules out of the server templates by specifying a feature set.

@Jamie and @Ilia already agree that this is the wrong place for Administrator's Webmin modules and this is already being read by accounts rather than changes being pushed.

and @jimr I was just saying to @Stegan my thoughts on how cpanel works to better understand the relevance of my question. I do not need to have snide comments all the time.

C’mon. OP is asking a reasonable question about how to do something.

I’m sure Resource Limits are in Server Templates or Account Plans or somewhere. It wouldn’t make sense to require individual configuration per virtual server. @Ilia how does one configure resource limit defaults?

Oh, wait, but you mean for existing virtual servers? That’s probably a job for the CLI, though I can’t find any docs that discuss the new resource limit features, only the old ones (which are incomprehensible to most people and probably not worth the trouble to use).

Hi Joe, yeh I meant for virtual servers that already exist. I don’t have many but providers that have a 100+ accounts might find it hard.

I have not explored the cli.

I did look have a look around but I could not find how to do it in mass.

For the new resource limits we do not have it in templates yet.

@Jamie, how about we add this to the mass update section on the “Virtualmin Virtual Servers” (index.cgi) page?

:exploding_head:

Sure we could do that. Or the command-line API can be used to update all domains in a simple shell script.

The reason people use Virtualmin is they are not good at the CLI. (i.e. me). Though I do understand some admins love the CLI.

Per User Packages and features would fix this and many other issues. :smiley: - Set these options once at the package level and then all accounts get it. Anyway I will get of my soapbox :soap: :package:

I get you … but also, there is a limit to the amount of complexity we can add to the UI. Hence the CLI exists for admins who want to script more complex operations.

That said, resource limits should absolutely be definable at the template level.

My proposal of packages (Account Plans) and features reduces complexity. Virtualmin is unique by having server templates (which can be very good for app deployment) but you merge things into server templates that should be hived of into packages and features. Virtulamin should have 3 things that control accounts. This scenario leads to extra complexity.

  • server templates = for setting up
  • packages = server resource limits and configurations. You call these Account Plans
  • features = what features and things a user can do

I am sure you guys have removed Save and Apply in edit account plan effectively making packages. So when edits are made on a package Account Planit is applied to all belonging to it.. If this is the case then these Resource Limits should go in here. I don’t think they should also go under Manage Virtual Server unless you specifically need to have an override feature. IF you did this should be a permission set in my proposed feature thing.

Some stuff in Account Plans do need moving out in to a separate features thing.

This is 100% needed for those admins who need to do that sort of stuff.