失败时如何运行脚本(Corosync / Pacemaker)?

时间:2018-06-25 00:33:19

标签: amazon-ec2 pacemaker corosync

我有两个AWS实例,我需要其中两个实例都具有附加的特定ENI IP地址。

我在两个实例上都设置了Corosync / Pacemaker,并设置了href资源,以确保可以对ENI进行ping通。如果不能,我需要它运行一个脚本,该脚本将告诉AWS将ENI附加到该实例,从而解决该情况。

也许我找错了地方,但似乎找不到任何涉及此主题的示例或教程。

document.querySelectorAll('table a[href*="shipmentId"]')
  .forEach((a) => {
    const shipmentId = a.href.match(/\d+$/)[0];
    a.href = 'https://newsite.com/somepage?shipmentId=' + shipmentId;
  });

提前谢谢!

0 个答案:

没有答案