[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Expression in STARTD_NOCLAIM_SHUTDOWN?



Thanks John for a quick reply,Â
I thought of having external script, but sometimes my script gets killed due to oom issues and I was wondering if htcondor has that services?
Thanks again for you help. Will run a script to handle this.

Thanks and RegardsÂ
Raman

On Fri, Dec 12, 2025, 23:57 John M Knoeller via HTCondor-users <htcondor-users@xxxxxxxxxxx> wrote:
If STARTD_NOCLAIM_SHUTDOWN is an _expression_, that _expression_ is evaluated to a number of seconds
when the Startd starts up and again on reconfig, but that _expression_ cannot reference Startd attributes. Â

So, no. That is not going to work.Â

You could do something hacky, where you had some external script watching the Startd and changing the configuration and sending a reconfig when the first job runs. In effect setting things up so that the noclaim shutdown value is 1 hour when the Startd starts up, and is 200 seconds after the first job starts.Â

But it would probably be just as easy to have an external script handle the shutdown timing on its own.

There is an older mechanism controlled by the configuration variable DAEMON_SHUTDOWN, which is evaluated each time an update is sent to the collector.ÂÂ

you would need to set two knobs if you want to shut down both the Startd and the Master.

MASTER.DAEMON_SHUTDOWN = <_expression_>
STARTD.DAEMON_SHUTDOWN = <_expression_>

Configuration Macros â HTCondor Manual 25.4.0 documentation


-tj


From:ÂHTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Ram Ban <ramban046@xxxxxxxxx>
Sent:ÂFriday, December 12, 2025 11:19 AM
To:ÂHTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject:Â[HTCondor-users] _expression_ in STARTD_NOCLAIM_SHUTDOWN?

Hi all,
I am using STARTD_NOCLAIM_SHUTDOWNÂto stop machines when not used for 200 sec.
Now I have use case where I want this value to be max(uptime -1hr, 200sec) for vanilla universe.
Basically I want to keep machine up for alteast 1hr and then want to terminate if not used for 200 sec. Is there any way of doingÂthis?

Thanks and regardsÂ
Raman
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe

The archives can be found at: https://www-auth.cs.wisc.edu/lists/htcondor-users/