3.3. 最小弹性配置
这个示例清单文件部署由两个控制节点和两个执行节点组成的 control plane。control plane 中的所有节点都会自动相互连接。control plane 中的所有节点都与 execution_nodes
组中的所有节点相连接。此配置具有弹性,因为执行节点可从所有控制节点访问。
容量算法决定在启动作业时选择哪个控制节点。如需更多信息,请参阅自动控制器用户指南中的自动化控制器容量确定和作业影响。
以下清单文件定义了此配置。
[automationcontroller] aap_c_1.example.com aap_c_2.example.com [automationcontroller:vars] node_type=control peers=execution_nodes [execution_nodes] aap_e_1.example.com aap_e_2.example.com
[automationcontroller]
小节定义控制节点。control plane 中的所有节点都相互对等。如果您将新节点添加到 automationcontroller
组,它将与原始节点自动对等。
[automationcontroller:vars]
小节为 control plane 中的所有节点将节点类型设置为 control
,并定义节点与执行节点对等的方式:
-
如果您向
execution_nodes
组添加新节点,则 control plane 节点会自动与其对等。 -
如果您向
automationcontroller
组添加新节点,节点类型被设置为control
。
下图显示了此网格网络的拓扑。
