Enum conjure_runtime::NodeSelectionStrategy [−][src]
#[non_exhaustive]
pub enum NodeSelectionStrategy {
PinUntilError,
PinUntilErrorWithoutReshuffle,
Balanced,
}Expand description
Specifies the strategy used to select a node of a service to use for a request attempt.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Pin to a single host as long as it continues to successfully respond to requests.
If the pinned node fails to successfully respond, the client will rotate through the other nodes until it finds one that can successfully respond and then pin to that new node. The pinned node will also be randomly rotated periodically to help spread load across the cluster.
This is the default behavior.
Like PinUntilError except that the pinned node is never randomly shuffled.
For each new request, select the “next” node (in some unspecified order).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NodeSelectionStrategy
impl Send for NodeSelectionStrategy
impl Sync for NodeSelectionStrategy
impl Unpin for NodeSelectionStrategy
impl UnwindSafe for NodeSelectionStrategy
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more