Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-orbit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Katerina Roukounaki
cloud-orbit
Commits
0d0c6cdc
Commit
0d0c6cdc
authored
Dec 06, 2014
by
Aggelos Giantsios
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set 2 repetitions per execution and vary the number of nodes as well
parent
945aa932
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
14 deletions
+23
-14
runner.py
runner.py
+23
-14
No files found.
runner.py
View file @
0d0c6cdc
...
...
@@ -22,29 +22,38 @@ def run_dist(master, slaves, version, workers, iwp):
# Configuration
reps
=
1
reps
=
2
iwp
=
False
max_cpu
=
32
versions
=
[
"short"
,
"intermediate"
,
"long"
]
master
=
{
"host"
:
"127.0.0.1"
,
"port"
:
505
5
}
master
=
{
"host"
:
"127.0.0.1"
,
"port"
:
505
0
}
slaves
=
[
{
"host"
:
"127.0.0.1"
,
"port"
:
5051
}
,
{
"host"
:
"127.0.0.1"
,
"port"
:
5052
}
,
{
"host"
:
"127.0.0.1"
,
"port"
:
5053
}
,
{
"host"
:
"127.0.0.1"
,
"port"
:
5054
}
,
{
"host"
:
"127.0.0.1"
,
"port"
:
5055
}
,
{
"host"
:
"127.0.0.1"
,
"port"
:
5056
}
,
{
"host"
:
"127.0.0.1"
,
"port"
:
5057
}
,
{
"host"
:
"127.0.0.1"
,
"port"
:
5058
}
,
{
"host"
:
"127.0.0.1"
,
"port"
:
5059
}
,
{
"host"
:
"127.0.0.1"
,
"port"
:
5060
}
]
f
=
open
(
'statistics.txt'
,
'w'
)
### 1 host, 1 slave node
for
iwp
in
[
False
,
True
]:
for
vsn
in
versions
:
for
n
in
range
(
2
,
max_cpu
+
1
):
slvs
=
slaves
[
0
:
1
]
print
(
"Slaves:
%
s, Workers:
%
s, Version:
%
s, IWP:
%
s"
%
(
slvs
,
n
,
vsn
,
iwp
),
file
=
f
)
ts
=
[]
for
_
in
range
(
reps
):
t
=
run_dist
(
master
,
slvs
,
vsn
,
n
,
iwp
)
ts
.
append
(
t
)
print
(
"
%
s"
%
ts
,
file
=
f
)
f
.
flush
()
### 1 host
for
nSlaves
in
range
(
1
,
len
(
slaves
)
+
1
):
for
iwp
in
[
False
,
True
]:
for
vsn
in
versions
:
for
n
in
range
(
2
,
max_cpu
+
1
):
slvs
=
slaves
[
0
:
nSlaves
]
print
(
"Slaves:
%
s, Workers:
%
s, Version:
%
s, IWP:
%
s"
%
(
nSlaves
,
n
,
vsn
,
iwp
),
file
=
f
)
ts
=
[]
for
_
in
range
(
reps
):
t
=
run_dist
(
master
,
slvs
,
vsn
,
n
,
iwp
)
ts
.
append
(
t
)
print
(
"
%
s"
%
ts
,
file
=
f
)
f
.
flush
()
f
.
close
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment