Skip to content
Snippets Groups Projects
Commit 109016cd authored by Sören Henning's avatar Sören Henning
Browse files

Merge branch 'fix/uc2-load-division' into 'master'

fix division errors for uc2 with largen load dimension

Closes #111

See merge request !66
parents 6f2c7a2f f2a7eab6
No related branches found
No related tags found
1 merge request!66fix division errors for uc2 with largen load dimension
Pipeline #1323 skipped
...@@ -126,17 +126,15 @@ def start_workload_generator(wg_yaml, dim_value, uc_id): ...@@ -126,17 +126,15 @@ def start_workload_generator(wg_yaml, dim_value, uc_id):
num_sensors = dim_value num_sensors = dim_value
wl_max_records = 150000 wl_max_records = 150000
wl_instances = int(((num_sensors + (wl_max_records - 1)) / wl_max_records)) wl_instances = (num_sensors + wl_max_records - 1) // wl_max_records
# set parameters special for uc 2 # set parameters special for uc 2
if uc_id == '2': if uc_id == '2':
print('use uc2 stuff') print('use uc2 stuff')
num_nested_groups = dim_value num_nested_groups = dim_value
num_sensors = '4' num_sensors = 4
approx_num_sensors = int(num_sensors) ** num_nested_groups approx_num_sensors = num_sensors ** num_nested_groups
wl_instances = int( wl_instances = (approx_num_sensors + wl_max_records - 1) // wl_max_records
((approx_num_sensors + wl_max_records - 1) / wl_max_records)
)
# Customize workload generator creations # Customize workload generator creations
wg_yaml['spec']['replicas'] = wl_instances wg_yaml['spec']['replicas'] = wl_instances
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment