Updated on 2025-08-12 GMT+08:00

Managing Basic Resources

After an environment is created, you can manage required basic resources and combine them into an environment for deploying and running components.

Prerequisites

  • You have created an environment. For details, see Creating an Environment.
  • You have created basic resources based on the environment type and site requirements by referring to the following table.

    Resource Type

    Resource Name

    Description

    Restrictions

    Creation Method

    Billing

    Compute

    Clusters

    Used to deploy components in container mode. Components are deployed using container images and scheduled by Kubernetes.

    Clusters can be bound to a Kubernetes or VM + Kubernetes environment.

    See Binding a Cluster.

    See CCE Billing.

    ECSs

    Used to deploy and run components based on a VM.

    ECSs can be managed in a VM or VM + Kubernetes environment.

    The ECS must be in the same VPC as the environment and cannot be managed by other environments.

    See Purchasing an ECS in Custom Config Mode.

    See ECS Billing.

    Custom servers

    You can manage custom servers on ServiceStage for deploying and running components based on a VM.

    Custom servers can be managed in a VM or VM + Kubernetes environment.

    You have obtained the name, unique ID, and IP address of the custom server, and the custom server cannot be managed by other environments.

    -

    -

    AS Groups

    Used to deploy and run components based on a VM.

    AS groups can be managed in a VM or VM + Kubernetes environment.

    The AS group must be in the same VPC as the environment and cannot be managed by other environments.

    See Creating an AS Group.

    See AS Pricing Details.

    Networking

    Load Balancers

    Used to access services provided by a component through the domain name using the load balancer bound with an EIP, or to upgrade the container-deployed components through ELB dark launch.

    -

    See ELB Billing.

    VPC EIPs

    Used to access services provided by a component.

    -

    See Assigning an EIP.

    See EIP Billing.

    VPCs

    Provides a logically isolated, configurable, and manageable virtual network environment, improving cloud resource security and simplifying network deployment.

    -

    See Creating a VPC with a Subnet.

    See VPC Billing.

    Subnet

    A subnet is a CIDR block in a VPC, and is on the Layer 3 network. You can create multiple subnets in a VPC to manage cloud resources.

    -

    See Creating a Subnet for an Existing VPC.

    See VPC Billing.

    ACL

    Provides security protection for associated subnets.

    -

    See Creating a Network ACL.

    See VPC Billing.

    Middleware

    DCS Instances

    Used to read environment variables to obtain distributed cache information during application running.

    -

    See Buying a DCS Redis Instance.

    See DCS Billing.

    ServiceComb Engines

    Microservice engine (see Cloud Service Engine Overview), which is used to connect microservices running in the environment to the engine to implement microservice registry and discovery, service governance, and configuration management.

    In an HA environment of the Kubernetes type, each AZ can manage only one ServiceComb engine.

    See Creating a Microservice Engine.

    Registry/Configuration Center

    Connects microservices running in the environment to implement microservice registry and discovery, and configuration management.

    -

    See Creating a Registry/Configuration Center.

    See .-

    RDS Instances

    Used for persistent storage of application data.

    -

    See Buying an RDS for MySQL DB Instance.

    See RDS Billing.

    Application Gateways

    Connects microservices running in the environment to implement full-link rate limiting and API management.

    In an HA environment of the Kubernetes type, each AZ can manage only one application gateway.

    See .-

    -

    GaussDB

    Used for persistent storage of application data.

    -

    See Buying a GaussDB Instance.

    See GaussDB Billing.

    RocketMQ

    Used for application production message storage and consumption subscription.

    -

    See Buying a RocketMQ Instance.

    See RocketMQ Billing.

    CSS

    Uses the multi-condition search, statistics, and report capabilities of structured and unstructured text provided by the Elasticsearch cluster of Cloud Search Service (CSS) to analyze component logs in all scenarios.

    -

    See Creating an Elasticsearch Cluster.

    See CSS Billing.

