12-04 更新 实时
首页/ 技术栈/ 正文

SageMaker HyperPod Slurm 推出托管集群扩展

技术栈 来源:AWS Machine Learning 2026-11-21 07:07 2 阅读 机器翻译
SageMaker HyperPod Slurm 推出托管集群扩展

要让一个用于基础模型开发的共享 Slurm 集群保持同步,就意味着要让若干各自独立维护的配置片段与节点上实际运行的内容保持一致。集群的形态存在于多个配置文件中,其软件存在于自定义脚本中,其网络拓扑存在于必须随节点变化而编辑的文件中,其用户则存在于一份需要管理员维护并反复重新执行的名单里。随着时间推移,这些片段会逐渐偏离实际运行的内容,而且没有任何东西会在它们偏离时提醒你。

我们认为,集群配置应当像管理其他 AWS 基础设施那样来管理。你通过 API 或控制台声明你想要的配置,AWS 在应用之前先做校验,集群被持续保持在该状态,并且你能看到它是否正常工作。在 2026 年期间,Amazon SageMaker HyperPod 把这套方式带到了 Slurm 集群上,提供了 API 驱动的 Slurm 配置、基于 AMI 的配置、持续置备、自动拓扑管理以及深度健康检查。今天,我们推出了集群扩展(cluster extensions),把同样的方式带到了运行中节点上的软件和设置,并提供了用于可观测性和用户管理的托管扩展。不过,在这一切之上,你仍然对集群中的每个节点(包括控制器节点)保有完整访问权限。你可以 SSH 登录、直接配置节点,并运行你自己的生命周期脚本。API 让你需要维护的东西更少,直接访问让你拥有更多控制权,而平衡点由你来选择。

在这篇博文中,我们将逐一介绍 2026 年推出的这些功能,并解释为什么运行中节点上的软件需要一种不同的机制。随后,我们会展示集群扩展如何工作——分别通过 API 和控制台——并跟随一个平台团队,看它在一个使用这些扩展的集群上度过的一个季度。

我们可以把 Slurm 集群的配置划分为六个层次。其中五个层次描述集群本身:集群定义、节点配置、容量、网络拓扑和硬件健康。第六个层次涵盖节点上运行的软件,我们将在下一节讨论。

图 1:Slurm 集群配置栈

2026 年早些时候,我们为前五个层次引入了声明式管理。借助 API 驱动的 Slurm 配置,管理员可以在 CreateCluster 和 UpdateCluster 请求中定义节点角色、分区以及 Amazon FSx for Lustre 和 Amazon FSx for OpenZFS 挂载,并连接外部记账数据库。HyperPod 会更新分区设置,同时保留控制器节点上的其他 Slurm 自定义配置。基于 AMI 的配置用预装了 Slurm、Docker、Enroot、Pyxis 和主目录的镜像取代常规设置脚本。自定义 AMI 或 OnInitComplete 脚本则负责处理特定组织所需的软件。Slurm 的持续预置会在后台重试容量请求;基于 AMI 的配置可与之配合工作,最小容量要求让团队可以指定 MinInstanceCount,集群运维则会跟踪扩缩容请求。

自动拓扑管理会在节点扩缩或替换时维持网络布局。在 Slurm 25.11 或更高版本中,分区级拓扑支持为每个分区配置树形或块状拓扑。在硬件健康方面,按需深度健康检查会对 GPU 施加压力测试并测试 NVIDIA Collective Communications Library(NCCL)连通性,而配合持续预置的深度健康检查则会在节点预置过程中运行。处于检查中的节点会一直保留在 Slurm 维护预留中,直到检查完成,从而避免作业被调度到这些节点上。

到目前为止描述的五层,是 HyperPod 在预置节点时可以一次性推导或应用的配置。第六层——在节点上运行的软件——行为不同,因为它在集群的整个生命周期内会不断变化。随着研究人员加入和离开,某个团队要求在一周内获得更深入的 GPU 指标,某个 exporter 发布了一个修复。对于这一层,生命周期脚本一直是主要机制,而当软件不断变化时,它们存在缺点。脚本只在节点被预置时运行,因此每次变更都意味着编辑脚本,然后替换节点,或者在整个机群中重新运行它。错误只有在脚本于某个节点上运行时才会显现,而且没有任何东西报告安装了哪些内容,因此节点会随着时间推移逐渐产生差异。

