mongodb - scalable meanjs on digitalocean -
i'm trying learn deployment process can guarantee headackeless scaling of meanjs application (not in level people in big companies, not @ hobby level).
so long understood, solution work on: 1. having mongodb on digitalocean on ubuntu 2. having meanjs application (all other mongodb) in docker
then 1 can scale! because mongodb clustered separately , docker keeps scaling of application easy.
well, know sounds trivial , that's why i'm asking here: want go , learn docker , want make sure before investing time on above assumed solution!
do think guarantee easy scaling, say, simple online multiplayer game on meanjs please? thank you.
there no off shelf solution.
you can use docker swamp small deployment brings additional issues of monitoring , networking.
so here did:
- create script generate haproxy config when start/stop instance
- have mongo in cluster or replica or whatever. database not need scaled dynamically. have single mongo server scale , when can't scale vertically anymore scale horizontally creating replica set , scale until can't sharding.
so have haproxy load balancer accepts connections on port 80 , forwards droples oven private network. can write scripts use api create image deployment , fire once have more traffic either dynamically detecting response time or cpu load or whatever other metric have or statically.
i hope helps.
Comments
Post a Comment