edit-icon download-icon

Global configuration

Last Updated: Jun 13, 2018

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.

Create a global configuration

  1. Log on to the EDAS console.

  2. Choose Service Market > Service Groups on the left-side menu bar.

    In the container upgrade prompt, select Upgrade Later.

  3. 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.

  4. Click Global Configuration on the left-side menu bar.

  5. 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.

  6. 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.

View configuration list

  1. Click Global Configuration on the left-side menu bar of the EDAS Console.

  2. In the Configuration List page, select the region in which to view configurations.

  3. 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.

View global configuration details

  1. On the Configuration List page, click the View button in the Actions column of the desired configuration.

  2. The dialog box that appears shows the Group, DataId, and Content for the selected configuration.

Update global configuration

  1. On the Configuration List page, click the Update button in the Actions column of the configuration to update.

  2. The dialog box that appears allows you to modify the content of the configuration.

  3. After completing the modification, click OK to update the configuration.

Delete global 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.

  1. On the Configuration List page, click the Delete button in the Actions column of the configuration to delete.

  2. In the Delete Configuration dialog box, confirm the information and click Delete.

Thank you! We've received your feedback.