Techie_Learner
Techie_Learner

Reputation: 9

How to achieve Zero down time deployment using Chef?

I am looking for a zero downtime deployment chef recipe where I can deploy my java/ROR application on my server with out down time ?

Please suggest me the steps to follow to achieve Zero down time deployment both in java & ROR enviroment with examples ?

Upvotes: 0

Views: 231

Answers (1)

justMiles
justMiles

Reputation: 573

You'd need to think bigger picture than configuration management to embrace zero downtime deployments. Think of the web traffic going to your application as a stream of water and your application as a bucket. You can't perform maintenance on the bucket while water is pouring into and guarantee no spilled water. Instead, build your better bucket and put it next to the old one. Rather than managing the bucket, manage the water. When your new bucket is in place and you've confirmed it can hold water, direct the water flow to the new bucket. No lost water.

I may have butchered that analogy. Read up on blue/green deployments to gain a better understanding. In the end, Chef is going to provision the software on the machine but it's not going to manage web traffic at the network layer. Managing the traffic itself is the key to zero downtime.

Upvotes: 1

Related Questions