File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -843,6 +843,11 @@ def default_for(
843
843
Conf ('ranking' , VDR .V_STRING , desc = f'''
844
844
Rank and filter run hosts based on system information.
845
845
846
+ By default, when a workflow is started, Cylc will pick a host
847
+ for it to run on at random from :cylc:conf:`[..]available`.
848
+ If no hosts are specified in :cylc:conf:`[..]available` it
849
+ will start the scheduler locally.
850
+
846
851
Ranking can be used to provide load balancing to ensure no
847
852
single run host is overloaded. It also provides thresholds
848
853
beyond which Cylc will not attempt to start new schedulers on
@@ -867,6 +872,11 @@ def default_for(
867
872
# rank hosts by 15min average of server load
868
873
getloadavg()[2]
869
874
875
+ # rank hosts by the amount of available RAM (multiply by -1
876
+ # to make it choose the host with the most available memory
877
+ # rather than the least)
878
+ -1 * virtual_memory().available
879
+
870
880
# rank hosts by the number of cores
871
881
# (multiple by -1 because the lowest value is chosen)
872
882
-1 * cpu_count()
You can’t perform that action at this time.
0 commit comments