App Engine Python module Basic and Manual scaling not working

后端 未结 2 390
刺人心
刺人心 2021-01-20 05:01

My Google App Engine application needs to run a lengthy calculation. Automatic scaling on my module returns DeadlineExceededError, so I tried switching to manu

相关标签:
2条回答
  • 2021-01-20 05:32

    Figured it out. I had to add a handler to my module.

    I added:

    - url: /_ah/start
      script: colors.handler.app
    

    to my handlers: and it worked.

    0 讨论(0)
  • 2021-01-20 05:33

    Interesting. I just ran into this issue as well.

    When an instance responds to the /_ah/start request with an HTTP status code of 200–299 or 404, it is considered to have successfully started and can handle additional requests. Otherwise, App Engine terminates the instance. Manual scaling instances are restarted immediately, while basic scaling instances are restarted only when needed for serving traffic.

    0 讨论(0)
提交回复
热议问题