by nodesocket · 10y ago · 0 comments
Though I don't use pm2 for deployments. I create new servers (immutable infrastructure) on AWS every deploy, and use NGINX Plus dynamic upstream to add the new backends and remove the old ones. There is something pleasing about creating new servers and destroying old servers every deploy.
Also check out Drone (https://github.com/drone/drone) for all your CI and deployment needs. It uses Docker and written in go.
If you have a more polygot stack, or rely on other non-node systems like RabbitMQ or whatever, standardizing on Docker containers is a no brainer though.
So every deploy incurs that usage rounding. Depending on the frequency of deploys and the number of servers being deployed to, that adds up.