All Products
Search
Document Center

Microservices Engine:Create a namespace

Last Updated:Jan 19, 2024

A namespace is used to isolate resources from services in a region to enhance security. Namespaces help prevent potential conflicts between resources and services and facilitate management and maintenance of resources and services in an orderly manner. This improves work efficiency. This topic describes how to create a namespace.

Usage notes

  • You can create up to 50 namespaces for each Nacos instance. If an excessively large number of namespaces are created for a Nacos instance, the instance may be significantly affected due to a large blast radius, and databases may be overloaded. As a result, the instance runtime service level agreement (SLA) cannot be guaranteed.

  • We recommend that you create and use namespaces for an instance based on strong isolation attributes, such as environments and use scenarios. We also recommend that you create up to 10 namespaces for an instance.

  • When you create an instance, MSE automatically generates the default namespace public, which cannot be modified or deleted. If you do not create a namespace when you use an instance, you can use the default namespace to isolate resources and services.

Procedure

  1. Log on to the MSE console and select a region in the top navigation bar.

  2. In the left-side navigation pane, choose Microservices Registry > Instances.

  3. On the Instances page, click the name of the instance.

  4. In the left-side navigation pane, click Namespace.

  5. On the Namespace page, click Create namespace. In the Create namespace dialog box, configure the Namespace Name and Namespace ID parameters, and click OK.

    If the namespace is displayed in the namespace list, the namespace is created.命名空间

What to do next

After a namespace is created, you can perform the following operations on the namespace in the namespace list:

  • View the namespace: Click View in the Actions column to view the namespace information.

  • Modify the namespace: Click Edit in the Actions column to modify the namespace information as prompted.

  • Delete the namespace: Click Delete in the Actions column to delete the namespace as prompted.

References

To implement fine-grained isolation, you can use groups to isolate services when you create services. For more information, see Manage services.