硬件要求

下表概述了 x86-64、ARM、ppc64le 和 s390x 体系结构上的 SUSE Multi-Linux Manager 服务器与代理的硬件和软件要求。

基于 ppc64le 或 s390x 体系结构的 SUSE Multi-Linux Manager 安装无法使用安全引导来引导网络客户端。存在此限制是因为 shim 引导加载程序不适用于这两种体系结构。

有关 SUSE Multi-Linux Manager for Retail 硬件要求,请参见 Retail Requirements

1. 服务器要求

One of SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7 is the operating system of the container host. In the following, SUSE Linux Enterprise Server as the installed host operating system is explicitly mentioned only if it matters. Otherwise we either write SL Micro or just host operating system.

The container host with SL Micro as operating system requires as free disk space:

  • 至少 100 GB 用于基础安装

  • 再加上至少 130 GB 用于储存库数据

Depending on the amount of selected software, SUSE Linux Enterprise Server as operating system can require considerably more disk space.

默认情况下,SUSE Multi-Linux Manager 服务器容器会将镜像储存库(软件包或产品)、数据库和其他数据存储在 /var/lib/containers/storage/volumes/ 目录的子目录中。如果此目录耗尽了磁盘空间,储存库同步将会失败。请根据您要镜像的客户端和储存库的数量和类型来估算 /var/lib/containers/storage/volumes/ 目录所需的空间。

有关文件系统和分区细节的详细信息,请参见 永久性存储和权限 和本指南的安装和部署相关章节中的详细安装说明。

Table 1. 服务器硬件要求
Hardware Details Recommendation

CPU

x86-64, ARM, ppc64le or s390x

Minimum 4 dedicated 64-bit CPU cores

RAM

Minimum

16 GB

Recommended

32 GB

Disk Space

/ (root directory)

40 GB

/var/lib/containers/storage/volumes

Minimum 150 GB (depending on the number of products)

/var/lib/containers/storage/volumes/var-pgsql

Minimum 50 GB

The images by default have a 40 GB / partition. The cloud image of SL Micro 6.1 has just a 5 GB / partition. Both work flawlessly with SUSE Multi-Linux Manager. As long as external storage is mounted to /var/lib/containers/storage/volumes, SUSE Multi-Linux Manager does not need or use storage on the / partition, but leaves that to the management of the container host itself.

SUSE Multi-Linux Manager 性能取决于硬件资源、网络带宽、客户端与服务器之间的延迟,等等。

根据所用体验和部署方式的不同,SUSE Multi-Linux Manager 服务器与足够数量的代理配套使用时,建议每个服务器处理的客户端不要超过 10,000 个,以便获得最佳性能。当客户端数量超过 10,000 个时,强烈建议改为使用集线器设置并咨询相关专业人员。即使优化了设置并配备了充足的代理,数量如此庞大的客户端也可能导致发生性能问题。

有关如何管理大量客户端的详细信息,请参见 Multiple Servers with Hub to Manage Large Scale Deployments

2. 代理要求

One of SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7 is the operating system of the container host.

Minimum requirements are suitable for a quick test installation, such as a Proxy with one client. If you want to use a production environment start with recommended values.

Table 2. 代理硬件要求
Hardware Details Recommendation

CPU

x86-64, ARM

Minimum 2 dedicated 64-bit CPU cores

Recommended

The same as minimum values

RAM

Minimum

2 GB

Recommended

The same as minimum values

Disk Space

/ (root directory)

Minimum 40 GB

/var/lib/containers/storage/volumes

Minimum 100 GB

默认情况下,SUSE Multi-Linux Manager 代理容器将软件包缓存在 /var/lib/containers/storage/volumes/uyuni-proxy-squid-cache/ 目录中。如果可用空间不足,代理将去除旧的未使用软件包,并将其替换为较新的软件包。

