Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change flows from 1M to 15M #16

Merged
merged 1 commit into from
Jun 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
11 changes: 7 additions & 4 deletions stateful_traffic_gen/hero_scale/hero_helper/hero_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class HeroHelper:
'userObjectiveType_cps': "connectionRate",
'userObjectiveType_tcp_bg': "concurrentConnections",
'initial_objective': 15000000,
'initial_objective_tcp_bg': 4000000,
'initial_objective_tcp_bg': 15000000,
'threshold': 100000,
'target_failures': 1000,
'MAX_CPS': 32000000,
Expand Down Expand Up @@ -347,9 +347,9 @@ def _adjust_to_port_settings(self):

if slot_total == 4:
self.user_init_obj = 3600000
self.user_init_obj_tcp_bg = 1000000
#self.user_init_obj_tcp_bg = 1000000
self.url_patch_dict['initial_objective'] = self.user_init_obj
self.url_patch_dict['initial_objective_tcp_bg'] = self.user_init_obj_tcp_bg
#self.url_patch_dict['initial_objective_tcp_bg'] = self.user_init_obj_tcp_bg
self.enis = ENI_COUNT
self.nsgs = self.enis * self.ip_ranges_per_vpc

Expand Down Expand Up @@ -903,7 +903,10 @@ def _create_server_ipmacvlan(self, nsgs, enis, ip_ranges_per_vpc):
server_ip_range_settings = []
server_mac_range_settings = []
server_vlan_range_settings = []
bg_net_split = int(enis * self.tcp_bg_adjust_percentage)
if enis == 2:
bg_net_split = 1
else:
bg_net_split = int(enis * self.tcp_bg_adjust_percentage)

if self.split_networks is True and self.test_config_type == 'cps':
eni = 1
Expand Down