Class ClusterMemberConfiguration
Represents configuration of cluster member.
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.AspNetCore.Cluster.dll
Syntax
public class ClusterMemberConfiguration : IClusterMemberConfiguration
Constructors
| Improve this Doc View SourceClusterMemberConfiguration()
Initializes a new default configuration.
Declaration
public ClusterMemberConfiguration()
Properties
| Improve this Doc View SourceAllowedNetworks
Represents set of networks from which remote member can make a request to the local member.
Declaration
[CLSCompliant(false)]
public HashSet<IPNetwork> AllowedNetworks { get; }
Property Value
Type | Description |
---|---|
HashSet<System.Net.IPNetwork> |
Remarks
Example of IPv6 network: 2001:0db8::/32 Example of IPv4 network: 192.168.0.0/24.
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 |
---|---|
Int32 |
Metadata
Gets metadata associated with local cluster member.
Declaration
public IDictionary<string, string> Metadata { get; }
Property Value
Type | Description |
---|---|
IDictionary<String, String> |
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.
UpperElectionTimeout
Gets upper possible value of leader election timeout, in milliseconds.
Declaration
public int UpperElectionTimeout { get; set; }
Property Value
Type | Description |
---|---|
Int32 |