edit-icon download-icon

Manage instance groups

Last Updated: Nov 16, 2018

Overview

The instance group puts all instances (ECS) for an application in a group so that you can deploy different application package versions to instances in different groups.

Example: There are 10 instances in the “itemcenter” application, divided into two groups: “Default Group” and “Beta Group”. The default group has six instances and the Beta group has four instances.Now there are two groups of instances in the application to which you can deploy different versions of the application package.

For an overview of groups in an application, see:

Instance group

NOTES:

  1. When an application is created in EDAS, a new group “Default Group” will be created by default for the application, and cannot be deleted.
  2. If multi-version deployment is not required, the default group is adequate so that you do not need to create other groups.

User guide

The instance group is a feature of Enterprise Distributed Application Service (EDAS) designed to manage instances in an application by group. By grouping instances for the application, you can operate and maintain it through A/B test and gated release. You can quickly improve the O&M efficiency through application lifecycle management as well as resource monitoring and alarm by group.

The group instance management mainly includes the following tasks:

View groups

  1. Log on to the EDAS console.

  2. Click Applications on the left-side menu bar to go to the Application List page.

  3. In the application list, find the application for which you want to view instance groups. Click the application name to go to the application details page.

  4. On the Application Details page, click the Instance Information tab.

  5. Check the instance group information and application package versions across different groups in the application.

    Deployed version of group

Create a group

Gated release is often used for the launch of a new application version, so that the new version can be test run without affecting the traffic in the production environment. In this case, you need to create a new group for the application.

  1. Log on to the EDAS console.

  2. Click Applications on the left-side menu bar to go to the Application List page.

  3. In the application list, find the application for which you need to create a group. Click the application name to go to the application details page.

  4. On the Application Details page, click the Instance Information tab and click Create Group in the upper right corner.

  5. Enter the Group Name in the Create Group dialog box, and then click Create.

After a group is created, a message Group created successfully is displayed in the upper right corner.

Notes about groups:

  • A default group is created automatically when an application is created.
  • A single package version is available for a single group, and the version information is displayed right after the group name (Package version: 2017/1/20 15:36:12 as shown in the figure).
  • No package version is available for a new group. The package version for a group is always the version of the package last deployed to the group.
  • The instance deployment information for an application is displayed by instance group.

Add instances to a group

After a group is created, you can add instances to the new group through Scale Out and Change Group. The procedure is as follows:

  • Add instances to a group through Scale Out

    1. Click Scale Out in the upper right corner of the Application Details page.

    2. Select a Target Group and an Elastic Compute Service (ECS) instance.

    3. Click Scale Out.

    Notes about adding instances to a group by scaling up the application

    • If no package is ever deployed to a group, no package will be deployed to any instances added to the group.
    • If a package was deployed to a group, the package last deployed to the group will be deployed to the instances added to the group.
    • The package version deployed to the group is shown right after the group name.
  • Add instances to a group through Change Group

    1. In the Instance Information tab of the Application Details page, select the instance which you want to change the group for, and click Change Group to the right of the list.

    2. In the displayed dialog box, select the target group.

    3. If the application package version for the instance is different from that of the target group, choose to use the version for the target group or keep the existing version for the instance.

    4. Click Change.

      Notes about changing instance groups

      • If no package version is available for the target group and a package is already deployed to the instance whose group you want to change, the package version for the instance will be used as the package version for the group.
      • Select Redeploy current instance for target group to redeploy the deployment package on the instance with that in the group.
      • If you select Change the group only, will not re-deploy, the deployment status of the instance remains unchanged.
      • If the package version for the instance is different from that of the group to which the instance belongs, a prompt is displayed.

Delete Group

A group with no instances in it can be deleted.The delete operation cannot be undone. Please use caution. The procedure is as follows:

  1. On the Application Details page, click the Instance Information tab, and click the Delete Group button.

  2. In the dialog box displayed, click the Delete button.

Thank you! We've received your feedback.