Managing Basic Resources

  1. Log in to ServiceStage.
  2. Choose Environment Management. The Environment Management page is displayed.
  3. Click the target environment. The Overview page is displayed.
  4. Manage the required basic resources in the environment by referring to the following table.

    Resource Type

    Resource Name

    Operation

    Compute

    Clusters

    See Binding a Cluster.

    Clusters (CCE and custom Kubernetes clusters) can be bound to a Kubernetes or VM + Kubernetes environment. To manage clusters in the environment, see Managing Cluster Resources.

    ECSs

    1. Choose Compute > ECSs.
    2. Click Manage Resource.
    3. Select the ECSs to be managed.
    4. Click OK.
      • ECSs can be managed in a VM or VM + Kubernetes environment.
      • ECSs that have been managed by other environments cannot be managed again.
      • If Agent Status of the managed ECSs indicates that the agent is missing and to install it first, install the agent. For details, see Installing a VM Agent.

    Custom servers

    1. Choose Compute > Custom servers.
    2. Set Server Name, ID, and IP of the target custom server.
      • Click Add Server to add more custom servers to the environment.
      • Click Remove to remove a custom server from the list.
    3. Click OK.
      • Custom servers can be managed in a VM or VM + Kubernetes environment.
      • For custom servers that are initially managed and do not have a VM agent installed (see Installing a VM Agent), you need to customize the Server Name and ID. Where,

        Server Name contains 1 to 128 characters. Use letters, digits, underscores (_), hyphens (-), and dots (.).

        ID contains 1 to 64 characters. Use letters, digits, underscores (_), and hyphens (-).

        Keep the custom ID properly for future operations such as re-management.

      • To manage a custom server with a VM agent installed (see Installing a VM Agent), set ID to the value you have defined during the first management. Server Name can be customized.

        Server Name contains 1 to 128 characters. Use letters, digits, underscores (_), hyphens (-), and dots (.).

      • The custom server to be managed must be able to access the environment where ServiceStage is deployed through network and cannot be managed by other environments.

    AS Groups

    1. Choose Compute > AS Groups.
    2. Click Manage Resource.
    3. Select the AS groups to be managed.
    4. Click OK.
      • AS groups can be managed in a VM or VM + Kubernetes environment.
      • AS groups that have been managed by other environments cannot be managed again.
      • If Agent Status of the ECSs of the managed AS groups indicates that the agent is missing and to install it first, install the agent. For details, see Installing a VM Agent.

    Networking

    Load Balancers

    1. Choose Networking > Load Balancers.
    2. Click Manage Resource.
    3. Select the load balancers to be managed.
    4. Click OK.

    VPC EIPs

    1. Choose Networking > VPC EIPs.
    2. Click Manage Resource.
    3. Select the EIPs to be managed.
    4. Click OK.

    VPCs

    1. Choose Network > VPCs.
    2. Click Manage Resource.
    3. Select the VPCs to be managed.
    4. Click OK.

    Subnet

    1. Choose Network > Subnet.
    2. Click Manage Resource.
    3. Select the VPC subnets to be managed.
    4. Click OK.

    ACL

    1. Choose Network > ACL.
    2. Click Manage Resource.
    3. Select the ACLs to be managed.
    4. Click OK.

    Middleware

    DCS Instances

    1. Choose Middleware > DCS Instances.
    2. Click Manage Resource.
    3. Select the DCS instances to be managed.
    4. Click Next.
    5. (Optional) Set Redis Login Password.

      If the selected DCS instances are configured with the password access mode, you need to set the login password.

      You can also skip this operation and configure the parameters by referring to Follow-up Operations after the DCS instances are successfully managed.

    6. Click OK.

      After the DCS instances are successfully managed in the environment, ServiceStage writes the built-in and custom environment variables in the environment by referring to Table 1 for use.

    ServiceComb Engines

    1. Choose Middleware > ServiceComb Engines.
    2. Click Manage Resource.
    3. Select the ServiceComb engines to be managed.
    4. Click OK.

      After the ServiceComb engines are successfully managed in the environment, ServiceStage writes the built-in environment variables in the environment by referring to Table 1 for use.

    Registry/Configuration Center

    1. Choose Middleware > Registry/Configuration Center.
    2. Click Manage Resource.
    3. Select the registry/configuration centers to be managed.
    4. Click OK.

      After the registry/configuration centers are successfully managed in the environment, ServiceStage writes the built-in environment variables in the environment by referring to Table 1 for use.

    RDS Instances

    1. Choose Middleware > RDS Instances.
    2. Click Manage Resource.
    3. Select the RDS instances to be managed.
    4. Click Next.
    5. (Optional) Set Database Name, Database User Name, and Database Login Password.

      You can also skip this operation and configure the parameters by referring to Follow-up Operations after the RDS instances are successfully managed.

    6. Click OK.

      After the RDS instances are successfully managed in the environment, ServiceStage writes the built-in and custom environment variables in the environment by referring to Table 1 for use.

    Application Gateways

    1. Choose Middleware > Application Gateways.
    2. Click Manage Resource.
    3. Before managing the application gateways in the HA environment of the Kubernetes type, select the AZ where these application gateways are located.
    4. Select the application gateways to be managed.
    5. Click OK.

    GaussDB

    1. Choose Middleware > GaussDB.
    2. Click Manage Resource.
    3. Select the GaussDB instances to be managed.
    4. Click Next.
    5. (Optional) Set Database Name, Database User Name, and Database Login Password.

      You can also skip this operation and configure the parameters by referring to Follow-up Operations after the GaussDB instances are successfully managed.

    6. Click OK.

      After the GaussDB instances are successfully managed in the environment, ServiceStage writes the built-in and custom environment variables in the environment by referring to Table 1 for use.

    RocketMQ

    1. Choose Middleware > RocketMQ.
    2. Click Manage Resource.
    3. Select the RocketMQ instances to be managed.
    4. Click Next.
    5. (Optional) Set Username and Password.

      You can also skip this operation and configure the parameters by referring to Follow-up Operations after the RocketMQ instances are successfully managed.

    6. Click OK.

      After the RocketMQ instances are successfully managed in the environment, ServiceStage writes the built-in and custom environment variables in the environment by referring to Table 1 for use.

    CSS

    1. Choose Middleware > CSS.
    2. Click Manage Resource.
    3. Select the Elasticsearch cluster to be managed.
    4. Click Next.
    5. (Optional) Set Username and Password.

      You can also skip this operation and configure the parameters by referring to Follow-up Operations after the Elasticsearch clusters are successfully managed.

    6. Click OK.

      After the Elasticsearch clusters are successfully managed in the environment, ServiceStage writes the built-in and custom environment variables in the environment by referring to Table 1 for use.

  5. Click OK.

    After the basic resources are managed, click Overview and select the basic resources (for example, VPC) managed in 4. You can see that Status is Available and Resource Mode is Manage.

