Push dynamic configurations

更新时间:
复制 MD 格式

After you configure the properties, you can push the dynamic configurations.

Two methods are available to push dynamic configurations:

  • Direct push: Immediately publishes the configuration to all subscribed servers. You must validate the configuration before you use this method.

  • Grayscale push: Pushes the configuration to a few servers for testing and validation. The data is not saved to the database.

Procedure

  1. Log on to the SOFAStack console.

  2. In the navigation pane on the left, choose Middleware > Microservice Platform > Microservices > Dynamic Configuration.

  3. Click the plus sign (+) to the left of the target dynamic configuration, and then click the target property name.

  4. Configure Push Target and Push Value, and then click the required push method.

    • Direct push

      Click Push Configuration, and then click OK. The dynamic configuration is immediately published to all subscribed servers.

    • Grayscale push

      1. Click Grayscale Push.

      2. Select the IP addresses to which you want to push the configuration, and then click Push.

        Only the IP addresses of servers that have subscribed to the configuration are displayed in the list. You can use the search bar in the upper-right corner to quickly find a server IP address. For a grayscale push, the configuration is pushed only to the selected servers for testing and validation. The data is not saved to the database.

View push records

On the property details page, click the View push records link to view a list of push records.

Each push record contains the following information:

  • Push time

  • Operator

  • Push value: The property value that was pushed in this operation.

  • Push result: Success or Failure.

Click Reuse to close the push records window and fill the Push value text box with the value from the corresponding record. This lets you easily push the configuration again.