[][src]Struct frugalos_mds::FrugalosMdsConfig

pub struct FrugalosMdsConfig {
    pub commit_timeout_threshold: usize,
    pub large_proposal_queue_threshold: usize,
    pub large_leader_waiting_queue_threshold: usize,
    pub leader_waiting_timeout_threshold: usize,
    pub node_polling_interval: Duration,
    pub reelection_threshold: usize,
    pub snapshot_threshold_min: usize,
    pub snapshot_threshold_max: usize,
}

frugalos_mds の設定。

以下の理由で現時点では module 毎に設定を struct で分けていない。

  • ほとんどの設定が Node のためのものであること。

Fields

commit_timeout_threshold: usize

コミットをタイムアウトさせるかどうかを決める閾値。

この設定値の1単位は node_polling_interval である点に注意。

large_proposal_queue_threshold: usize

proposal キューが長すぎる(リーダーが重い)と判断する基準となる閾値。

この設定値の1単位は node_polling_interval である点に注意。

large_leader_waiting_queue_threshold: usize

リーダー選出待ちキューが長すぎると判断する基準となる閾値。

leader_waiting_timeout_threshold: usize

リーダー選出待ちをあきらめるまでの閾値。

この設定値の1単位は node_polling_interval である点に注意。

node_polling_interval: Duration

node がポーリングする間隔。

reelection_threshold: usize

リーダが重い場合に再選出を行うかどうかを決める閾値。

この設定値の1単位は node_polling_interval である点に注意。

snapshot_threshold_min: usize

スナップショットを取る際の閾値の下限(この値を含む).

snapshot_threshold_max: usize

スナップショットを取る際の閾値の上限(この値を含む).

Methods

impl FrugalosMdsConfig[src]

pub fn snapshot_threshold(&self) -> Range<usize>[src]

スナップショットを取る際の閾値を返す(両端の値を含む).

Node のローカルログの長さが、この値を超えた場合に、スナップショットの取得が開始される.

Trait Implementations

impl PartialEq<FrugalosMdsConfig> for FrugalosMdsConfig[src]

impl Clone for FrugalosMdsConfig[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for FrugalosMdsConfig[src]

impl Debug for FrugalosMdsConfig[src]

impl Serialize for FrugalosMdsConfig[src]

impl<'de> Deserialize<'de> for FrugalosMdsConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]