-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[POSTGRESQL] az postgres flexible-server update: Restart is no longer required for scaling storage size of Premium SSDv2 server
#33178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,6 +54,7 @@ def _postgres_parse_list_capability(result, is_offer_restriction_check_required= | |
| zone_redundant = [feature for feature in supported_features if feature.name == "ZoneRedundantHa"] | ||
| geo_backup = [feature for feature in supported_features if feature.name == "GeoBackup"] | ||
| autonomous_tuning = [feature for feature in supported_features if feature.name == "IndexTuning"] | ||
| online_resize = [feature for feature in supported_features if feature.name == "OnlineResize"] | ||
|
||
|
|
||
| # Update once capability calls are corrected for each command | ||
| if restricted == "Enabled" and not is_offer_restriction_check_required: | ||
|
|
@@ -65,7 +66,7 @@ def _postgres_parse_list_capability(result, is_offer_restriction_check_required= | |
| single_az = zone_redundant[0].status != "Enabled" if zone_redundant else True | ||
| geo_backup_supported = geo_backup[0].status == "Enabled" if geo_backup else False | ||
| autonomous_tuning_supported = autonomous_tuning[0].status == "Enabled" if autonomous_tuning else False | ||
|
|
||
| online_resize_supported = online_resize[0].status == "Enabled" if online_resize else False | ||
|
||
| tiers = result[0].supported_server_editions | ||
| tiers_dict = {} | ||
| for tier_info in tiers: | ||
|
|
@@ -113,7 +114,8 @@ def _postgres_parse_list_capability(result, is_offer_restriction_check_required= | |
| 'zones': zones, | ||
| 'server_versions': versions, | ||
| 'supported_server_versions': supported_server_versions, | ||
| 'autonomous_tuning_supported': autonomous_tuning_supported | ||
| 'autonomous_tuning_supported': autonomous_tuning_supported, | ||
| 'online_resize_supported': online_resize_supported | ||
|
Comment on lines
+117
to
+118
|
||
| } | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This condition changes behavior beyond PremiumV2_LRS: previously the 4096GB-threshold restart confirmation only triggered when
instance.storage.type == \"\", but now it triggers for all non-PremiumV2_LRS storage types. If other storage types legitimately don’t require a restart for the threshold transition, this will introduce unnecessary confirmations. Consider restoring the prior gating (e.g., keep the== \"\"check) and add a targeted exception for PremiumV2_LRS, or explicitly whitelist the storage types that actually require a restart when crossing 4096GB.