设置 Aspera 群集管理器
作为高可用性安装的一部分,您必须设置 Aspera 群集管理器 (ACM)。
有关 ACM 的概述信息,请参阅 Aspera 群集管理器(概述)。
在共享存储上安装 ACM 软件
关闭MySQL, Apache和 Orchestrator 服务的自动重启功能
该chkconfig命令会在重启后关闭Aspera服务的自动重启进程。 禁用自动重启在高可用性环境中至关重要,这样 ACM 就能根据需要控制重启过程,以保持高可用性。
配置运行 ACM 的 crontab 条目
在两个节点的 crontab 中配置 ACM 服务,以便acm4orchestrator脚本每分钟启动一次。
使用 crontab –e 命令对条目进行如下配置。
$ crontab –e
* * * * * /opt/aspera/acm/bin/acm4orchestrator ip_address > /dev/null 2>&1
crontab 中必须输入一个参数:运行脚本的主机 IP 地址。 此参数将传递给 acm4orchestrator 脚本。在下面的示例中,IP 地址为10.0.71.21.
$ crontab –e
* * * * * /opt/aspera/acm/bin/acm4orchestrator 10.0.71.21 device_ID > /dev/null 2>&1
查找设备 ID:
$ stat -c "%d" mount_point例如:
在上面的例子中/mnt是共享存储位置。$ stat -c "%d" /mnt创建共享存储的挂载:
$ mount -v -o vers=3,proto=tcp,port=2049 shared_storage mount_point例如:
$ mount -v -o vers=3,proto=tcp,port=2049 ha_storage.aspera.us /mnt在 crontab 中配置后,acm4orchestrator 脚本会定期运行,以确定active节点上启动所需的 Orchestrator 服务active和passive节点,取决于它们当前的状态 (active或passive).
获取 crontab 参数值
要列出系统上可用的 IP 地址,请运行以下命令:$ ip addr | grep "inet"
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
inet 10.0.75.21/16 brd 10.255.255 scope global eth0
运行 ACM 正常性检查
acmctl 命令有一个选项,用于检查是否进行了必要的配置,以使 acm4orchestrator 脚本能够正常运行。 您应确保每个服务器都通过了正确性测试。
识别每个 Orchestrator 服务器上 ACM 的状态
以下命令可用于识别哪个 Orchestrator 服务器处于活动状态,哪个处于被动状态:
/opt/aspera/acm/bin/acmctl -i有关使用此命令的更多信息,请参阅 在一个节点上禁用和重新启用 ACM 使用 VIP 与 Orchestrator 连接
如果负载平衡器在 Orchestrator 服务器前提供了虚拟 IP 地址 (VIP),且服务运行正常,则现在可以使用分配给 ACM 群集的 VIP 连接到 Orchestrator 应用程序。