Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add vm configure latencySensitivity support #490

Merged
merged 2 commits into from
Apr 26, 2018
Merged

Conversation

figo
Copy link

@figo figo commented Apr 25, 2018

fix #387
high LatencySensitivity VM is important when customers trying to reduce VM latency for applications.

now users can configure high LatencySensitivity VM with following terraform parameters:
latency_sensitivity = "high" memory_reservation = $memory

tested with a vSphere cluster(vCenter and ESX), govc and
Terraform v0.11.3

  • provider.ignition v1.0.0
  • provider.template v1.0.0
  • provider.tls v1.1.0
  • provider.vsphere (modified based on v1.4.1)

appreciate your review in advance.

@figo
Copy link
Author

figo commented Apr 25, 2018

@vancluever

Copy link
Contributor

@dougm dougm left a comment

Choose a reason for hiding this comment

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

lgtm @figo

"latency_sensitivity": {
Type: schema.TypeString,
Optional: true,
Default: "normal",
Copy link
Contributor

Choose a reason for hiding this comment

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

Could use the govmomi generated const here: types.LatencySensitivitySensitivityLevelNormal

Type: schema.TypeString,
Optional: true,
Default: "normal",
Description: "The latency-sensitivity setting of the virtual machine.",
Copy link
Contributor

Choose a reason for hiding this comment

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

@vancluever
Copy link
Contributor

@figo and @dougm, I noticed a few things during testing - I'm making the necessary adjustments and am also pushing tests and documentation.

Thanks!

* Added validation for allowed values.
* Added detailed description on what latency sensitivity does.
* Added test for setting, setting sensitivity to high and setting a 100%
memory reservation (which seems to be necessary).
* Updated docs. Also added warning on the above info, and that low and
medium levels aren't available on ESXi >= 6.0.
@vancluever vancluever merged commit a1e42d9 into hashicorp:master Apr 26, 2018
@vancluever
Copy link
Contributor

Hey @figo and @dougm - all done - this has been merged now. Thanks for the contribution!

@figo
Copy link
Author

figo commented Apr 26, 2018

@vancluever thanks a lot.

@figo figo deleted the review branch April 26, 2018 17:00
@ghost ghost locked and limited conversation to collaborators Apr 18, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can "Latency Sensitivity" be configured for newly created VMs?
3 participants