You can migrate ECS instances on a shared host to a dedicated host to address your workloads requirements.

Prerequisites

  • The ECS instance to be migrated must be in the Stopped state. For more information about stopping an instance, see Start or stop an instance or Start or stop an instance.
    Notice Stopping an instance interrupts your workloads. Proceed with caution.
  • You have at least one dedicated host, and the dedicated host must meet the following requirements:
    • The host and the migrating ECS instance belong to the same account, region, and zone.
    • The host has sufficient resources for the migrating ECS instances. For more information about viewing the available resources of a dedicated host, see View the resources of a dedicated host.
    • The host supports the instance type of the migrating ECS instance. For more information about the instance types that are supported by dedicated hosts, see Dedicated host types. For more information about how to create a dedicated host, see Create a dedicated host.
      Note ECS instances attached with local disks cannot be migrated to a dedicated host attached with local SSDs.
    • The host matches the billing method of the migrating ECS instance.

      You can run subscription ECS instances or pay-as-you-go ECS instances on subscription dedicated hosts. If the migrating ECS instance is a subscription instance, the billing cycle of the instance must not end later than the billing cycle of the target dedicated host.

Procedure

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Instances & Images > Instances.
  3. In the top navigation bar, select a region.
  4. Optional: Add the Dedicated Host column to the instance list.
    1. In the upper-right corner of the Instances page, click the Customize column filters icon.
    2. In the Column Filters dialog box, select Dedicated Host and click OK.
    On the Instances page, you can view the Dedicated Host column to check whether the ECS instance belongs to a dedicated host.
  5. Select the migrating ECS instance. In the Actions column, choose More > Instance Settings > Modify DDH Deployment.
  6. In the Modify DDH Deployment dialog box, refer to the following table to complete the configurations.
    Parameter Required Description
    Target DDH Yes Select the dedicated host to which the ECS instance is migrated.
    Note If none of the dedicated hosts in your account meet the requirements to host the instance, then the Target DDH list is empty. For more information about dedicated host requirements, see requirements.
    Associate with DDH No Select whether to associate the instance with the target dedicated host. For more information about associating a host, see Features.
    • Yes: The ECS instance is associated with the target dedicated host. After the instance is stopped with its computing resources released, the instance is still deployed on the dedicated host after it is restarted. If the available resources of the dedicated host are insufficient, the instance fails to be restarted.
    • No: The ECS instance is not associated with the target dedicated host. After the instance is stopped with its computing resources released, the instance is still deployed on the dedicated host when it is restarted if the dedicated host has sufficient resources. If the available resources of the dedicated host are insufficient, the system automatically selects a dedicated host from the pool of dedicated hosts that allow automatic deployment.

    The default value is No.

  7. Click OK.

Result

Refresh the Instances page, and the corresponding value in the Dedicated Host column is updated. The instance is automatically started and changed to the Running state.