我们希望软件能在一个地方声明,在你提交时接受检查,在各节点之间保持一致,并在之后可见。2026 年 11 月,我们推出了 cluster extensions,这是由 AWS 管理的软件包,你可以通过 API 或 Amazon SageMaker AI 控制台安装、配置、更新和移除;首批软件扩展从可观测性和用户管理(包括目录集成)开始。与脚本相比,扩展具有以下优势:

当 HyperPod 提供托管软件能力时,请使用 cluster extensions。对于可用扩展未覆盖的组织特定软件或初始化,请使用自定义 AMI 和生命周期脚本。HyperPod 目前支持两种集群托管扩展:

下图展示了扩展如何到达你的节点。

图 2:HyperPod 可以安装、编辑或移除扩展。HyperPod 会记录期望配置,节点代理会在每个节点(包括新增和替换的节点)上应用扩展包,健康探针会回传状态和健康问题

你可以从 SageMaker AI 控制台或通过 API 使用集群扩展。在控制台中,集群详情页上的 Extensions 选项卡会列出每个扩展及其状态、版本和 ARN,这里也是安装新扩展的位置。每个扩展都会添加自己的控件,例如用于可观测性的指标存储和 Open dashboard in Grafana 按钮,以及用于用户管理的用户和组数量与 Manage users 按钮。你也可以通过 API(从 AWS CLI 或 SDK)管理每个扩展,以编写安装脚本、将设置纳入版本控制、在多个集群间重复同一套设置,或通过你自己的工具检查状态和健康情况。下表列出了六个集群扩展 API,涵盖从安装扩展到列出可升级到的版本,以及扩展的控制台视图。

图 3:左侧是六个集群扩展 API 及各自的功能。右侧是用于添加和移除扩展的控制台视图

下图展示了调用其中一个 API 后会发生什么。

图 4:你通过 API 声明扩展的版本和设置。HyperPod 会验证并记录这些信息,按节点角色将其应用到每个节点,并报告状态和健康情况

当你创建或更新扩展时,HyperPod 会在 API 调用过程中根据该版本的 schema 校验你的设置,因此拼错的设置会立即被拒绝。随后,它会把版本和设置记录为期望状态并加以应用,每个节点只安装其角色所需的内容,例如仅在 GPU 节点上安装 GPU exporter。新增节点和替换节点在启动几分钟后就会获得相同的状态,而且每个节点都会上报该扩展是否已应用以及是否健康。

更新时只发送你想要更改的设置,HyperPod 会把它们合并到已存储的设置中。仅在某个节点上出现的问题,例如端口或用户 ID 已被其他东西占用,会显示在 DescribeClusterExtension 的 Health 字段中,并按原因分组,附带代码、消息和受影响节点的数量。HyperPod 会自行重试内部故障;至于其他情况,你需要修复原因,然后在不做任何更改的情况下调用 UpdateClusterExtension,以重试受影响的节点。

在变更逐步推送期间,扩展的状态为 Creating 或 Updating;当每个节点都运行所请求的版本和设置且没有任何节点上报问题时,状态为 Active;当部分节点失败或上报问题时,状态为 Degraded。每个扩展都有自己的 ARN,因此平台团队可以负责 sagemaker-user-management,而监控团队可以负责 sagemaker-observability。每个健康问题都会指明组件、描述其对集群的影响、给出下一步操作,并统计受影响的节点数,这样你无需登录每个节点就能知道该从哪里排查,如下图所示。

图 5:扩展的状态,以及一个未运行的节点 exporter 的健康问题示例

一种有用的判断方法是问:谁拥有该软件,以及它多久变更一次。集群上有些软件是你组织特有的,例如安全代理、许可证服务器,以及你的数据管道所期望的存储布局。生命周期脚本和自定义 AMI 是适合它的工具,因为只有你的团队知道它需要什么。其余是几乎所有集群都需要的软件,比如 GPU 指标和作业指标,以及具有一致 ID 和访问规则的用户账户。这类软件必须在每个节点上保持一致,并且不断变化,因此集群扩展更合适,因为你只需声明一次,HyperPod 会验证它,而且每个扩展都会报告自身是否健康。

原文较长,译文为节选;译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。

查看英文原文(Introducing managed cluster extensions for observability and user management in Amazon SageMaker HyperPod Slurm)

Keeping a shared Slurm cluster for foundation model development in sync entails keeping several separately maintained pieces of configuration matched to what’s running on the nodes. The cluster’s shape lives on multiple configuration files, its software in custom scripts, its network topology in files that must be edited as nodes change, and its users in a roster that an administrator must maintain and rerun. Over time these pieces drift away from what’s actually running, and nothing tells you when they do.

We believe cluster configurations should be managed the way you manage the rest of your AWS infrastructure. You declare what you want through an API or the console, AWS validates it before it’s applied, the cluster is kept in that state continuously, and you can see whether it’s working. During 2026, Amazon SageMaker HyperPod brought that approach to Slurm clusters, with API-driven Slurm configuration, AMI-based configuration, continuous provisioning, automatic topology management, and deep health checks. Today, we launched cluster extensions, which bring the same approach to the software and settings on running nodes, with managed extensions for observability and user management. However, through all of it, you still keep full access to every node in your cluster, including the controller node. You can SSH in, configure nodes directly, and run your own lifecycle scripts. The APIs give you less to maintain, direct access gives you more control, and you choose the balance.

In this post, we walk through the features we introduced in 2026 and explain why the software on running nodes needed a different mechanism. We then show how cluster extensions work, through both the API and the console, and follow a platform team through a quarter on a cluster that uses them.

A declarative foundation for Slurm cluster operations

We can think of a Slurm cluster’s configuration grouped into six layers. Five of them describe the cluster itself: its definition, node setup, capacity, network topology, and hardware health. The sixth covers the software running on its nodes, which we discuss in the next section.

Flow from HyperPod recording an extension’s desired configuration to a node agent applying the extension package on every node, including new and replaced nodes, with health probes reporting status and health issues back

Figure 1: The Slurm cluster configuration stack

Earlier in 2026, we brought declarative management to the first five layers. With API-driven Slurm configuration, administrators define node roles, partitions, and Amazon FSx for Lustre and Amazon FSx for OpenZFS mounts in CreateCluster and UpdateCluster requests, and connect an external accounting database. HyperPod updates partition settings while preserving other controller-node Slurm customizations. AMI-based configuration replaces routine setup scripts with images preconfigured with Slurm, Docker, Enroot, Pyxis, and home directories. A custom AMI or OnInitComplete script handles organization-specific software. Continuous provisioning for Slurm retries capacity requests in the background; AMI-based configuration works with it, minimum capacity requirements let teams specify MinInstanceCount, and cluster operations track scaling requests.

Automatic topology management maintains the network layout as nodes scale or are replaced. On Slurm 25.11 or later, partition-level topology supports tree or block topology per partition. For hardware health, on-demand deep health checks stress GPUs and test NVIDIA Collective Communications Library (NCCL) connectivity, while deep health checks with continuous provisioning run as nodes are provisioned. Nodes under check stay in Slurm maintenance reservations until checks finish, keeping jobs off them.

Introducing cluster extensions

The five layers described so far are configurations that HyperPod can derive or apply once, when it provisions a node. The sixth layer, the software that runs on the nodes, behaves differently because it keeps changing for the life of the cluster. As researchers join and leave, a team asks for deeper GPU metrics for a week, and an exporter ships a fix. For this layer, lifecycle scripts have been the main mechanism so far, and they have drawbacks when the software keeps changing. A script runs only when a node is provisioned, so each change means editing it and then replacing nodes or rerunning it across the fleet. A mistake shows only when the script runs on a node, and nothing reports what’s installed, so nodes drift apart over time.

We wanted the software to be declared in one place, checked when you submit it, kept consistent across nodes, and visible afterward. In November 2026, we launched cluster extensions, which are software packages managed by AWS that you install, configure, update, and remove through APIs or the Amazon SageMaker AI console, starting with observability and user management, including directory integration, as the first software extensions. Compared with scripts, extensions have these advantages:

  • Validated up front: HyperPod checks an extension’s settings against its schema when you submit them, through the API or the console, so a misspelled setting is rejected before anything reaches a node.
  • Consistent on every node: HyperPod applies the extension to every node, including nodes added by scale-up or replacement, and keeps the nodes consistent as the cluster scales and heals.
  • Changed through the API or the console: You change a setting or upgrade a version with an API call, or from the SageMaker AI console, instead of editing scripts and replacing nodes. Both paths use the same validated configuration, and this post shows console screenshots alongside the API examples.
  • Visible: Each extension reports its status and per-node health.

Use cluster extensions when HyperPod offers a managed software capability. Use custom AMIs and lifecycle scripts for organization-specific software or initialization that the available extensions don’t cover. HyperPod supports two cluster managed extensions today:

  • The observability extension (sagemaker-observability) collects node, GPU, Elastic Fabric Adapter (EFA), Slurm job, and Slurm cluster metrics and sends them to Amazon CloudWatch or Amazon Managed Service for Prometheus.
  • The user management extension (sagemaker-user-management) creates users and groups with the same IDs on every node, controls who can use SSH and sudo on each node type, and registers users with Slurm accounting. It can also connect the cluster to Active Directory, for example AWS Directory Service for Microsoft Active Directory.

The following diagram shows how an extension reaches your nodes.

Flow from HyperPod recording an extension’s desired configuration to a node agent applying the extension package on every node, including new and replaced nodes, with health probes reporting status and health issues back

Figure 2: HyperPod can install, edit, or remove an extension. HyperPod records the desired configuration, a node agent applies the extension package on every node, including new and replaced ones, and health probes report status and health issues back

Using cluster extensions

You can use cluster extensions from the SageMaker AI console or through an API. On the console, the Extensions tab on a cluster’s details page lists each extension with its status, version, and ARN, and it’s where you install a new one. Each extension adds controls of its own, such as the metric store and an open dashboard in Grafana button for observability, and the number of users and groups and a Manage users button for user management. You can also manage every extension through APIs, from the AWS CLI or an SDK, to script installs, keep settings in version control, repeat a setup across clusters, or check status and health from your own tooling. The following table lists the six cluster extension APIs, from installing an extension to listing the versions you can upgrade to, along with console view for extensions.

Figure 3: Left, the six cluster extension APIs and what each one does. Right, the console view to add and remove extensions

The following diagram shows what happens after you call one of these APIs.

Flow showing an extension’s version and settings declared through the API, validated and recorded by HyperPod, applied to every node for its role, with status and health reported back

Figure 4: You declare an extension’s version and settings through the API. HyperPod validates and records them, applies them to every node for its role, and reports status and health

When you create or update an extension, HyperPod validates your settings against the version’s schema during the API call, so a misspelled setting is rejected immediately. It then records the version and settings as the desired state and applies them, with each node installing only what its role needs, such as GPU exporters on GPU nodes only. New and replacement nodes get the same state a few minutes after they start, and every node reports whether the extension applied and whether it’s healthy.

Updates send only the settings that you want to change, and HyperPod merges them into the stored settings. Problems that show up only on a node, such as a port or user ID that something else already uses, appear in the Health field of DescribeClusterExtension, grouped by cause with a code, a message, and a count of affected nodes. HyperPod retries internal failures on its own, and for anything else you fix the cause and call UpdateClusterExtension with no changes to retry the affected nodes.

An extension’s status is Creating or Updating while a change rolls out, Active when every node runs the requested version and settings and none reports a problem, and Degraded when some nodes failed or report a problem. Each extension has its own ARN, so a platform team can own sagemaker-user-management while a monitoring team owns sagemaker-observability. Each health issue names the component, describes the effect on your cluster, gives the next step, and counts the affected nodes, so you can see where to look without signing in to each node, as the following figure shows.

An extension’s status display with an example health issue for a node exporter that isn’t running

Figure 5: An extension’s status, and an example health issue for a node exporter that isn’t running

When to use cluster extensions and when to use lifecycle scripts

A useful way to decide is to ask who owns the software and how often it changes. Some of the software on a cluster is specific to your organization, such as security agents, license servers, and the storage layout your data pipeline expects. Lifecycle scripts and custom AMIs are the right tools for it, because only your team knows what it needs. The rest is software that almost every cluster needs, like GPU and job metrics and user accounts with consistent IDs and access rules. That software must match on every node and keeps changing, so cluster extensions are the better fit, because you declare it once, HyperPod validates it, and each extension reports whether it’s healthy.

The two approaches can coexist, but each component should have one owner. Don’t manage the same exporter, user, or service through both a lifecycle script and an extension, because competing configurations can cause installation or runtime conflicts. Cluster extensions work with every lifecycle configuration option.

If you already run these capabilities from scripts, you can move to extensions one capability at a time, and scripts and extensions can run side by side while you do. For each capability, the migration takes four steps:

  1. Call UpdateClusterSoftware to move the cluster to the November 2026 HyperPod AMI or later.
  2. Turn the capability off in your lifecycle scripts and upload them to your S3 bucket, so that new nodes skip it.
  3. During a planned maintenance window, stop and remove the script-installed agents on every node. This is the only manual, fleet-wide step.
  4. Call CreateClusterExtension to install the extension on the clean cluster.

If anything is left behind, the install names the conflict, such as a port that’s already in use, and DescribeClusterExtension shows it under Health. With user management, you keep the same usernames and user IDs. The following figure shows four steps.

The four steps to move an existing cluster from lifecycle scripts to extensions, one capability at a time

Figure 6: Moving an existing cluster from lifecycle scripts to extensions, one capability at a time

What you need to get started with cluster extensions

You need a HyperPod Slurm cluster on or after the November 2, 2026 HyperPod AMI or later with continuous provisioning enabled. An extension runs software as root on every node, so treat CreateClusterExtension, UpdateClusterExtension, and DeleteClusterExtension as administrator permissions. We suggest that you do not grant them to the cluster’s execution role, because every user who can sign in to the nodes can use its credentials. That role does need access to the destinations that the extensions use, which means Amazon CloudWatch or aps:RemoteWrite for observability and secretsmanager:GetSecretValue for the Active Directory secrets that user management reads. If those secrets are encrypted with a customer managed AWS Key Management Service (AWS KMS) key, the role also needs kms:Decrypt on that key. User management also needs a shared file system, such as Amazon FSx for Lustre, for home directories.

For procedures, IAM policies, and configuration references, see Cluster extensions for Amazon SageMaker HyperPod Slurm clusters in the Amazon SageMaker AI Developer Guide.

A platform team’s journey managing a shared Slurm cluster using cluster extensions

To see how cluster extensions are used in practice, consider a platform team that manages a shared Slurm cluster for several research groups. The team needs a reviewable cluster definition, GPU and job metrics, corporate directory access, local accounts for a partner lab, and separate ownership of observability and user management. The following examples show how the team configures these capabilities and responds to routine changes and failures.

Create the cluster from one definition

The administrator declares the whole cluster, including node roles, partitions, FSx mounts, minimum capacity, deep health checks, and the external accounting database, in a single CreateCluster request. For a complete example request, see Getting started with SageMaker HyperPod using the AWS CLI.

The request has no lifecycle configuration, topology file, or Slurm configuration file. Each SlurmConfig gives its instance group a role, and the GPU group joins the train partition. AMI-based configuration sets up the nodes, and the security team’s compliance agent is already in the custom AMI. The GPU group asks for 8 nodes and requires 6, so jobs can start as soon as 6 are ready while HyperPod provisions the rest and health checks each GPU node as it arrives. HyperPod selects tree topology for the P5 nodes on its own, and accounting writes to an Amazon Relational Database Service (Amazon RDS) database that the team owns. The administrator can still SSH into the controller node to inspect or tune Slurm directly.

Install observability

Leadership wants GPU and job metrics, so the administrator installs the observability extension. In the SageMaker AI console, on the cluster’s Extensions tab, the administrator chooses the observability extension, picks the metric categories and their levels and the collection interval, and selects one of two metric stores: Amazon CloudWatch or Amazon Managed Service for Prometheus. The following screenshot shows the install form with one store selected. The other option is available in the same field.

Console install form for the observability extension, with configurable metric levels and a choice of metric store

Figure 7: Installing the observability extension from the console, with configurable metric levels and a choice of metric store

The same installation through the API takes one create-cluster-extension call. The following example uses Amazon CloudWatch as the metric store. To send metrics to Amazon Managed Service for Prometheus instead, you set the Prometheus destination in the same configuration.

The administrator installs the extension with one create-cluster-extension call:

aws sagemaker create-cluster-extension \
    --cluster-arn arn:aws:sagemaker:us-west-2:{{111122223333}}:cluster/{{abcd1234efgh}} \
    --extension-name sagemaker-observability \
    --configuration-values file://observability-config.json

The call returns the extension’s ARN, which the administrator uses in later calls:

{
    "ExtensionArn": "arn:aws:sagemaker:us-west-2:111122223333:extension/sagemaker-abcd1234efgh/sagemaker-observability/0a1b2c3d4e5f"
}

Whichever way it’s installed, each node runs only the components relevant to its role, such as DCGM and EFA exporters on GPU nodes and Slurm cluster metrics on the controller. Schema errors are rejected before rollout, while node-specific conflicts appear in extension health.

After the install, the extension appears on the cluster’s Extensions tab with its version, status, and ARN. The screenshot shows the tab for a cluster that has both the observability and user management extensions installed, and both are Active.

The Extensions tab for a cluster with both the observability and user management extensions installed and Active

Figure 8: The Extensions tab for a cluster with both the observability and user management extensions installed

Whichever metric store you choose, you can add an Amazon Managed Grafana workspace to the installation, so the team doesn’t need to build dashboards from scratch. After signing in to Grafana, they find two pre-created dashboards, Clusters and Jobs, as shown in the following screenshot.

Pre-created Clusters and Jobs dashboards in Amazon Managed Grafana

Figure 9: The Clusters and Jobs dashboards that come with the observability extension in Amazon Managed Grafana

The Clusters dashboard gives a single view of your HyperPod Slurm clusters, built on the metrics that the extension collects and sends to your chosen metric store. At the top, it summarizes cluster health: instance count and health, GPU and GPU memory totals, vCPUs, memory, and Amazon FSx for Lustre capacity. It also shows the state of Slurm itself, including node states (idle, allocated, mixed, down, and draining), job queues, failed or preempted jobs, and scheduler activity. From there, you can filter by cluster, node, or GPU to drill into EFA networking, GPU performance and errors, and host-level CPU, memory, disk, and network metrics, as shown in the following screenshots. That lets you go from “is my cluster healthy?” to the root cause of an issue without leaving the dashboard.

Clusters dashboard summary of cluster health, down to per-node GPU, EFA, and host metrics

Figure 10: The Clusters dashboard, from cluster-wide health and Slurm state down to per-node GPU, EFA, and host metrics

The Jobs dashboard moves from cluster-level health down to individual Slurm jobs. It ties each job’s resource to use back to the job itself, using metrics from the Slurm job exporter in either metric store. You can filter by cluster, job ID, job name, partition, user, or account, and see CPU, memory, GPU utilization, GPU memory, and disk I/O for each job, plus accelerator and NCCL metrics. That makes it easier to spot underused GPUs, stuck jobs, or communication bottlenecks in distributed training, as in the following screenshot.

Jobs dashboard showing resource use for individual Slurm jobs

Figure 11: The Jobs dashboard, showing resource use for individual Slurm jobs

Turn on deeper GPU and NCCL metrics

Later, a research team that is tuning multi-node training asks for more detail, so the administrator sends only the settings to change:

aws sagemaker update-cluster-extension \
    --cluster-arn {{cluster-arn}} \
    --extension-arn {{observability-extension-arn}} \
    --configuration-values '{"metricsProvider":{"acceleratedComputeMetrics":{"level":"ADVANCED"},"ncclMetrics":{"level":"ENABLED"}}}'

HyperPod merges these settings into the stored configuration and applies them to every node, restarting only the components whose settings changed. When the investigation is over, setting both to null returns them to their defaults, and at no point are nodes replaced or scripts rerun.

Fix a metrics delivery problem

One morning the extension shows as Degraded. A new instance group has an execution role that lacks aps:RemoteWrite, and describe-cluster-extension shows the effect:

{
    "NodeSummary": { "TotalCount": 19, "ActiveCount": 11 },
    "Health": {
        "Issues": [
            {
                "Code": "ExtensionUnhealthy",
                "Message": "otel-exporter-health: no successful exports in 5m6s",
                "NodeCount": 8
            }
        ]
    }
}

Once the administrator adds the permission, the nodes report healthy and the extension returns to Active, with nothing to reinstall.

Give people access

The user management extension manages the Linux users and groups on every node, and who can sign in and use sudo on each node type. You declare who should exist and what they can do, and HyperPod applies it to every node, including nodes added later or replaced, so no one connects to nodes or runs scripts to add or remove a user. Users come from local accounts that you list in the configuration, from Active Directory over LDAPS, or from both, and each group names the node types (controller, login, or compute) where its members can sign in over SSH and where they get passwordless sudo.

For the platform team, security wants corporate identities, with sudo reserved for administrators, and a partner lab that isn’t in the directory needs accounts of its own. The administrator declares both sources in one configuration, with group rules that say which node types each group can sign in to and use sudo on:

