警告:分配新系统资源的过程因虚拟化平台和资源类型而异。 您应该始终配置系统关键资源的监测和警报。 更多信息请参阅“监控 GitHub Enterprise Server 设备”。
随着更多的用户加入 您的 GitHub Enterprise Server 实例,您可能需要调整存储卷大小。 有关调整存储容量的信息,请参阅虚拟平台的相关文档。
要求与建议
注:调整用户存储卷之前,请将实例置于维护模式。 更多信息请参阅“启用和排定维护模式”。
最低要求
Note: If you joined the beta for GitHub Actions or GitHub Packages and enabled the features, your instance requires additional hardware resources. 启用测试功能的实例的最低要求在下表中用粗体表示。 更多信息请参阅“GitHub Enterprise Server 2.22 中的测试功能”。
用户许可 | vCPU | 内存 | 附加的存储容量 | 根存储容量 |
---|---|---|---|---|
试用版、演示版或 10 个轻度用户 | 2 或 4 | 16 GB 或 32 GB | 100 GB 或 150 GB | 200 GB |
10-3000 | 4 或 8 | 32 GB 或 48 GB | 250 GB 或 300 GB | 200 GB |
3000-5000 | 8 或 12 | 64 GB | 500 GB | 200 GB |
5000-8000 | 12 或 16 | 96 GB | 750 GB | 200 GB |
8000-10000+ | 16 或 20 | 128 GB 或 160 GB | 1000 GB | 200 GB |
有关为现有实例调整资源的更多信息,请参阅“增加存储容量”和“增加 CPU 或内存资源”。
GitHub Enterprise Server 2.22 中的测试功能
GitHub Enterprise Server 2.22 offered features in beta, such as GitHub Actions, GitHub Packages, and 代码扫描. For more information, see the GitHub Enterprise Server 2.22 release notes.
If you enabled beta features for GitHub Enterprise Server 2.22, your instance requires additional hardware resources. 更多信息请参阅“最低要求”。
增加数据分区大小
- 使用虚拟平台工具调整现有用户卷磁盘大小。
- SSH 连接到 您的 GitHub Enterprise Server 实例。 更多信息请参阅“访问管理 shell (SSH)。”
$ ssh -p 122 admin@HOSTNAME
- 将设备置于维护模式。 更多信息请参阅“启用和排定维护模式”。
- 重启设备,以检测新存储分配。
- 运行
ghe-storage-extend
命令以展开/data
文件系统:$ ghe-storage-extend
使用新设备增加根分区大小
- 使用版本与当前设备相同的较大根磁盘来设置新的 GitHub Enterprise Server 实例。 更多信息请参阅“设置 GitHub Enterprise Server 实例”。
- 关闭当前设备。
- 使用虚拟平台工具将数据磁盘从当前设备中拆下。
- 将数据磁盘安装到根磁盘较大的新设备上。
使用现有设备增加根分区大小
- 将新磁盘连接到 GitHub Enterprise Server 设备。
- 运行
parted
命令,将磁盘格式化:$ sudo parted /dev/xvdg mklabel msdos $ sudo parted /dev/xvdg mkpart primary ext4 0% 50% $ sudo parted /dev/xvdg mkpart primary ext4 50% 100%
- 运行
ghe-upgrade
命令,将完整的平台特定包安装到新分区的磁盘中。github-enterprise-2.11.9.hpkg
等通用热补丁升级包将无法按预期运行。$ ghe-upgrade PACKAGE-NAME.pkg -s -t /dev/xvdg1
- 关闭设备。
- 在虚拟机监控程序中,移除旧的根磁盘,并将新的根磁盘连接到旧的根磁盘的位置。
- 启动设备。