-
Notifications
You must be signed in to change notification settings - Fork 455
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
Conversation
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.
lgtm @figo
"latency_sensitivity": { | ||
Type: schema.TypeString, | ||
Optional: true, | ||
Default: "normal", |
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.
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.", |
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.
Maybe include the possible values here?
* 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 thanks a lot. |
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
appreciate your review in advance.