Skip to content

Commit

Permalink
Merge pull request MicrosoftDocs#1 from MicrosoftDocs/master
Browse files Browse the repository at this point in the history
Catch up to master
  • Loading branch information
twright-msft authored Sep 30, 2020
2 parents 250b374 + a6236ee commit 4f62c5c
Show file tree
Hide file tree
Showing 296 changed files with 1,295 additions and 856 deletions.
13 changes: 11 additions & 2 deletions azure-sql/accelerated-database-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,22 @@ ms.devlang:
ms.topic: conceptual
author: mashamsft
ms.author: mathoma
ms.reviewer: carlrab
ms.reviewer: sstein
ms.date: 05/19/2020
---
# Accelerated Database Recovery in Azure SQL
[!INCLUDE[appliesto-sqldb-sqlmi](includes/appliesto-sqldb-sqlmi.md)]

**Accelerated Database Recovery (ADR)** is a SQL Server database engine feature that greatly improves database availability, especially in the presence of long running transactions, by redesigning the SQL Server database engine recovery process. ADR is currently available for Azure SQL Database, Azure SQL Managed Instance, SQL Server on Azure VM, and databases in Azure Synapse Analytics (currently in preview). The primary benefits of ADR are:
**Accelerated Database Recovery (ADR)** is a SQL Server database engine feature that greatly improves database availability, especially in the presence of long running transactions, by redesigning the SQL Server database engine recovery process.

ADR is currently available for Azure SQL Database, Azure SQL Managed Instance, databases in Azure Synapse Analytics (currently in preview), and SQL Server on Azure VMs starting with SQL Server 2019.

> [!NOTE]
> ADR is enabled by default in Azure SQL Database and Azure SQL Managed Instance and disabling ADR for either product is not supported.
## Overview

The primary benefits of ADR are:

- **Fast and consistent database recovery**

Expand Down
4 changes: 2 additions & 2 deletions azure-sql/azure-hybrid-benefit.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ms.custom: sqldbrb=4
ms.topic: conceptual
author: stevestein
ms.author: sstein
ms.reviewer: sashan, moslake, carlrab
ms.reviewer: sashan, moslake
ms.date: 11/13/2019
---
# Azure Hybrid Benefit - Azure SQL Database & SQL Managed Instance
Expand All @@ -20,7 +20,7 @@ In the provisioned compute tier of the vCore-based purchasing model, you can exc
> [!NOTE]
> Changing to Azure Hybrid Benefit does not require any downtime.
![pricing](./media/azure-hybrid-benefit/pricing.png)
![vcore pricing structure](./media/azure-hybrid-benefit/pricing.png)

## Choose a license model

Expand Down
8 changes: 4 additions & 4 deletions azure-sql/database/active-geo-replication-configure-portal.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ ms.service: sql-database
ms.subservice: high-availability
ms.custom: sqldbrb=1
ms.devlang:
ms.topic: conceptual
ms.topic: tutorial
author: anosov1960
ms.author: sashan
ms.reviewer: mathoma, carlrab
ms.reviewer: mathoma, sstein
ms.date: 02/13/2019
---
# Tutorial: Configure active geo-replication and failover in the Azure portal (Azure SQL Database)
Expand Down Expand Up @@ -49,12 +49,12 @@ After the secondary is created and seeded, data begins replicating from the prim
![Configure geo-replication](./media/active-geo-replication-configure-portal/configure-geo-replication.png)
3. Select or configure the server and pricing tier for the secondary database.

![Configure secondary](./media/active-geo-replication-configure-portal/create-secondary.png)
![create secondary form](./media/active-geo-replication-configure-portal/create-secondary.png)
4. Optionally, you can add a secondary database to an elastic pool. To create the secondary database in a pool, click **elastic pool** and select a pool on the target server. A pool must already exist on the target server. This workflow does not create a pool.
5. Click **Create** to add the secondary.
6. The secondary database is created and the seeding process begins.

![Configure secondary](./media/active-geo-replication-configure-portal/seeding0.png)
![secondaries map](./media/active-geo-replication-configure-portal/seeding0.png)
7. When the seeding process is complete, the secondary database displays its status.

![Seeding complete](./media/active-geo-replication-configure-portal/seeding-complete.png)
Expand Down
15 changes: 10 additions & 5 deletions azure-sql/database/active-geo-replication-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ms.devlang:
ms.topic: conceptual
author: anosov1960
ms.author: sashan
ms.reviewer: mathoma, carlrab
ms.reviewer: mathoma, sstein
ms.date: 08/27/2020
---

Expand Down Expand Up @@ -113,17 +113,22 @@ To ensure that your application can immediately access the new primary after fai
## Configuring secondary database

Both primary and secondary databases are required to have the same service tier. It is also strongly recommended that the secondary database is created with the same compute size (DTUs or vCores) as the primary. If the primary database is experiencing a heavy write workload, a secondary with lower compute size may not be able to keep up with it. That will cause redo lag on the secondary, and potential unavailability of the secondary. To mitigate these risks, active geo-replication will throttle the primary's transaction log rate if necessary to allow its secondaries to catch up.
Both primary and secondary databases are required to have the same service tier. It is also strongly recommended that the secondary database is created with the same backup storage redundancy and compute size (DTUs or vCores) as the primary. If the primary database is experiencing a heavy write workload, a secondary with lower compute size may not be able to keep up with it. That will cause redo lag on the secondary, and potential unavailability of the secondary. To mitigate these risks, active geo-replication will throttle the primary's transaction log rate if necessary to allow its secondaries to catch up.

Another consequence of an imbalanced secondary configuration is that after failover, application performance may suffer due to insufficient compute capacity of the new primary. In that case, it will be necessary to scale up database service objective to the necessary level, which may take significant time and compute resources, and will require a [high availability](high-availability-sla.md) failover at the end of the scale up process.

If you decide to create the secondary with lower compute size, the log IO percentage chart in Azure portal provides a good way to estimate the minimal compute size of the secondary that is required to sustain the replication load. For example, if your primary database is P6 (1000 DTU) and its log write percent is 50%, the secondary needs to be at least P4 (500 DTU). To retrieve historical log IO data, use the [sys.resource_stats](/sql/relational-databases/system-catalog-views/sys-resource-stats-azure-sql-database) view. To retrieve recent log write data with higher granularity that better reflects short-term spikes in log rate, use [sys.dm_db_resource_stats](/sql/relational-databases/system-dynamic-management-views/sys-dm-db-resource-stats-azure-sql-database) view.

Transaction log rate throttling on the primary due to lower compute size on a secondary is reported using the HADR_THROTTLE_LOG_RATE_MISMATCHED_SLO wait type, visible in the [sys.dm_exec_requests](/sql/relational-databases/system-dynamic-management-views/sys-dm-exec-requests-transact-sql) and [sys.dm_os_wait_stats](/sql/relational-databases/system-dynamic-management-views/sys-dm-os-wait-stats-transact-sql) database views.

By default, the backup storage redundancy of the secondary is same as that of the primary database. You can choose to configure the secondary with a different backup storage redundancy. Backups are always taken on the primary database. If the secondary is configured with a different backup storage redundancy, after failover when the secondary is promoted to the primary, backups will be billed according to the storage redundancy selected on the new primary (previous secondary).

