Class RaftCluster.NodeConfiguration
Represents transport-agnostic configuration of cluster member.
Inheritance
Implements
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public abstract class NodeConfiguration : IClusterMemberConfiguration
Properties
| Improve this Doc View SourceHeartbeatThreshold
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 node election timeout X threshold. The default is 0.5.
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | Attempts to set invalid value. |
HostEndPoint
Gets the address used for hosting of local member.
Declaration
public IPEndPoint HostEndPoint { get; }
Property Value
Type | Description |
---|---|
IPEndPoint |
LoggerFactory
Gets or sets logger factory using for internal logging.
Declaration
[CLSCompliant(false)]
public ILoggerFactory LoggerFactory { get; set; }
Property Value
Type | Description |
---|---|
ILoggerFactory |
LowerElectionTimeout
Gets lower possible value of leader election timeout, in milliseconds.
Declaration
public int LowerElectionTimeout { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Members
Gets collection of cluster members.
Declaration
public ICollection<IPEndPoint> Members { get; }
Property Value
Type | Description |
---|---|
ICollection<IPEndPoint> | The collection of cluster members. |
MemoryAllocator
Gets or sets memory allocator to be used for network I/O.
Declaration
public MemoryAllocator<byte> MemoryAllocator { get; set; }
Property Value
Type | Description |
---|---|
MemoryAllocator<Byte> |
Metadata
Gets metadata associated with local cluster member.
Declaration
public IDictionary<string, string> Metadata { get; }
Property Value
Type | Description |
---|---|
IDictionary<String, String> |
Metrics
Gets or sets metrics collector.
Declaration
public MetricsCollector Metrics { get; set; }
Property Value
Type | Description |
---|---|
MetricsCollector |
Partitioning
Indicates that each part of cluster in partitioned network allow to elect its own leader.
Declaration
public bool Partitioning { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
false value allows to build CA distributed cluster while true value allows to build CP/AP distributed cluster.
PipeConfig
Gets or sets configuration of the Pipe used for internal pipelined I/O.
Declaration
public PipeOptions PipeConfig { get; set; }
Property Value
Type | Description |
---|---|
PipeOptions |
PublicEndPoint
Gets the address of the local member visible to other members.
Declaration
public IPEndPoint PublicEndPoint { get; set; }
Property Value
Type | Description |
---|---|
IPEndPoint |
Remarks
This property is useful when local member hosted in a container (Windows, LXC or Docker) because HostEndPoint may return Any or IPv6Any.
RequestTimeout
Gets or sets request processing timeout.
Declaration
public TimeSpan RequestTimeout { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
ServerBacklog
Gets or sets the maximum number of parallel requests that can be handled simultaneously.
Declaration
public int ServerBacklog { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
By default, the value based on the number of cluster members.
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | Supplied value is equal to or less than zero. |
TimeToLive
Gets or sets a value that specifies the Time To Live (TTL) value of Internet Protocol (IP) packets.
Declaration
public byte TimeToLive { get; set; }
Property Value
Type | Description |
---|---|
Byte |
UpperElectionTimeout
Gets upper possible value of leader election timeout, in milliseconds.
Declaration
public int UpperElectionTimeout { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Explicit Interface Implementations
| Improve this Doc View SourceIClusterMemberConfiguration.ElectionTimeout
Declaration
ElectionTimeout IClusterMemberConfiguration.ElectionTimeout { get; }
Returns
Type | Description |
---|---|
ElectionTimeout |