鉴于这种行为:

  • 代理上的 /var/lib/containers/storage/volumes/uyuni-proxy-squid-cache/ 目录越大,代理与 SUSE Multi-Linux Manager 服务器之间的流量就越少。

  • 使代理上的 /var/lib/containers/storage/volumes/uyuni-proxy-squid-cache/ 目录与 SUSE Multi-Linux Manager 服务器上的 /var/lib/containers/storage/volumes/var-spacewalk/ 保持相同的大小,可以避免在首次同步后出现大量的流量。

  • SUSE Multi-Linux Manager 服务器上的 /var/lib/containers/storage/volumes/uyuni-proxy-squid-cache/ 目录可能比代理上的目录要小。有关大小估算的指导,请参见服务器要求一节。

一般情况下,SUSE 建议将缓存目录的值调整为可用空间的 80 %。在服务器上生成代理配置时会设置 cache_dir 值。无法直接在 squid.conf 中设置该选项。

3. 数据库要求

PostgreSQL 是唯一受支持的数据库。不支持使用远程 PostgreSQL 数据库或装有 PostgreSQL 数据库的远程文件系统(例如 NFS)。换句话说,PostgreSQL 应该位于 SUSE Multi-Linux Manager 可用的最快的存储设备上。

由于存在潜在性能问题,我们不建议从 SUSE Multi-Linux Manager 远程运行 PostgreSQL 数据库。虽然这种环境在很多情况下是可行的甚至非常稳定,但如果发生问题,始终存在丢失数据的风险。

如果发生这种情况,SUSE 可能无法提供帮助。

4. 永久性存储和权限

默认情况下,在部署容器时会创建永久性卷。

但建议您将卷存储在一个或多个单独的存储设备上。这种设置有助于避免生产环境中丢失数据。此操作可在部署容器后再进行。

最好在首次部署容器之后设置存储设备。有关更多细节,请参见 永久性容器卷

我们建议使用 XFS 作为所有卷的文件系统类型。用于存储储存库的磁盘大小取决于您要使用 SUSE Multi-Linux Manager 管理的发行套件和通道数目。请参见本节中的表格来估算所需大小。

请勿使用 NFS 存储数据,因为它不支持 SELinux 文件标记。

在 SUSE Multi-Linux Manager 服务器上,使用以下命令找到所有可用的存储设备:

hwinfo --disk | grep -E "Device File:"

使用 lsblk 命令查看每个设备的名称和大小。

使用 mgr-storage-server 命令并加上设备名,可将外部磁盘设置为数据存储位置,您还可以选择指定服务器自身的磁盘用于数据库:

mgr-storage-server <storage-disk-device> [<database-disk-device>]

外部存储卷将设置为挂载到 /manager_storage/pgsql_storage 的 XFS 分区。

可对通道数据和数据库使用同一个存储设备。但不建议这样做,因为不断增长的通道储存库可能会填满存储,从而给数据库完整性带来风险。使用独立的存储设备还可以提高性能。如果您想要使用单个存储设备,请结合单个设备名参数运行 mgr-storage-server

如果您安装的是代理,mgr-storage-proxy 命令只接受单个设备名参数,并将外部存储位置设置为 Squid 缓存。

5. 逻辑卷管理 (LVM)

对于所有类型的虚拟机 (VM),通常都不需要 LVM,也不建议使用。磁盘设置是虚拟的,因此卷可以使用单独的磁盘,这也是建议的做法。

对于其他部署,也建议为卷使用单独的磁盘。

On the container host of the SUSE Multi-Linux Manager Server, the mgr-storage-server command moves the complete content of the /var/lib/containers/storage/volumes directory to a separate disk and remounts it to /var/lib/containers/storage/volumes.

Optionally, if a second device name is specified, mgr-storage-server moves the content of the /var/lib/containers/storage/volumes/var-pgsql database directory to a second separate disk and remounts it to /var/lib/containers/storage/volumes/var-pgsql.

Similarly, on the container host of the SUSE Multi-Linux Manager Proxy, the mgr-storage-proxy command moves the complete content of the /var/lib/containers/storage/volumes directory to a separate disk and remounts it to /var/lib/containers/storage/volumes.