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
b4b4f709
Commit
b4b4f709
authored
Dec 06, 2014
by
Aggelos Giantsios
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Slaves will use 2 cores and we'll have up to 8 slaves
This setup is for greedy.softlab.ntua.gr
parent
0d0c6cdc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
runner.py
runner.py
+3
-5
No files found.
runner.py
View file @
b4b4f709
...
@@ -7,7 +7,7 @@ import subprocess, time
...
@@ -7,7 +7,7 @@ import subprocess, time
def
run_dist
(
master
,
slaves
,
version
,
workers
,
iwp
):
def
run_dist
(
master
,
slaves
,
version
,
workers
,
iwp
):
# Setup the slave nodes
# Setup the slave nodes
for
slave
in
slaves
:
for
slave
in
slaves
:
cmd
=
"./orbit dist slave
%
s
%
s"
%
(
slave
[
"host"
],
slave
[
"port"
])
cmd
=
"./orbit
+RTS -N2 -RTS
dist slave
%
s
%
s"
%
(
slave
[
"host"
],
slave
[
"port"
])
process
=
subprocess
.
Popen
(
cmd
,
shell
=
True
)
process
=
subprocess
.
Popen
(
cmd
,
shell
=
True
)
time
.
sleep
(
2
)
time
.
sleep
(
2
)
# Run the master node
# Run the master node
...
@@ -24,7 +24,7 @@ def run_dist(master, slaves, version, workers, iwp):
...
@@ -24,7 +24,7 @@ def run_dist(master, slaves, version, workers, iwp):
reps
=
2
reps
=
2
iwp
=
False
iwp
=
False
max_cpu
=
32
max_cpu
=
16
versions
=
[
"short"
,
"intermediate"
,
"long"
]
versions
=
[
"short"
,
"intermediate"
,
"long"
]
master
=
{
"host"
:
"127.0.0.1"
,
"port"
:
5050
}
master
=
{
"host"
:
"127.0.0.1"
,
"port"
:
5050
}
slaves
=
[
{
"host"
:
"127.0.0.1"
,
"port"
:
5051
}
slaves
=
[
{
"host"
:
"127.0.0.1"
,
"port"
:
5051
}
...
@@ -35,8 +35,6 @@ slaves = [ {"host": "127.0.0.1", "port": 5051}
...
@@ -35,8 +35,6 @@ slaves = [ {"host": "127.0.0.1", "port": 5051}
,
{
"host"
:
"127.0.0.1"
,
"port"
:
5056
}
,
{
"host"
:
"127.0.0.1"
,
"port"
:
5056
}
,
{
"host"
:
"127.0.0.1"
,
"port"
:
5057
}
,
{
"host"
:
"127.0.0.1"
,
"port"
:
5057
}
,
{
"host"
:
"127.0.0.1"
,
"port"
:
5058
}
,
{
"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'
)
f
=
open
(
'statistics.txt'
,
'w'
)
...
@@ -46,7 +44,7 @@ f = open('statistics.txt', 'w')
...
@@ -46,7 +44,7 @@ f = open('statistics.txt', 'w')
for
nSlaves
in
range
(
1
,
len
(
slaves
)
+
1
):
for
nSlaves
in
range
(
1
,
len
(
slaves
)
+
1
):
for
iwp
in
[
False
,
True
]:
for
iwp
in
[
False
,
True
]:
for
vsn
in
versions
:
for
vsn
in
versions
:
for
n
in
range
(
2
,
max_cpu
+
1
):
for
n
in
range
(
2
,
2
*
max_cpu
+
1
,
2
):
slvs
=
slaves
[
0
:
nSlaves
]
slvs
=
slaves
[
0
:
nSlaves
]
print
(
"Slaves:
%
s, Workers:
%
s, Version:
%
s, IWP:
%
s"
%
(
nSlaves
,
n
,
vsn
,
iwp
),
file
=
f
)
print
(
"Slaves:
%
s, Workers:
%
s, Version:
%
s, IWP:
%
s"
%
(
nSlaves
,
n
,
vsn
,
iwp
),
file
=
f
)
ts
=
[]
ts
=
[]
...
...
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