Web background prompt during server restart phase

the backend project management system of our company has a server upgrade feature, that is, he will update the system after uploading files, and then there will be a restart process after the upgrade is successful, usually about 10 seconds. However, after I upload the files at the backend, the web page is still visible because of the cache, and I will redirect the login page according to the upgrade prompt after uploading the files at the backend, but will prompt not found (because the server is restarting. I don"t know if there is any optimization plan, but the system is an executable file compiled in c language (web resources are also compiled)

Apr.01,2021

system upgrade, change access address default access file (usually prompted by the system to upgrade), upgrade is complete, restore access default file


you can use nginx reverse proxy, when the system is not available, proxy to a static page on a server


there are two ways to say:

  • the background system, just like the client online games, can send a shutdown notice in advance to tell the system to be maintained during this period of time. There is no problem with this.
  • or add another server, two servers can be smoothly upgraded. I don't understand the details, but I have this idea.
Menu