cowsql / raft

Asynchronous C implementation of the Raft consensus protocol
https://raft.readthedocs.io
Other
45 stars 6 forks source link

replication: Limit maximum the number of total entries in-flight #149

Closed freeekanayaka closed 7 months ago

freeekanayaka commented 7 months ago

Limit the number of total entries that might be in-flight, i.e. that have been sent to a follower, but haven't yet been acknowledged.

Add raft_set_max_inflight_entries() to make that limit configurable.

codecov[bot] commented 7 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (c266e9e) 73.87% compared to head (73249dc) 73.95%.

Files Patch % Lines
src/replication.c 88.88% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #149 +/- ## ========================================== + Coverage 73.87% 73.95% +0.08% ========================================== Files 52 52 Lines 10020 10028 +8 Branches 2442 2442 ========================================== + Hits 7402 7416 +14 + Misses 1266 1260 -6 Partials 1352 1352 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.