cli: disable nosmt via VMM temporarily.

AWS asked us to disable these options temporarily until they resolve
some internal issues that sometimes prevents these instances
from starting.
This commit is contained in:
Otto Bittner 2023-09-04 16:32:06 +02:00
parent cb934ed087
commit 6e5ba774d8

View File

@ -54,11 +54,12 @@ resource "aws_launch_template" "launch_template" {
# Disable SMT. We are already disabling it inside the image. # Disable SMT. We are already disabling it inside the image.
# Disabling SMT only in the image, not in the Hypervisor creates problems. # Disabling SMT only in the image, not in the Hypervisor creates problems.
# Thus, also disable it in the Hypervisor. # Thus, also disable it in the Hypervisor.
threads_per_core = 1 # TODO (derpsteb): reenable once AWS confirms it's safe to do so.
# threads_per_core = 1
# When setting threads_per_core we also have to set core_count. # When setting threads_per_core we also have to set core_count.
# For the currently supported SNP instance families (C6a, M6a, R6a) default_cores # For the currently supported SNP instance families (C6a, M6a, R6a) default_cores
# equals the maximum number of available cores. # equals the maximum number of available cores.
core_count = data.aws_ec2_instance_type.instance_data.default_cores # core_count = data.aws_ec2_instance_type.instance_data.default_cores
} }
lifecycle { lifecycle {