Struct google_cloudtasks2_beta2::RateLimits [−][src]
pub struct RateLimits {
pub max_tasks_dispatched_per_second: Option<f64>,
pub max_burst_size: Option<i32>,
pub max_concurrent_tasks: Option<i32>,
}Rate limits.
This message determines the maximum rate that tasks can be dispatched by a queue, regardless of whether the dispatch is a first task attempt or a retry.
This type is not used in any activity, and only used as part of another schema.
Fields
max_tasks_dispatched_per_second: Option<f64>
The maximum rate at which tasks are dispatched from this queue.
The maximum allowed value is 500.
- For App Engine queues, this field is 1 by default.
- For pull queues, this field is output only and always 10,000.
In addition to the
max_tasks_dispatched_per_secondlimit, a maximum of 10 QPS of CloudTasks.PullTasks requests are allowed per queue.
This field has the same meaning as rate in queue.yaml.
max_burst_size: Option<i32>
Output only. The max burst size.
Max burst size limits how fast the queue is processed when many tasks are in the queue and the rate is high. This field allows the queue to have a high rate so processing starts shortly after a task is enqueued, but still limits resource usage when many tasks are enqueued in a short period of time.
- For App Engine queues, if RateLimits.max_tasks_dispatched_per_second is 1, this field is 10; otherwise this field is RateLimits.max_tasks_dispatched_per_second / 5.
- For pull queues, this field is output only and always 10,000.
Note: For App Engine queues that were created through
queue.yaml/xml, max_burst_size might not have the same
settings as specified above; CloudTasks.UpdateQueue can be
used to set max_burst_size only to the values specified above.
This field has the same meaning as bucket_size in queue.yaml.
max_concurrent_tasks: Option<i32>
The maximum number of concurrent tasks that Cloud Tasks allows to be dispatched for this queue. After this threshold has been reached, Cloud Tasks stops dispatching tasks until the number of concurrent requests decreases.
The maximum allowed value is 5,000.
- For App Engine queues, this field is 10 by default.
- For pull queues, this field is output only and always -1, which indicates no limit.
This field has the same meaning as max_concurrent_requests in queue.yaml.
Trait Implementations
impl Default for RateLimits[src]
impl Default for RateLimitsfn default() -> RateLimits[src]
fn default() -> RateLimitsReturns the "default value" for a type. Read more
impl Clone for RateLimits[src]
impl Clone for RateLimitsfn clone(&self) -> RateLimits[src]
fn clone(&self) -> RateLimitsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for RateLimits[src]
impl Debug for RateLimitsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Part for RateLimits[src]
impl Part for RateLimitsAuto Trait Implementations
impl Send for RateLimits
impl Send for RateLimitsimpl Sync for RateLimits
impl Sync for RateLimits