CONDOR_DRAIN(1)
π§ condor_drain β bestie edition
okay so. CONDOR_DRAIN(1) β that's the manual page we're reading, and it lives in the HTCondor manual. Say hi to condor_drain, the HTCondor utility that lets you control the draining of an execute machine. It's giving admin-tool realness and honestly? obsessed. π«Ά
β¨ NAME β¨
condor_drain β it's the HTCondor Manual joint, and it does one thing beautifully: control draining of an execute machine. no cap.
β¨ SYNOPSIS β¨
condor_drain [-help ]
condor_drain [-debug ] [-pool pool-name] [-graceful | -quick | -fast]
[-reason reason-text] [-resume-on-completion | -restart-on-completion |
-reconfig-on-completion | -exit-on-completion] [-check expr] [-start
expr] machine-name
condor_drain [-debug ] [-pool pool-name] -cancel [-request-id id]
machine-name
β¨ DESCRIPTION β¨
condor_drain is an administrative command β so like, admin main character energy β and its whole vibe is controlling the draining of all slots on an execute machine. π
When a machine is draining, it will not accept any new jobsβ¦ unless the -start expression says otherwise, because we love an exception. π
Which machine are we draining, you ask? That's the machine-name argument, and bestie, it's literally the same as the machine ClassAd attribute Machine. So if you know that, you already know where to point this thing.
How the currently-running jobs get treated? Depends entirely on the draining schedule you pick with a command-line option. Here's the tea:
-graceful: initiate a graceful eviction of the job. That means all promises made to the job are honored, includingMaxJobRetirementTime. The eviction of jobs is coordinated to reduce idle time β which means if one slot has a job with a long retirement time and the other slots have jobs with shorter retirement times, the effective retirement time for all of the jobs is the longer one. π (collective suffering, but make it efficient). If no draining schedule is specified,-gracefulis chosen by default. periodt.-quick:MaxJobRetirementTimeis not honored. Eviction of jobs is immediately initiated. Jobs are given time to shut down according to the usual policy, that is, given byMachineMaxVacateTime.-fast: jobs are immediately hard-killed, with no chance to gracefully shut down. π brutal. iconic.
If you specify -graceful, you may also specify -start. On a gracefully-draining machine, some jobs may finish retiring before others β natural, no shade. By default, the resources used by the newly-retired jobs do not become available for use by other jobs until the machine exits the draining state (see below). The -start expression you supply replaces the draining machine's normal START expression for the duration of the draining state, potentially making those resources available. For more on all that, go read the admin-manual/ep-policy-configuration:*condor_startd* Policy Configuration section. π
Once draining is complete, the machine will enter the Drained/Idle state. To resume normal operation (negotiation) at that time β or at any previous time during draining β you can use the -cancel option. The -resume-on-completion option does the automatic edition: normal operation resumes by itself once draining has completed, and you can hand it over when you initiate draining. This is useful for forcing a machine with partitionable slots to join all of the resources back together into one machine, which facilitates de-fragmentation and whole machine negotiation. slay. π¦
β¨ OPTIONS β¨
-helpβ display brief usage information and dip. that's it, that's the whole thing. π-debugβ causes debugging information to be sent tostderr, based on the value of the configuration variableTOOL_DEBUG.-verboseβ print the request ID assigned to the drain request after it is submitted. That request ID can later be passed to-cancelvia-request-idto cancel a specific draining request. keep the receipt, bestie. π§Ύ-pool pool-nameβ specify an alternate HTCondor pool, if the default one is not desired.-gracefulβ (the default) honor the maximum vacate and retirement time policy. π-quickβ honor the maximum vacate time, but not the retirement time policy.-fastβ honor neither the maximum vacate time policy nor the retirement time policy. no chill, zero patience. π₯-reason reason-textβ set the drain reason toreason-text. While thecondor_startdis draining it will advertise the given reason. If this option is not used, the reason defaults to the name of the user that started the drain. π-resume-on-completionβ when done draining, resume normal operation, such that potentially the whole machine could be claimed.-restart-on-completionβ when done draining, restart thecondor_startddaemon so that configuration changes will take effect. π-reconfig-on-completionβ when done draining, reconfig and then resume normal operation. A reconfig will not change the resources assigned to slots, but most other configuration changes will be applied, including changes to theSTARTexpression and to offline GPUs and universes.-exit-on-completionβ when done draining, shut down thecondor_startddaemon and tell thecondor_masternot to restart it automatically. π-check exprβ abort draining, ifexpris not true for all slots to be drained.-start exprβ theSTARTexpression to use while the machine is draining. You can't reference the machine's existingSTARTexpression. not negotiable. π-cancelβ cancel a prior draining request, to permit thecondor_negotiatorto use the machine again.-request-id idβ specify a specific draining request to cancel, whereidis given by theDrainingRequestIdmachineClassAdattribute.
β¨ EXIT STATUS β¨
condor_drain will exit with a non-zero status value if it fails, and zero status if it succeeds. so basically, zero = we ate, non-zero = we did not eat. π
β¨ AUTHOR β¨
HTCondor Team π
β¨ COPYRIGHT β¨
1990-2026, Center for High Throughput Computing, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI, US. Licensed under the Apache License, Version 2.0.
lowkey the most important part: this was lifted straight out of the HTCondor Manual, page CONDOR_DRAIN(1), and that footer date stamp says Oct 16, 2026. matching the source/version and the date exactly, because facts don't change just because the vibe does. πβ¨πΈ
stay drained, stay unbothered, and pls read your START expressions before you yolo them. mwah. π
π«Άπ
π¦ where this page comes from
- fedora 43: condor 25.14.1-1.fc43 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms