pub struct ObjectstoreServiceConfig {
pub objectstore_url: Option<String>,
pub max_concurrent_requests: usize,
pub max_backlog: usize,
pub timeout: u64,
pub stream_timeout: u64,
pub retry_delay: f64,
pub max_attempts: NonZeroU16,
pub fallback_to_kafka: bool,
pub auth: Option<ObjectstoreAuthConfig>,
}Expand description
Configuration values for the objectstore service.
Fields§
§objectstore_url: Option<String>The base URL for the objectstore service.
This defaults to None, which means that the service will be disabled,
unless a proper configuration is provided.
max_concurrent_requests: usizeMaximum concurrency of uploads.
max_backlog: usizeMaximum size of the service input queue when max_concurrent_requests is saturated.
The service will loadshed if this threshold is reached.
timeout: u64Maximum duration of an attachment upload in seconds. Uploads that take longer are discarded.
NOTE: This timeout applies to attachments that are already in-memory. Streaming uploads
might take longer and are restricted independently by Self::stream_timeout.
stream_timeout: u64Maximum duration of an upload stream.
Streams get a larger default timeout because their duration depends on the client as well as the server.
retry_delay: f64Time between upload attempts.
max_attempts: NonZeroU16Maximum number of attempts made to upload.
fallback_to_kafka: boolWhether event attachment payloads may be sent through Kafka if objectstore upload fails.
When disabled, failed event attachments are dropped with an upload_failed
outcome instead of falling back to Store’s Kafka attachment path.
auth: Option<ObjectstoreAuthConfig>Configuration values for objectstore’s auth scheme.
Trait Implementations§
Source§impl Debug for ObjectstoreServiceConfig
impl Debug for ObjectstoreServiceConfig
Source§impl Default for ObjectstoreServiceConfig
impl Default for ObjectstoreServiceConfig
Source§impl<'de> Deserialize<'de> for ObjectstoreServiceConfigwhere
ObjectstoreServiceConfig: Default,
impl<'de> Deserialize<'de> for ObjectstoreServiceConfigwhere
ObjectstoreServiceConfig: Default,
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 ObjectstoreServiceConfig
impl RefUnwindSafe for ObjectstoreServiceConfig
impl Send for ObjectstoreServiceConfig
impl Sync for ObjectstoreServiceConfig
impl Unpin for ObjectstoreServiceConfig
impl UnsafeUnpin for ObjectstoreServiceConfig
impl UnwindSafe for ObjectstoreServiceConfig
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