Configuration push services can be classified into global configuration push and intra-application configuration push in EDAS.
- The Global Configuration Push service pushes configurations to all applications under a given username.
- The (Intra-Application) Configuration Push service only pushes configurations within a given application.
This article describes the global configuration push service. For information about the intra-application configuration push service, see (Intra-application) configuration push.
Configuration in EDAS is a trio that contains Group, DataId, and Content. The three elements are defined as follows:
- Group: Name of a group, which is created in Service Group and used to isolate services in a namespace. for example, a package in Java. The maximum length allowed is 128 characters.
DataId: Configuration name, for example, a class name in Java. The maximum length allowed is 256 characters.
A piece of configuration is identified by Group and DataId collectively and corresponds to a value. The symbols that are allowed in the names of Group and DataId are period (.), colon (:), hyphen (-), and underscore (_).
Content: Configuration value. The maximum length allowed is 1,024 characters.
You can add, modify, and delete configurations in real time, and apply configurations dynamically without the need to modify code, republish services, or restart services.
Note: If you have not created any services, the configuration list displays a piece of configuration that is automatically generated by the system, which you can ignore.
Log on to the EDAS console.
Choose Service Market > Service Groups on the left-side menu bar.
In the container upgrade prompt, select Upgrade Later.
Click Create Service Group in the upper-right corner of the page. In the Create HSF Service Group dialog box, enter the Service Group Name and click Create.
Click Global Configuration on the left-side menu bar.
In the Configuration List page, select the region and then select the service group you just created. Then, click Create Configuration in the upper-right corner of the page.
In the Create Configuration dialog box, enter the DataId and Content and then click OK.
Note: The group has already been selected on the Configuration List page. It is not editable in this dialog box.
Click Global Configuration on the left-side menu bar of the EDAS Console.
In the Configuration List page, select the region in which to view configurations.
View the global configuration list for this region.
By default, this page shows all the configuration information for the first group. From the group drop-down menu, you can select the group of which you want to view the configurations.
On the Configuration List page, click the View button in the Actions column of the desired configuration.
The dialog box that appears shows the Group, DataId, and Content for the selected configuration.
On the Configuration List page, click the Update button in the Actions column of the configuration to update.
The dialog box that appears allows you to modify the content of the configuration.
After completing the modification, click OK to update the configuration.
You can delete any global configuration that will no longer be used.
Note: A piece of configuration can no longer be used once deleted. Please proceed with caution.
On the Configuration List page, click the Delete button in the Actions column of the configuration to delete.
In the Delete Configuration dialog box, confirm the information and click Delete.