Follow-up Operations

You can perform maintenance operations on DCS, RDS, GaussDB, RocketMQ, and CSS instances managed in the environment by referring to the following table.

Resource Type

Maintenance Operation

Description

DCS

Setting the connection password

A password has been set for the managed DCS instances. You need to enter the password.

  1. On the Overview page, choose Distributed Cache Service.
  2. Click Set Password in the Operation column of the target DCS instance.
  3. Click Edit in the Operation column.
  4. (Optional) Modify Name.

    The default value is DISTRIBUTED_CACHE_PASSWORD. You can change the value as required.

    Enter 1 to 64 characters. Start with a letter, underscore (_), or hyphen (-). Only use letters, digits, underscores (_), hyphens (-), and periods (.).

  5. Enter the value of Variable/Variable Reference, that is, the password for accessing the DCS instance.
  6. Click Confirm in the Operation column.

Setting environment variables of an environment

RDS

Setting the account and password

Set the name, username, and password of the database that can be accessed by the managed RDS instance.
  1. On the Overview page, choose Relational Database Service.
  2. Click Set Account and Password in the Operation column of the target RDS instance.
  3. Set the name of the cloud database to be accessed.
    1. Click Edit in the Operation column of the default variable name RELATIONAL_DATABASE_DB_NAME.
    2. Modify Name.
    3. Enter Variable/Variable Reference.
    4. Click Confirm in the Operation column.
  4. Set the username for accessing the database in Relational Database Service.
    1. Click Edit in the Operation column of the default variable name RELATIONAL_DATABASE_DB_USER.
    2. Modify Name.
    3. Enter Variable/Variable Reference.
    4. Click Confirm in the Operation column.
  5. Set the password of the username for accessing the database in Relational Database Service.
    1. Click Edit in the Operation column of the default variable name RELATIONAL_DATABASE_PASSWORD.
    2. Modify Name.
    3. Enter Variable/Variable Reference.
    4. Click Confirm in the Operation column.

