Help Center/ ServiceStage/ User Guide/ Component Management/ Managing Component Instances
Updated on 2024-11-15 GMT+08:00

Managing Component Instances

After a component is created and deployed, you can manage component instances on the component Instance List page.

Context

In a VM environment, a component instance is a running process of a component on a VM. In the Kubernetes environment, a component instance is a pod, which is the minimum basic unit for CCE to deploy applications or services.

  • VM environment
    • When you create and deploy a component, if the component name contains 54 characters or fewer, the component instance name can contain up to 61 characters. The instance name format is as follows:
      {All of the component name}-{All or part of the environment name}_{Five random characters generated by the system}
    • When you create and deploy a component, if the component name contains more than 54 characters, the component instance name must contain 60 characters. The instance name format is as follows:
      {First 54 characters of the component name}_{Five random characters generated by the system}
  • Kubernetes environment
    • When you create and deploy a component, if you select Stateful for Workload Type and customize a workload name, the component instance name can contain up to 52 characters.
    • When you create and deploy a component, if you select Stateless for Workload Type and customize a workload name, the component instance name can contain up to 63 characters.
    • When you create and deploy a component, if the workload name is automatically generated by the system, the component instance name can contain up to 52 characters.

The number of component instances in the VM environment is the number of VMs selected during component deployment. The number of component instances deployed in the Kubernetes environment is the number of instances set during component deployment, that is, the number of pods.

Managing Component Instances

  1. Log in to ServiceStage.
  2. Use either of the following methods to go to the Instance List page.

    • On the Application Management page, click the application to which the component belongs, and click the target component in Component List.
    • On the Component Management page, click the target component.

  3. On the Instance List page, you can perform the following operations.

    Operation

    Description

    Restart a single instance

    If an instance of a component deployed in the Kubernetes environment is abnormal, you can delete the instance to restart it.

    1. Select the instance to be deleted and click Delete in the Operation column.
    2. In the displayed dialog box, click OK.

    View instance running monitoring information

    By viewing the instance running monitoring information, you can learn about the CPU and memory usage of a single running instance.

    1. In the instance list, click next to the target instance.
    2. Click the Monitor tab to view the running monitoring information about the instance.

    View instance running events

    ServiceStage allows you to view details about events that occur during the running of a specified instance.

    1. In the instance list, click next to the target instance.
    2. Click the Event tab to view events that occur during instance running.

    View running instance containers

    For components deployed in the Kubernetes environment, ServiceStage allows you to view information about the container where a specified instance runs, including the container name, running status, and mounted image.

    1. In the instance list, click next to the target instance.
    2. Click the Container tab to view the information about the container where the instance runs.