Recently I've been doing a lot of work with the Meteor web application framework. There is a lot that goes into properly deploying real time web applications. Early on in the process I wrote a set of ansible playbooks and roles to configure a production environment and deploy the Meteor code.
At a high level the idea is to have a load balancer which distributes traffic between the Meteor application instances. Using a load balancer also allows us to take application servers offline for maintenence and updates without distrupting traffic.
At a high level the idea is to have a load balancer which distributes traffic between the Meteor application instances. Using a load balancer also allows us to take application servers offline for maintenence and updates without distrupting traffic.
Below is an ansible playbook which facilitates deploying code to the application servers and the associated run.json which can be used with the fantastic process manager pm2
In a future update I hope to be able to post the complete ansible repository used to deploy and configure server for Meteor applications.