All Products
Search
Document Center

Microservices Engine:Synchronize configurations

Last Updated:Sep 25, 2023

Your applications may be deployed across multiple environments such as the development and staging environments, or across multiple regions. In this case, you may need to synchronize the configurations of the applications among the environments or regions. You can create multiple microservices namespaces, create a configuration in one of the microservices namespaces, and then synchronize the configuration to the other microservices namespaces.

Synchronize configurations between namespaces that reside in the same region

  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, choose Configuration Management > Configurations.

  5. Optional: In the upper part of the page that appears, select a namespace to filter configurations. You can also filter configurations based on Group, Data ID, Application, or Tag.

  6. On the Configurations page, select the configuration that you want to manage and click Clone in the lower-left part of the page.

  7. In the Clone Configuration dialog box, select a namespace from the Destination Namespace drop-down list and click Start Clone.

  8. Optional: If configurations with the same name already exist in the destination namespace, the Configuration Conflicts dialog box appears. In the Configuration Conflicts dialog box, select the configuration that you want to overwrite in the destination namespace, and click OK. Then, click Start Clone.

    If you want to check the configuration differences between Source Namespace and Destination Namespace, click View Diff in the Actions column. In the Configuration Content Comparison dialog box, you can view the configuration differences.

Synchronize configurations between namespaces that reside in different regions

  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, choose Configuration Management > Configurations.

  5. Optional: In the upper part of the page that appears, select a namespace to filter configurations. You can also filter configurations based on Group, Data ID, Application, or Tag.

  6. On the Configurations page, select the configuration that you want to manage and click Export in the lower part of the page. In the Export Configuration dialog box, check the information and click Start Export. The configurations are exported to a .zip file on your on-premises machine.

  7. On the Configurations page, select a namespace from the Namespace drop-down list, and click Import Configuration. In the Import Configuration dialog box, click Upload File to upload the .zip file, and click OK.

    Note

    The compressed package of the configuration file that is exported by using the open source new or old version can be imported into MSE instances. The compressed package of the configuration file that is exported by using the open source new version can be exported by using MSE instances.

    Parameter

    Description

    Destination Namespace

    The namespace to which you want to import the configurations. By default, the namespace selected on the Configurations page is displayed.

    Same Configurations

    The method that is used to manage duplicate configurations between the source namespace and destination namespace. If Data ID and Group of a configuration are the same as those of another configuration, the two configurations are considered duplicate. Valid values:

    • Stop Import: stops the import process. The selected configurations are not synchronized to the destination namespace.

    • Skip: skips duplicate configurations and synchronizes other configurations to the destination namespace.

    • Overwrite: uses the selected configurations to overwrite the duplicate configurations in the destination namespace.

    Configuration File

    Click Upload File and select the .zip file that you exported.

    Important

    Do not modify the configurations in the .zip file on your on-premises machine before you import the configurations. Otherwise, the import may fail. We recommend that you modify the configurations after you import the configurations to the destination namespace.