Commit 21622555 authored by Spiros Koulouzis's avatar Spiros Koulouzis

scale message

parent b03aaac5
147.228.242.156 vm_user /tmp/1 master
147.228.242.156 vm_user /tmp/2 slave
...@@ -85,6 +85,11 @@ def handleDelivery(message): ...@@ -85,6 +85,11 @@ def handleDelivery(message):
fo = open(compose_file, "w") fo = open(compose_file, "w")
fo.write(value) fo.write(value)
fo.close() fo.close()
elif name == "scale":
name_of_deployment = param["value"]
name_of_service = param["attributes"]["service"]
number_of_containers = param["attributes"]["number"]
if manager_type == "kubernetes": if manager_type == "kubernetes":
ret = docker_kubernetes.run(vm_list) ret = docker_kubernetes.run(vm_list)
......
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