From 8b1f8b1ee3faf4ec73e668590acacea78e745161 Mon Sep 17 00:00:00 2001 From: Joe Talerico Date: Mon, 27 Nov 2023 13:06:33 -0500 Subject: [PATCH] Update sizing for graph endpoint Update the sizing logic Signed-off-by: Joe Talerico --- backend/app/api/v1/endpoints/ocp/graph.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/app/api/v1/endpoints/ocp/graph.py b/backend/app/api/v1/endpoints/ocp/graph.py index 73d83df1..3728f0f1 100644 --- a/backend/app/api/v1/endpoints/ocp/graph.py +++ b/backend/app/api/v1/endpoints/ocp/graph.py @@ -74,9 +74,12 @@ async def trend_cpu(namespace: str, benchmark: str, count: int, version: str): if count > 50 : meta['masterNodesType'] = "m6a.4xlarge" meta['workerNodesType'] = "m5.xlarge" - else: + elif count <= 24 and count > 20 : meta['masterNodesType'] = "m6a.xlarge" meta['workerNodesType'] = "m6a.xlarge" + else : + meta['masterNodesType'] = "m5.2large" + meta['workerNodesType'] = "m5.xlarge" meta['workerNodesCount'] = count meta['platform'] = "AWS" meta['ocpVersion']= version