แก้ไข

แชร์ผ่าน


Convert an existing database to Hyperscale

You can convert an existing database in Azure SQL Database to Hyperscale using the Azure portal, the Azure CLI, PowerShell, or Transact-SQL.

Cutover

The conversion process is divided into two stages - the conversion of database, which occurs while the existing database is online, and then a cutover to the new Hyperscale database.

  • The time required to move an existing database to Hyperscale consists of the time to copy data and the time to replay the changes made in the source database while copying data. The data copy time is proportional to data size. We recommend converting to Hyperscale during a lower write activity period so that the time to replay accumulated changes is shorter.
  • You'll only experience a short period of downtime, generally less than a minute, during the final cutover to Hyperscale. You have the ability to choose when the cutover occurs - as soon as the database is ready, or manually at a time of your choosing. By default, the process to convert to Hypersacle will cutover automatically.

Note

The ability to initiate a manual cutover for a conversion to Hyperscale is a preview feature.

In the current preview, during a conversion to Hyperscale, you have three days to initiate the manual cutover after the point when the database ready for cutover. You can initiate a manual cutover via the Azure portal, Azure CLI, PowerShell, or T-SQL.

Prerequisites

To convert a database that is a part of a geo-replication relationship, either as the primary or as a secondary, to Hyperscale, you need to first terminate geo-replication between the primary and secondary replica. Databases in a failover group must be removed from the group first.

Once a database has been moved to Hyperscale, you can create a new Hyperscale geo-replica for that database or add the database to a failover group.

Direct conversion from the Basic service tier to Hyperscale is not supported. To perform this conversion, first change the database to any service tier other than Basic (for example, General Purpose), and then proceed with the conversion to Hyperscale.

Convert a database to Hyperscale

To convert an existing Azure SQL Database to Hyperscale, first identify your target service objective.

Review resource limits for single databases if you aren't sure which service objective is right for your database. In many cases, you can choose a service objective with the same number of vCores and the same hardware generation as the original database. If needed, you can change the service objective later with minimal downtime. Billing for Hyperscale begins only after cutover.

Select the tab for your preferred method to convert your database:

The Azure portal enables you to convert to Hyperscale by modifying the service tier for your database.

Screenshot of the compute + storage panel of a database in Azure SQL Database. The service tier dropdown is expanded, displaying the option for the Hyperscale service tier.

  1. Navigate to the database you wish to convert in the Azure portal.
  2. In the left navigation bar, select Compute + storage.
  3. Select the Service tier dropdown list to expand the options for service tiers.
    1. If you were using the Azure SQL Database free offer, select the button to remove the Free database offer. Then you'll see the Service tier dropdown list.
  4. Select Hyperscale from the dropdown list.
  5. Review the Compute tier and choose Provisioned or Serverless.
  6. Review the Cutover mode, a choice specific to conversion to Hyperscale.
    • The cutover occurs after the database is prepared for conversion to Hyperscale. Cutover mode determines when connectivity to the existing Azure SQL Database will be momentarily disrupted for the conversion to Hyperscale:
      • Automatic cutover performs the cutover as soon as the Hyperscale database is ready.
      • Manual cutover prompts you to initiate the cutover at a time of your choice in the Azure portal. This option is most useful to time the cutover for minimal business disruption.
  7. Review the Hardware Configuration listed. If desired, select Change configuration to select the appropriate hardware configuration for your workload.
  8. Select the vCores slider if you wish to change the number of vCores available for your database under the Hyperscale service tier.
  9. Select the High-Availability Secondary Replicas slider if you wish to change the number of replicas under the Hyperscale service tier.
  10. Select Apply.
  11. Monitor the conversion in the Azure portal.
    1. Navigate to the database in the Azure portal.
    2. In the left navigation bar, select Overview.
    3. Review the Notifications section at the bottom of the right pane. If operations are ongoing, a notification box appears.
    4. Select the notification box to view details.
    5. The Ongoing operations pane opens. Review the details of the ongoing operations.

If you selected Manual cutover, the Azure portal will present you a Cutover button when ready.

Screenshot from the Azure portal showing the Cutover button in a Hyperscale conversion.