Skip to content

Commit

Permalink
Added another example for groups.
Browse files Browse the repository at this point in the history
Summary: Added another example for groups and renamed Group.json to Group-example-1.json

Test Plan: Make sure the example works.

Reviewers: kensipe, jenkins, ichernetsky

Reviewed By: ichernetsky

Subscribers: marathon-dev

Differential Revision: https://phabricator.mesosphere.com/D989
  • Loading branch information
ajain13 committed Aug 17, 2017
1 parent 053904f commit eb50f22
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
File renamed without changes.
50 changes: 50 additions & 0 deletions examples/Group-2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"id":"/department-1",
"groups":[
{
"id":"/department-1/database",
"apps":[
{
"id":"/department-1/database/mesos-docker",
"container":{
"docker":{
"image":"python:3"
},
"type":"MESOS"
},
"cmd":"sleep 20 && python3 -m http.server $PORT0",
"cpus":0.2,
"mem":16.0,
"instances":1,
"healthChecks":[
{
"gracePeriodSeconds":300,
"intervalSeconds":60,
"timeoutSeconds":20,
"maxConsecutiveFailures":3,
"portIndex":0,
"path":"/",
"protocol":"HTTP",
"ignoreHttp1xx":false
}
]
}
]
},
{
"id":"/department-1/service",
"dependencies":[
"/department-1/database"
],
"apps":[
{
"id":"/department-1/service/basic-app-1",
"cmd":"sleep 2000",
"instances":1,
"cpus":0.5,
"mem":32
}
]
}
]
}

0 comments on commit eb50f22

Please sign in to comment.