{
    "sharedFilesystemMount": "/fsx",
    "userSources": {
        "localUsers": {
            "groups": [
                { "name": "cluster-admins", "gid": 3002,
                  "ssh": [ { "nodeTypes": ["controller", "login", "compute"] } ],
                  "sudo": [ { "nodeTypes": ["controller", "login", "compute"] } ] },
                { "name": "partner-lab", "gid": 3101,
                  "ssh": [ { "nodeTypes": ["login", "compute"] } ] }
            ],
            "users": [
                { "username": "admin-1", "uid": 2001, "groups": ["cluster-admins"] },
                { "username": "partner-1", "uid": 2101, "groups": ["partner-lab"] }
            ]
        },
        "ldap": {
            "ldapUri": ["ldaps://{{ad.example.com}}"],
            "ldapSearchBase": "{{dc=example,dc=com}}",
            "ldapDefaultBindDn": "{{CN=ReadOnly,OU=Users,DC=example,DC=com}}",
            "ldapDefaultAuthtokSecretArn": "arn:aws:secretsmanager:us-west-2:{{111122223333}}:secret:{{ad-readonly-AbCdEf}}",
            "ldapTlsCacertSecretArn": "arn:aws:secretsmanager:us-west-2:{{111122223333}}:secret:{{ldaps-ca-GhIjKl}}",
            "domain": "{{example.com}}",
            "useFullyQualifiedNames": "ENABLED",
            "ldapGroups": [
                { "name": "{{ClusterAdmin@example.com}}",
                  "ssh": [ { "nodeTypes": ["controller", "login", "compute"] } ],
                  "sudo": [ { "nodeTypes": ["controller", "login", "compute"] } ] },
                { "name": "{{ml-researchers@example.com}}",
                  "ssh": [ { "nodeTypes": ["login", "compute"] } ] }
            ]
        }
    }
}

Access is explicit, so after the extension is installed only the groups that grant SSH access, along with the default ubuntu user, can sign in. Directory users keep their identities and group membership in Active Directory, while the partner lab’s users get the same IDs, home directories, and the default Slurm root account.

The same configuration can be managed from the console. Choosing Manage users on the user management extension opens the cluster’s Users tab, where the administrator can add, edit, and remove groups and users, and set which node types each group can sign in to and use sudo on, as shown in the following screenshot.

Figure 12: Managing groups and users for the user management extension on the console

Upgrade an extension to get new features without AMI updates

When AWS publishes a new version of an extension, the administrator lists the versions that can be installed and upgrades in place without AMI updates:

aws sagemaker list-cluster-extension-versions \
    --extension-name sagemaker-observability

aws sagemaker update-cluster-extension \
    --cluster-arn {{cluster-arn}} \
    --extension-arn {{observability-extension-arn}} \
    --extension-version {{new-version}}

HyperPod checks the stored settings against the new version’s schema and rejects the request, changing nothing, if they aren’t valid for it. Otherwise, the new version rolls out to every node, and nodes that join later get it too. Upgrades only go forward, so the administrator picks a maintenance window. Any new settings or capabilities that come with the version can then be turned on with an update like the earlier one.

Scale the cluster and replace failed nodes

Before the end-of-quarter run, the administrator starts an on-demand deep health check on the GPU group and then adds nodes with batch-add-cluster-nodes. The request returns as soon as HyperPod accepts it, so the administrator follows it as a cluster operation:

aws sagemaker list-cluster-operations \
    --cluster-name shared-gpu-cluster \
    --status InProgress

As capacity arrives, each node is health checked, joins Slurm, takes its place in the topology, and gets both extensions with the same version and settings as every other node. If a GPU fails during the run, the replacement is configured and picks up the extensions the same way.

Review who has access

At the end of the quarter, security asks who has sudo on the controller, and the administrator answers from the API without signing in to a node:

aws sagemaker describe-cluster-extension \
    --cluster-arn {{cluster-arn}} \
    --extension-arn {{user-management-extension-arn}} \
    --query ExtensionDetails.ConfigurationValues --output text |
jq '[.userSources.localUsers.groups[]?, .userSources.ldap.ldapGroups[]?]
    | map(select(any(.sudo[]?; .nodeTypes | index("controller")))) | map(.name)'

The answer is cluster-admins and ClusterAdmin@example.com, and the directory group’s membership is audited in the directory. Because each extension has its own ARN, the platform team’s role can update only sagemaker-user-management and the monitoring team’s role only sagemaker-observability, while security has read-only access to both. None of these permissions belongs on the cluster’s execution role. When an extension is Active, ActiveCount equals TotalCount, and Health is empty, every node runs exactly that configuration.

Availability and pricing

Cluster extensions, including the observability and user management extensions, have been available since November 2026 in all the regions where Amazon SageMaker HyperPod is supported, and the other improvements in this post were announced earlier in 2026, with each announcement listing its Regions. There’s no additional charge for cluster extensions. You pay for the AWS resources that you use with them, such as Amazon CloudWatch, Amazon Managed Service for Prometheus, and AWS Secrets Manager.

Summary of the two extensions available since November 2026. Observability sends node, accelerator, network, cluster, and Slurm job metrics to Amazon CloudWatch or Amazon Managed Service for Prometheus with dashboards in Amazon Managed Grafana and configurable metric levels and intervals. User management provides the same Linux users and groups on every node, control over who can sign in with SSH and use sudo, and users from a local list or an LDAP directory

