Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
109016cd
Commit
109016cd
authored
4 years ago
by
Sören Henning
Browse files
Options
Downloads
Plain Diff
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
!66
fix division errors for uc2 with largen load dimension
Pipeline
#1323
skipped
Stage: triggers
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
execution/run_uc.py
+4
-6
4 additions, 6 deletions
execution/run_uc.py
with
4 additions
and
6 deletions
execution/run_uc.py
+
4
−
6
View file @
109016cd
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment