This topic describes how to activate Realtime Compute in shared mode and exclusive mode. In shared mode, you must activate Realtime Compute and create a project. In exclusive mode, you must activate Realtime Compute, create a cluster, and create a project.

Preparations

  1. Log on to the Alibaba Cloud official website by using your Alibaba Cloud account.
    Note Use an Alibaba Cloud account instead of a Resource Access Management (RAM) user to activate Realtime Compute and create a project. If you do not have an Alibaba Cloud account, register one first.
  2. Go to the Realtime Compute product page. You can access the Realtime Compute product page in either of the following ways:
    • On the homepage of the Alibaba Cloud official website, choose Products > Analytics & Big Data > Realtime Compute.

Activate Realtime Compute in exclusive mode

Note A Realtime Compute cluster in exclusive mode can access only storage resources in the same Virtual Private Cloud (VPC), same region, and same security group. To access storage resources in another VPC, use services such as Express Connect to connect the cluster to the target VPC.

After you place an order for Realtime Compute in exclusive mode, you must create a cluster before creating a project.

  1. Activate the service.
    1. On the Realtime Compute product page, click Buy Now. On the purchase page that appears, select Exclusive Mode (Subscription) or Exclusive Mode (Pay-As-You-Go).
    2. Enter configuration information, including the region, cluster configuration, and service duration.
    3. Click Buy Now.
      Note For more information about the cluster configuration, seeConfigure a Realtime Compute cluster in exclusive mode .
    4. Read the agreement, for example, Realtime Compute exclusive mode (subscription) agreement, and select the check box to agree to it.
    5. Click Activate.
  2. Create a cluster.
    • Preparations
      • When you activate Realtime Compute in exclusive mode, Realtime Compute creates a security group in your VPC and applies for an elastic network interface (ENI). For more information about ENI, see ENI overview.
        Note Do not delete the security group or the ENI.
        • If you have VPCs, specify a VPC for Realtime Compute.
        • If you do not have a VPC, activate the Alibaba Cloud VPC service first. For more information about how to activate the VPC service, see Plan a VPC network.
          Note When you create a VPC, please make sure:
          • Sufficient Elastic Compute Service (ECS) instances are available in the VPC.
          • The number of available IP addresses in the VSwitch is no less than the number of nodes in the Realtime Compute cluster.
      • You can upload user-defined function (UDF) packages to the Realtime Compute cluster in exclusive mode. Realtime Compute saves the UDF packages to an Object Storage Service (OSS) bucket to make sure the data security. You must specify the OSS bucket. If you do not have any OSS bucket, create an OSS bucket first. For more information about how to create an OSS bucket, see Create a bucket.
      • Configure a Realtime Compute cluster in exclusive mode
    • Procedure
      1. Click Console on the Payment Succeeds page that appears after you make the payment to go to the Realtime Compute console.
      2. On the Clusters page, click Create Cluster.
        Note If you have not created any cluster for an order, a red number is displayed in the upper-right corner of Create Cluster on the Cluster Management > Clusters page. The number indicates the number of orders for which you have not created any clusters.
      3. On the Select Order page, select the target order in Order ID.
      4. On the Basic Information page, set the Cluster Name and Cluster Description parameters.
      5. On the Cluster Settings page, set the configuration.
        Note The Realtime Compute cluster must reside in the same security group, same region, and same VPC as the upstream and downstream data storage services that you purchased.
        • OSS bucket
          Select the OSS bucket for storing your UDF packages. If you do not have any OSS bucket, create an OSS bucket first. For more information about how to create an OSS bucket, see Create a bucket.
          Note When you create an OSS bucket, note the following two points:
          • Please make sure that you specify Storage Type to Standard.
          • We recommend that you select Private for Read and Write Authority. Do not select Public Read.
        • VPC
          Select the VPC for the Realtime Compute cluster.
          Note Realtime Compute can recognize custom VPC names only.
        • Zone
          After you properly configure the VPC, the system automatically displays the available zones.
          Note No zone or VSwitch is available in the following scenarios:
          • ECS instances in the zone are insufficient.
          • The number of available IP addresses in the selected VSwitch is less than the number of the applied ECS instances.
          After the issue is resolved, refresh the page and create a cluster again.
      6. On the Confirm page, click Create.
        Note When a cluster is being created, it takes about half an hour for the cluster status to change from Starting to Running. If the cluster status does not change after a long period of time, submit a ticket.
  3. Create a project.
    1. Choose Cluster Management > Clusters. Find the target cluster and click Create Project in the Actions column.
    2. In the Create Project dialog box that appears, set the Project Name, Project Description, and CUs parameters.
    3. Click Create.