Show / Hide Table of Contents

Class ClusterMemberConfiguration

Represents configuration of cluster member.

Inheritance
object
ClusterMemberConfiguration
HttpClusterMemberConfiguration
Implements
IClusterMemberConfiguration
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.AspNetCore.Cluster.dll
Syntax
public class ClusterMemberConfiguration : IClusterMemberConfiguration

Constructors

View Source

ClusterMemberConfiguration()

Declaration
public ClusterMemberConfiguration()

Properties

View Source

AggressiveLeaderStickiness

Gets a value indicating that the follower node should not try to upgrade to the candidate state if the leader is reachable via the network.

Declaration
public bool AggressiveLeaderStickiness { get; set; }
Property Value
Type Description
bool
View Source

ClockDriftBound

A bound on clock drift across servers.

Declaration
public double ClockDriftBound { get; set; }
Property Value
Type Description
double
Remarks

Over a given time period, no server’s clock increases more than this bound times any other.

View Source

ColdStart

Gets or sets a value indicating that the initial node in the cluster is starting.

Declaration
public bool ColdStart { get; set; }
Property Value
Type Description
bool
View Source

HeartbeatThreshold

Gets or sets threshold of the heartbeat timeout.

Declaration
public double HeartbeatThreshold { get; set; }
Property Value
Type Description
double
Remarks

The threshold should be in range (0, 1). The heartbeat timeout is computed as LowerElectionTimeout timeout multiplied by threshold. The default is 0.5.

Exceptions
Type Condition
ArgumentOutOfRangeException

Attempts to set invalid value.

View Source

IsLeaderLeaseEnabled

Gets a value indicating that the lease-based linearizable read is enabled on the leader node.

Declaration
public bool IsLeaderLeaseEnabled { get; set; }
Property Value
Type Description
bool
View Source

LowerElectionTimeout

Gets lower possible value of leader election timeout, in milliseconds.

Declaration
public int LowerElectionTimeout { get; set; }
Property Value
Type Description
int
View Source

MaxReplicationLag

Gets a value representing the maximum number of replication steps allowed for the follower to be behind the leader.

Declaration
public int MaxReplicationLag { get; set; }
Property Value
Type Description
int
View Source

Metadata

Gets metadata associated with local cluster member.

Declaration
public IDictionary<string, string> Metadata { get; }
Property Value
Type Description
IDictionary<string, string>
View Source

RpcTimeout

Gets or sets Raft RPC timeout.

Declaration
public TimeSpan RpcTimeout { get; set; }
Property Value
Type Description
TimeSpan
View Source

Standby

Gets a value indicating that the cluster member represents standby node which will never become a leader.

Declaration
public bool Standby { get; set; }
Property Value
Type Description
bool
View Source

UpperElectionTimeout

Gets upper possible value of leader election timeout, in milliseconds.

Declaration
public int UpperElectionTimeout { get; set; }
Property Value
Type Description
int
View Source

WarmupRounds

Gets or sets the numbers of rounds used to warm up a fresh node which wants to join the cluster.

Declaration
public int WarmupRounds { get; set; }
Property Value
Type Description
int

Implements

IClusterMemberConfiguration

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