All Products
Search
Document Center

Elastic High Performance Computing:Create a serverless cluster

Last Updated:Dec 26, 2023

The compute nodes of a serverless cluster consist of elastic container instances. You only need to provide packaged container images to use elastic container instances to run jobs. This topic describes how to create a serverless cluster.

Background information

In most cases, Elastic High Performance Computing (E-HPC) clusters use Elastic Computing Service (ECS) instances as compute nodes. You can select the instance types and quantity of ECS instances based on your business requirements and manage the running status of E-HPC clusters and nodes. A serverless cluster uses elastic container instances as compute nodes. The system automatically creates elastic container instances to run jobs based on the jobs that you submit. Each elastic container instance contains one container. After the job is run, the elastic container instance stops billing and is automatically released. If you use a serverless cluster, you do not need to plan for the node capacity in advance or manage the servers. You only need to provide packaged container images to run jobs on elastic container instances.

Note

Elastic Container Instance is a container service provided by Alibaba Cloud that combines container and serverless technologies. You can use elastic container instances to develop your business without the need for server O&M and improve development efficiency. You are charged only for the resources used by your containers. This can reduce your usage costs. For more information, see What is Elastic Container Instance?

Prerequisites

  • The service-linked roles for E-HPC and Elastic Container Instance are created. When you log on to the E-HPC and Elastic Container Instance consoles for the first time, the system prompts you to activate the service. Follow the prompts to create a service-linked role.

  • A virtual private cloud (VPC) and a vSwitch are created. For more information, see Create and manage a VPC and Create and manage a vSwitch.

Limits

The service is not available in the Indonesia (Jakarta) region.

Procedure

  1. Go to the template configuration page.

    1. Log on to the E-HPC console.

    2. In the upper-left corner of the top navigation bar, select a region.

    3. In the top navigation bar, click Cluster.

    4. On the Cluster page, move the pointer over the drop-down icon to the right of Create Cluster and click Cluster Template.

  2. In the Basic Configurations section, enter the cluster name and logon password.

  3. In the upper part of the editor section, click the 选择模板..png icon and select Batch Serverless.

  4. Configure template parameters.

    The following table describes the required parameters of the Batch Serverless template. This topic uses the following template as an example. Modify the parameters based on your business requirements.

    [Global]
    clientVersion=2.1.0
    
    [Node]
    deployMode=Managed
    
    [Network]
    vpcId=vpc-bp156zry1g8y8dv99****
    vSwitchId=vsw-bp1xu3lkc9c9bpq32****
    securityGroupId=
    
    [Storage]
    withoutNas=true
    
    [Scheduler]
    schedulerType=ServerlessBatch

    Type

    Parameter

    Required

    Example

    Description

    Global

    clientVersion

    Yes

    2.1.0

    The version of the E-HPC client. By default, the latest version is used. We recommend that you use the default configurations.

    Node

    deployMode

    Yes

    Managed

    The mode in which the cluster is deployed. Set the parameter to Managed.

    Network

    vpcId

    Yes

    vpc-wz9lq2oynq8tia5h8****

    The ID of the VPC to which the cluster belongs.

    vSwitchId

    Yes

    vsw-wz992iw34x8on06he****

    The vSwitch ID.

    securityGroupId

    No

    sg-wz94ksuqlwb8iqh8****

    The ID of the security group to which the cluster belongs.

    Storage

    withoutNas

    Yes

    true

    Set the parameter to true, which indicates that Aspara File Storage NAS is not used as a shared storage when you create the cluster.

    Scheduler

    schedulerType

    Yes

    ServerlessBatch

    The type of the scheduler. Set the parameter to ServerlessBatch.

  5. In the upper-right corner of the page, read and select Alibaba Cloud International Website Product Terms of Service, and then click OK.

  6. Go to the Clusters page and view the status of the cluster.

    When the cluster is in the Running state, the serverless cluster is created.