β Repository β π Compliance Engine β π CloudAware β π Azure β π PostgreSQL Database
π‘οΈ 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
INCOMPLIANT
if:
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 |