Figure 13: The two extensions that have been available since November 2026

Conclusion

A cluster is easier to run when more of it is declared, validated, converged, and observable. This year’s improvements brought that to a HyperPod Slurm cluster’s definition, node setup, capacity, network topology, and hardware health, and cluster extensions, available since November 2026, bring it to the software on the nodes, the layer that changes most often. Lifecycle scripts and custom AMIs stay focused on what’s specific to your organization, and the controller node stays yours.

To create a cluster as described in this post, see Getting started with SageMaker HyperPod using the AWS CLI. To get started with cluster extensions, see Cluster Extensions in the Amazon SageMaker AI Developer Guide. Share your feedback in the comments or through your AWS account team.

Acknowledgment

This feature has contributions across several teams. Some of the people involved in developing this include Hengyu Lou, Aman Pratap Singh, Karthick Ravi, Shubh Nisar, Nitish Sai Kommasai, Uday Singamala, Min Badar, Devanshi Desai, Yahya Hassan, Connie Chen, Kashish Tayal, Oleg Talalov, Takuma Yoshitami, Kiran Penta, Dhawal Parkar, Pradeep Cruz.


About the authors

Austin Cherian

Austin Cherian

Austin is a Product Manager for Amazon SageMaker AI at AWS, where he focuses on Amazon SageMaker HyperPod and helps customers make the most of AWS for their AI workloads at scale, drawing on a background in high-performance computing. Prior to this role, he was part of the AWS HPC organization as the product manager leading the development of AWS ParallelCluster, making sure it grew to give customers a smooth journey deploying their HPC workloads on AWS. His earlier roles at AWS were as an HPC Solutions Architect and an HPC Developer Advocate for APJ, based in Singapore.

Aravind Neelakantan

Aravind Neelakantan

Aravind is a Specialist Solutions Architect at AWS, focusing on generative AI training and inference. His expertise spans AI and high-performance computing, with research interests in performance optimization of AI workloads on heterogeneous architectures. Prior to AWS, he developed reference architectures for large-scale AI clusters and specialized in inference optimization with hardware accelerators. He has a Ph.D. from the University of Florida in heterogeneous HPC architecture.

Mayank Gupta

Mayank Gupta

Mayank is a Senior AI/ML Specialist with deep expertise in machine learning frameworks and enterprise AI architecture. He brings strong hands-on experience with AWS AI services, including SageMaker AI and SageMaker HyperPod, and leads the design and delivery of end-to-end AI solutions spanning model development, distributed training, and production-scale deployment. With deep experience in performance optimization and scalable ML architectures, Mayank partners with customers to translate complex business challenges into secure, high-impact, production-ready AI systems that drive measurable outcomes.

Ajay Mahendru

Ajay Mahendru

Ajay is an Engineering Leader on the Amazon SageMaker HyperPod team, where he works on the cluster control and data plane for large-scale AI training infrastructure. He has nearly two decades of software engineering experience, including nine years across SageMaker Inference, Processing, and HyperPod. He focuses on designing and delivering reliable, scalable platforms for GPU clusters.

Anirban Roy

Anirban Roy

Anirban is a Principal Engineer at AWS with the SageMaker team, primarily focusing on AI training infra, resiliency and observability. He holds a Master’s in Computer Science from Indian Statistical Institute in Kolkata. Anirban is a seasoned distributed software system builder with more than 20 years of experience and multiple patents and publications. He enjoys road biking, reading non-fiction, gardening, and nature traveling.

Sai Kiran Akula

Sai Kiran Akula

Sai is an Engineering Manager on the Amazon SageMaker HyperPod team, leading observability and agentic platform initiatives for large-scale ML training and inference. He has built cloud infrastructure and distributed systems across EC2, ECS, AWS Fargate, and SageMaker, and enables teams to deliver reliable, scalable AI infrastructure.

Satish Gollaprolu

Satish Gollaprolu

Satish is a software engineer on the Amazon SageMaker HyperPod team, building GPU cluster infrastructure for large-scale ML training. He has spent 7+ years at AWS across SageMaker Clarify, Training, and HyperPod, solving distributed systems problems to make infrastructure more reliable for customers.

正文保留英文原文,标题与摘要由机器翻译。

本文由采集器自动同步

原文发布于 AWS Machine Learning(Introducing managed cluster extensions for observability and user management in Amazon SageMaker HyperPod Slurm),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。

阅读原文 ↗