Migrate Azure API Management to availability zone support
This guide describes how to enable availability zone support for your API Management instance. The API Management service supports Zone redundancy, which provides resiliency and high availability to a service instance in a specific Azure region. With zone redundancy, the gateway and the control plane of your API Management instance (Management API, developer portal, Git configuration) are replicated across datacenters in physically separated zones, making it resilient to a zone failure.
In this article, we'll take you through the different options for availability zone migration. For background about configuring API Management for high availability, see Ensure API Management availability and reliability.
Prerequisites
To configure API Management for zone redundancy, your instance must be in one of the Azure regions with availability zone support.
If you haven't yet created an API Management service instance, see Create an API Management service instance. Select the Premium service tier.
API Management service must be in the Premium tier. If it isn't, you can upgrade to the Premium tier.
If your API Management instance is deployed (injected) in a Azure virtual network (VNet), check the version of the compute platform (stv1 or stv2) that hosts the service.
Downtime requirements
There are no downtime requirements for any of the migration options.
Considerations
Changes can take from 15 to 45 minutes to apply. The API Management gateway can continue to handle API requests during this time.
When migrating an API Management deployed in an external or internal virtual network to availability zones, a new public IP address resource must be specified. In an internal VNet, the public IP address is used only for management operations, not for API requests. Learn more about IP addresses of API Management.
Migrating to availability zones or changing the availability zone configuration will trigger a public IP address change.
When enabling availability zones in a region, you configure a number of API Management scale units that can be distributed evenly across the zones. For example, if you configure 2 zones, you could configure 2 units, 4 units, or another multiple of 2 units. Adding units incurs additional costs. For details, see API Management pricing.
If you've configured autoscaling for your API Management instance in the primary location, you might need to adjust your autoscale settings after enabling zone redundancy. The number of API Management units in autoscale rules and limits must be a multiple of the number of zones.
Option 1: Migrate existing location of API Management instance, not injected in VNet
Use this option to migrate an existing location of your API Management instance to availability zones when it’s not injected (deployed) in a virtual network.
In the Azure portal, navigate to your API Management service.
Select Locations in the menu, and then select the location to be migrated. The location must support availability zones.
Select the number of scale Units desired in the location.
In Availability zones, select one or more zones. The number of units selected must be distributed evenly across the availability zones. For example, if you selected 3 units, select 3 zones so that each zone hosts one unit.
Select Apply, and then select Save.
Option 2: Migrate existing location of API Management instance (stv1 platform), injected in VNet
Use this option to migrate an existing location of your API Management instance to availability zones when it is currently injected (deployed) in a virtual network. The following steps are needed when the API Management instance is currently hosted on the stv1 platform. Migrating to availability zones will also migrate the instance to the stv2 platform.
Create a new subnet and public IP address in location to migrate to availability zones. Detailed requirements are in virtual networking guidance.
In the Azure portal, navigate to your API Management service.
Select Locations in the menu, and then select the location to be migrated. The location must support availability zones.
Select the number of scale Units desired in the location.
In Availability zones, select one or more zones. The number of units selected must be distributed evenly across the availability zones. For example, if you selected 3 units, select 3 zones so that each zone hosts one unit.
Select the new subnet and new public IP address in the location.
Select Apply, and then select Save.
Option 3: Migrate existing location of API Management instance (stv2 platform), injected in VNet
Use this option to migrate an existing location of your API Management instance to availability zones when it is currently injected (deployed) in a virtual network. The following steps are used when the API Management instance is already hosted on the stv2 platform.
Create a new subnet and public IP address in location to migrate to availability zones. Detailed requirements are in virtual networking guidance.
In the Azure portal, navigate to your API Management service.
Select Locations in the menu, and then select the location to be migrated. The location must support availability zones.
Select the number of scale Units desired in the location.
In Availability zones, select one or more zones. The number of units selected must be distributed evenly across the availability zones. For example, if you selected 3 units, select 3 zones so that each zone hosts one unit.
Select the new public IP address in the location.
Select Apply, and then select Save.
Option 4. Add new location for API Management instance (with or without VNet) with availability zones
Use this option to add a new location to your API Management instance and enable availability zones in that location.
If your API Management instance is deployed in a virtual network in the primary location, ensure that you set up a virtual network, subnet, and public IP address in any new location where you plan to enable zone redundancy.
In the Azure portal, navigate to your API Management service.
Select + Add in the top bar to add a new location. The location must support availability zones.
Select the number of scale Units desired in the location.
In Availability zones, select one or more zones. The number of units selected must be distributed evenly across the availability zones. For example, if you selected 3 units, select 3 zones so that each zone hosts one unit.
If your API Management instance is deployed in a virtual network, select the virtual network, subnet, and public IP address that are available in the location.
Select Add, and then select Save.
Next steps
Learn more about:
Building for reliability in Azure.
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για