Skip to content

Commit

Permalink
fix performance script
Browse files Browse the repository at this point in the history
Signed-off-by: bvolovat <[email protected]>
  • Loading branch information
bvolovat committed Feb 6, 2025
1 parent 6c8a0b6 commit 6fe0c32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ def create_parallel_namespaces(node_count, skip_cluster=False):
check=True, capture_output=True, text=True
)
total_nodes = len(result.stdout.splitlines())
num_namespaces = ((total_nodes - 4) * 2, 1) # Ensure at least 1 namespace
num_namespaces = (total_nodes - 2) * 2
else:
# Calculate the number of namespaces to create
num_namespaces = ((node_count - 4) * 2, 1)
num_namespaces = (node_count - 2) * 2

print(f"Creating {num_namespaces} namespaces")

Expand Down

0 comments on commit 6fe0c32

Please sign in to comment.