> [!NOTE]
> Transaction log rate on the primary may be throttled for reasons unrelated to lower compute size on a secondary. This kind of throttling may occur even if the secondary has the same or higher compute size than the primary. For details, including wait types for different kinds of log rate throttling, see [Transaction log rate governance](resource-limits-logical-server.md#transaction-log-rate-governance).
> [!NOTE]
> Azure SQL Database Configurable Backup Storage Redundancy is currently available in public preview in Southeast Asia Azure region only. In the preview, if the source database is created with locally-redundant or zone-redundant backup redundancy, creating a secondary database in a different Azure region will not be supported.
For more information on the SQL Database compute sizes, see [What are SQL Database Service Tiers](purchasing-models.md).

## Cross-subscription geo-replication
Expand Down Expand Up @@ -243,9 +248,9 @@ As discussed previously, active geo-replication can also be managed programmatic
| Command | Description |
| --- | --- |
| [ALTER DATABASE](https://docs.microsoft.com/sql/t-sql/statements/alter-database-transact-sql?view=azuresqldb-current) |Use ADD SECONDARY ON SERVER argument to create a secondary database for an existing database and starts data replication |
| [ALTER DATABASE](https://docs.microsoft.com/sql/t-sql/statements/alter-database-transact-sql?view=azuresqldb-current) |Use FAILOVER or FORCE_FAILOVER_ALLOW_DATA_LOSS to switch a secondary database to be primary to initiate failover |
| [ALTER DATABASE](https://docs.microsoft.com/sql/t-sql/statements/alter-database-transact-sql?view=azuresqldb-current) |Use REMOVE SECONDARY ON SERVER to terminate a data replication between a SQL Database and the specified secondary database. |
| [ALTER DATABASE](https://docs.microsoft.com/sql/t-sql/statements/alter-database-transact-sql?view=azuresqldb-current&preserve-view=true) |Use ADD SECONDARY ON SERVER argument to create a secondary database for an existing database and starts data replication |
| [ALTER DATABASE](https://docs.microsoft.com/sql/t-sql/statements/alter-database-transact-sql?view=azuresqldb-current&preserve-view=true) |Use FAILOVER or FORCE_FAILOVER_ALLOW_DATA_LOSS to switch a secondary database to be primary to initiate failover |
| [ALTER DATABASE](https://docs.microsoft.com/sql/t-sql/statements/alter-database-transact-sql?view=azuresqldb-current&preserve-view=true) |Use REMOVE SECONDARY ON SERVER to terminate a data replication between a SQL Database and the specified secondary database. |
| [sys.geo_replication_links](/sql/relational-databases/system-dynamic-management-views/sys-geo-replication-links-azure-sql-database) |Returns information about all existing replication links for each database on a server. |
| [sys.dm_geo_replication_link_status](/sql/relational-databases/system-dynamic-management-views/sys-dm-geo-replication-link-status-azure-sql-database) |Gets the last replication time, last replication lag, and other information about the replication link for a given database. |
| [sys.dm_operation_status](/sql/relational-databases/system-dynamic-management-views/sys-dm-operation-status-azure-sql-database) |Shows the status for all database operations including the status of the replication links. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ ms.service: sql-database
ms.subservice: high-availability
ms.custom: sqldbrb=1
ms.devlang:
ms.topic: conceptual
ms.topic: how-to
author: anosov1960
ms.author: sashan
ms.reviewer: mathoma, carlrab
ms.reviewer: mathoma, sstein
ms.date: 12/18/2018
---
# Configure and manage Azure SQL Database security for geo-restore or failover
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ms.service: sql-database
ms.subservice: development
ms.custom: "sqldbrb=1, devx-track-dotnet"
ms.devlang:
ms.topic: conceptual
ms.topic: reference
author: stevestein
ms.author: sstein
ms.reviewer: genemi
Expand Down
76 changes: 0 additions & 76 deletions azure-sql/database/advanced-data-security.md

This file was deleted.

6 changes: 3 additions & 3 deletions azure-sql/database/alerts-insights-configure-portal.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
title: Setup alerts and notifications (the Azure portal)
title: Setup alerts and notifications in the Azure portal
description: Use the Azure portal to create alerts, which can trigger notifications or automation when the conditions you specify are met.
services: sql-database
ms.service: sql-database
ms.subservice: performance
ms.custom: sqldbrb=1
ms.devlang:
ms.topic: conceptual
ms.topic: how-to
author: aamalvea
ms.author: aamalvea
ms.reviewer: jrasnik, carlrab
ms.reviewer: jrasnik, sstein
ms.date: 05/04/2020
---
# Create alerts for Azure SQL Database and Azure Synapse Analytics using the Azure portal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ms.service: sql-database
ms.subservice: security
ms.custom: sqldbrb=1
ms.devlang:
ms.topic: conceptual
ms.topic: how-to
author: VanMSFT
ms.author: vanto
ms.reviewer:
Expand Down Expand Up @@ -177,7 +177,7 @@ You can encrypt the columns now or save a PowerShell script to run later. For th

Verify that the settings are all correct and click **Finish** to complete the setup for Always Encrypted.

![Summary](./media/always-encrypted-azure-key-vault-configure/summary.png)
![Screenshot shows the results page with tasks marked as passed.](./media/always-encrypted-azure-key-vault-configure/summary.png)

### Verify the wizard's actions

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ms.service: sql-database
ms.subservice: security
ms.custom: sqldbrb=1
ms.devlang:
ms.topic: conceptual
ms.topic: how-to
author: VanMSFT
ms.author: vanto
ms.reviwer:
Expand Down Expand Up @@ -122,7 +122,7 @@ You can encrypt the columns now or save a PowerShell script to run later. For th
Verify that the settings are all correct and click **Finish** to complete the setup for Always Encrypted.
![Summary](./media/always-encrypted-certificate-store-configure/summary.png)
![Screenshot shows the results page with tasks marked as passed.](./media/always-encrypted-certificate-store-configure/summary.png)
### Verify the wizard's actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ms.service: sql-database
ms.subservice: development
ms.custom: sqldbrb=1
ms.devlang:
ms.topic: conceptual
ms.topic: how-to
author: stevestein
ms.author: sstein
ms.reviewer:
Expand Down
2 changes: 1 addition & 1 deletion azure-sql/database/arm-templates-content-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ms.service: sql-db-mi
ms.subservice: service
ms.custom: overview-samples sqldbrb=2
ms.devlang:
ms.topic: sample
ms.topic: guide
author: jovanpop-msft
ms.author: jovanpop
ms.reviewer: sstein
Expand Down
Loading

0 comments on commit 4f62c5c

Please sign in to comment.