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

Add rolling_upgrade_policy to azurerm_linux_virtual_machine_scale_set #210

Closed
0x46616c6b opened this issue Mar 20, 2023 · 0 comments
Closed
Labels
enhancement New feature or request

Comments

@0x46616c6b
Copy link
Contributor

0x46616c6b commented Mar 20, 2023

What problem would you like to address?

I would like to add the ability to configure rolling_upgrade_policy in azurerm_linux_virtual_machine_scale_set. This will solve some unavailabilities of TFE when OS updates are applied.

Should I create a PR for that change?

Who is the audience for this request?

TFE Customer

What would the ideal solution look like?

Have a configurable rolling_update_policy with some defaults:

resource "azurerm_linux_virtual_machine_scale_set" "tfe_vmss" {
  // Other options in the resource

  dynamic "rolling_upgrade_policy" {
    for_each = var.vm_upgrade_mode == "Rolling" ? [1] : []

    content {
      cross_zone_upgrades_enabled             = false
      max_batch_instance_percent              = 20
      max_unhealthy_instance_percent          = 20
      max_unhealthy_upgraded_instance_percent = 20
      pause_time_between_batches              = "PT0S"
      prioritize_unhealthy_instances_enabled  = false
    }
  }
}

var.vm_upgrade_mode defaults to "Manual", so the block wouldn't apply.

What alternatives have you considered?

Nothing.

How does this impact you?

I inlined the vm module for my TFE installation and applied this change already.

Are there any deadlines?

No.

Is there any additional context?

No.

@0x46616c6b 0x46616c6b added the enhancement New feature or request label Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant