Skip to content
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

feat: expose distribution_policy_target_shape setting for MIGs #327

Conversation

tpdownes
Copy link
Member

@tpdownes tpdownes commented Jul 18, 2023

This PR allows specification of the distribution_policy_target_shape settings for MIGs. Although this setting is optional, it has a significant impact on the user experience. For example, using the "BALANCED" setting instead of "EVEN" (default) enables the user to use regional MIGs even when a particular VM type is not available in all zones. This is common for new VM families with limited hardware availability (e.g. G2 GPU family).

https://cloud.google.com/compute/docs/instance-groups/regional-mig-distribution-shape#comparison_of_shapes

I have made the choice to set the default value to null to most closely simulate the status quo. I could add validation, but have chosen not to incase there are new future values. We could discuss modifying either decision.

@tpdownes tpdownes requested a review from a team as a code owner July 18, 2023 21:48
@tpdownes tpdownes force-pushed the feat_distribution_policy_shape branch from b4f2251 to 89ba23e Compare July 18, 2023 21:50
@tpdownes tpdownes force-pushed the feat_distribution_policy_shape branch from 89ba23e to c41608e Compare July 18, 2023 21:51
@tpdownes tpdownes changed the title Expose distribution_policy_target_shape setting for MIGs feat: expose distribution_policy_target_shape setting for MIGs Jul 18, 2023
Copy link
Member

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @tpdownes

@bharathkkb bharathkkb merged commit 1c8f775 into terraform-google-modules:master Jul 19, 2023
@tpdownes tpdownes deleted the feat_distribution_policy_shape branch July 19, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants