Hi Alexandru,

It's just a guess, but one possibility is that one of your task keeps
adding another task and then fails, and as a result, you have lots of
similar tasks in your queue. Here are few suggestions to prevent it
from happening.

* Use named task for preventing task bomb
https://developers.google.com/appengine/docs/java/taskqueue/overview#Task_Names
If you try to add a task with the same name as one of the recent
tasks, it'll throw an error. You can just catch that error and ignore
it in most cases.

* Set appropriate retry count for that queue
https://developers.google.com/appengine/docs/java/config/queue#Configuring_Retry_Attempts_for_Failed_Tasks

Hope it helps!

-- Takashi

On Thu, Jun 21, 2012 at 5:33 AM, Alexandru Farcaş
<[email protected]> wrote:
> We had a short period (~40 minutes) when the number of instances increased
> from 2-3 to ~30 which caused a very hugh increasion of frontend instance
> hour cost. There was also a problem with the datastore read operations (10
> times higher for this period)
>
> I think that this happened because a task was multiplied >2000 times. This
> happened to me a long time ago (2, 3 times) when in a few seconds a single
> task multiplied more than 2000 times and make the same operation (in my case
> the read operation). I can't find anything from logs because the space is
> full with com.google.apphosting.api.ApiProxy$OverQuotaException  because I
> had a budget limit on my app (which was reached).
>
>
> Another unusal thing is that my app has 8 idle instances (normally it has
> 1-2)
>
> My app id: ebashr
> (HR, AppEngine Java 1.6.3 sdk)
>
> --
> 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/-/rRDLKn95_tAJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.



-- 
Takashi Matsuo | Developer Advocate | [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to