DB for PostgreSQL
The presented resiliency recommendations in this guidance include Database for PostgreSQL and associated resources and settings.
Summary of Recommendations
Recommendation | Category | Impact | State | ARG Query Available |
---|---|---|---|---|
PSQL-1 - Enable HA with zone redundancy | Availability | High | Verified | Yes |
PSQL-2 - Enable custom maintenance schedule | System Efficiency | High | Verified | Yes |
Definitions of states can be found here
Recommendations Details
PSQL-1 - ゾーン冗長性による HA を有効化します
Category: Availability
Impact: High
Recommendation
フレキシブル サーバー インスタンスでゾーン冗長性を備えた HA を有効にします。ゾーン冗長高可用性は、自動フェールオーバー機能を備えた別のゾーンにスタンバイ レプリカをデプロイします。
Resources
Resource Graph Query
// Azure Resource Graph Query
// Find Database for PostgreSQL instances that are not zone redundant
resources
| where type == "microsoft.dbforpostgresql/flexibleservers"
| where properties.highAvailability.mode != "ZoneRedundant"
| project recommendationId = "psql-1", name, id, tags, param1 = "ZoneRedundant: False"
PSQL-2 - カスタムメンテナンススケジュールを有効にします
Category: System Efficiency
Impact: High
Recommendation
フレキシブル サーバー インスタンスでカスタム メンテナンス スケジュールを使用して、サービス更新プログラムを適用する優先時間を選択します。
Resources
Resource Graph Query
// Azure Resource Graph Query
// Find Database for PostgreSQL instances that do not have a custom maintenance window
resources
| where type == "microsoft.dbforpostgresql/flexibleservers"
| where properties.maintenanceWindow.customWindow != "Enabled"
| project recommendationId = "psql-2", name, id, tags, param1 = strcat("customWindow:", properties['maintenanceWindow']['customWindow'])