pub struct QueuingConfiguration {
pub queues: Option<i32>,
pub hand_size: Option<i32>,
pub queue_length_limit: Option<i32>,
}Expand description
QueuingConfiguration holds the configuration parameters for queuing
Fields§
§queues: Option<i32>queues is the number of queues for this priority level. The
queues exist independently at each apiserver. The value must be
positive. Setting it to 1 effectively precludes
shufflesharding and thus makes the distinguisher method of
associated flow schemas irrelevant. This field has a default
value of 64.
+optional
hand_size: Option<i32>handSize is a small positive number that configures the
shuffle sharding of requests into queues. When enqueuing a request
at this priority level the request’s flow identifier (a string
pair) is hashed and the hash value is used to shuffle the list
of queues and deal a hand of the size specified here. The
request is put into one of the shortest queues in that hand.
handSize must be no larger than queues, and should be
significantly smaller (so that a few heavy flows do not
saturate most of the queues). See the user-facing
documentation for more extensive guidance on setting this
field. This field has a default value of 8.
+optional
queue_length_limit: Option<i32>queueLengthLimit is the maximum number of requests allowed to
be waiting in a given queue of this priority level at a time;
excess requests are rejected. This value must be positive. If
not specified, it will be defaulted to 50.
+optional
Implementations§
Source§impl QueuingConfiguration
impl QueuingConfiguration
Sourcepub fn queues(&self) -> i32
pub fn queues(&self) -> i32
Returns the value of queues, or the default value if queues is unset.
Sourcepub fn hand_size(&self) -> i32
pub fn hand_size(&self) -> i32
Returns the value of hand_size, or the default value if hand_size is unset.
Sourcepub fn queue_length_limit(&self) -> i32
pub fn queue_length_limit(&self) -> i32
Returns the value of queue_length_limit, or the default value if queue_length_limit is unset.
Trait Implementations§
Source§impl Clone for QueuingConfiguration
impl Clone for QueuingConfiguration
Source§fn clone(&self) -> QueuingConfiguration
fn clone(&self) -> QueuingConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QueuingConfiguration
impl Debug for QueuingConfiguration
Source§impl Default for QueuingConfiguration
impl Default for QueuingConfiguration
Source§impl Hash for QueuingConfiguration
impl Hash for QueuingConfiguration
Source§impl Message for QueuingConfiguration
impl Message for QueuingConfiguration
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.