Sidecar dynamic configuration

Updated at:

Dynamic configuration allows developers to change data dynamically. You can use an API to read the data.

Create a Sidecar dynamic configuration

  1. Log on to the Service Mesh console.

  2. In the navigation pane on the left, click Sidecar Management, and then click the Sidecar Dynamic Configuration tab.

  3. Click Create Configuration and set the following parameters:

    Parameter

    Description

    Application Name

    The name of the application in the Service Catalog. For example, if you set this to reservation-service, all reservation-service applications receive this configuration after you save it.

    The name can be up to 255 characters long.

    Sidecar dynamic configuration

    Set the Key, Value, and Description for the dynamic configuration.

    • Key: The identifier for the data that developers get from the data sharing center using an SDK.

    • Value: The actual value of the data.

    • Description: A description of the scenario where this configuration is used.

    Click Add More Configurations to add multiple dynamic configurations at once.

  4. Click Save and Distribute.

    Note

    You can filter the application log for [xprotocol] [config] receive dataId to check if the distribution is successful.

View a Sidecar dynamic configuration

After you save the configuration, the list of dynamic configurations displays the following information:

  • Configuration Name: The data identifier. This is the Key you entered during configuration.

  • Configuration Content: The data value. This is the Value you entered during configuration.

  • Description: The description you entered during configuration. This typically describes the scenario in which the configuration is used.