Setting environment variables of an environment

RocketMQ

Setting the account and password

Set the username and password for accessing the managed RocketMQ instance.
  1. On the Overview page, choose RocketMQ.
  2. Click Set Account and Password in the Operation column of the target RocketMQ instance.
  3. Set the username for accessing the database in Relational Database Service.
    1. Click Edit in the Operation column of the default variable name DISTRIBUTED_MESSAGE_ROCKETMQ_USER.
    2. Modify Name.
    3. Enter Variable/Variable Reference.
    4. Click Confirm in the Operation column.
  4. Set the password of the access user.
    1. Click Edit in the Operation column of the default variable name DISTRIBUTED_MESSAGE_ROCKETMQ_PASSWORD.
    2. Modify Name.
    3. Enter Variable/Variable Reference.
    4. Click Confirm in the Operation column.

Setting environment variables of an environment

GaussDB

Setting the account and password

Set the name, username, and password of the database that can be accessed by the managed GaussDB instance.
  1. On the Overview page, choose GaussDB.
  2. Click Set Account and Password in the Operation column of the target RocketMQ instance.
  3. Set the name of the cloud database to be accessed.
    1. Click Edit in the Operation column of the default variable name PAAS_GAUSSDB_DB_NAME.
    2. Modify Name.
    3. Enter Variable/Variable Reference.
    4. Click Confirm in the Operation column.
  4. Set the username for accessing the database in Relational Database Service.
    1. Click Edit in the Operation column of the default variable name PAAS_GAUSSDB_DB_USER.
    2. Modify Name.
    3. Enter Variable/Variable Reference.
    4. Click Confirm in the Operation column.
  5. Set the password of the username for accessing the database in Relational Database Service.
    1. Click Edit in the Operation column of the default variable name PAAS_GAUSSDB_PASSWORD.
    2. Modify Name.
    3. Enter Variable/Variable Reference.
    4. Click Confirm in the Operation column.

Setting environment variables of an environment

CSS

Setting the account and password

Set the username and password for accessing the managed CSS Elasticsearch cluster.
  1. On the Overview page, choose CSS.
  2. Click Set Account and Password in the Operation column of the target Elasticsearch cluster.
  3. Set the access user name.
    1. Click Edit in the Operation column of the default variable name PAAS_ELASTIC_SEARCH_USER.
    2. Modify Name.
    3. Enter Variable/Variable Reference.
    4. Click Confirm in the Operation column.
  4. Set the password of the username for accessing the database in Relational Database Service.
    1. Click Edit in the Operation column of the default variable name PAAS_ELASTIC_SEARCH_PASSWORD.
    2. Modify Name.
    3. Enter Variable/Variable Reference.
    4. Click Confirm in the Operation column.

Setting environment variables of an environment