Quickly create a service with two ECS, one SLB, and one RDS

更新时间:
复制 MD 格式

This topic shows how to deploy a Compute Nest service by using a scenario template. The template creates two ECS instances, one SLB instance, and one RDS instance, and adds the ECS instances to the backend server group of the SLB instance.

Prerequisites

You can use this deployment method if you meet one of the following conditions:

  • Your software is deployed on ECS instances that are created from a custom image.

  • You have published your software as an image in the Alibaba Cloud Marketplace.

Procedure

Create a service

  1. Log on to the Compute Nest console.

  2. In the left-side navigation pane, click My Services. On the Created Services tab, click Create Service.

  3. Select Build Custom Service. For the service type, select Private Service, then click Next: Configure Settings.

  4. On the Configure Service page, configure the following parameters.

    1. In the Basic Information section, upload a Service Icon and enter a Service Name, Service Description, and Version Description.

    2. In the Service Deployment section, configure the resources required for the service.

      1. For Deployment Settings, select All regions.

      2. In the Template Entry section, select Scenario-based Template. From the Scenario drop-down list, select create two ECS and SLB and add ECS to the SLB backend server, and create an RDS-existing VPC.

        The Template Content box is automatically populated. No changes are needed.

        For more information about the template content, see the ROS console. The template architecture is as follows:9

      3. Click Add Plan. Set up two packages and disable custom packages.

      4. In the Deployment Package Association section, select a distributed image from your deployment objects to replace the image in the template.

      5. An application group is not required for this procedure.

        If you need to group the resources in the template, you can click Create Application Group.

    3. In the Service O&M (Optional) section, configure the service O&M features.

      1. In the O & M section, set the O&M notification information.

      2. In the Monitoring section, set the resource monitoring information.

      3. Keep the default settings for Logging, Upgrade, and Upgrade/Downgrade.

    4. In the Advanced Configuration (Optional) section, keep the default settings.

  5. Click Create a service..

    In the dialog box that appears, read and agree to the service agreement and review standards.

  6. Test the service.

    After saving the service, test it to ensure it functions correctly. For more information, see Test a service.

  7. Publish the service.

    After the service passes testing, submit it for review. Once approved, you can publish it. For more information, see Publish a service.

Deploy a service

  1. After the service is published, users can create a service instance from the deployment link. Enter the required parameters, select Read and agree to the agreement, and then click Create.

  2. In the Create dialog box that appears, confirm the parameter settings and click Next.

  3. On the Payment page, complete the payment.

  4. After the service instance is deployed, go to the Resources page to view the created resources.

Advanced operations

Modify the ECS instance count

  1. When you create the service, you can edit the scenario template to change the number of ECS instances. In the template content, change the value of the MaxAmount property. After you modify the template, configure the service by following the preceding steps.