P
P
pup_pupets2016-05-15 02:42:55
Ruby on Rails
pup_pupets, 2016-05-15 02:42:55

How to update production without reboot?

There is a resource that comes to about 10 thousand people a day. I don’t want to stop the server even for half an hour, because people work there. How to update it then? Somehow the habr is updated, or other sites without reboot. But how? Staying out of develop mode is of course easy, but alas

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
vsuhachev, 2016-05-15
@vsuhachev

If we are talking only about a rail application, then you need to precompile the assets in advance, then the restart process should not take much time. Also, many servers like unicorn or puma support a soft restart mode when old workers (which are idle) are gradually extinguished and replaced by workers with new code. Those. your application will work simultaneously both in the old form and in the new one for some time, so you need to clearly understand that it can work this way. For example, migrations should be written in such a way that this is possible and should be worked out before a restart.

C
Cyrilca, 2016-05-15
@Cyrilca

Mina

A
Andrey Andreev, 2016-05-15
@b0nn1e

https://github.com/capistrano/rails

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question