Commit e56b5026 authored by Spiros Koulouzis's avatar Spiros Koulouzis

Debug messages

parent 506433fe
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
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: 129.7.98.3: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: 129.7.98.3:5000/mogswitch/inputdistributor
proxy:
container_name: ProxyTranscoder
ports:
- "8081:80"
environment:
- multicastAddrIP=225.2.2.0
- multicastAddrPort=3000
- videoWidth=176
- videoHeight=100
image: 129.7.98.3: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: 129.7.98.3: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: 129.7.98.3: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: 129.7.98.3: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: 129.7.98.3:5000/mogswitch/outputtranscoder
privileged: true
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
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: 129.7.98.3: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: 129.7.98.3:5000/mogswitch/inputdistributor
proxy:
container_name: ProxyTranscoder
ports:
- "8081:80"
environment:
- multicastAddrIP=225.2.2.0
- multicastAddrPort=3000
- videoWidth=176
- videoHeight=100
image: 129.7.98.3: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: 129.7.98.3: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: 129.7.98.3: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: 129.7.98.3: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: 129.7.98.3:5000/mogswitch/outputtranscoder
privileged: true
......@@ -9,6 +9,9 @@ import docker_kubernetes
import docker_engine
import docker_swarm
import control_agent
import sys, argparse
from threading import Thread
from time import sleep
print sys.argv
if len(sys.argv) > 1:
......@@ -23,6 +26,13 @@ channel.queue_declare(queue='deployer_queue')
path = os.path.dirname(os.path.abspath(__file__)) + "/"
def threaded_function(args):
while True:
#print "processing data events"
connection.process_data_events()
sleep(30)
def handleDelivery(message):
parsed_json = json.loads(message)
params = parsed_json["parameters"]
......@@ -82,6 +92,8 @@ def on_request(ch, method, props, body):
par["attributes"] = "null"
response["parameters"].append(par)
print "Response: %s " % response
ch.basic_publish(exchange='',
routing_key=props.reply_to,
properties=pika.BasicProperties(correlation_id = \
......@@ -92,5 +104,10 @@ def on_request(ch, method, props, body):
channel.basic_qos(prefetch_count=1)
channel.basic_consume(on_request, queue='deployer_queue')
thread = Thread(target = threaded_function, args = (1, ))
thread.start()
print(" [x] Awaiting RPC requests")
channel.start_consuming()
thread.stop()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment