Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 0b711e2

Browse files
20250819 database replicas
1 parent 6e30317 commit 0b711e2

9 files changed

Lines changed: 145 additions & 25 deletions

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67588,6 +67588,11 @@
6758867588
"source_path": "docs/relational-databases/sql-server-configuration-manager.md",
6758967589
"redirect_url": "/sql/tools/configuration-manager/sql-server-configuration-manager",
6759067590
"redirect_document_id": true
67591+
},
67592+
{
67593+
"source_path": "docs/relational-databases/system-dynamic-management-views/sys-dm-hs-database-log-rate.md",
67594+
"redirect_url": "/sql/relational-databases/system-functions/sys-dm-hs-database-log-rate",
67595+
"redirect_document_id": false
6759167596
}
6759267597
]
6759367598
}

azure-sql/database/doc-changes-updates-release-notes-whats-new.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn about the new features and documentation improvements for Azu
55
author: WilliamDAssafMSFT
66
ms.author: wiassaf
77
ms.reviewer: mathoma, randolphwest
8-
ms.date: 07/28/2025
8+
ms.date: 08/11/2025
99
ms.service: azure-sql-database
1010
ms.subservice: service-overview
1111
ms.topic: whats-new
@@ -63,6 +63,7 @@ The following table lists features of Azure SQL Database that have been made gen
6363

