All Products
Search
Document Center

Realtime Compute for Apache Flink:Manage namespaces

Last Updated:Mar 18, 2024

A namespace is a basic unit for managing deployments in fully managed Flink. Configurations, deployments, and permissions of each namespace are separately managed. After you purchase a fully managed Flink workspace, a default namespace is generated in the workspace. The name of the namespace is in the Workspace name-default format. You can create multiple namespaces and assign separate resources and permissions to each namespace. This way, the resources and permissions of multiple tenants are isolated among namespaces. This topic describes how to create, go to, view, and delete a namespace.

Precautions

  • If you want to use a RAM user or an Alibaba Cloud account that is assigned a RAM role to access the Realtime Compute for Apache Flink console and manage namespaces, the RAM user or RAM role must have the required permissions. For more information, see Grant permissions to a RAM user.

  • If you enable cross-zone high availability when you purchase a workspace or enable cross-zone high availability for an existing workspace, a default namespace for which cross-zone high availability is enabled is automatically generated in the workspace. The name of the namespace is in the Workspace name-default-ha format. For more information about how to enable cross-zone high availability, see Enable cross-zone high availability and use cross-zone CUs.

  • After you enable cross-zone high availability for a workspace, you can configure single-zone compute units (CUs) or cross-zone CUs for the workspace. In this case, you can create namespaces that use single-zone CUs or cross-zone CUs based on your business requirements.

Create a namespace

Note

Before you create a namespace, make sure that the number of available CUs for a workspace is greater than 1. The quota purchased for a subscription workspace is greater than the sum of quotas for the namespaces in the current workspace. The upper limit of the quota configured for a pay-as-you-go workspace is greater than the sum of the upper limits of quotas for the namespaces in the current workspace. For more information about how to reconfigure resources, see Reconfigure resources.

  1. Log on to the Realtime Compute for Apache Flink console.

  2. On the Fully Managed Flink tab, find the desired workspace and choose More > Add Project in the Actions column.

  3. In the Create Project dialog box, configure the parameters of the namespace. The following table describes the parameters.

    Parameter

    Description

    Project Name

    The namespace name can contain lowercase letters, digits, and hyphens (-). The namespace name must start with a lowercase letter and cannot end with a hyphen (-).

    Note
    • The namespace name cannot be the same as the name of an existing namespace.

    • After you create a namespace, you cannot change the name of the namespace.

    CU Type

    Valid values:

    • Single zone: Zone-disaster recovery is not supported.

    • Cross zone: You can configure cross-zone CUs only for a subscription workspace that is deployed in the Intel X86 architecture. Cross-zone high availability provides higher availability and zone-disaster recovery. For a namespace that uses cross-zone CUs, if the primary zone fails, deployments in the namespace can run as expected in the secondary zone that you select. This effectively ensures the continuity and high availability of deployments. For more information about cross-zone high availability, see Cross-zone high availability.

    Allocate Resources

    A namespace requires at least one CU.

  4. Click OK.

Go to a namespace

  1. Log on to the Realtime Compute for Apache Flink console.

  2. Go to the desired namespace.

    You can use one of the following methods to go to a namespace:

    • On the Fully Managed Flink tab, find the desired workspace and click Console in the Actions column. In the upper-left corner of the homepage in the console of fully managed Flink, select the desired namespace.

    • On the Fully Managed Flink tab, click the 展开按钮 icon on the left side of the ID of the desired workspace and click the name of the desired namespace.

View and delete a namespace

Important
  • You cannot delete the namespace that is named in the Workspace name-default format.

  • You cannot delete a namespace in which a deployment is running.

  • After you delete a namespace, deployments and data in the namespace cannot be restored. Proceed with caution.

  1. Log on to the Realtime Compute for Apache Flink console.

  2. On the Fully Managed Flink tab, click the 展开按钮 icon on the left side of the ID of the desired workspace.

  3. In the namespace list, view the namespace information in columns, such as Status, CU Type, and Created At.

    You can also select the desired namespace in the upper-left corner of the homepage in the console of fully managed Flink and view the types of CUs that the namespace uses in the upper-right corner of the homepage.

  4. Find the desired namespace and click Delete in the Actions column.

  5. Click OK.

References

  • You can grant different permissions on different namespaces to different users. For more information, see Authorize an account to perform operations in a namespace.

  • Cross-zone high availability can effectively prevent service interruptions caused by the failure of a single zone and ensure business stability. For more information about cross-zone high availability, see Cross-zone high availability.

  • After you create a namespace, you can click the name of the namespace to go to the console of fully managed Flink to develop a draft. For more information, see Draft development.