how to deploy and scale meteor applications
TRANSCRIPT
Duy Tai NguyenWWW.DESIGNVELOPER.COM
ARCHITECTURES
Application
Mongodb
Application
Mongodb
WWW.DESIGNVELOPER.COM
ARCHITECTURES
Application
Mongodb
…Application Application
WWW.DESIGNVELOPER.COM
REPLICATION
WWW.DESIGNVELOPER.COM
SHARDING
WWW.DESIGNVELOPER.COM
PROBLEM➤ 5 servers➤ 1 primary + 3 secondaries➤ Afford to handle > 5000 concurrent users
WWW.DESIGNVELOPER.COM
METEOR UP
➤ Create MUP.JSON
https://github.com/arunoda/meteor-up
WWW.DESIGNVELOPER.COM
MUP.JSON
5 servers
1 primary + 3 secondaries
WWW.DESIGNVELOPER.COM
1 PRIMARY + 3 SECONDARIES➤ Create 4 servers➤ Run mongodb
➤ In master
mongod --dbpath mongodb/ --replSet Lumin --auth --keyFile mongo-keyfile
~> mongo> db.auth(‘username’, ‘passowrd’)> use admin> rs.initiate()> rs.add(‘54.174.9.184:27017’)> rs.add(‘54.193.82.247:27017’)> rs.add(‘54.193.109.99:27017’)> rs.status()
WWW.DESIGNVELOPER.COM
DEPLOY➤ Deploy for the first time
➤ See logs
➤ Change cofiguration
> mup setup> mup deploy
> mup logs -f
> mup reconfig
WWW.DESIGNVELOPER.COM
OTHER SOLUTIONS➤ Galaxy➤ Meteor + Docker
WWW.DESIGNVELOPER.COM
THANKS FOR LISTENING
WWW.DESIGNVELOPER.COM