你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
升级 CycleCloud
随着新版本可用,可以就地升级 Azure CycleCloud 应用程序。
CycleCloud 8
CycleCloud 8 具有不同的包名称 cyclecloud8
,以防止意外从一个主要版本升级到下一个主版本。 主要版本之间存在不兼容的更改。 一个可能不同时安装, cyclecloud
并且 cyclecloud8
不能在同一台计算机上安装。
支持的升级路径是删除 cyclecloud
包并安装 cyclecloud8
。 删除包后cyclecloud
,将保留数据/opt/cycle_server
目录和配置目录。 安装 cyclecloud8
后,安装脚本将检测现有数据和配置,然后自动运行任何升级迁移。
在 Debian 或 Ubuntu 上升级
按照 Debian 或 Ubuntu 上安装 中的说明配置 Microsoft apt 存储库 ((如果在安装) 期间尚未完成)。
使用以下方法升级 CycleCloud 包:
sudo apt update
sudo apt -y upgrade cyclecloud
若要执行从 CycleCloud 7 到 CycleCloud 8 支持的间接升级,请执行以下操作:
sudo apt update
sudo apt -y remove cyclecloud
sudo apt -y install cyclecloud8
若要将 CycleCloud 8 的一个版本直接升级到较新版本,请执行以下操作:
sudo apt update
sudo apt -y upgrade cyclecloud8
在 Enterprise Linux (RHEL) 克隆上进行升级
按照 在 Enterprise Linux 上安装 (RHEL) 克隆 中的说明配置 Microsoft yum 存储库 ((如果在安装) 期间尚未完成)。
使用以下方法升级 CycleCloud 包:
sudo yum -y upgrade cyclecloud
若要执行从 CycleCloud 7 到 CycleCloud 8 支持的间接升级,请执行以下操作:
sudo yum -y remove cyclecloud
sudo yum -y install cyclecloud8
若要将 CycleCloud 8 的一个版本直接升级到较新版本,请执行以下操作:
sudo yum -y upgrade cyclecloud8
从 Microsoft 下载中心升级
在策略不可用或不允许使用 Microsoft 包存储库的环境中,可以手动下载并安装 CycleCloud 包。
CycleCloud 通过 下载中心 作为 Debian 或 RPM 包发布。
若要升级,请将安装程序复制到运行 CycleCloud 的主机,并运行特定于平台的包升级命令。
对于 Debian,请使用:
dpkg -i cyclecloud_7.9.2-amd64.deb
对于 RedHat 变体,请使用:
rpm -U cyclecloud_7.9.2.rpm
重要
升级可能对 CycleCloud 环境和任何正在运行的群集造成意外后果。 Microsoft 建议测试开发或过渡环境中的所有升级,以最大程度地降低生产工作负荷的风险。
常见升级问题
我的旧模板是否与此新版本兼容?
模板应与次要版本升级兼容。 主版本之间的升级可能需要将群集固定到模板设计为的较旧版本。
升级是否有任何停机时间?
升级时 CycleCloud 会关闭一点。 升级通常需要 2-3 分钟。
是否可以在群集运行时升级?
是的,但群集在关闭时将无法与 CycleCloud 通信。 这意味着,在升级完成之前,自动缩放、终止请求等将不起作用。
将 CycleCloud 迁移到新主机
CycleCloud 的第一个安装配置服务用户和启动配置。 如果安装数据只是从主机复制到主机,则不存在这些数据。 以下说明介绍如何将 CycleCloud 安装迁移到另一台主机。
有关正在运行的群集的说明
由 CycleCloud 管理的群集通过 HTTPS 和 AMQP 将信息发送到 CycleCloud。 用于设置这些通信协议的访问信息在启动时由节点接收。 因此,如果在节点运行时 CycleCloud 的主机名或 IP 地址发生更改,则通信可能会中断。 建议在迁移之前终止所有群集。
这一点的一个例外是配置了节点 IsReturnProxy = true
。 在这种情况下,通信通道是从 CycleCloud 发起的,迁移后会自动重新建立。
迁移 CycleCloud 主机:
- 停止源主机上的cycle_server:
service cycle_server stop
(LSB init 脚本) 或systemctl stop cycle_server
(systemd init) - 运行
groupadd cycle_server
并在useradd cycle_server
目标主机上运行。 如果可能,请使用原始 GID 和 UID。 - 通过运行
apt-get -y install openjdk-8-jre-headless
或在目标主机上安装 openjdk 版本 8yum install -y java-1.8.0-openjdk
- 使用
rsync -a /opt/cycle_server username@remote_host:/opt/cycle_server
或其他元数据保留传输工具传输到目标主机。 - 通过运行 CycleCloud 启用 LSB init 或 systemd init
/opt/cycle_server/util/autostart.sh on
- 使用或以下任一项
service cycle_server start
启动 CycleCloud 服务systemctl start cycle_server
如果安装迁移从非标准目录迁移到 /opt/cycle_server,则可以简化说明,而不是迁移到新主机:
- 停止源主机上的cycle_server:
service cycle_server stop
(LSB init 脚本) 或systemctl stop cycle_server
(systemd init) - 传输到默认位置
rsync -a /usr/share/hpc/cycle_server /opt/cycle_server
。 - 通过运行 CycleCloud 启用 LSB init 或 systemd init
/opt/cycle_server/util/autostart.sh on
- 使用或以下任一项
service cycle_server start
启动 CycleCloud 服务systemctl start cycle_server
迁移到新主机或迁移到默认安装目录后,可以按照第一部分中所述执行升级。