Question

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

Posted January 15, 2016 2.8k views
UbuntuDigitalOcean

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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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 domain.com pointing to your production droplet and qa.domain.com pointing to your staging droplet.

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

Submit an Answer