0

I have an application that does a long running job and pushes the task in the task queue. Currently, when different users login to the application and start the upload job, the job merges with the existing task and expected output is not achieved.

What I need exactly is to run different instances of app engine application for every user as every user will be needing much amount of computing power and these instances must be dynamically get created when every new user is encountered.

I had referred different docs on instance classes and scaling types, but didn't get to know how to start a new instance for every different user.

Please also suggest if there is a better solution to this.

Karan Tongay
  • 197
  • 1
  • 17
  • Can you post the code for your uploads? – Adam Lazarus Sep 23 '16 at 07:13
  • Yes, I will formulate it well and post as it is quite lengthy, but let me explain it, the upload module fetches the Google Spreadsheet from the user given url and the upload process starts with lots of computation on data, I needed that each user having different urls shall login from their google accounts and separate tasks for them should run for them in task queue and according to me separate instances for each user should get allocated with new memory and resources – Karan Tongay Sep 23 '16 at 11:57

1 Answers1

0

Though I have not used this myself, the documentation suggests this could do it for you:

<max-concurrent-requests&GT;

Optional. The number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance

Try setting that value to 1 in your appengine-web.XML (see the documentation link above for more info).

Eric Simonton
  • 5,702
  • 2
  • 37
  • 54
  • Thanks, I went through the documentation, but I found that this option is avaliable for , in my application I am using , please can you help me out with the similar configuration for ? – Karan Tongay Oct 12 '16 at 12:16