lowlydba.sqlserver.rg_resource_pool module – Configures a resource pool for use by the Resource Governor
Note
This module is part of the lowlydba.sqlserver collection (version 1.2.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install lowlydba.sqlserver
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: lowlydba.sqlserver.rg_resource_pool
.
New in lowlydba.sqlserver 0.1.0
Synopsis
Creates or modifies a resource pool to be used by the Resource Governor. Default values are handled by the Powershell functions themselves.
Requirements
The below requirements are needed on the host that executes this module.
dbatools PowerShell module
Parameters
Parameter |
Comments |
---|---|
Cap CPU Percentage able to be used by queries in this resource pool. |
|
Maximum CPU Percentage able to be used by queries in this resource pool. |
|
Maximum IOPS/volume able to be used by queries in this resource pool. |
|
Maximum Memory Percentage able to be used by queries in this resource pool. |
|
Minimum CPU Percentage able to be used by queries in this resource pool. |
|
Minimum IOPS/volume able to be used by queries in this resource pool. |
|
Minimum Memory Percentage able to be used by queries in this resource pool. |
|
Name of the target resource pool. |
|
The SQL Server instance to modify. |
|
Password for SQL Authentication. |
|
Username for SQL Authentication. |
|
Whether or not the object should be Choices:
|
|
Specify the type of resource pool. Choices:
|
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full |
Can run in check_mode and return changed status prediction without modifying target. |
|
Platforms: all |
Target OS/families that can be operated against. |
Examples
- name: Enable resource governor
lowlydba.sqlserver.resource_governor:
sql_instance: sql-01.myco.io
enabled: true
- name: Create rg resource pool
lowlydba.sqlserver.rg_resource_pool:
sql_instance: sql-01.myco.io
resource_pool: "rpLittle"
max_cpu_perc: 5
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Output from the Returned: success, but not in check_mode. |