Created
October 22, 2015 05:52
-
-
Save indykish/8276366c2732328c9217 to your computer and use it in GitHub Desktop.
The base declarative directive of megam cloud assembly json which illustrates that an app in git/image, docker git/image, service can be launched.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"assembly_name", | |
"components":[ | |
"component_1" | |
], | |
"tosca_type":"tosca.torpedo.coreos", | |
"inputs":[ | |
{ | |
"key":"domain", | |
"value":"megambox.com" | |
}, | |
{ | |
"sshkey":"hokeydockey" | |
}, | |
{ | |
"provider":"one/docker" | |
}, | |
{ | |
"ram":"258" | |
}, | |
{ | |
"cpu":"9990" | |
} | |
], | |
"outputs":[ | |
{ | |
"publicip":"102.92.63.52" | |
}, | |
{ | |
"privateip":"192.168.2.1" | |
}, | |
{ | |
"nodeip":"megnode1.megam.io" | |
} | |
], | |
"status":"deploying, creating, launched, bootstrapping, created, stateup, running, error", | |
"policies":[ | |
{ | |
"name":"placement policy", | |
"type":"colocated", | |
"members":[ | |
"apache2-megam", | |
"rails2-petstore" | |
] | |
}, | |
{ | |
"name":"HA policy", | |
"type":"ha", | |
"members":[ | |
"apache2-megam" | |
] | |
}, | |
{ | |
"name":"CPU scaling for apache2 server", | |
"type":"scaling", | |
"members":[ | |
"apache2-megam" | |
], | |
"rules":[ | |
{ | |
"name":"cpu load", | |
"type":"cpu", | |
"cpu_threshhold":"80" | |
}, | |
{ | |
"name":"cpu load", | |
"type":"mem", | |
"mem_threshhold":"80" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment