A namespace is the basic unit for managing deployments in Realtime Compute for Apache Flink. Configurations, deployments, and permissions are managed separately within each namespace. Every workspace includes a default namespace whose name ends with "default". You can create additional namespaces to isolate resources and permissions across multiple tenants.
Prerequisites
-
A workspace is created. For more information, see Activate Realtime Compute for Apache Flink.
-
The RAM user or RAM role is granted the required permissions to access the Realtime Compute for Apache Flink console and manage namespaces. For more information, see Management portal permissions.
Create a namespace
-
Log on to the management console of Realtime Compute for Apache Flink.
-
Check that the number of available compute units (CUs) in the desired workspace is greater than 1. For more information about how to reconfigure resources, see Reconfigure resources.
-
Find the desired workspace and choose in the Actions column.
Parameter
Description
Namespace
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 must be unique in the current workspace.
-
The namespace name cannot be changed after it is created.
CU Type
The CU type that you must configure for workspaces with cross-zone resources. Valid values:
-
Single zone: Zone-disaster recovery is not supported. A namespace with single-zone CUs risks service interruptions from a single zone failure. Zones in the same region can communicate with each other, and the service level agreement (SLA) ensures that cross-zone network latency is less than 3 ms. For more information, see Average Latency among Zones.
-
Cross zone: Provides higher availability and zone-disaster recovery. If the zone in which a deployment runs fails, the deployment can be resumed in other stable zones of the same region, ensuring continuity and high availability. For more information, see Cross-zone high availability.
Allocate Resources
A namespace requires at least one CU.
For a workspace that uses hybrid billing, you can configure only fixed resources when you create a namespace. After you create a namespace, you can configure the maximum number of available elastic resources for the namespace. For more information, see Reconfigure resources.
-
-
Click OK.
Go to a namespace
Log on to the management console of Realtime Compute for Apache Flink and use one of the following methods to go to a namespace:
-
Find the desired workspace and click Console in the Actions column. In the upper-left corner of the development console of Realtime Compute for Apache Flink, select the desired namespace.
-
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
Log on to the management console of Realtime Compute and click the
icon on the left side of the ID of the desired workspace.
-
To view a namespace: In the namespace list, view the namespace information in columns, such as Status, CU Type, and Created At.
-
To delete a namespace: Find the desired namespace, click Delete in the Actions column. In the message that appears, click OK.
ImportantAfter you delete a namespace, deployments and data in the namespace cannot be restored. Proceed with caution.
References
-
After you create a namespace, click its name to go to the development console of Realtime Compute for Apache Flink and develop a draft. For more information, see Development.
-
To allow multiple users to perform operations such as draft development and deployment O&M in a namespace, grant them the required permissions. For more information, see Console authorization.
-
For the basic concepts of Realtime Compute for Apache Flink, seeKey concepts.