Blue Green deployment - At the minimum I would need two droplets right?

January 15, 2016 621 views
DigitalOcean Ubuntu

We have a very basic setup with a single droplet. Currently in order to test changes we have to push them to the droplet and then they are available to all users. We don't want that. We want a staging server. I have been reading articles about floating IPs and Blue-Green deployments.
From what I understand, just floating IPs won't be enough. There would still be a need for two droplets for code to be deployed. One having production code and one having staging code. The floating IPs would be use to switch from one to another once testing and QA is done.
Am I correct in my assumptions?

2 Answers

That all sounds right. Technically if may be possible to set up staging and production for some types of apps on a single droplet by using multiple databases and virtualhosts going with two seperate ones would be best practice to ensure that things stay separated.

I don't think you want a floating IP for this. I think you want pointing to your production droplet and pointing to your staging droplet.

Otherwise, when you repoint to your staging droplet, all users would be using your untested staging code (same effect as deploying the update directly to your production droplet).

Have another answer? Share your knowledge.