From 65b28965537ff5ea23587bda3549832cd33b76ce Mon Sep 17 00:00:00 2001 From: Patrick Erdelt Date: Thu, 9 Jan 2025 18:12:50 +0100 Subject: [PATCH] Bexhoma: Pool does not have to be on same node as DBMS --- bexhoma/configurations.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bexhoma/configurations.py b/bexhoma/configurations.py index 9673f878..44a07242 100644 --- a/bexhoma/configurations.py +++ b/bexhoma/configurations.py @@ -1401,6 +1401,18 @@ def start_sut(self, app='', component='sut', experiment='', configuration=''): #print(appname) # parameter from instance name # request = limit + # we only want to manipulate nodeSelector for pool container in pooler + """ if dep['metadata']['name'] == name_pool: + if 'nodeSelector' in self.resources: + nodeSelectors = self.resources['nodeSelector'].copy() + else: + nodeSelectors = {} + for nodeSelector, value in nodeSelectors.items(): + if nodeSelector == 'cpu' or nodeSelector == 'gpu': + continue + else: + dep['spec']['template']['spec']['nodeSelector'][nodeSelector] = value + #self.resources['nodeSelector'][nodeSelector] = value """ # we only want to manipulate resources for dbms container in SUT if dep['metadata']['name'] == name: for i_container, container in reversed(list(enumerate(dep['spec']['template']['spec']['containers']))):