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

Commit fc8546b

Browse files
Resource governor differences on SQL MI
1 parent ddb490c commit fc8546b

9 files changed

Lines changed: 30 additions & 18 deletions

azure-sql/managed-instance/transact-sql-tsql-differences-sql-server.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This article discusses the Transact-SQL (T-SQL) differences between
44
author: danimir
55
ms.author: danil
66
ms.reviewer: mathoma, bonova, danil, randolphwest
7-
ms.date: 11/27/2024
7+
ms.date: 02/17/2025
88
ms.service: azure-sql-managed-instance
99
ms.subservice: service-overview
1010
ms.topic: reference
@@ -29,7 +29,7 @@ There are some PaaS limitations that are introduced in SQL Managed Instance and
2929
- [Availability](#availability) includes the differences in [Always On Availability Groups](#always-on-availability-groups) and [backups](#backup).
3030
- [Security](#security) includes the differences in [auditing](#auditing), [certificates](#certificates), [credentials](#credential), [cryptographic providers](#cryptographic-providers), [logins and users](#logins-and-users), and the [service key and service master key](#service-key-and-service-master-key).
3131
- [Configuration](#configuration) includes the differences in [buffer pool extension](#buffer-pool-extension), [collation](#collation), [compatibility levels](#compatibility-levels), [database mirroring](#database-mirroring), [database options](#database-options), [SQL Server Agent](#sql-server-agent), and [table options](#tables).
32-
- [Functionalities](#functionalities) include [BULK INSERT/OPENROWSET](#bulk-insert--openrowset), [CLR](#clr), [DBCC](#dbcc), [distributed transactions](#distributed-transactions), [extended events](#extended-events), [external libraries](#external-libraries), [FILESTREAM and FileTable](#filestream-and-filetable), [full-text Semantic Search](#full-text-semantic-search), [linked servers](#linked-servers), [PolyBase](#polybase), [Replication](#replication), [RESTORE](#restore-statement), [Service Broker](#service-broker), [stored procedures, functions, and triggers](#stored-procedures-functions-and-triggers).
32+
- [Functionalities](#functionalities) include [BULK INSERT/OPENROWSET](#bulk-insert--openrowset), [CLR](#clr), [DBCC](#dbcc), [distributed transactions](#distributed-transactions), [extended events](#extended-events), [external libraries](#external-libraries), [FILESTREAM and FileTable](#filestream-and-filetable), [full-text Semantic Search](#full-text-semantic-search), [linked servers](#linked-servers), [PolyBase](#polybase), [Replication](#replication), [Resource governor](#resource-governor), [RESTORE](#restore-statement), [Service Broker](#service-broker), [stored procedures, functions, and triggers](#stored-procedures-functions-and-triggers).
3333
- [Environment settings](#Environment) such as VNets and subnet configurations.
3434

3535
Most of these features are architectural constraints and represent service features.
@@ -418,6 +418,15 @@ For more information about configuring transactional replication, see the follow
418418
- [Tutorial: Configure replication between two managed instances](replication-between-two-instances-configure-tutorial.md)
419419
- [Tutorial: Configure transactional replication between Azure SQL Managed Instance and SQL Server](replication-two-instances-and-sql-server-configure-tutorial.md)
420420

421+
### Resource governor
422+
423+
Resource governor is supported. However, there are several behavior differences:
424+
425+
- To modify resource governor configuration in SQL Managed Instance, you must be in the context of the `master` database on the primary replica.
426+
- Resource governor configuration changes made on the primary replica propagate to all secondary replicas. However, changes to the currently effective configuration on a secondary replica might not be immediate. To make the changes made on the primary replica become effective on a secondary replica, [connect](../database/read-scale-out.md#connect-to-a-read-only-replica) to the replica and execute `ALTER RESOURCE GOVERNOR RECONFIGURE`.
427+
- In SQL Server, if the `REQUEST_MAX_CPU_TIME_SEC` setting is configured for a workload group and a batch request exceeds the configured CPU time, the `cpu_threshold_exceeded` event fires but the request is not terminated unless a trace flag is enabled. In SQL Managed Instance, the same event fires and the request is always terminated. For more information, see [REQUEST_MAX_CPU_TIME_SEC](/sql/t-sql/statements/create-workload-group-transact-sql#request_max_cpu_time_sec--value).
428+
- The maximum number of resource pools you can create is 40.
429+
421430
### RESTORE statement
422431

423432
- Supported syntax:

docs/relational-databases/resource-governor/resource-governor-walkthrough.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Use examples to learn how to create and validate resource governor
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
66
ms.reviewer: dfurman
7-
ms.date: 01/02/2025
7+
ms.date: 02/17/2025
88
ms.service: sql
99
ms.subservice: performance
1010
ms.topic: tutorial
@@ -27,7 +27,7 @@ The article also includes examples of resource governor [monitoring queries](#mo
2727
All examples assume that initially, resource governor is disabled and uses default settings, and that no user-defined resource pools, workload groups, and classifier functions exist.
2828

2929
> [!NOTE]
30-
> For Azure SQL Managed Instance, you must be in the context of the `master` database to modify resource governor configuration.
30+
> To modify resource governor configuration in [!INCLUDE[ssazuremi-md.md](../../includes/ssazuremi-md.md)], you must be in the context of the `master` database on the primary replica.
3131
3232
## Modify the default group
3333

docs/t-sql/includes/alter-workload-group.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
author: rwestMSFT
33
ms.author: randolphwest
44
ms.reviewer: dfurman
5-
ms.date: 01/13/2025
5+
ms.date: 02/17/2025
66
ms.service: sql
77
ms.topic: include
88
---
99

1010
Changes an existing resource governor workload group configuration, and optionally assigns it to a different resource governor resource pool.
1111

1212
> [!NOTE]
13-
> For Azure SQL Managed Instance, you must be in the context of the `master` database to modify resource governor configuration.
13+
> To modify resource governor configuration in [!INCLUDE[ssazuremi-md.md](../../includes/ssazuremi-md.md)], you must be in the context of the `master` database on the primary replica.
1414
1515
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: [Transact-SQL syntax conventions](../language-elements/transact-sql-syntax-conventions-transact-sql.md).
1616

docs/t-sql/includes/create-workload-group.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: rwestMSFT
33
ms.author: randolphwest
44
ms.reviewer: dfurman
5-
ms.date: 01/13/2022
5+
ms.date: 02/17/2025
66
ms.service: sql
77
ms.topic: include
88
---
@@ -12,7 +12,7 @@ Creates a resource governor workload group and associates the workload group wit
1212
Resource governor isn't available in every edition of [!INCLUDE [ssnoversion-md](../../includes/ssnoversion-md.md)]. For a list of features that are supported by the editions of [!INCLUDE [ssnoversion-md](../../includes/ssnoversion-md.md)], see [Editions and supported features of SQL Server 2022](../../sql-server/editions-and-components-of-sql-server-2022.md).
1313

1414
> [!NOTE]
15-
> For Azure SQL Managed Instance, you must be in the context of the `master` database to modify resource governor configuration.
15+
> To modify resource governor configuration in [!INCLUDE[ssazuremi-md.md](../../includes/ssazuremi-md.md)], you must be in the context of the `master` database on the primary replica.
1616
1717
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: [Transact-SQL syntax conventions](../language-elements/transact-sql-syntax-conventions-transact-sql.md).
1818

docs/t-sql/includes/drop-workload-group.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
author: rwestMSFT
33
ms.author: randolphwest
44
ms.reviewer: dfurman
5-
ms.date: 01/02/2025
5+
ms.date: 02/17/2025
66
ms.service: sql
77
ms.topic: include
88
---
99

1010
Drops an existing user-defined resource governor workload group.
1111

1212
> [!NOTE]
13-
> For Azure SQL Managed Instance, you must be in the context of the `master` database to modify resource governor configuration.
13+
> To modify resource governor configuration in [!INCLUDE[ssazuremi-md.md](../../includes/ssazuremi-md.md)], you must be in the context of the `master` database on the primary replica.
1414
1515
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: [Transact-SQL syntax conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md).
1616

docs/t-sql/statements/alter-resource-governor-transact-sql.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: ALTER RESOURCE GOVERNOR (Transact-SQL)
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: dfurman
7-
ms.date: 12/31/2024
7+
ms.date: 02/17/2025
88
ms.service: sql
99
ms.subservice: t-sql
1010
ms.topic: reference
@@ -32,6 +32,9 @@ This statement performs the following resource governor actions:
3232
- Reset workload group and resource pool statistics.
3333
- Set the maximum queued I/O operations per disk volume.
3434

35+
> [!NOTE]
36+
> To modify resource governor configuration in [!INCLUDE[ssazuremi-md.md](../../includes/ssazuremi-md.md)], you must be in the context of the `master` database on the primary replica.
37+
3538
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: [Transact-SQL syntax conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md)
3639

3740
## Syntax

docs/t-sql/statements/alter-resource-pool-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: ALTER RESOURCE POOL (Transact-SQL)
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: dfurman
7-
ms.date: 12/31/2024
7+
ms.date: 02/17/2025
88
ms.service: sql
99
ms.subservice: t-sql
1010
ms.topic: reference
@@ -24,7 +24,7 @@ dev_langs:
2424
Changes an existing [resource governor](../../relational-databases/resource-governor/resource-governor.md) resource pool configuration for a [!INCLUDE[ssDE](../../includes/ssde-md.md)] instance.
2525

2626
> [!NOTE]
27-
> For Azure SQL Managed Instance, you must be in the context of the `master` database to modify resource governor configuration.
27+
> To modify resource governor configuration in [!INCLUDE[ssazuremi-md.md](../../includes/ssazuremi-md.md)], you must be in the context of the `master` database on the primary replica.
2828
2929
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: [Transact-SQL syntax conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md)
3030

docs/t-sql/statements/create-resource-pool-transact-sql.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: CREATE RESOURCE POOL (Transact-SQL)
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: dfurman
7-
ms.date: 12/31/2024
7+
ms.date: 02/17/2025
88
ms.service: sql
99
ms.subservice: t-sql
1010
ms.topic: reference
@@ -23,12 +23,12 @@ dev_langs:
2323

2424
[!INCLUDE [SQL Server](../../includes/applies-to-version/sql-asdbmi.md)]
2525

26-
Creates a [resource governor](../../relational-databases/resource-governor/resource-governor.md) resource pool. A resource pool represents a subset of the physical resources (CPU, memory, and IO) of a [!INCLUDE[ssDE](../../includes/ssde-md.md)] instance. Resource governor enables you to reserve or limit server resources among resource pools, up to a maximum of 64 pools.
26+
Creates a [resource governor](../../relational-databases/resource-governor/resource-governor.md) resource pool. A resource pool represents a subset of the physical resources (CPU, memory, and IO) of a [!INCLUDE[ssDE](../../includes/ssde-md.md)] instance. Resource governor enables you to reserve or limit server resources among resource pools, up to a maximum of 64 pools for [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] or 40 for [!INCLUDE[ssazuremi-md.md](../../includes/ssazuremi-md.md)].
2727

2828
Resource governor isn't available in every edition of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. For a list of features that are supported by the editions of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], see [Editions and supported features of SQL Server 2022](~/sql-server/editions-and-components-of-sql-server-2022.md).
2929

3030
> [!NOTE]
31-
> For Azure SQL Managed Instance, you must be in the context of the `master` database to modify resource governor configuration.
31+
> To modify resource governor configuration in [!INCLUDE[ssazuremi-md.md](../../includes/ssazuremi-md.md)], you must be in the context of the `master` database on the primary replica.
3232
3333
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: [Transact-SQL syntax conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md)
3434

docs/t-sql/statements/drop-resource-pool-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: DROP RESOURCE POOL (Transact-SQL)
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
66
ms.reviewer: dfurman
7-
ms.date: 12/31/2024
7+
ms.date: 02/17/2025
88
ms.service: sql
99
ms.subservice: t-sql
1010
ms.topic: reference
@@ -24,7 +24,7 @@ dev_langs:
2424
Deletes a user-defined [resource governor](../../relational-databases/resource-governor/resource-governor.md) resource pool for a [!INCLUDE[ssDE](../../includes/ssde-md.md)] instance.
2525

2626
> [!NOTE]
27-
> For Azure SQL Managed Instance, you must be in the context of the `master` database to modify resource governor configuration.
27+
> To modify resource governor configuration in [!INCLUDE[ssazuremi-md.md](../../includes/ssazuremi-md.md)], you must be in the context of the `master` database on the primary replica.
2828
2929
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: [Transact-SQL syntax conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md)
3030

0 commit comments

Comments
 (0)