Hi,
  The rate is like an average upper bound;  in other words, the
token-adding resolution is the unit of the rate you set.  And, it is
'bursty,' so if you set a rate of 50/M you might very well have 50
tasks execute in the first second then the queue will not execute any
tasks for about 59 seconds.  Setting a higher bucket_size will let the
queue 'burst' at a higher rate, I usually see that after a queue has
emptied.

  At least that's how I've seen the task-queue behave.



Robert





On Mon, Jan 31, 2011 at 14:57, HalcyonDays <[email protected]> wrote:
> So I've read through a couple of things about the Task Queue's Token-
> Bucket system, and I've taken a look at the wikipedia article to no
> avail, so forgive me if this question has been answered elsewhere:
>
> What is the resolution of the clock that deposits tokens into the
> bucket for each queue?  Is its minimum resolution "per second?"
> i.e.  If I say, "I want my rate to be 10/s," are 10 tokens deposited
> into the bucket every second, or is one token added every 10th of a
> second?
>
> It seems like if the resolution is only per second, the rate is
> limited not only by the user's specification, but also by the bucket
> size...
>
> For example: If I have a specified rate of 50/s but a bucket size of 5
> and the system deposits 50 tokens into the bucket every second, are
> the additional 45 just thrown away?  Does my rate actually become 5/s?
>
> I'm specifically using the Java app engine, if there's a difference
> between the Task Queues in Python/Java.
>
> --
> 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.
>
>

-- 
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