On Tue, Oct 20, 2009 at 7:04 AM, Greg Tracy <[email protected]> wrote:
> queue: > - name: email-queue > rate: 8/m > bucket_size: 10 Do you understand the effect of the bucket_size parameter? I bet you probably want that to be 1 here. In short, imagine a bucket with apples in it. bucket_size controls the maximum number of apples that the bucket will hold. The rate does not refer to how fast the bucket is emptied, but how fast the bucket is refilled. When you want to run a task, the system waits until there is at least one apple in the bucket, removes the apple, and then runs the task. This has the effect that the initial bucket_size number of tasks will be attempted almost immediately any time there's been an extended break (the bucket has refilled), and it is only rate-limited when the bucket is empty. Making the bucket_size equal to 1 effectively forces the rate-limit to always be in effect. Dave. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
