pub struct ClientConfig {
pub handshake_address: String,
pub input_address: String,
pub output_address: String,
pub first_engine_index: u16,
pub num_engines: u16,
pub routing: Routing,
pub handshake_timeout: Duration,
pub send_timeout: Duration,
}Expand description
Where the client listens and which engines it expects.
Fields§
§handshake_address: StringHandshake ROUTER address the engines dial: the engine’s
tcp://{--data-parallel-address}:{--data-parallel-rpc-port}.
tcp://<host>:0 binds a free port; see crate::ClientListener.
input_address: StringInput ROUTER address. tcp://<host>:0 binds a free port; the bound
address is sent to the engines, so <host> must be reachable from
them.
output_address: StringOutput PULL address, bound like input_address.
first_engine_index: u16The first engine’s index, the engine’s --zmq-engine-index.
num_engines: u16Engines to wait for: indices first_engine_index..+num_engines, one
per attention-DP rank.
routing: RoutingRequest placement.
handshake_timeout: DurationLimit for the handshake, from the start of
crate::ClientListener::accept to the last registration.
send_timeout: DurationLimit for handing one message to an engine’s socket. A stalled engine fails the submission instead of blocking the caller.