6464
| Feature | GA Month | Details |
6565
| --- | --- | --- |
66+
| **sys.dm_hs_database_replicas** | August 2025 | You can query the details of Azure SQL Database Hyperscale replicas with the new dynamic management view (DMV) [sys.dm_hs_database_replicas](/sql/relational-databases/system-functions/sys-dm-hs-database-replicas).|
6667
| **UNISTR (Transact-SQL)** | July 2025 | Azure SQL Database now supports the `UNISTR` T-SQL syntax for Unicode string literals. For more information, see [UNISTR (Transact-SQL)](/sql/t-sql/functions/unistr-transact-sql).|
6768
| **\|\| (String concatenation) and \|\|= (Compound assignment) syntax support** | July 2025 | Azure SQL Database now supports [\|\| (String concatenation)](/sql/t-sql/language-elements/string-concatenation-pipes-transact-sql?view=azuresqldb-current&preserve-view=true) and [\|\|= (Compound assignment)](/sql/t-sql/language-elements/compound-assignment-pipes-transact-sql?view=azuresqldb-current&preserve-view=true) Transact-SQL syntax.|
6869
| **Degrees of Parallelism (DOP) feedback** | July 2025 | [DOP Feedback](/sql/relational-databases/performance/intelligent-query-processing-degree-parallelism-feedback?view=azuresqldb-current&preserve-view=true) is now generally available for Azure SQL Database. For more information, see [Smarter Parallelism: Degree of parallelism feedback in SQL Server 2025](https://techcommunity.microsoft.com/blog/sqlserver/smarter-parallelism-degree-of-parallelism-feedback-in-sql-server-2025/4431318). |
@@ -86,18 +87,17 @@ The following table lists features of Azure SQL Database that have been made gen
8687
| **Maintenance window support for named replicas** |August 2024|[Maintenance window](maintenance-window.md) support for named replicas is now generally available. For more information, see [General Availability: Maintenance window support for Azure SQL Database Hyperscale named replica](https://aka.ms/MWsupportforNR).|
8788
| **Maintenance window support for Hyperscale** | August 2024| [Maintenance window](maintenance-window.md) support for Hyperscale databases is now generally available. |
8889
| **Automatic backups on secondary replicas** | August 2024 | Mitigate the performance impact on your workload by taking [automated backups from the non-readable secondary replica](automated-backups-overview.md#automatic-backups-on-secondary-replicas) in the Business Critical service tier. |
89-
| **Database compatibility level 160 is now default** | June 2024 | [Database compatibility level 160](/sql/t-sql/statements/alter-database-transact-sql-compatibility-level?view=azuresqldb-current&preserve-view=true) is now the default for new databases created in Azure SQL Database. For more information on this announcement, see [General availability: Database compatibility level 160 in Azure SQL Database](https://techcommunity.microsoft.com/t5/azure-sql-blog/general-availability-database-compatibility-level-160-in-azure/ba-p/4172039). |
90-
| **Hyperscale named replica zone redundant support** | June 2024 | [Zone redundancy support for Hyperscale named replicas](https://techcommunity.microsoft.com/blog/azuresqlblog/general-availability-maintenance-window-support-for-azure-sql-database-hyperscal/4207651) is now generally available. For more information, see [Hyperscale secondary replicas](service-tier-hyperscale-replicas.md). |
91-
| **License-free standby replica** | May 2024 | Save on licensing costs by configuring your [secondary database replica for disaster recovery standby](standby-replica-how-to-configure.md). |
92-
| **Elastic jobs** | April 2024 | [Elastic jobs, now generally available](https://techcommunity.microsoft.com/t5/azure-sql-blog/general-availability-elastic-jobs-in-azure-sql-database/ba-p/4087140), are the SQL Server Agent replacement for Azure SQL Database. [Elastic jobs](elastic-jobs-overview.md) now support Microsoft Entra ID authentication, private endpoints, management via REST APIs, Azure Alerts, and more new features since preview began. |
93-
| **Maintenance window advance notifications** | March 2024 | [Advance notifications](advance-notifications.md) are now generally available for databases configured to use a nondefault [maintenance window](maintenance-window.md). |
94-
| **Azure SQL triggers for Azure Functions** | March 2024 | Azure Functions supports [function triggers for Azure SQL Database](/azure/azure-functions/functions-bindings-azure-sql-trigger). |
95-
| **Serverless Hyperscale** | February 2024 | Automatically scale your Hyperscale databases up and down based on usage when using the [serverless compute tier](serverless-tier-overview.md). |
9690

9791
## Documentation changes
9892

9993
Learn about significant changes to the Azure SQL Database documentation. For previous years, see the [What's new archive](doc-changes-updates-release-notes-whats-new-archive.md).
10094

95+
### August 2025
96+
97+
| Changes | Details |
98+
| --- | --- |
99+
| **sys.dm_hs_database_replicas** | You can query the details of Azure SQL Database Hyperscale replicas with the new dynamic management view (DMV) [sys.dm_hs_database_replicas](/sql/relational-databases/system-functions/sys-dm-hs-database-replicas).|
100+
101101
### July 2025
102102

103103
| Changes | Details |

azure-sql/database/hyperscale-named-replica-configure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ It is recommended to configure the named replica with the same compute size (vCo
235235

236236
If you choose to create the named replica with a different compute size (vCores) than the primary, monitor the log IO rate on the primary over time. This helps estimate the minimal compute size required for the named replica to sustain the replication load. For more information, consider the following objects:
237237

238-
- The [sys.dm_hs_database_log_rate()](/sql/relational-databases/system-dynamic-management-views/sys-dm-hs-database-log-rate) dynamic management function (DMF) provides additional details to help understand log rate reduction, if any. It can indicate which specific secondary replica is behind in applying log records and the total size of the unapplied transaction log.
238+
- The [sys.dm_hs_database_log_rate()](/sql/relational-databases/system-functions/sys-dm-hs-database-log-rate) dynamic management function (DMF) provides additional details to help understand log rate reduction, if any. It can indicate which specific secondary replica is behind in applying log records and the total size of the unapplied transaction log.
239239
- To retrieve historical log IO data, use [sys.resource_stats](/sql/relational-databases/system-catalog-views/sys-resource-stats-azure-sql-database) view.
240240
- For recent log IO data with higher granularity that better reflects short-term spikes, use [sys.dm_db_resource_stats](/sql/relational-databases/system-dynamic-management-views/sys-dm-db-resource-stats-azure-sql-database).
241241

azure-sql/database/hyperscale-performance-diagnostics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The following wait types appear in [sys.dm_os_wait_stats](/sql/relational-databa
3838
| `RBIO_RG_STORAGE_CHECKPOINT` | Delayed log consumption on by a page server due to slow database checkpoint |
3939
| `RBIO_RG_MIGRATION_TARGET` | Delayed log consumption by the non-Hyperscale database during reverse migration |
4040

41-
The [sys.dm_hs_database_log_rate()](/sql/relational-databases/system-dynamic-management-views/sys-dm-hs-database-log-rate) dynamic management function (DMF) provides additional details to help you understand log rate reduction, if any. For example, it can tell you which specific secondary replica is behind applying log records, and what is the total size of the not yet applied transaction log.
41+
The [sys.dm_hs_database_log_rate()](/sql/relational-databases/system-functions/sys-dm-hs-database-log-rate) dynamic management function (DMF) provides additional details to help you understand log rate reduction, if any. For example, it can tell you which specific secondary replica is behind applying log records, and what is the total size of the not yet applied transaction log.
4242

4343
## Page server reads
4444

azure-sql/database/service-tier-hyperscale-frequently-asked-questions-faq.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
author: WilliamDAssafMSFT
1212
ms.author: wiassaf
1313
ms.reviewer: dfurman, mathoma, dinethi, blakhani, adbadram
14-
ms.date: 06/30/2025
14+
ms.date: 08/11/2025
1515
title: Azure SQL Database Hyperscale FAQ
1616
summary: |
1717
[!INCLUDE[appliesto-sqldb](../includes/appliesto-sqldb.md)]
@@ -549,10 +549,18 @@ sections:
549549
Yes. The [Column Master Key](/sql/t-sql/statements/create-column-master-key-transact-sql?view=azuresqldb-current&preserve-view=true) is stored in the user database and can be validated by executing the query `SELECT * FROM sys.column_master_keys`. Named replicas and high availability secondary replicas read data from the same page servers/storage layer as the primary Hyperscale database. Both types of replicas are synchronized with the primary Hyperscale database via the log service. A key change is considered a transaction and is automatically replicated to all secondary replicas.
550550
551551
- question: |
552-
Can I determine the name of a named replica associated with a value in the replica_id column in sys.dm_database_replica_states?
552+
How do I query information about Hyperscale database secondary replicas?
553553
554554
answer: |
555-
Not when you query `sys.dm_database_replica_states` on the primary replica. However, you can connect to a named replica to determine its replica ID and other details using the following sample query:
555+
556+
You can connect to the primary replica and determine its replica ID and the details of other secondary replicas using the `sys.dm_hs_database_replicas` DMF. For more information, see [sys.dm_hs_database_replicas](/sql/relational-databases/system-functions/sys-dm-hs-database-replicas). The following example returns a row for each replica of a Hyperscale database named `Contosodb`.
557+
558+
```sql
559+
SELECT replica_role_desc, replica_server_name, replica_id
560+
FROM sys.dm_hs_database_replicas(DB_ID(N'Contosodb'));
561+
```
562+
563+
You can also connect to a secondary replica to determine its replica ID and other details. The following sample query of [sys.dm_database_replica_states](/sql/relational-databases/system-dynamic-management-views/sys-dm-database-replica-states-azure-sql-database) shows the details for the current replica context:
556564
557565
```sql
558566
SELECT replica_id,

azure-sql/database/service-tier-hyperscale-replicas.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This article describes the different types of secondary replicas av
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
66
ms.reviewer: atsingh, arvindsh
7-
ms.date: 11/04/2024
7+
ms.date: 08/11/2025
88
ms.service: azure-sql-database
99
ms.subservice: service-overview
1010
ms.topic: overview
@@ -41,6 +41,15 @@ HA replicas use the same server and database name as the primary replica. Their
4141

4242
There can be zero to four HA replicas. You can specify the number replicas during the creation of a new database, or update the number of replicas for an existing database. You can use the common management endpoints and tools (for example: Azure PowerShell, Azure CLI, Azure portal, REST API) to specify the number of HA replicas. Creating or removing HA replicas doesn't affect active connections on the primary replica.
4343

44+
### Identify replicas
45+
46+
You can identify all the Azure SQL Database Hyperscale replicas and their roles when connected to a primary replica with the [sys.dm_hs_database_replicas (Transact-SQL)](/sql/relational-databases/system-functions/sys-dm-hs-database-replicas) dynamic management view (DMV). For example:
47+
48+
```sql
49+
SELECT replica_role_desc, replica_server_name, replica_id
50+
FROM sys.dm_hs_database_replicas(DB_ID(N'Contosodb'));
51+
```
52+
4453
### Connect to an HA replica
4554

4655
In Hyperscale databases, the `ApplicationIntent` argument in the connection string used by the client dictates whether the connection is routed to the read-write primary replica or to a read-only HA replica. If `ApplicationIntent` is set to `ReadOnly` and the database doesn't have a secondary replica, connection is routed to the primary replica and defaults to the `ReadWrite` behavior.

docs/relational-databases/system-dynamic-management-views/sys-dm-hs-database-log-rate.md renamed to docs/relational-databases/system-functions/sys-dm-hs-database-log-rate.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: "sys.dm_hs_database_log_rate (Transact-SQL)"
3-
description: sys.dm_hs_database_log_rate (Transact-SQL)
3+
description: The sys.dm_hs_database_log_rate dynamic management function returns information about log generation rate in Azure SQL Database Hyperscale.
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
66
ms.reviewer: dfurman, atsingh
7-
ms.date: 12/18/2024
7+
ms.date: 08/11/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -15,6 +15,8 @@ f1_keywords:
1515
- "dm_hs_database_log_rate_TSQL"
1616
helpviewer_keywords:
1717
- "sys.dm_hs_database_log_rate catalog view"
18+
- "sys.dm_hs_database_log_rate function"
19+
- "sys.dm_hs_database_log_rate DMF"
1820
dev_langs:
1921
- "TSQL"
2022
monikerRange: "=azuresqldb-current"
@@ -23,17 +25,16 @@ monikerRange: "=azuresqldb-current"
2325

2426
[!INCLUDE [Azure SQL Database](../../includes/applies-to-version/asdb.md)]
2527

26-
Each resultset row returns a component that controls (reduces) log generation rate in a Hyperscale database. There are multiple [components in Hyperscale tier architecture](/azure/azure-sql/database/hyperscale-architecture) that could contribute to the reducing log generation rate.
28+
The `sys.dm_hs_database_log_rate` dynamic management function (DMF) returns information about log generation rate in Azure SQL Database Hyperscale.
29+
30+
Each row in the result set represents a component that controls (reduces) log generation rate in a Hyperscale database. There are multiple [components in Hyperscale tier architecture](/azure/azure-sql/database/hyperscale-architecture) that could reduce log generation rate to keep database performance stable and balanced.
2731

2832
Certain types of components, such as secondary compute replicas or page servers, can temporarily reduce log generation rate on the primary compute replica to ensure the overall database health and stability.
2933

3034
If log generation rate is not reduced by any component, a row is returned for the primary compute replica component, showing the maximum allowed log generation rate for the database.
3135

3236
This dynamic management function returns rows only when the session is connected to the primary replica.
3337

34-
> [!NOTE]
35-
> The `sys.dm_hs_database_log_rate` dynamic management function currently applies to Azure SQL Database Hyperscale tier only.
36-
3738
## Syntax
3839

3940
```syntaxsql
@@ -48,9 +49,9 @@ sys.dm_hs_database_log_rate (
4849

4950
*database_id* is an **integer** representing the database ID, with no default value. Valid inputs are either a database ID or `NULL`.
5051

51-
Specified `database_id`: Returns a row for that specific database.
52+
When a `database_id` is provided, `sys.dm_hs_database_log_rate` returns a row for that specific database.
5253

53-
`NULL`: For a single database, returns a row for the current database. For a database in an elastic pool, returns rows for all databases in the pool where the caller has sufficient [permissions](#permissions).
54+
When not provided or when `NULL` is provided, for a single database, returns a row for the current database. For a database in an elastic pool, returns rows for all databases in the pool where the caller has sufficient [permissions](#permissions).
5455

5556
The built-in function [DB_ID](../../t-sql/functions/db-id-transact-sql.md) can be specified.
5657

@@ -72,6 +73,8 @@ The built-in function [DB_ID](../../t-sql/functions/db-id-transact-sql.md) can
7273

7374
## Remarks
7475

76+
The `sys.dm_hs_database_log_rate` dynamic management function applies to Azure SQL Database Hyperscale tier only.
77+
7578
In the Hyperscale service tier of Azure SQL Database, the log service ensures that the distributed components don't get far behind in applying transaction log. This is required to maintain the overall system health and stability. When components are behind and their catch-up rate is less than current log generation rate, the log service reduces the log generation rate on the primary. The `sys.dm_hs_database_log_rate()` DMF can be used to understand which component is causing the reduction in log rate and to what extent, and for how long the reduction of log rate might last.
7679

7780
For more context about log rate reduction, see [Performance diagnostics in Hyperscale](/azure/azure-sql/database/hyperscale-performance-diagnostics?view=azuresql-db&preserve-view=true).
@@ -102,7 +105,8 @@ FROM sys.dm_hs_database_log_rate(NULL);
102105

103106
## Related content
104107

105-
- [sys.dm_database_replica_states (Azure SQL Database)](sys-dm-database-replica-states-azure-sql-database.md?view=azuresqldb-current&preserve-view=true)
108+
- [sys.dm_database_replica_states (Azure SQL Database) (Transact-SQL)](../system-dynamic-management-views/sys-dm-database-replica-states-azure-sql-database.md?view=azuresqldb-current&preserve-view=true)
109+
- [sys.dm_hs_database_replicas (Transact-SQL)](sys-dm-hs-database-replicas.md?view=azuresqldb-current&preserve-view=true)
106110
- [sys.dm_exec_requests (Transact-SQL)](../system-dynamic-management-views/sys-dm-exec-requests-transact-sql.md?view=azuresqldb-current&preserve-view=true)
107111
- [sys.dm_os_wait_stats (Transact-SQL)](../system-dynamic-management-views/sys-dm-os-wait-stats-transact-sql.md?view=azuresqldb-current&preserve-view=true)
108112
- [DATABASEPROPERTYEX (Transact-SQL)](../../t-sql/functions/databasepropertyex-transact-sql.md?view=azuresqldb-current&preserve-view=true)

0 commit comments

Comments
 (0)