What is the recommended way to temporarily disable the Google App Engine application so that I can migrate the schema?

I want to disable user access to my application in order to migrate the schema. I reviewed several options and found possible disadvantages:

  • Disable data warehouse recording - I would most likely apply my entire application so that people do not see any errors, etc. In addition, I believe that turning off the recording will not allow me to perform the transfer.

    / li>
  • Disable the application - it is not clear to me that this will disable it only for my users, and I will not be able to migrate. I am also not sure about the ability to turn off / on time.

  • Redirect my domain name to a temporary page - my application will still be available on appspot.com

  • Download the new version of my application, which does not respond to requests, except on the page "temporarily down".

Any suggestions?

+4
source share
2 answers

Proposition 4 seems probably the best way to do this. Some structures have a โ€œmaintenance modeโ€ in which all incoming requests will be redirected to a page indicating that the site is down due to maintenance. If your infrastructure does not support this mode, you can simply download the new version of your application (perhaps call the maintenance version) and switch to it as your new default version. This version may be a blank application, in which all incoming requests go to the service page, indicating that the site is not working for maintenance. Then manually go to the version of your application with the migration code and execute it ( http://<version>.<appname>.appspot.com ). Switch the version of your default version to the new version with a new scheme when you are done with the migration.

Explain your other ideas.

  • Disabling recording may prevent you from even recording in the application. I believe that this was more intended to move from one application to another or to other data warehouse freeze applications.
  • Disable application will completely disable the application.
  • Redirecting your domain will delay the DNS in your migration, which may take 48 hours to fully distribute each method (switching to a temporary page and then switching to a new version).
  • As already mentioned, IMHO is the best way to do this.
+2
source

It is not possible to use both schemes and use the new version of the migration application, which uses only the new scheme. This way you can always revert to your old version.

By the way. Since the data warehouse does not have a schema, it was always possible for me to change the "schema" without bringing an application.

+2
source

All Articles