[][src]Struct cortex::dispatcher::sink::Sink

pub struct Sink {
    pub port: usize,
    pub queue_size: usize,
    pub message_size: usize,
    pub backend_address: String,
}

Specifies the binding and operation parameters for a ZMQ sink component

Fields

port: usize

port to listen on

queue_size: usize

the size of the dispatch queue (also the batch size for Task store queue requests)

message_size: usize

size of an individual message chunk sent via zeromq (keep this small to avoid large RAM use, increase to reduce network bandwidth)

backend_address: String

address for the Task store postgres endpoint

Implementations

impl Sink[src]

pub fn start(
    &self,
    services_arc: &Arc<Mutex<HashMap<String, Option<Service>>>>,
    progress_queue_arc: &Arc<Mutex<HashMap<i64, TaskProgress>>>,
    done_queue_arc: &Arc<Mutex<Vec<TaskReport>>>,
    job_limit: Option<usize>
) -> Result<(), Box<dyn Error>>
[src]

Starts a receiver/sink Server (ZMQ Pull), to accept processing responses. The sink shares state with other manager threads via queues for tasks in progress, as well as a queue for completed tasks pending persisting to disk. A job limit can be provided as a termination condition for the sink server.

Auto Trait Implementations

impl RefUnwindSafe for Sink

impl Send for Sink

impl Sync for Sink

impl Unpin for Sink

impl UnwindSafe for Sink

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, I> AsResult<T, I> for T where
    I: Input, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoCollection<T> for T

impl<T> IntoSql for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,