Updated on 2022-12-05 GMT+08:00

Configuring Microservices

You can use the global configuration function provided by ServiceStage to configure microservices.

After the global configuration is added, the configuration takes effect immediately if it is used by all microservices registered with the engine.

If dynamic configuration is set for a single microservice, the dynamic configuration overwrites the global configuration. For details about how to set dynamic configuration, see Dynamic Configuration.

Global Configuration

Global configuration provides common configurations for microservices, such as log levels and running parameters. After being added, the global configuration is used as the default configuration if no same configuration items are defined for microservices.

Configuration items are stored in plaintext. Do not include sensitive data.

  1. Log in to ServiceStage and choose Infrastructure > Cloud Service Engines.
  2. Click Console of a microservice engine.
  3. Choose Global Configuration. Then, you can perform the following operations:

    Operation

    Procedure

    Export

    Click Export to export all global configuration items.

    Import

    1. Click Import.
    2. Click ··· to select a configuration item file.
    3. Click Upload to import configuration items in batches.

    Creation

    1. Click Create Configuration. The Create Configuration dialog box is displayed.
    2. Select a microservice environment and enter Configuration Item and Value.
    3. Click OK to save the settings.

    Modification

    1. Click Edit in the Operation column corresponding to the target configuration item.
    2. Enter Value.
    3. Click OK to save the settings.

    Deletion

    1. Select the configuration item to be deleted.
    2. Click Delete in the Operation column.
    3. In the Delete Configuration dialog box, click OK to delete the global configuration.

    Batch deletion

    1. Select the configuration items to be deleted.
    2. Click Delete above the configuration item list to delete global configuration items in batches.