Repository navigation
Connection Error Tracking & Auto-Reconnect - #320
Merged
Merged
Conversation
|
Any reason --reconnect-on-error should not be enabled by default other than backward compatibility? |
fcostaoliveira
force-pushed
the
error.reconnect
branch
from
November 18, 2025 09:55
da9df3d to
8801f9b
Compare
Collaborator
Author
@kamran-redis like you mentioned just to be backwards compatible. all added features on this PR have the default behaviour that's backwards compatible |
paulorsousa
previously approved these changes
Nov 18, 2025
paulorsousa
approved these changes
Nov 18, 2025
2 tasks done
7 tasks done
This was referenced Oct 13, 2026
This was referenced Oct 16, 2026
This was referenced Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces connection error tracking and a configurable auto-reconnect mechanism to
memtier_benchmark. The goal is to make benchmarks more resilient when running against clusters where TLS errors, timeouts, or dropped connections can otherwise abort runs prematurely.Connection Error Tracking
Connection ErrorsandConnection Errors/sec)New CLI Options for Reconnection
--reconnect-on-error→ Enable automatic reconnection when connection errors occur (default: disabled)--max-reconnect-attempts=N→ Limit reconnection retries (default: 0, unlimited)--reconnect-backoff-factor=F→ Exponential backoff multiplier for retry delays (default: 0, no backoff)--connection-timeout=SECS→ Timeout in seconds before considering a connection attempt failed (default: 0, disabled)Client Behavior
BEV_EVENT_ERROR,BEV_EVENT_EOF, or connection timeout → update error stats, attempt reconnection (if enabled)Backwards Compatibility
All new features are opt-in and fully backwards compatible:
--reconnect-on-errormust be explicitly enabled)