Skip to content

Commit e2be197

Browse files
authored
Merge pull request #16 from brandenm-nag/c398_master
Add cluster_group identification to AWS and GCP instance type info
2 parents fee3a3c + 83ecaef commit e2be197

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

citc/aws.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def get_types_info(client: EC2Client) -> Dict[str, NodeTypeInfo]:
102102
),
103103
"threads_per_core": d["VCpuInfo"].get("DefaultThreadsPerCore", 1),
104104
"arch": d["ProcessorInfo"]["SupportedArchitectures"][0],
105+
"cluster_group": 'cluster' in d["PlacementGroupInfo"]["SupportedStrategies"]
105106
}
106107
for s, d in instances.items()
107108
}

citc/google.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def get_types_info(client, nodespace):
106106
"memory": int(math.pow(mt["memoryMb"], 0.7) * 0.9 + 500),
107107
"cores_per_socket": mt["guestCpus"],
108108
"threads_per_core": "1",
109+
"cluster_group": mt["name"].startswith("c2-") # only C2 currently support compact placement groups
109110
}
110111
for mt in machine_types
111112
}

0 commit comments

Comments
 (0)