在Rundeck中在多个节点上并行运行作业

时间:2019-11-14 13:52:29

标签: rundeck

是否有可能在所有目标节点[精确到15个节点]上并行运行[仅具有一项任务]?

此外,rundeck GUI中的“线程计数”选项是否可以解决上述目的?

PS:我仅具有对Rundeck的GUI访问权限

1 个答案:

答案 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的工作原理。