The title pretty much sums it up: It would be great to be able to select one or more slaves and create a limit group with those slaves pre-populated in the limit’s machine list.
I skimmed through the D7 docs and didn’t see any mention of this being an existing feature, but apologies if I missed it.
I am definitely going to ask the devs for their thoughts on this one, but I suspect the reason there are right click options to make a new group or pool, but not a limit group, is because the pools and groups are handed differently from the limit groups.
Just to clarify on your request, you want to be able to right click a group and make a limit based on the number of slaves you’ve selected? If I am mistaken, please clarify.
Not quite. Limit groups can have a machine list like a job (either a blacklist or whitelist). I would like to have a right-click option on a slave selections that pops up the “New Limit” dialog with the machine list filled in with the slaves I had selected, to allow me to finish defining the limit, or cancel. I guess it wouldn’t hurt to also pre-populate the limit group size in the “New Limit” dialog based on the number of slaves I had selected, but populating the machine list is the main thing.
We use limits to manage license allocation, and also as a more flexible layer on top of the pool/group system (e.g. to limit a job to only machines with at least a certain amount of RAM). It’s much easier to create and manage limits than it is pools or groups, and they can be unioned together to create more granular allocation criteria.
I am told that this should be possible with a slave right-click script that you could write. The MonitorUtils.GetSelectedSlaveNames() will get the list of slaves, and RepositoryUtils.SetLimitGroup() can be used to create a new limit group. I believe you’ve written stuff using our API before, right? I am sure someone can help if you get stuck on any particular aspect.
Yeah, I could hack something together to create a limit group, but what I can’t do is get the “New Limit Group” dialog to pop up with the slave list populated, with the limit not actually created yet (to allow the user to cancel the process). I would need to write my own dialog to use in place of Deadline’s, and while this is not overly difficult, it would still be nice if Deadline had this feature built in.