CGRU is too fair!

Feature requests discussion.
Post Reply
avclubvids
Posts: 22
Joined: Fri Jul 21, 2017 9:17 pm

CGRU is too fair!

Post by avclubvids »

The decision of how many slaves each render gets is a weighted combination of submit time, priority, and user, where the farm is "fairly" divided amongst all users and all jobs. This is great for a general render condition, where there are a bunch of users and many machines and no high urgency for a specific render to be completed ASAP.

BUT, it is extremely common for a single render to have very high, even total priority. The only way in CGRU to get the entire farm on that job is to pause all other jobs, and then unpause them later, or to guess a time to set them to unpause, or to manually make them dependent on the top priority job. This is not ideal, as there are situations in which we need to quickly let a render through, but then have the farm return to business as normal. We need a "god mode" for render priority, where we can essentially say "this render gets 100% of available resources until it is done".

What are the suggested ways to do this sort of thing, to break the balanced approach CGRU uses in order to allow the admin to determine which render(s) get absolute priority?
keyframe
Posts: 62
Joined: Sat Jan 21, 2017 9:43 pm
Location: Toronto

Re: CGRU is too fair!

Post by keyframe »

You can up the user's priority.

Seems to act more or less god-like here when set to 255.

G
--
Rocky Linux 8.5, cgru 3.2.1
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: CGRU is too fair!

Post by timurhai »

Hi.
Sorry for a delay.
What do you mean by "god" or "absolute" priority?
Afanasy threats each priority point as 10% resources bonus during balancing:
http://cgru.info/afanasy/user#user_priority
Default priority is 99. If you set some other priority to 199 (give it more 100 points), you will have 1.1^100 bonus.
This is 13780.6 times more resources than 99.
So if have 13781 machines, the entire farm will some 199 job, except 1 machine.
If you have less than 13780 machines, 99 will never run while 199 has ready tasks.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
avclubvids
Posts: 22
Joined: Fri Jul 21, 2017 9:17 pm

Re: CGRU is too fair!

Post by avclubvids »

I was under the impression that 99 was the top due to the submitter's "-1" leading to a priority of 99, we'll try much higher numbers and see how it goes!
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: CGRU is too fair!

Post by timurhai »

Globally in the CRGU "-1" commonly means "use default/configured value".
For priority it is 99:
https://github.com/CGRU/cgru/blob/maste ... t.json#L70
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Post Reply