Class ConnectorLeaderElectionConfiguration
- Namespace
- Azure.Iot.Operations.Connector
- Assembly
- Azure.Iot.Operations.Connector.dll
Connector-level leader election configurations.
public class ConnectorLeaderElectionConfiguration
- Inheritance
-
ConnectorLeaderElectionConfiguration
- Inherited Members
Constructors
ConnectorLeaderElectionConfiguration(string, TimeSpan?, TimeSpan?)
public ConnectorLeaderElectionConfiguration(string leadershipPositionId, TimeSpan? leadershipPositionTermLength = null, TimeSpan? leadershipPositionRenewalRate = null)
Parameters
leadershipPositionId
stringleadershipPositionTermLength
TimeSpan?leadershipPositionRenewalRate
TimeSpan?
Properties
LeadershipPositionId
The Id for the leadership position that this connector will campaign for. This value must be the same across any connector pods that want to passively replicate each other.
public string LeadershipPositionId { get; set; }
Property Value
LeadershipPositionRenewalRate
How frequently the leader will attempt to renew its leadership position.
public TimeSpan LeadershipPositionRenewalRate { get; set; }
Property Value
Remarks
This value generally should be lower than LeadershipPositionTermLength so that the leader will renew its position prior to the previous position expiring.
LeadershipPositionTermLength
How long each leader will campaign to be leader for.
public TimeSpan LeadershipPositionTermLength { get; set; }
Property Value
Remarks
A leader will automatically attempt to renew its leadership position at an interval defined by LeadershipPositionRenewalRate.