# Overview

The registration center function maintains the configuration of the registration center. Multiple registration centers can be configured. The type supports Eureka and Nacos, and the configuration format supports yml and properties. The following describes the registration configuration function.

# Registration center list

Menu location: Gateway Management > Registration Center. Click the menu to enter the registration configuration list page, as shown in the figure.

manager_registry_config_query

# Add new registration center

Click the Add button to pop up the new window, as shown in the figure.

manager_registry_config_add_1

manager_registry_config_add_2

Name: The name of the registration center. The gateway will obtain the configuration of the registration center based on this name, such as: Eureka_1; The name cannot be modified after saving, and the name length cannot exceed 1000 characters. It is required;

Description: Description of the registration center, the length of the description cannot exceed 2000 characters, optional;

Type: Type of registration center, optional Eureka|Nacos, required;

Configuration format: the format of the configuration content, optional yml|properties, required;

Configuration content: Configuration of the registration center (for configuration items, refer to the registration center version that the gateway depends on). The length of the configuration content cannot exceed 4000 characters and is required;

The Maven dependencies of the gateway registration center are as follows:

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
<version>2.2.9.RELEASE</version>
</dependency>

<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
<version>2.2.6.RELEASE</version>
</dependency>

Configure content template:

  • Type: Eureka, configuration format: yml
eureka:
client:
serviceUrl:
# need replace
defaultZone: http://6.6.6.6:6600/eureka/
  • Type: Eureka, configuration format: properties
eureka.client.serviceUrl.defaultZone=http://6.6.6.6:6600/eureka/
  • Type: Nacos, configuration format: yml
nacos:
discovery:
# need replace
server-addr: 6.6.6.6:8848
namespace: null
group: DEFAULT_GROUP
  • Type: Nacos, configuration format: properties
# need replace
nacos.discovery.server-addr=6.6.6.6:8848
nacos.discovery.namespace=null
nacos.discovery.group=DEFAULT_GROUP

# Edit registration center

Click the Edit button to pop up the editing window, as shown in the figure.

manager_registry_config_edit_1

manager_registry_config_edit_2

# Delete registration center

Click the Delete button to pop up the deletion confirmation window, as shown in the figure.

manager_registry_config_delete_1

manager_registry_config_delete_2

Delete the registration center after clicking the OK button. If the registration center has associated routes, service orchestration interfaces, and callbacks, the deletion fails.