Enum conjure_runtime::NodeSelectionStrategy [−][src]
#[non_exhaustive]
pub enum NodeSelectionStrategy {
PinUntilError,
PinUntilErrorWithoutReshuffle,
Balanced,
}Specifies the strategy used to select a node of a service to use for a request attempt.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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
impl Clone for NodeSelectionStrategy[src]
impl Clone for NodeSelectionStrategy[src]fn clone(&self) -> NodeSelectionStrategy[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for NodeSelectionStrategy[src]
impl Copy for NodeSelectionStrategy[src]impl Eq for NodeSelectionStrategy[src]
impl Eq for NodeSelectionStrategy[src]impl StructuralEq for NodeSelectionStrategy[src]
impl StructuralEq for NodeSelectionStrategy[src]Auto Trait Implementations
impl RefUnwindSafe for NodeSelectionStrategy
impl RefUnwindSafe for NodeSelectionStrategyimpl Send for NodeSelectionStrategy
impl Send for NodeSelectionStrategyimpl Sync for NodeSelectionStrategy
impl Sync for NodeSelectionStrategyimpl Unpin for NodeSelectionStrategy
impl Unpin for NodeSelectionStrategyimpl UnwindSafe for NodeSelectionStrategy
impl UnwindSafe for NodeSelectionStrategyBlanket Implementations
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,