pub struct Limits {Show 24 fields
pub max_concurrent_requests: usize,
pub max_concurrent_queries: usize,
pub max_event_size: ByteSize,
pub max_attachment_size: ByteSize,
pub max_attachments_size: ByteSize,
pub max_client_reports_size: ByteSize,
pub max_check_in_size: ByteSize,
pub max_envelope_size: ByteSize,
pub max_session_count: usize,
pub max_api_payload_size: ByteSize,
pub max_api_file_upload_size: ByteSize,
pub max_api_chunk_upload_size: ByteSize,
pub max_profile_size: ByteSize,
pub max_span_size: ByteSize,
pub max_statsd_size: ByteSize,
pub max_metric_buckets_size: ByteSize,
pub max_replay_compressed_size: ByteSize,
pub max_replay_message_size: ByteSize,
pub max_thread_count: usize,
pub query_timeout: u64,
pub shutdown_timeout: u64,
pub keepalive_timeout: u64,
pub idle_timeout: Option<u64>,
pub tcp_listen_backlog: u32,
/* private fields */
}
Expand description
Controls various limits
Fields§
§max_concurrent_requests: usize
How many requests can be sent concurrently from Relay to the upstream before Relay starts buffering.
max_concurrent_queries: usize
How many queries can be sent concurrently from Relay to the upstream before Relay starts buffering.
The concurrency of queries is additionally constrained by max_concurrent_requests
.
max_event_size: ByteSize
The maximum payload size for events.
max_attachment_size: ByteSize
The maximum size for each attachment.
max_attachments_size: ByteSize
The maximum combined size for all attachments in an envelope or request.
max_client_reports_size: ByteSize
The maximum combined size for all client reports in an envelope or request.
max_check_in_size: ByteSize
The maximum payload size for a monitor check-in.
max_envelope_size: ByteSize
The maximum payload size for an entire envelopes. Individual limits still apply.
max_session_count: usize
The maximum number of session items per envelope.
max_api_payload_size: ByteSize
The maximum payload size for general API requests.
max_api_file_upload_size: ByteSize
The maximum payload size for file uploads and chunks.
max_api_chunk_upload_size: ByteSize
The maximum payload size for chunks
max_profile_size: ByteSize
The maximum payload size for a profile
max_span_size: ByteSize
The maximum payload size for a span.
max_statsd_size: ByteSize
The maximum payload size for a statsd metric.
max_metric_buckets_size: ByteSize
The maximum payload size for metric buckets.
max_replay_compressed_size: ByteSize
The maximum payload size for a compressed replay.
max_replay_message_size: ByteSize
The maximum size for a replay recording Kafka message.
max_thread_count: usize
The maximum number of threads to spawn for CPU and web work, each.
The total number of threads spawned will roughly be 2 * max_thread_count
. Defaults to
the number of logical CPU cores on the host.
query_timeout: u64
The maximum number of seconds a query is allowed to take across retries. Individual requests have lower timeouts. Defaults to 30 seconds.
shutdown_timeout: u64
The maximum number of seconds to wait for pending envelopes after receiving a shutdown signal.
keepalive_timeout: u64
Server keep-alive timeout in seconds.
By default keep-alive is set to a 5 seconds.
idle_timeout: Option<u64>
Server idle timeout in seconds.
The idle timeout limits the amount of time a connection is kept open without activity. Setting this too short may abort connections before Relay is able to send a response.
By default there is no idle timeout.
tcp_listen_backlog: u32
The TCP listen backlog.
Configures the TCP listen backlog for the listening socket of Relay.
See man listen(2)
for a more detailed description of the listen backlog.
Defaults to 1024
, a value google has been using for a long time.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Limits
impl<'de> Deserialize<'de> for Limits
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnwindSafe for Limits
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more