Shutdown rendernodes based on idle time

Installation and configuration.
Post Reply
Mikas
Posts: 38
Joined: Thu Oct 10, 2019 8:52 am

Shutdown rendernodes based on idle time

Post by Mikas »

Hi.
I'm looking how to send a shutdown command to rendernodes based on the idle time. Sa, I wanna leave render overnight, but don't want to have many machines idling when longer frames are finishing on other nodes, so I want to shutdown them earlier, before whole job is done. Any ideas?
Mikas
Renderfarm - Ubuntu 20.04 LTS
Clients - mixed Windows and Linux
Afanasy 3.1.1
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Shutdown rendernodes based on idle time

Post by timurhai »

Hi.
You can try to use Wake-On-Lan mechanism for it:
http://cgru.info/afanasy/server#wake_on_lan
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Mikas
Posts: 38
Joined: Thu Oct 10, 2019 8:52 am

Re: Shutdown rendernodes based on idle time

Post by Mikas »

How do I initialize that based on idle time? I can feel the answer is somewhere near, but cannot grasp it :)
Mikas
Renderfarm - Ubuntu 20.04 LTS
Clients - mixed Windows and Linux
Afanasy 3.1.1
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Shutdown rendernodes based on idle time

Post by timurhai »

I never used wake-on-lan for something other.
But i definitely know, that some others do.
People use it to shut down remote farm when render has finished.
See http://cgru.info/afanasy/server#wake_on_lan Configuration section.
You can write custom commands and do what you want.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Mikas
Posts: 38
Joined: Thu Oct 10, 2019 8:52 am

Re: Shutdown rendernodes based on idle time

Post by Mikas »

OK, thanks for the pointer. Will try to dig in there.
Mikas
Renderfarm - Ubuntu 20.04 LTS
Clients - mixed Windows and Linux
Afanasy 3.1.1
Post Reply