edit-icon download-icon

Manage instance groups

Last Updated: Jun 07, 2018

Overview

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

For example: There are a total of 10 instances in the application called “itemcenter”, and they are divided into two groups: “Default Group” and “Beta Group”. The default group has 6 instances and the Beta group has 4. Now there are two groups of instances in the application to which you can deploy different versions of the application package.

The overview of groups in an application is shown as follows:

Instance group

Note:

  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 there is no needs to deploy multiple application package versions, the default group usually works for you and there is no need to create additional groups.

Usage instructions

The instance group is a feature in EDAS designed to manage instances in an application by group. This enables you to carry out A/B testing and gray releases. You can improve your maintenance efficiency by performing application lifecycle management, and resource monitoring and alarming by groups.

Instance management by group mainly includes the following tasks:

View groups

  1. Log on to the EDAS console.

  2. Click Applications in the left-side navigation pane 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 groups

Gray release is often used for the launch of a new application version, so that the new version can be tested without affecting 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 in the left-side navigation pane 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 a name for the Group Name in the Create Group dialog and click Create.

    Note:

    • A default group is created automatically when an application is created.
    • Each group corresponds to a single package version, and the version information is displayed right after the group name (Package version: 2017/1/20 15:36:12 as shown in the figure).
    • Newly created group does not relate to any package version. The package version for a group is always the version of the package last deployed to the group.
    • The instance information for an application is displayed by instance groups.

Add instances to a group

After a group is created, you can add instances to the new group in two ways: Sacle Out and Change Group.

  • Add instances to a group using Scale Out

    1. Click Scale Out at the top right corner of the application details page.

    2. Select a group and then the ECS instance to add.

    3. Click Scale Out to complete the process.

      Scale out group

      Note:

      • 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 using Change Group

    1. On the Instance Information tab of the application details page, select the instance whose group you want to change and click Change Group in the Actions column.

    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 to complete the operation.

      Note:

      • 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.
      • If you select Redeploy application on the current instance in the target group, the package in the group will be used to redeploy application on current instance.
      • If you select Change group without redeployment, no changes will be made to the deployment status of the instance.
      • If the package version for the instance is different from that of the group to which the instance belongs, a prompt will appear.

Delete groups

A group with no instances in it can be deleted. The delete operation cannot be undone. Please use caution. Supported operations:

  1. On the Instance Information tab of the application details page, click the Delete Group icon.

  2. In the popped-up dialog box, click the Delete button to complete the operation.

Thank you! We've received your feedback.