Updated on 2024-11-29 GMT+08:00

Creating a Cluster

The first step of using MRS is to create a cluster. This section describes how to create a cluster on the MRS console.

Procedure

  1. Log in to the MRS console.
  2. Click Create Cluster to access the Create Cluster page.

    When creating a cluster, pay attention to quota notification. If a resource quota is insufficient, increase the resource quota as prompted and create a cluster.

  3. On the page for create a cluster, click the Custom Config tab.
  4. Configure cluster software information.

    • Region: Use the default value.
    • Cluster Name: You can use the default name. However, you are advised to include a project name abbreviation or date for consolidated memory and easy distinguishing, for example, mrs_20180321.
    • Cluster Version: Select the latest version, which is the default value.
    • Cluster Type: Use the default Custom.
    • Version Type: Normal (default) or LTS
    • Component: Select components based on service requirement. Mandatory components are selected by default. Dependent components are automatically selected.
    • Component Port: Retain the default value.

  5. Click Next.

    • AZ: Use the default value.
    • Enterprise Project: Select default.
    • VPC: Use the default value. If there is no available VPC, click View VPC to access the VPC console and create a new VPC.
    • Subnet: Use the default value.
    • Security Group: Select Auto create.
    • EIP: Select Bind later.
    • Enterprise Project: Retain the default value.
    • Instance Specifications: Retain the default settings for master and core nodes or select proper specifications based on service requirements.
    • System Disk: Select General Purpose SSD and retain the default space.
    • Data Disk: Select General Purpose SSD and retain the default space.
    • Instance Count: The default number of Master nodes is 3, and that of Core nodes is 3. You can increase or decrease the number of instances based on service requirements.

  6. Click Next. The Set Advanced Options page is displayed. Configure the following parameters. Retain the default settings for the other parameters.

    • Kerberos authentication:
      • Kerberos Authentication: Disable Kerberos authentication.
      • Username: name of the Manager administrator. admin is used by default.
      • Password: password of the Manager administrator.
    • Login Mode: Select a mode for logging in to an ECS.
      • Password: Set a password for logging in to an ECS.
      • Key Pair: Select a key pair from the drop-down list. Select "I acknowledge that I have obtained private key file SSHkey-xxx and that without this file I will not be able to log in to my ECS." If you have never created a key pair, click View Key Pair to create or import a key pair. And then, obtain a private key file.
    • Hostname Prefix: Prefix for the name of an ECS or BMS in the cluster.

      Enter a maximum of 20 characters that do not start or end with a hyphen (-). Only letters, numbers, and hyphens (-) are allowed.

      When a cluster is created, a DNS domain name is registered for nodes in the cluster. The complete domain name is in the following format: [prefix]-hostname.mrs-{XXXX}.com. (XXXX is a four-character string generated based on the UUID.)

    • Set Advanced Options: To configure some advanced parameters, select Configure.

  7. Click Next.

    • Configure: Confirm the parameters configured in the Configure Software, Configure Hardware, and Set Advanced Options areas.
    • Secure Communications: Select Enable.

  8. Click Apply Now.

    If Kerberos authentication is enabled for a cluster, check whether Kerberos authentication is required. If yes, click Continue. If no, click Back to disable Kerberos authentication and then create a cluster.

  9. Click Back to Cluster List to view the cluster status.

    It takes some time to create a cluster. The initial status of the cluster is Starting. After the cluster has been created successfully, the cluster status becomes Running.