Class ClusterMemberConfiguration
Represents configuration of cluster member.
Implements
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.AspNetCore.Cluster.dll
Syntax
public class ClusterMemberConfiguration : IClusterMemberConfiguration
Properties
| Edit this page View SourceAggressiveLeaderStickiness
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 |
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.
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 |
HeartbeatThreshold
Gets or sets threshold of the heartbeat timeout.
Declaration
public double HeartbeatThreshold { get; set; }
Property Value
Type | Description |
---|---|
double |
LowerElectionTimeout
Gets lower possible value of leader election timeout, in milliseconds.
Declaration
public int LowerElectionTimeout { get; set; }
Property Value
Type | Description |
---|---|
int |
Metadata
Gets metadata associated with local cluster member.
Declaration
public IDictionary<string, string> Metadata { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
RpcTimeout
Gets or sets Raft RPC timeout.
Declaration
public TimeSpan RpcTimeout { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
Standby
Gets or sets a value indicating that the cluster member represents standby node which is never become a leader.
Declaration
public bool Standby { get; set; }
Property Value
Type | Description |
---|---|
bool |
UpperElectionTimeout
Gets upper possible value of leader election timeout, in milliseconds.
Declaration
public int UpperElectionTimeout { get; set; }
Property Value
Type | Description |
---|---|
int |
WarmupRounds
Gets or sets the numbers of rounds used to warmup a fresh node which wants to join the cluster.
Declaration
public int WarmupRounds { get; set; }
Property Value
Type | Description |
---|---|
int |