Page 1 of 1

How to create multiple render pool in cgru?

Posted: Tue Jun 19, 2018 5:13 am
by tws0002
hi,

I had some issue with creating render pool and simulation pool on the farm!! because i don't want to run all working machine when submitting a job to cgru!! how can I do that in cgru?
example like this https://docs.thinkboxsoftware.com/produ ... roups.html

Thanks
Desmond

Re: How to create multiple render pool in cgru?

Posted: Tue Jun 19, 2018 9:18 am
by timurhai
Hi.
For now there are no Render Pools in Afanasy.
But it is in a road-map.

There are other ways that we are using to assign job(s) to a specific renders.

1. Hosts mask.
If job has a specific host mask (regular expression), its tasks can run only on renders that host names matches that mask.
In this case better to name machines by some rules.
Example hosts mask "sim.*" will run on any machines like "sim01", "sim02", ... or "sim_a", "sim_b".

2. Services.
You can describe services in a farm setup:
http://cgru.info/afanasy/server#farm_service
This way you can describe machine what they are able to do.
Some machines can run simulations (service with name "simulation") some can't.

3. Properties.
You can describe properties in a farm setup:
http://cgru.info/afanasy/server#farm_properties
If some renders will have "sim gpu" property, a jobs with "need_properties" like "sim" or/and "gpu" can run tasks only such renders:
http://cgru.info/afanasy/job#job_need_properties

Re: How to create multiple render pool in cgru?

Posted: Tue Jun 26, 2018 8:53 am
by tws0002
Hi Timur,

Sorry, I'm not sure how to set up all the example you mention in the last post!! How can I set Host Mask? do I need to rename all the machine on render farm?

Re: How to create multiple render pool in cgru?

Posted: Tue Jun 26, 2018 9:25 am
by timurhai
Hi.
It is "Hosts Mask" and "Exclude" fields in that dialog. Exclude - what hosts to exclude.
And it is always better to have some good naming for farm machines, according to their abilities:
For example: render01, render02, sim01, sim02, gpu01, gpu02.
Bad examples are: moon, sun, cat, dog ... or peter, mike, john ...

Re: How to create multiple render pool in cgru?

Posted: Thu Jun 28, 2018 4:09 pm
by tws0002
Hi Timur

Thanks for the reply. To confirm the hostmask is the red box I highlight in the picture right?

Thanks
Desmond

Re: How to create multiple render pool in cgru?

Posted: Thu Jun 28, 2018 5:01 pm
by timurhai
Hi.
That are render machine hostname and afrender username.

Re: How to create multiple render pool in cgru?

Posted: Fri Jun 29, 2018 3:37 am
by tws0002
hi Timur

So I have a question. How can I set every each machine have a specific host mask name like you mention?
Set User name to change?

Thanks
Desmond

Re: How to create multiple render pool in cgru?

Posted: Fri Jun 29, 2018 9:35 am
by timurhai
"Hosts Mask" is a job property (not render). It means that a job with "sim.*" hosts mask will run tasks only on machines that names match mask, like "sim01", "sim02", sim8s" and so on.

Re: How to create multiple render pool in cgru?

Posted: Wed Jul 04, 2018 5:38 am
by tws0002
Hi Timur,

What if I wanna set render to specify render machine? How can I do that instead of assigning all to a pull with a hostmask? Because sometime artist needs a more flexible option!!

Thanks
Desmond

Re: How to create multiple render pool in cgru?

Posted: Wed Jul 04, 2018 9:24 am
by timurhai
Hosts mask is a Regular Expression.
There are lots of information an online checkers on this theme:
https://en.wikipedia.org/wiki/Regular_expression

For example if you want to assign job to a specific "render01" machine, you should set job hosts mask to "render01".
If to "render01" and "render02" hosts mask should be "render01|render02" - so you can just use a list with | separator, or you can combine the same part: "render0(1|2)".
See Regular Expressions manuals for a more examples\explanations.