in src/hpc/autoscale/node/nodemanager.py [0:0]
def example_node(self, location: str, vm_size: str) -> Node:
aux_info = vm_sizes.get_aux_vm_size_info(location, vm_size)
node = Node(
node_id=DelayedNodeId(ht.NodeName("__example__")),
name=ht.NodeName("__example__"),
nodearray=ht.NodeArrayName("__example_nodearray__"),
bucket_id=ht.BucketId("__example_bucket_id__"),
hostname=None,
private_ip=None,
instance_id=None,
vm_size=ht.VMSize(vm_size),
location=ht.Location(location),
spot=False,
vcpu_count=aux_info.vcpu_count,
memory=aux_info.memory,
infiniband=aux_info.infiniband,
state=ht.NodeStatus("Off"),
target_state=ht.NodeStatus("Off"),
power_state=ht.NodeStatus("Off"),
exists=False,
placement_group=None,
managed=False,
resources=ht.ResourceDict({}),
software_configuration=ImmutableOrderedDict({}),
keep_alive=False,
)
self._apply_defaults(node)
return node