pub struct ConnectorConfig {
pub transport: TransportConfig,
pub format: Option<FormatConfig>,
pub output_buffer_config: OutputBufferConfig,
pub max_batch_size: u64,
pub max_queued_records: u64,
pub paused: bool,
}Expand description
A data connector’s configuration
Fields§
§transport: TransportConfigTransport endpoint configuration.
format: Option<FormatConfig>Parser configuration.
output_buffer_config: OutputBufferConfigOutput buffer configuration.
max_batch_size: u64Maximum batch size, in records.
This is the maximum number of records to process in one batch through the circuit. The time and space cost of processing a batch is asymptotically superlinear in the size of the batch, but very small batches are less efficient due to constant factors.
This should usually be less than max_queued_records, to give the
connector a round-trip time to restart and refill the buffer while
batches are being processed.
Some input adapters might not honor this setting.
The default is 10,000.
max_queued_records: u64Backpressure threshold.
Maximal number of records queued by the endpoint before the endpoint is paused by the backpressure mechanism.
For input endpoints, this setting bounds the number of records that have been received from the input transport but haven’t yet been consumed by the circuit since the circuit, since the circuit is still busy processing previous inputs.
For output endpoints, this setting bounds the number of records that have
been produced by the circuit but not yet sent via the output transport endpoint
nor stored in the output buffer (see enable_output_buffer).
Note that this is not a hard bound: there can be a small delay between the backpressure mechanism is triggered and the endpoint is paused, during which more data may be queued.
The default is 1 million.
paused: boolCreate connector in paused state.
The default is false.
Trait Implementations§
Source§impl Clone for ConnectorConfig
impl Clone for ConnectorConfig
Source§fn clone(&self) -> ConnectorConfig
fn clone(&self) -> ConnectorConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConnectorConfig
impl Debug for ConnectorConfig
Source§impl<'de> Deserialize<'de> for ConnectorConfig
impl<'de> Deserialize<'de> for ConnectorConfig
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>,
Source§impl PartialEq for ConnectorConfig
impl PartialEq for ConnectorConfig
Source§impl Serialize for ConnectorConfig
impl Serialize for ConnectorConfig
Source§impl<'__s> ToSchema<'__s> for ConnectorConfig
impl<'__s> ToSchema<'__s> for ConnectorConfig
impl Eq for ConnectorConfig
impl StructuralPartialEq for ConnectorConfig
Auto Trait Implementations§
impl Freeze for ConnectorConfig
impl RefUnwindSafe for ConnectorConfig
impl Send for ConnectorConfig
impl Sync for ConnectorConfig
impl Unpin for ConnectorConfig
impl UnwindSafe for ConnectorConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.