node.js - How to access a web application running on Mesos? -
i'm quite new mesos, , i'm still trying wrap head around concepts , ideas. far think have understood mesos tries abstract away data center , present 1 big computer.
using mesos + docker integration possible run any application on mesos, long application can run inside docker container.
this makes me expect can use mesos run node.js applications. shouldn't hard set up.
i need create new application, set instances & co., , go it. mesos deploys application , takes care of distributing on data center. when asking mesos endpoints can find out ip addresses / host names , ports created.
but, of course, want web application available @ specific domain or subdomain, ideally port 80 or 443, using load-balancing , high-availability. there anything built mesos can use that?
have @ haproxy (load balancer), application might run on node , in case of failure migrated node (and need update ip address of our app). marathon framework (sort of init.d mesos) can current ip address , port , update haproxy config.
here sample project: https://github.com/riywo/sample-fluentd-on-mesos-docker
Comments
Post a Comment