Skip to content

Commit c1af7cb

Browse files
rarandivMashaMSFT
authored andcommitted
Document scaling operations for Managed Instances with Geo-Replicas
1 parent 0b493b9 commit c1af7cb

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

azure-sql/database/scale-resources.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ Scaling resources is the easiest and the most effective way to improve performan
7373
- [Read scale-out](read-scale-out.md) is an available feature where you are getting one read-only replica of your data where you can execute demanding read-only queries such as reports. A read-only replica will handle your read-only workload without affecting resource usage on your primary database.
7474
- [Database sharding](elastic-scale-introduction.md) is a set of techniques that enables you to split your data into several databases and scale them independently.
7575

76+
## Scaling operations for geo-replicas
77+
78+
When your Azure SQL resource has a geo-replica, consider the following guidance for your scaling operations:
79+
- Azure SQL Database: [Active geo-replication](active-geo-replication-overview.md#scale-primary-database), [failover groups](failover-group-configure-sql-db.md#upgrading-or-downgrading-primary-database)
80+
- Azure SQL Managed Instance: [Failover groups](../managed-instance/failover-group-configure-sql-mi.md#scaling-instances)
81+
7682
## Related content
7783

7884
- For information about improving database performance by changing database code, see [Find and apply performance recommendations](database-advisor-find-recommendations-portal.md).

azure-sql/managed-instance/failover-group-configure-sql-mi.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,9 @@ Instances in a failover group remain separate Azure resources, and no changes ma
471471
This section is duplicated in /managed-instance/failover-group-sql-mi.md.. Please ensure changes are made to both documents.
472472
-->
473473

474-
The configuration of your primary and secondary instance should be the same. This includes the compute size, storage size, and service tier. If you need to change the configuration of your failover group, you can do so by scaling each instance to the same configuration accordingly.
474+
The configuration of your primary and secondary instance should be the same. This includes the compute size, storage size, and service tier. If you need to change the configuration of your failover group, you can do so by scaling each instance to the same configuration accordingly.
475+
476+
Downgrading the secondary instance to a lower service tier or compute size than the primary instance can cause performance degradation after failover.
475477

476478
To avoid problems from a lower service tier or under-resourced geo-secondary getting overloaded, or having to reseed during an upgrade or downgrade process, consider the following:
477479

@@ -484,7 +486,12 @@ To avoid problems from a lower service tier or under-resourced geo-secondary get
484486
- Scaling the storage size.
485487
- [Changing the memory allocation](resource-limits.md#flexible-memory) of your [Next-gen General Purpose](service-tiers-next-gen-general-purpose-use.md) instance.
486488

489+
When trying to scale the service tier, vCores, and storage at the same time (for example, scaling up vCores and service tier while scaling down storage), don't change all three simultaneously. Instead, use one of the following approaches:
490+
491+
- **Option 1**: Scale the service tier first (keep storage and vCores the same), following the upgrade/downgrade order described previously. Then scale storage and vCores separately.
492+
- **Option 2**: Scale storage first (keep service tier and vCores the same), following the upgrade/downgrade order described previously. Then scale the service tier and vCores separately.
487493

494+
This two-step approach prevents the secondary replica with fewer resources from becoming overloaded, which can cause reseeding during the scaling process.
488495

489496
## Permissions
490497

0 commit comments

Comments
 (0)