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.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5940c-45524.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5940c-45524.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?