Skip to content

Commit

Permalink
readability in prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gargnitingoogle committed Aug 21, 2024
1 parent e45f4c8 commit d76f553
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions perfmetrics/scripts/testing_on_gke/examples/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def __init__(self, message, machineType: str):


def resource_limits(nodeType: str) -> Tuple[dict, dict]:
"""Returns resource limits and requests for cpu/memory different machine types."""
if nodeType == "n2-standard-96":
return {"cpu": 96, "memory": "384Gi"}, {"cpu": 90, "memory": "300Gi"}
elif nodeType == "n2-standard-48":
Expand All @@ -162,7 +163,7 @@ def resource_limits(nodeType: str) -> Tuple[dict, dict]:
return {"cpu": 32, "memory": "128Gi"}, {"cpu": 30, "memory": "100Gi"}
else:
raise UnknownMachineTypeError(
f"Unsupported machine-type: {nodeType}. Unable to decide the"
" resource-limit for it.",
f"Unknown machine-type: {nodeType}. Unable to decide the"
" resource-limits for it.",
nodeType,
)

0 comments on commit d76f553

Please sign in to comment.