[][src]Struct cortex::dispatcher::manager::TaskManager

pub struct TaskManager {
    pub source_port: usize,
    pub result_port: usize,
    pub queue_size: usize,
    pub message_size: usize,
    pub backend_address: String,
}

Manager struct responsible for dispatching and receiving tasks

Fields

source_port: usize

port for requesting/dispatching jobs

result_port: usize

port for responding/receiving results

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 TaskManager[src]

pub fn start(&self, job_limit: Option<usize>) -> Result<(), Error>[src]

Starts a new manager, spinning of dispatch/sink servers, listening on the specified ports

Trait Implementations

impl Default for TaskManager[src]

Auto Trait Implementations

impl RefUnwindSafe for TaskManager

impl Send for TaskManager

impl Sync for TaskManager

impl Unpin for TaskManager

impl UnwindSafe for TaskManager

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>,