๐ก๏ธ Azure PostgreSQL Server is underutilized๐ข
- Contextual name: ๐ก๏ธ Server is underutilized๐ข
- ID:
/ce/ca/azure/postgresql-database/server-underutilized - Tags:
- ๐ข Policy with categories
- ๐ข Policy with type
- ๐ข Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
COST,PERFORMANCE
Logicโ
- ๐ง prod.logic.yaml๐ข
Descriptionโ
Descriptionโ
This policy identifies Azure PostgreSQL Servers that are potentially underutilized based on their performance metrics over the past 30 days. Underutilized servers are often provisioned at a higher tier than required, resulting in unnecessary cloud costs. A server is flagged as underutilized if its average CPU and I/O utilization are all below 20% and memory is below 40%.
Rationaleโ
Over-provisioned servers increase expenses without delivering corresponding benefits. By identifying and rightsizing underutilized PostgreSQL servers, organizations can reduce costs and improve overall resource efficiency.
Impactโ
Carefully review to confirm that the new configuration will accommodate peak demand. Note that resizing a server triggers a brief period of downtime while the change is applied.
Auditโ
This policy evaluates an Azure Azure PostgreSQL Server based on its 30-day performance metrics.
The Server is marked as
INCOMPLIANTif:
Monitor: CPU Percent, 30-Day< 20%.and
Monitor: IO Consumption Percent, 30-Day< 20%.... see more
Remediationโ
Remediationโ
Resize the Serverโ
Before resizing, review workload trends to ensure the new configuration can support peak demand.
From Azure CLIโ
az postgres server update \
--resource-group {{resource-group}} \
--name {{server-name}} \
--sku-name {{new-sku-name}}From PowerShellโ
Update-AzPostgreSqlServer `
-ResourceGroupName {{resource-group}} `
-Name {{server-name}} `
-Sku {{new-sku-name}}Note: Resizing triggers a restart of the PostgreSQL server, causing a short period of downtime.
policy.yamlโ
Linked Framework Sectionsโ
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| ๐ผ Cloudaware Framework โ ๐ผ Resource Right-Sizing | 15 | no data | |||
| ๐ผ Cloudaware Framework โ ๐ผ Workload Efficiency | 24 | no data |