Latency:
>Today I decided to go faster and configured the queue to run at 20/s with max_concurrent of 3000, s
I am surprised that if you don’t have Multi-thread enabled that you don’t have 3000 instances.
Probably you hit a hard Quota limit.
I would have borrowed Ikai’s code.
http://ikaisays.com/2010/06/29/using-asynchronous-urlfetch-on-java-app-engine/
Done the fetches
Then async puts to the DB.
I’d have done this on a Back End Instance so the task could take longer.
150k isn’t very many, Assuming the fetch completed in a reasonable amount of time I’d do 8 or 15 at a time. I’d have another app/url set the pace. You could set a cron to fire every 5s or something similar on a bit of code that all it did was fire 4 of the backends, or 8 or 16 or 64. So that you could change the speed as you saw that things were working.
Today I decided to go faster and configured the queue to run at 20/s with max_concurrent of 3000,
> Lower max_concurrent right away!
Disable app Right away. Fix code. Try again.
Always do 1 before you do 50
Always do 50 before you do 1000
Always do 1000 before you do 100k
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/Kmmd_14YDmQJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Imports should not be in your Primary app.
You should have a version specific to the task, and if the world ends or goes wrong you upload a new version over the top of the importer that doesn’t do anything.
Brandon Wirtz |
| |||
| ||||
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/VIGISa4Om8sJ.