Skip to content

Commit

Permalink
Bexhoma: Pool does not have to be on same node as DBMS
Browse files Browse the repository at this point in the history
  • Loading branch information
perdelt committed Jan 9, 2025
1 parent 6aff91b commit 65b2896
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bexhoma/configurations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']))):
Expand Down

0 comments on commit 65b2896

Please sign in to comment.