Apache Marathon app and container relation -
i understand relation between marathon app , container. so, marathon app definition can contain single container definition (1:1)? far understand marathon rest api, link attached, answer yes.
https://mesosphere.github.io/marathon/docs/rest-api.html#post-/v2/apps
but supposed use app groups in order define such complex applications built more single container? have checked kubernetes, , idea of "pod" in case seems convenient build such applications, composed multiple containers, containers in same pod have single network stack, , application scaling happens on pod level.
can say, kubernetes pod corresponds marathon app group? or should not try find similarities, rather should better understand marathon philosophy?
thank you!
regards,
laszlo
an app in marathon specifies how spawn tasks of application. while can specify how many tasks want spawn, every single on of these tasks corresponds 1 command or container.
to you, need understand more use case.
groups can used organize related apps including dependencies. tasks of apps not co-located on same host.
if need co-location, need either create container multiple processed or use constraints directly specify on host want run tasks.
Comments
Post a Comment