是否有可能在所有目标节点[精确到15个节点]上并行运行[仅具有一项任务]?
此外,rundeck GUI中的“线程计数”选项是否可以解决上述目的?
PS:我仅具有对Rundeck的GUI访问权限
答案 0 :(得分:0)
您需要将作业分派到15个节点,并设置ThreadCount =15。我做了一个包含3个节点(node00,node01和node02)的示例以了解它:
<joblist>
<job>
<defaultTab>summary</defaultTab>
<description></description>
<dispatch>
<excludePrecedence>true</excludePrecedence>
<keepgoing>false</keepgoing>
<rankOrder>ascending</rankOrder>
<successOnEmptyNodeFilter>false</successOnEmptyNodeFilter>
<threadcount>3</threadcount>
</dispatch>
<executionEnabled>true</executionEnabled>
<id>c4a37a41-db35-4a76-b407-be6170c6502d</id>
<loglevel>INFO</loglevel>
<name>JobRemoteParallel</name>
<nodeFilterEditable>false</nodeFilterEditable>
<nodefilters>
<filter>node.*</filter>
</nodefilters>
<nodesSelectedByDefault>true</nodesSelectedByDefault>
<scheduleEnabled>true</scheduleEnabled>
<sequence keepgoing='false' strategy='node-first'>
<command>
<exec>sleep 2; echo "starting"</exec>
</command>
<command>
<exec>sleep 5; echo "processing"</exec>
</command>
<command>
<exec>echo "done!"</exec>
</command>
</sequence>
<uuid>c4a37a41-db35-4a76-b407-be6170c6502d</uuid>
</job>
</joblist>
Check的工作原理。