pub struct Limits {Show 27 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_log_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 max_pool_concurrency: usize,
pub query_timeout: u64,
pub shutdown_timeout: u64,
pub keepalive_timeout: u64,
pub idle_timeout: Option<u64>,
pub max_connections: Option<usize>,
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_log_size: ByteSize
The maximum payload size for a span.
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.
max_pool_concurrency: usize
Controls the maximum concurrency of each worker thread.
Increasing the concurrency, can lead to a better utilization of worker threads by
increasing the amount of I/O done concurrently.
Currently has no effect on defaults to 1
.
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 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.
max_connections: Option<usize>
Sets the maximum number of concurrent connections.
Upon reaching the limit, the server will stop accepting connections.
By default there is no limit.
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.