Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
e6e8223e
Commit
e6e8223e
authored
Mar 07, 2017
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in control agent
parent
b05c8605
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
105 additions
and
3 deletions
+105
-3
MOG.yaml
doc/MOG.yaml
+98
-0
cluster_file
drip-deployer/cluster_file
+2
-0
control_agent.py
drip-deployer/control_agent.py
+1
-1
control_agent.pyc
drip-deployer/control_agent.pyc
+0
-0
rpc_server.py
drip-planner/rpc_server.py
+4
-2
No files found.
doc/MOG.yaml
0 → 100644
View file @
e6e8223e
version
:
'
3'
services
:
input
:
container_name
:
InputDistributor
ports
:
-
"
2000:2000/udp"
environment
:
-
inPort=2000
-
multicastAddrIP=225.2.2.0
-
multicastAddrPort=3000
-
waitingTime=1000
-
videoWidth=176
-
videoHeight=100
image
:
145.100.133.241:5000/mogswitch/inputdistributor
input2
:
container_name
:
InputDistributor2
ports
:
-
"
2002:2002/udp"
environment
:
-
inPort=2002
-
multicastAddrIP=225.2.2.2
-
multicastAddrPort=3002
-
waitingTime=1000
-
videoWidth=176
-
videoHeight=100
image
:
145.100.133.241:5000/mogswitch/inputdistributor
proxy
:
container_name
:
ProxyTranscoder
ports
:
-
"
8081:80"
environment
:
-
multicastAddrIP=225.2.2.0
-
multicastAddrPort=3000
-
videoWidth=176
-
videoHeight=100
image
:
145.100.133.241:5000/mogswitch/proxytranscoder
privileged
:
true
proxy2
:
container_name
:
ProxyTranscoder2
ports
:
-
"
8082:80"
environment
:
-
multicastAddrIP=225.2.2.2
-
multicastAddrPort=3002
-
videoWidth=176
-
videoHeight=100
image
:
145.100.133.241:5000/mogswitch/proxytranscoder
privileged
:
true
proxyOut
:
container_name
:
ProxyTranscoderOut
ports
:
-
"
8085:80"
environment
:
-
multicastAddrIP=226.2.2.2
-
multicastAddrPort=6000
-
videoWidth=176
-
videoHeight=100
image
:
145.100.133.241:5000/mogswitch/proxytranscoder
privileged
:
true
switcher
:
container_name
:
VideoSwitcher
ports
:
-
"
8008:8008"
environment
:
# PROXY 1
-
multicastAddrIP=225.2.2.0
-
multicastAddrPort=3000
# PROXY 2
-
multicastAddrIP2=225.2.2.2
-
multicastAddrPort2=3002
# SWITCHER SETTINGS
-
switcherOutAddrIP=226.2.2.2
-
switcherOutAddrPort=6000
-
switcherREST=8008
-
waitingTime=1000
-
videoWidth=176
-
videoHeight=100
image
:
145.100.133.241:5000/mogswitch/videoswitcher
output
:
container_name
:
OutputTranscoder
ports
:
-
"
4000:4000"
environment
:
-
multicastAddrIP=226.2.2.2
-
multicastAddrPort=6000
-
videoWidth=176
-
videoHeight=100
-
OutIP=192.168.1.194
-
OutPort=4000
image
:
145.100.133.241:5000/mogswitch/outputtranscoder
privileged
:
true
drip-deployer/cluster_file
0 → 100644
View file @
e6e8223e
54.236.54.229 ubuntu /tmp/1 master
54.236.54.229 ubuntu /tmp/2 slave
drip-deployer/control_agent.py
View file @
e6e8223e
...
...
@@ -40,7 +40,7 @@ def install_agent(vm, vm_list):
sftp
.
put
(
file_path
+
"/control_agent.sh"
,
"control_agent.sh"
)
stdin
,
stdout
,
stderr
=
ssh
.
exec_command
(
"sudo sh /tmp/control_agent.sh"
)
stdout
.
read
()
stdin
,
stdout
,
stderr
=
ssh
.
exec_command
(
"nohup python /root/Swarm-Agent/run.py>/dev/null 2>&1 &"
)
stdin
,
stdout
,
stderr
=
ssh
.
exec_command
(
"nohup
sudo
python /root/Swarm-Agent/run.py>/dev/null 2>&1 &"
)
stdout
.
read
()
print
"
%
s: ========= Control Agent Installed ========="
%
(
vm
.
ip
)
except
Exception
as
e
:
...
...
drip-deployer/control_agent.pyc
0 → 100644
View file @
e6e8223e
File added
drip-planner/rpc_server.py
View file @
e6e8223e
...
...
@@ -113,15 +113,17 @@ def handleDelivery(message):
par
[
"url"
]
=
"null"
par
[
"encoding"
]
=
"UTF-8"
docker
=
json1
[
nodeDic1
[
value
]]
.
get
(
'artifacts'
)
.
get
(
'docker_image'
)
.
get
(
'file'
)
name
=
str
(
nodeDic1
[
value
])
#print("Name: %s Docker: %s" % (name, docker))
res1
[
"name"
]
=
str
(
nodeDic1
[
value
])
res1
[
"size"
]
=
res
[
str
(
value
)]
res1
[
"docker"
]
=
str
(
docker
)
#v = str("{\\'name\\':\\'"+str(nodeDic1[value])+"\\',\\'size\\':\\'"+res[str(value)]+"\\',\\'docker\\':\\'"+docker+"\\'}")
par
[
"value"
]
=
res1
par
[
"attributes"
]
=
"null"
print
(
"Parameter:
%
s"
%
par
)
outcontent
[
"parameters"
]
.
append
(
par
)
print
(
"Output message:
%
s"
%
outcontent
)
return
outcontent
...
...
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