Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java] Introduce SnapshotDurationTracker #1532

Conversation

eliquinox
Copy link
Contributor

@eliquinox eliquinox commented Nov 14, 2023

This PR introduces a set of counters that enable monitoring of snapshot duration within Cluster's Consensus Module:

  • AeronCounters#CLUSTER_CONSENSUS_MODULE_MAX_SNAPSHOT_DURATION_TYPE_ID to track maximum snapshot duration.
  • AeronCounters#CLUSTER_CONSENSUS_MODULE_SNAPSHOT_DURATION_THRESHOLD_EXCEEDED_TYPE_ID to track number of times a predefined threshold value (see below) has been exceeded.

Threshold value can be set via aeron.cluster.consensus.module.snapshot.threshold property or via io.aeron.cluster.ConsensusModule.Context#snapshotDurationThresholdNs(long).

@eliquinox eliquinox force-pushed the consensus-module-snapshot-duration-counters branch from c8e8d14 to 88c6199 Compare November 14, 2023 19:59
@mjpt777
Copy link
Contributor

mjpt777 commented Nov 16, 2023

In general LGTM.

@eliquinox eliquinox force-pushed the consensus-module-snapshot-duration-counters branch 2 times, most recently from 99e7479 to 75b27bd Compare November 16, 2023 09:20
@eliquinox eliquinox force-pushed the consensus-module-snapshot-duration-counters branch from 75b27bd to 4f56451 Compare November 16, 2023 10:54
@vyazelenko
Copy link
Contributor

@eliquinox Why not use a plain DutyCycleStallTracker which we is used in all other places?

@eliquinox eliquinox force-pushed the consensus-module-snapshot-duration-counters branch from 4f56451 to df92eba Compare November 17, 2023 19:52
@eliquinox eliquinox force-pushed the consensus-module-snapshot-duration-counters branch from df92eba to 3721d31 Compare November 17, 2023 19:55
@vyazelenko vyazelenko merged commit af560d6 into real-logic:master Nov 20, 2023
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants