Skip to content

Commit

Permalink
doc: document auto-restart "force mode"
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders committed Feb 19, 2025
1 parent a7829b5 commit c5d56f8
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 5 deletions.
4 changes: 4 additions & 0 deletions changes.d/6623.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
auto restart: The "force condemn" option (that tells workflows running on a
server to shutdown as opposed to migrate) hasn't worked with the host-selection
mechanism since Cylc 8.0.0. This has now been fixed and the "force condemn"
option has been restored in the documentation.
49 changes: 44 additions & 5 deletions cylc/flow/cfgspec/globalcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,16 +826,55 @@ def default_for(
range.
''')
Conf('condemned', VDR.V_ABSOLUTE_HOST_LIST, desc=f'''
These hosts will not be used to run jobs.
List run hosts that workflows should *not* run on.
If workflows are already running on
condemned hosts, Cylc will shut them down and
restart them on different hosts.
Any hosts listed here will be subtracted from the
`available <global.cylc[scheduler][run hosts]>`
hosts:
* Workflows will not start on condemned hosts.
* Workflows that are running on condemned hosts will attempt
to migrate to an uncondemned host (providing the
`auto restart
<global.cylc[scheduler][main loop][auto restart]>`
plugin is enabled).
This feature can be used to drain a host for patching, or
remove a host that is surplus to requirement.
Hostnames listed here may be followed by a ``!`` character.
This activates "force mode", workflows running on a
force-condenmed host will shutdown rather than attempting to
migrate (providing the
`auto restart
<global.cylc[scheduler][main loop][auto restart]>` plugin
is enabled).
.. rubric:: Example:
.. code-block:: cylc
[scheduler]
[[run hosts]]
# there are three hosts in the "pool"
available = host1, host2, host3
# however two have been taken out:
# * workflows running on "host1" will attempt to
# restart on "host3"
# * workflows running on "host2" will shutdown
condemned = host1, host2!
.. seealso::
:ref:`auto-stop-restart`
.. versionchanged:: 8.4.2
The "force-condemn" option caused issues at workflow
startup for Cylc versions between 8.0.0 and 8.4.1
inclusive.
.. versionchanged:: 8.0.0
{REPLACES}``[suite servers]condemned hosts``.
Expand Down Expand Up @@ -1336,7 +1375,7 @@ def default_for(
The means by which task progress messages are reported back to
the running workflow.
..rubric:: Options:
.. rubric:: Options:
zmq
Direct client-server TCP communication via network ports
Expand Down

0 comments on commit c5d56f8

Please sign in to comment.