Package io.aeron.cluster
Class ConsensusModule.Configuration
java.lang.Object
io.aeron.cluster.ConsensusModule.Configuration
- Enclosing class:
- ConsensusModule
Configuration options for cluster.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault property for the appointed cluster leader id.static final StringProperty name for the identity of the appointed leader.static final StringName of the system property for specifying a supplier ofAuthenticatorfor the cluster.static final StringName of the system property for specifying a supplier ofAuthorisationServicefor the cluster.static final StringProperty name of enabling the acceptance of standby snapshots.static final intCounter type id for the number of cluster clients which have been timed out.static final StringProperty name of settingClusterClock.static final StringDefault property for the list of cluster consensus endpoints.static final StringProperty name for the comma separated list of cluster consensus endpoints used for cluster backup and cluster standby nodes.static final StringProperty name for the name returned fromAgent.roleName()for the consensus module.static final intDefault for the limit for fragments to be consumed on each poll of ingress.static final StringProperty name for the limit for fragments to be consumed on each poll of ingress.static final StringDefault for whether IPC ingress is allowed or not.static final StringProperty name for whether IPC ingress is allowed or not.static final intCounter type id for the number of invalid requests which the cluster has received.static final intDefault property for the cluster member identity.static final StringProperty name for the identity of the cluster member.static final StringProperty name for the comma separated list of cluster member endpoints.static final intCounter type id for the cluster node role.static final StringProperty name for replication progress interval.static final longDefault timeout for replication progress in nanoseconds.static final StringProperty name for replication progress timeout.static final intCounter type id of a commit position.static final StringChannel to be used for communicating cluster consensus to each other.static final StringChannel to be used communicating cluster consensus to each other.static final StringProperty name of the setting to control whether the consensus module should bind the control endpoint of the consensus publication to its local consensus address.static final StringProperty name of the setting to control whether the consensus module should bind the control endpoint of the consensus publication to its local log address.static final intCounter type id for the consensus module error count.static final StringProperty name of settingConsensusModuleExtension.static final intCounter type id for the consensus module state.static final intStream id for the communicating consensus messages.static final StringStream id within a channel for communicating consensus messages.static final intCounter type id for the control toggle.static final longDefault threshold value for the consensus module agent work cycle threshold to track for being exceeded.static final StringProperty name for threshold value for the consensus module agent work cycle threshold to track for being exceeded.static final AuthorisationServiceSupplierDefaultAuthorisationServiceSupplierthat returns anAuthorisationServicethat allows the commands necessary for Cluster Backup and Aeron Cluster Standby.static final intType id for election state counter.static final longDefault interval at which a member will send out status updates during election phases.static final StringInterval at which a member will send out status updates during election phases.static final longDefault timeout after which an election fails if the candidate does not get a majority of votes.static final StringTimeout after which an election fails if the candidate does not get a majority of votes.static final intSize in bytes of the error buffer for the cluster.static final StringSize in bytes of the error buffer for the cluster.static final intDefault file sync level of normal writes.static final StringThe level at which files should be sync'ed to disk.static final StringDefault channel template used for replaying logs to a follower using theClusterMember.catchupEndpoint().static final StringChannel template used for replaying logs to a follower using theClusterMember.catchupEndpoint().static final StringDefault channel used to build the control request channel for the leader Archive.static final StringChannel used to build the control request channel for the leader Archive.static final longInterval at which a leader will send heartbeats if the log is not progressing.static final StringInterval at which a leader will send heartbeats if the log is not progressing.static final longTimeout for a leader if no heartbeat is received by another member.static final StringTimeout for a leader if no heartbeat is received by another member.static final StringChannel for the clustered log.static final StringChannel for the clustered log.static final intStream id within a channel for the clustered log.static final StringStream id within a channel for the clustered log.static final intMaximum number of cluster sessions that can be active concurrently.static final StringMaximum number of cluster sessions that can be active concurrently.static final StringDefault property for member endpoints.static final StringProperty name for the comma separated list of member endpoints.static final intMajor version of the network protocol from consensus module to consensus module.static final intMinor version of the network protocol from consensus module to consensus module.static final intPatch version of the network protocol from consensus module to consensus module.static final intCombined semantic version for the client to consensus module protocol.static final intType id of a recovery state counter.static final StringChannel to be used for replicating logs and snapshots from other archives to the local one.static final intThe number of services in this cluster instance.static final StringThe number of services in this cluster instance.static final intService ID to identify a snapshot in theRecordingLogfor the consensus module.static final StringMessage detail to be sent when a session has an invalid client version.static final StringMessage detail to be sent when max concurrent session limit is reached.static final StringMessage detail to be sent when a session is rejected due to authentication.static final longTimeout for a session if no activity is observed.static final StringTimeout for a session if no activity is observed.static final StringChannel to be used for archiving snapshots.static final intCounter type id for count of snapshots taken.static final intStream id for the archived snapshots within a channel.static final longType of snapshot for this component.static final longDefault timeout after which an election vote will be attempted on startup when waiting to canvass the status of all members before going for a majority if possible.static final StringTimeout after which an election vote will be attempted after startup while waiting to canvass the status of members if a majority has been heard from.static final longDefault timeout a leader will wait on getting termination ACKs from followers.static final StringTimeout a leader will wait on getting termination ACKs from followers.static final intNumber of ticks, or spokes, on the timer wheel.static final StringNumber of ticks, or spokes, on the timer wheel.static final StringDefaultTimerServiceSupplier.static final StringName of theTimerServiceSupplierthat creates a sequence-preservingTimerServicebased on a priority heap implementation.static final StringTimerServiceSupplierto be used for creating theTimerServiceused by consensus module.static final StringName of theTimerServiceSupplierthat createsTimerServicebased on the timer wheel implementation.static final longDefault threshold value, which is used for tracking total snapshot duration breaches.static final StringProperty name for threshold value, which is used for tracking total snapshot duration breaches.static final longResolution in nanoseconds for each tick of the timer wheel for scheduling deadlines.static final StringResolution in nanoseconds for each tick of the timer wheel for scheduling deadlines. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanIf this node should accept snapshots from standby nodes.static StringThe name to be used for theAgent.roleName()for the consensus module agent.static intThe valueAPPOINTED_LEADER_ID_DEFAULTor system propertyAPPOINTED_LEADER_ID_PROP_NAMEif set.static AuthenticatorSupplierThe valueDefaultAuthenticatorSupplier.INSTANCEor system propertyAUTHENTICATOR_SUPPLIER_PROP_NAMEif set.static AuthorisationServiceSupplierTheAuthorisationServiceSupplierspecified in theAUTHORISATION_SERVICE_SUPPLIER_PROP_NAMEsystem property or theDEFAULT_AUTHORISATION_SERVICE_SUPPLIER.static StringThe valueCLUSTER_CONSENSUS_ENDPOINTS_DEFAULTor system propertyCLUSTER_CONSENSUS_ENDPOINTS_PROP_NAMEif set.static intThe valueCLUSTER_MEMBER_ID_DEFAULTor system propertyCLUSTER_MEMBER_ID_PROP_NAMEif set.static StringThe value of system propertyCLUSTER_MEMBERS_PROP_NAMEif set, null otherwise.static StringThe valueCONSENSUS_CHANNEL_DEFAULTor system propertyCONSENSUS_CHANNEL_PROP_NAMEif set.static intThe valueCONSENSUS_STREAM_ID_DEFAULTor system propertyCONSENSUS_STREAM_ID_PROP_NAMEif set.static longGet threshold value for the consensus module agent work cycle threshold to track for being exceeded.static longInterval at which a member will send out status messages during the election phases.static longTimeout waiting for votes to become leader in an election.static booleanDetermine the ConsensusModule should bind the control endpoint of the consensus publication.static booleanDetermine the ConsensusModule should bind the control endpoint of the log publication.static intSize in bytes of the error buffer in the mark file.static intThe level at which files should be sync'ed to disk.static StringThe valueFOLLOWER_CATCHUP_CHANNEL_DEFAULTor system propertyFOLLOWER_CATCHUP_CHANNEL_PROP_NAMEif set.static intThe valueCLUSTER_INGRESS_FRAGMENT_LIMIT_DEFAULTor system propertyCLUSTER_INGRESS_FRAGMENT_LIMIT_PROP_NAMEif set.static booleanThe valueCLUSTER_INGRESS_IPC_ALLOWED_DEFAULTor system propertyCLUSTER_INGRESS_IPC_ALLOWED_PROP_NAMEif set.static StringThe valueLEADER_ARCHIVE_CONTROL_CHANNEL_DEFAULTor system propertyLEADER_ARCHIVE_CONTROL_CHANNEL_PROP_NAMEif set.static longInterval at which a leader will send a heartbeat if the log is not progressing.static longTimeout for a leader if no heartbeat is received by another member.static StringThe valueLOG_CHANNEL_DEFAULTor system propertyLOG_CHANNEL_PROP_NAMEif set.static intThe valueLOG_STREAM_ID_DEFAULTor system propertyLOG_STREAM_ID_PROP_NAMEif set.static intThe valueMAX_CONCURRENT_SESSIONS_DEFAULTor system propertyMAX_CONCURRENT_SESSIONS_PROP_NAMEif set.static StringThe valueMEMBER_ENDPOINTS_DEFAULTor system propertyMEMBER_ENDPOINTS_PROP_NAMEif set.static ConsensusModuleExtensionCreate a newConsensusModuleExtensionbased on the configuredCONSENSUS_MODULE_EXTENSION_CLASS_NAME_PROP_NAME.static StringThe system property forREPLICATION_CHANNEL_PROP_NAMEif set or null.static longInterval between checks for progress on an archive replication.static longThe amount of time to wait to time out an archive replication when progress has stalled.static intThe valueSERVICE_COUNT_DEFAULTor system propertySERVICE_COUNT_PROP_NAMEif set.static longTimeout for a session if no activity is observed.static StringThe valueSNAPSHOT_CHANNEL_DEFAULTor system propertyClusteredServiceContainer.Configuration.SNAPSHOT_CHANNEL_PROP_NAMEif set.static intThe valueSNAPSHOT_STREAM_ID_DEFAULTor system propertyClusteredServiceContainer.Configuration.SNAPSHOT_STREAM_ID_PROP_NAMEif set.static longTimeout waiting to canvass the status of cluster members before voting if a majority have been heard from.static longTimeout waiting for follower termination by leader.static intThe valueTICKS_PER_WHEEL_DEFAULTor system propertyCLUSTER_MEMBER_ID_PROP_NAMEif set.static StringThe name of theTimerServiceSupplierto use for supplying theTimerService.static longGet threshold value, which is used for monitoring total snapshot duration breaches of its predefined threshold.static longThe valueWHEEL_TICK_RESOLUTION_DEFAULT_NSor system propertyWHEEL_TICK_RESOLUTION_PROP_NAMEif set.
-
Field Details
-
PROTOCOL_MAJOR_VERSION
public static final int PROTOCOL_MAJOR_VERSIONMajor version of the network protocol from consensus module to consensus module. If these don't match then consensus modules are not compatible.- See Also:
-
PROTOCOL_MINOR_VERSION
public static final int PROTOCOL_MINOR_VERSIONMinor version of the network protocol from consensus module to consensus module. If these don't match then some features may not be available.- See Also:
-
PROTOCOL_PATCH_VERSION
public static final int PROTOCOL_PATCH_VERSIONPatch version of the network protocol from consensus module to consensus module. If these don't match then bug fixes may not have been applied.- See Also:
-
PROTOCOL_SEMANTIC_VERSION
public static final int PROTOCOL_SEMANTIC_VERSIONCombined semantic version for the client to consensus module protocol.- See Also:
-
SNAPSHOT_TYPE_ID
public static final long SNAPSHOT_TYPE_IDType of snapshot for this component.- See Also:
-
CLUSTER_INGRESS_FRAGMENT_LIMIT_PROP_NAME
Property name for the limit for fragments to be consumed on each poll of ingress.- See Also:
-
CLUSTER_INGRESS_FRAGMENT_LIMIT_DEFAULT
public static final int CLUSTER_INGRESS_FRAGMENT_LIMIT_DEFAULTDefault for the limit for fragments to be consumed on each poll of ingress.- See Also:
-
CLUSTER_INGRESS_IPC_ALLOWED_PROP_NAME
Property name for whether IPC ingress is allowed or not.- See Also:
-
CLUSTER_INGRESS_IPC_ALLOWED_DEFAULT
Default for whether IPC ingress is allowed or not.- See Also:
-
SERVICE_ID
public static final int SERVICE_IDService ID to identify a snapshot in theRecordingLogfor the consensus module.- See Also:
-
CLUSTER_MEMBER_ID_PROP_NAME
Property name for the identity of the cluster member.- See Also:
-
CLUSTER_MEMBER_ID_DEFAULT
public static final int CLUSTER_MEMBER_ID_DEFAULTDefault property for the cluster member identity.- See Also:
-
APPOINTED_LEADER_ID_PROP_NAME
Property name for the identity of the appointed leader. This is when automated leader elections are not employed.This feature is for testing and not recommended for production usage.
- See Also:
-
APPOINTED_LEADER_ID_DEFAULT
public static final int APPOINTED_LEADER_ID_DEFAULTDefault property for the appointed cluster leader id. A value ofAeron.NULL_VALUEmeans no leader has been appointed and thus an automated leader election should occur.- See Also:
-
CLUSTER_MEMBERS_PROP_NAME
Property name for the comma separated list of cluster member endpoints.0,ingress:port,consensus:port,log:port,catchup:port,archive:port| \ 1,ingress:port,consensus:port,log:port,catchup:port,archive:port| ...The ingress endpoints will be used as the endpoint substituted into the
AeronCluster.Configuration.INGRESS_CHANNEL_PROP_NAMEif the endpoint is not provided when unicast.- See Also:
-
CLUSTER_CONSENSUS_ENDPOINTS_PROP_NAME
Property name for the comma separated list of cluster consensus endpoints used for cluster backup and cluster standby nodes.- See Also:
-
CLUSTER_CONSENSUS_ENDPOINTS_DEFAULT
Default property for the list of cluster consensus endpoints.- See Also:
-
LOG_CHANNEL_PROP_NAME
Channel for the clustered log.- See Also:
-
LOG_CHANNEL_DEFAULT
Channel for the clustered log. This channel can exist for a potentially long time given cluster operation so attention should be given to configuration such as term-length and mtu.- See Also:
-
MEMBER_ENDPOINTS_PROP_NAME
Property name for the comma separated list of member endpoints.ingress:port,consensus:port,log:port,catchup:port,archive:port -
MEMBER_ENDPOINTS_DEFAULT
Default property for member endpoints.- See Also:
-
LOG_STREAM_ID_PROP_NAME
Stream id within a channel for the clustered log.- See Also:
-
LOG_STREAM_ID_DEFAULT
public static final int LOG_STREAM_ID_DEFAULTStream id within a channel for the clustered log.- See Also:
-
SNAPSHOT_CHANNEL_DEFAULT
Channel to be used for archiving snapshots.- See Also:
-
SNAPSHOT_STREAM_ID_DEFAULT
public static final int SNAPSHOT_STREAM_ID_DEFAULTStream id for the archived snapshots within a channel.- See Also:
-
SESSION_LIMIT_MSG
Message detail to be sent when max concurrent session limit is reached.- See Also:
-
SESSION_REJECTED_MSG
Message detail to be sent when a session is rejected due to authentication.- See Also:
-
SESSION_INVALID_VERSION_MSG
Message detail to be sent when a session has an invalid client version.- See Also:
-
CONSENSUS_CHANNEL_PROP_NAME
Channel to be used communicating cluster consensus to each other. This can be used for default configuration with the endpoints replaced with those provided byCLUSTER_MEMBERS_PROP_NAME.- See Also:
-
CONSENSUS_CHANNEL_DEFAULT
Channel to be used for communicating cluster consensus to each other. This can be used for default configuration with the endpoints replaced with those provided byCLUSTER_MEMBERS_PROP_NAME.- See Also:
-
CONSENSUS_STREAM_ID_PROP_NAME
Stream id within a channel for communicating consensus messages.- See Also:
-
CONSENSUS_STREAM_ID_DEFAULT
public static final int CONSENSUS_STREAM_ID_DEFAULTStream id for the communicating consensus messages.- See Also:
-
REPLICATION_CHANNEL_PROP_NAME
Channel to be used for replicating logs and snapshots from other archives to the local one.- See Also:
-
FOLLOWER_CATCHUP_CHANNEL_PROP_NAME
Channel template used for replaying logs to a follower using theClusterMember.catchupEndpoint().- See Also:
-
FOLLOWER_CATCHUP_CHANNEL_DEFAULT
Default channel template used for replaying logs to a follower using theClusterMember.catchupEndpoint().- See Also:
-
LEADER_ARCHIVE_CONTROL_CHANNEL_PROP_NAME
Channel used to build the control request channel for the leader Archive.- See Also:
-
LEADER_ARCHIVE_CONTROL_CHANNEL_DEFAULT
Default channel used to build the control request channel for the leader Archive.- See Also:
-
CONSENSUS_MODULE_STATE_TYPE_ID
public static final int CONSENSUS_MODULE_STATE_TYPE_IDCounter type id for the consensus module state.- See Also:
-
CLUSTER_NODE_ROLE_TYPE_ID
public static final int CLUSTER_NODE_ROLE_TYPE_IDCounter type id for the cluster node role.- See Also:
-
CONTROL_TOGGLE_TYPE_ID
public static final int CONTROL_TOGGLE_TYPE_IDCounter type id for the control toggle.- See Also:
-
COMMIT_POSITION_TYPE_ID
public static final int COMMIT_POSITION_TYPE_IDCounter type id of a commit position.- See Also:
-
RECOVERY_STATE_TYPE_ID
public static final int RECOVERY_STATE_TYPE_IDType id of a recovery state counter.- See Also:
-
SNAPSHOT_COUNTER_TYPE_ID
public static final int SNAPSHOT_COUNTER_TYPE_IDCounter type id for count of snapshots taken.- See Also:
-
ELECTION_STATE_TYPE_ID
public static final int ELECTION_STATE_TYPE_IDType id for election state counter.- See Also:
-
CONSENSUS_MODULE_ERROR_COUNT_TYPE_ID
public static final int CONSENSUS_MODULE_ERROR_COUNT_TYPE_IDCounter type id for the consensus module error count.- See Also:
-
CLUSTER_CLIENT_TIMEOUT_COUNT_TYPE_ID
public static final int CLUSTER_CLIENT_TIMEOUT_COUNT_TYPE_IDCounter type id for the number of cluster clients which have been timed out.- See Also:
-
CLUSTER_INVALID_REQUEST_COUNT_TYPE_ID
public static final int CLUSTER_INVALID_REQUEST_COUNT_TYPE_IDCounter type id for the number of invalid requests which the cluster has received.- See Also:
-
SERVICE_COUNT_PROP_NAME
The number of services in this cluster instance. -
SERVICE_COUNT_DEFAULT
public static final int SERVICE_COUNT_DEFAULTThe number of services in this cluster instance.- See Also:
-
MAX_CONCURRENT_SESSIONS_PROP_NAME
Maximum number of cluster sessions that can be active concurrently.- See Also:
-
MAX_CONCURRENT_SESSIONS_DEFAULT
public static final int MAX_CONCURRENT_SESSIONS_DEFAULTMaximum number of cluster sessions that can be active concurrently.- See Also:
-
SESSION_TIMEOUT_PROP_NAME
Timeout for a session if no activity is observed.- See Also:
-
SESSION_TIMEOUT_DEFAULT_NS
public static final long SESSION_TIMEOUT_DEFAULT_NSTimeout for a session if no activity is observed. -
LEADER_HEARTBEAT_TIMEOUT_PROP_NAME
Timeout for a leader if no heartbeat is received by another member.- See Also:
-
LEADER_HEARTBEAT_TIMEOUT_DEFAULT_NS
public static final long LEADER_HEARTBEAT_TIMEOUT_DEFAULT_NSTimeout for a leader if no heartbeat is received by another member. -
LEADER_HEARTBEAT_INTERVAL_PROP_NAME
Interval at which a leader will send heartbeats if the log is not progressing.- See Also:
-
LEADER_HEARTBEAT_INTERVAL_DEFAULT_NS
public static final long LEADER_HEARTBEAT_INTERVAL_DEFAULT_NSInterval at which a leader will send heartbeats if the log is not progressing. -
STARTUP_CANVASS_TIMEOUT_PROP_NAME
Timeout after which an election vote will be attempted after startup while waiting to canvass the status of members if a majority has been heard from.- See Also:
-
STARTUP_CANVASS_TIMEOUT_DEFAULT_NS
public static final long STARTUP_CANVASS_TIMEOUT_DEFAULT_NSDefault timeout after which an election vote will be attempted on startup when waiting to canvass the status of all members before going for a majority if possible. -
ELECTION_TIMEOUT_PROP_NAME
Timeout after which an election fails if the candidate does not get a majority of votes.- See Also:
-
ELECTION_TIMEOUT_DEFAULT_NS
public static final long ELECTION_TIMEOUT_DEFAULT_NSDefault timeout after which an election fails if the candidate does not get a majority of votes. -
ELECTION_STATUS_INTERVAL_PROP_NAME
Interval at which a member will send out status updates during election phases.- See Also:
-
ELECTION_STATUS_INTERVAL_DEFAULT_NS
public static final long ELECTION_STATUS_INTERVAL_DEFAULT_NSDefault interval at which a member will send out status updates during election phases. -
AUTHENTICATOR_SUPPLIER_PROP_NAME
Name of the system property for specifying a supplier ofAuthenticatorfor the cluster.- See Also:
-
AUTHORISATION_SERVICE_SUPPLIER_PROP_NAME
Name of the system property for specifying a supplier ofAuthorisationServicefor the cluster.- See Also:
-
DEFAULT_AUTHORISATION_SERVICE_SUPPLIER
DefaultAuthorisationServiceSupplierthat returns anAuthorisationServicethat allows the commands necessary for Cluster Backup and Aeron Cluster Standby. (AllowBackupAndStandbyAuthorisationService). -
ERROR_BUFFER_LENGTH_PROP_NAME
Size in bytes of the error buffer for the cluster.- See Also:
-
ERROR_BUFFER_LENGTH_DEFAULT
public static final int ERROR_BUFFER_LENGTH_DEFAULTSize in bytes of the error buffer for the cluster.- See Also:
-
TERMINATION_TIMEOUT_PROP_NAME
Timeout a leader will wait on getting termination ACKs from followers.- See Also:
-
CYCLE_THRESHOLD_PROP_NAME
Property name for threshold value for the consensus module agent work cycle threshold to track for being exceeded.- See Also:
-
CYCLE_THRESHOLD_DEFAULT_NS
public static final long CYCLE_THRESHOLD_DEFAULT_NSDefault threshold value for the consensus module agent work cycle threshold to track for being exceeded. -
TOTAL_SNAPSHOT_DURATION_THRESHOLD_PROP_NAME
Property name for threshold value, which is used for tracking total snapshot duration breaches.- See Also:
-
TOTAL_SNAPSHOT_DURATION_THRESHOLD_DEFAULT_NS
public static final long TOTAL_SNAPSHOT_DURATION_THRESHOLD_DEFAULT_NSDefault threshold value, which is used for tracking total snapshot duration breaches. -
TERMINATION_TIMEOUT_DEFAULT_NS
public static final long TERMINATION_TIMEOUT_DEFAULT_NSDefault timeout a leader will wait on getting termination ACKs from followers. -
WHEEL_TICK_RESOLUTION_PROP_NAME
Resolution in nanoseconds for each tick of the timer wheel for scheduling deadlines.- See Also:
-
WHEEL_TICK_RESOLUTION_DEFAULT_NS
public static final long WHEEL_TICK_RESOLUTION_DEFAULT_NSResolution in nanoseconds for each tick of the timer wheel for scheduling deadlines. Defaults to 8ms. -
TICKS_PER_WHEEL_PROP_NAME
Number of ticks, or spokes, on the timer wheel. Higher number of ticks reduces potential conflicts traded off against memory usage.- See Also:
-
TICKS_PER_WHEEL_DEFAULT
public static final int TICKS_PER_WHEEL_DEFAULTNumber of ticks, or spokes, on the timer wheel. Higher number of ticks reduces potential conflicts traded off against memory usage. Defaults to 128 per wheel.- See Also:
-
FILE_SYNC_LEVEL_PROP_NAME
The level at which files should be sync'ed to disk.- 0 - normal writes.
- 1 - sync file data.
- 2 - sync file data + metadata.
- See Also:
-
FILE_SYNC_LEVEL_DEFAULT
public static final int FILE_SYNC_LEVEL_DEFAULTDefault file sync level of normal writes.- See Also:
-
TIMER_SERVICE_SUPPLIER_PROP_NAME
TimerServiceSupplierto be used for creating theTimerServiceused by consensus module.- See Also:
-
TIMER_SERVICE_SUPPLIER_WHEEL
Name of theTimerServiceSupplierthat createsTimerServicebased on the timer wheel implementation.- See Also:
-
TIMER_SERVICE_SUPPLIER_PRIORITY_HEAP
Name of theTimerServiceSupplierthat creates a sequence-preservingTimerServicebased on a priority heap implementation.- See Also:
-
TIMER_SERVICE_SUPPLIER_DEFAULT
DefaultTimerServiceSupplier.- See Also:
-
CLUSTER_CONSENSUS_MODULE_AGENT_ROLE_NAME_PROP_NAME
Property name for the name returned fromAgent.roleName()for the consensus module.- See Also:
-
CLUSTER_REPLICATION_PROGRESS_TIMEOUT_PROP_NAME
Property name for replication progress timeout.- Since:
- 1.41.0
- See Also:
-
CLUSTER_REPLICATION_PROGRESS_TIMEOUT_DEFAULT_NS
public static final long CLUSTER_REPLICATION_PROGRESS_TIMEOUT_DEFAULT_NSDefault timeout for replication progress in nanoseconds.- Since:
- 1.41.0
-
CLUSTER_REPLICATION_PROGRESS_INTERVAL_PROP_NAME
Property name for replication progress interval.- Since:
- 1.41.0
- See Also:
-
CLUSTER_ACCEPT_STANDBY_SNAPSHOTS_PROP_NAME
Property name of enabling the acceptance of standby snapshots.- See Also:
-
CLUSTER_CLOCK_PROP_NAME
Property name of settingClusterClock. Should specify a fully qualified class name. Defaults toMillisecondClusterClock.- Since:
- 1.44.0
- See Also:
-
CONSENSUS_MODULE_EXTENSION_CLASS_NAME_PROP_NAME
Property name of settingConsensusModuleExtension. Should specify a fully qualified class name.- Since:
- 1.45.0
- See Also:
-
CONSENSUS_MODULE_ENABLE_CONTROL_ON_CONSENSUS_CHANNEL_PROP_NAME
Property name of the setting to control whether the consensus module should bind the control endpoint of the consensus publication to its local consensus address.- See Also:
-
CONSENSUS_MODULE_ENABLE_CONTROL_ON_LOG_CHANNEL_PROP_NAME
Property name of the setting to control whether the consensus module should bind the control endpoint of the consensus publication to its local log address.- See Also:
-
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
ingressFragmentLimit
public static int ingressFragmentLimit()The valueCLUSTER_INGRESS_FRAGMENT_LIMIT_DEFAULTor system propertyCLUSTER_INGRESS_FRAGMENT_LIMIT_PROP_NAMEif set.- Returns:
CLUSTER_INGRESS_FRAGMENT_LIMIT_DEFAULTor system propertyCLUSTER_INGRESS_FRAGMENT_LIMIT_PROP_NAMEif set.
-
isIpcIngressAllowed
public static boolean isIpcIngressAllowed()The valueCLUSTER_INGRESS_IPC_ALLOWED_DEFAULTor system propertyCLUSTER_INGRESS_IPC_ALLOWED_PROP_NAMEif set.- Returns:
CLUSTER_INGRESS_IPC_ALLOWED_DEFAULTor system propertyCLUSTER_INGRESS_IPC_ALLOWED_PROP_NAMEif set.
-
clusterMemberId
public static int clusterMemberId()The valueCLUSTER_MEMBER_ID_DEFAULTor system propertyCLUSTER_MEMBER_ID_PROP_NAMEif set.- Returns:
CLUSTER_MEMBER_ID_DEFAULTor system propertyCLUSTER_MEMBER_ID_PROP_NAMEif set.
-
appointedLeaderId
public static int appointedLeaderId()The valueAPPOINTED_LEADER_ID_DEFAULTor system propertyAPPOINTED_LEADER_ID_PROP_NAMEif set.This feature is for testing and not recommended for production usage.
- Returns:
APPOINTED_LEADER_ID_DEFAULTor system propertyAPPOINTED_LEADER_ID_PROP_NAMEif set.
-
clusterMembers
The value of system propertyCLUSTER_MEMBERS_PROP_NAMEif set, null otherwise.- Returns:
- of system property
CLUSTER_MEMBERS_PROP_NAMEif set.
-
clusterConsensusEndpoints
The valueCLUSTER_CONSENSUS_ENDPOINTS_DEFAULTor system propertyCLUSTER_CONSENSUS_ENDPOINTS_PROP_NAMEif set.- Returns:
CLUSTER_CONSENSUS_ENDPOINTS_DEFAULTor system propertyCLUSTER_CONSENSUS_ENDPOINTS_PROP_NAMEit set.
-
logChannel
The valueLOG_CHANNEL_DEFAULTor system propertyLOG_CHANNEL_PROP_NAMEif set.- Returns:
LOG_CHANNEL_DEFAULTor system propertyLOG_CHANNEL_PROP_NAMEif set.
-
logStreamId
public static int logStreamId()The valueLOG_STREAM_ID_DEFAULTor system propertyLOG_STREAM_ID_PROP_NAMEif set.- Returns:
LOG_STREAM_ID_DEFAULTor system propertyLOG_STREAM_ID_PROP_NAMEif set.
-
memberEndpoints
The valueMEMBER_ENDPOINTS_DEFAULTor system propertyMEMBER_ENDPOINTS_PROP_NAMEif set.- Returns:
MEMBER_ENDPOINTS_DEFAULTor system propertyMEMBER_ENDPOINTS_PROP_NAMEif set.
-
snapshotChannel
The valueSNAPSHOT_CHANNEL_DEFAULTor system propertyClusteredServiceContainer.Configuration.SNAPSHOT_CHANNEL_PROP_NAMEif set.- Returns:
SNAPSHOT_CHANNEL_DEFAULTor system propertyClusteredServiceContainer.Configuration.SNAPSHOT_CHANNEL_PROP_NAMEif set.
-
snapshotStreamId
public static int snapshotStreamId()The valueSNAPSHOT_STREAM_ID_DEFAULTor system propertyClusteredServiceContainer.Configuration.SNAPSHOT_STREAM_ID_PROP_NAMEif set.- Returns:
SNAPSHOT_STREAM_ID_DEFAULTor system propertyClusteredServiceContainer.Configuration.SNAPSHOT_STREAM_ID_PROP_NAMEif set.
-
serviceCount
public static int serviceCount()The valueSERVICE_COUNT_DEFAULTor system propertySERVICE_COUNT_PROP_NAMEif set.- Returns:
SERVICE_COUNT_DEFAULTor system propertySERVICE_COUNT_PROP_NAMEif set.
-
maxConcurrentSessions
public static int maxConcurrentSessions()The valueMAX_CONCURRENT_SESSIONS_DEFAULTor system propertyMAX_CONCURRENT_SESSIONS_PROP_NAMEif set.- Returns:
MAX_CONCURRENT_SESSIONS_DEFAULTor system propertyMAX_CONCURRENT_SESSIONS_PROP_NAMEif set.
-
sessionTimeoutNs
public static long sessionTimeoutNs()Timeout for a session if no activity is observed.- Returns:
- timeout in nanoseconds to wait for activity
- See Also:
-
leaderHeartbeatTimeoutNs
public static long leaderHeartbeatTimeoutNs()Timeout for a leader if no heartbeat is received by another member.- Returns:
- timeout in nanoseconds to wait for heartbeat from a leader.
- See Also:
-
leaderHeartbeatIntervalNs
public static long leaderHeartbeatIntervalNs()Interval at which a leader will send a heartbeat if the log is not progressing.- Returns:
- timeout in nanoseconds to for leader heartbeats when no log being appended.
- See Also:
-
startupCanvassTimeoutNs
public static long startupCanvassTimeoutNs()Timeout waiting to canvass the status of cluster members before voting if a majority have been heard from.- Returns:
- timeout in nanoseconds to wait for the status of other cluster members before voting.
- See Also:
-
electionTimeoutNs
public static long electionTimeoutNs()Timeout waiting for votes to become leader in an election.- Returns:
- timeout in nanoseconds to wait for votes to become leader in an election.
- See Also:
-
electionStatusIntervalNs
public static long electionStatusIntervalNs()Interval at which a member will send out status messages during the election phases.- Returns:
- interval at which a member will send out status messages during the election phases.
- See Also:
-
terminationTimeoutNs
public static long terminationTimeoutNs()Timeout waiting for follower termination by leader.- Returns:
- timeout in nanoseconds to wait followers to terminate.
- See Also:
-
cycleThresholdNs
public static long cycleThresholdNs()Get threshold value for the consensus module agent work cycle threshold to track for being exceeded.- Returns:
- threshold value in nanoseconds.
-
totalSnapshotDurationThresholdNs
public static long totalSnapshotDurationThresholdNs()Get threshold value, which is used for monitoring total snapshot duration breaches of its predefined threshold.- Returns:
- threshold value in nanoseconds.
-
errorBufferLength
public static int errorBufferLength()Size in bytes of the error buffer in the mark file.- Returns:
- length of error buffer in bytes.
- See Also:
-
authenticatorSupplier
The valueDefaultAuthenticatorSupplier.INSTANCEor system propertyAUTHENTICATOR_SUPPLIER_PROP_NAMEif set.- Returns:
DefaultAuthenticatorSupplier.INSTANCEor system propertyAUTHENTICATOR_SUPPLIER_PROP_NAMEif set.
-
authorisationServiceSupplier
TheAuthorisationServiceSupplierspecified in theAUTHORISATION_SERVICE_SUPPLIER_PROP_NAMEsystem property or theDEFAULT_AUTHORISATION_SERVICE_SUPPLIER.- Returns:
- system property
AUTHORISATION_SERVICE_SUPPLIER_PROP_NAMEif set orDEFAULT_AUTHORISATION_SERVICE_SUPPLIERotherwise.
-
consensusChannel
The valueCONSENSUS_CHANNEL_DEFAULTor system propertyCONSENSUS_CHANNEL_PROP_NAMEif set.- Returns:
CONSENSUS_CHANNEL_DEFAULTor system propertyCONSENSUS_CHANNEL_PROP_NAMEif set.
-
consensusStreamId
public static int consensusStreamId()The valueCONSENSUS_STREAM_ID_DEFAULTor system propertyCONSENSUS_STREAM_ID_PROP_NAMEif set.- Returns:
CONSENSUS_STREAM_ID_DEFAULTor system propertyCONSENSUS_STREAM_ID_PROP_NAMEif set.
-
replicationChannel
The system property forREPLICATION_CHANNEL_PROP_NAMEif set or null.- Returns:
- system property
REPLICATION_CHANNEL_PROP_NAMEif set or null.
-
followerCatchupChannel
The valueFOLLOWER_CATCHUP_CHANNEL_DEFAULTor system propertyFOLLOWER_CATCHUP_CHANNEL_PROP_NAMEif set.- Returns:
FOLLOWER_CATCHUP_CHANNEL_DEFAULTor system propertyFOLLOWER_CATCHUP_CHANNEL_PROP_NAMEif set.
-
leaderArchiveControlChannel
The valueLEADER_ARCHIVE_CONTROL_CHANNEL_DEFAULTor system propertyLEADER_ARCHIVE_CONTROL_CHANNEL_PROP_NAMEif set.- Returns:
LEADER_ARCHIVE_CONTROL_CHANNEL_DEFAULTor system propertyLEADER_ARCHIVE_CONTROL_CHANNEL_PROP_NAMEif set.
-
wheelTickResolutionNs
public static long wheelTickResolutionNs()The valueWHEEL_TICK_RESOLUTION_DEFAULT_NSor system propertyWHEEL_TICK_RESOLUTION_PROP_NAMEif set.- Returns:
WHEEL_TICK_RESOLUTION_DEFAULT_NSor system propertyWHEEL_TICK_RESOLUTION_PROP_NAMEif set.
-
ticksPerWheel
public static int ticksPerWheel()The valueTICKS_PER_WHEEL_DEFAULTor system propertyCLUSTER_MEMBER_ID_PROP_NAMEif set.- Returns:
TICKS_PER_WHEEL_DEFAULTor system propertyTICKS_PER_WHEEL_PROP_NAMEif set.
-
fileSyncLevel
public static int fileSyncLevel()The level at which files should be sync'ed to disk.- 0 - normal writes.
- 1 - sync file data.
- 2 - sync file data + metadata.
- Returns:
- level at which files should be sync'ed to disk.
-
timerServiceSupplier
The name of theTimerServiceSupplierto use for supplying theTimerService.- Returns:
TIMER_SERVICE_SUPPLIER_DEFAULTor system property.TIMER_SERVICE_SUPPLIER_PROP_NAMEif set.
-
agentRoleName
The name to be used for theAgent.roleName()for the consensus module agent.- Returns:
- name to be used for the
Agent.roleName()for the consensus module agent. - See Also:
-
replicationProgressTimeoutNs
public static long replicationProgressTimeoutNs()The amount of time to wait to time out an archive replication when progress has stalled.- Returns:
- system property
CLUSTER_REPLICATION_PROGRESS_TIMEOUT_PROP_NAMEorCLUSTER_REPLICATION_PROGRESS_TIMEOUT_DEFAULT_NS. - Since:
- 1.41.0
-
replicationProgressIntervalNs
public static long replicationProgressIntervalNs()Interval between checks for progress on an archive replication.- Returns:
- system property
CLUSTER_REPLICATION_PROGRESS_INTERVAL_PROP_NAMEorAeron.NULL_VALUEif not set. - Since:
- 1.41.0
-
acceptStandbySnapshots
public static boolean acceptStandbySnapshots()If this node should accept snapshots from standby nodes.- Returns:
- value from property
CLUSTER_ACCEPT_STANDBY_SNAPSHOTS_PROP_NAMEor false if not set.
-
newConsensusModuleExtension
Create a newConsensusModuleExtensionbased on the configuredCONSENSUS_MODULE_EXTENSION_CLASS_NAME_PROP_NAME.- Returns:
- a new
ConsensusModuleExtensionbased on the configuredCONSENSUS_MODULE_EXTENSION_CLASS_NAME_PROP_NAME.
-
enableControlOnConsensusChannel
public static boolean enableControlOnConsensusChannel()Determine the ConsensusModule should bind the control endpoint of the consensus publication.- Returns:
trueif the ConsensusModule should bind the control endpoint of the consensus publication.
-
enableControlOnLogChannel
public static boolean enableControlOnLogChannel()Determine the ConsensusModule should bind the control endpoint of the log publication.- Returns:
trueif the ConsensusModule should bind the log endpoint of the consensus publication.
-