Repository navigation
support ASK in cluster mode - #60
Merged
Merged
Conversation
when using cluster mode, "-ASK ..." response can return from cluster. adding support to handle ASK reply.
yossigo
suggested changes
Aug 5, 2018
| benchmark_error_log("error response: %s\n", response->get_status()); | ||
| benchmark_error_log("server %s:%s handle error response: %s\n", | ||
| m_connections[conn_id]->get_address(), | ||
| m_connections[conn_id]->get_port(), |
Contributor
There was a problem hiding this comment.
Isn't this log incompatible with unix sockets? Maybe better to hide server ID behind an abstraction in shard_connection.
| fprintf(f, "Per-Second Benchmark Data\n"); | ||
| fprintf(f, "Second,SET Requests,SET Average Latency,SET Total Bytes,SET Moved," | ||
| "GET Requests,GET Average Latency,GET Total Bytes,GET Misses,GET Hits,GET Moved," | ||
| fprintf(f, "Second,SET Requests,SET Average Latency,SET Total Bytes,SET Moved, SET Ask," |
Contributor
There was a problem hiding this comment.
Not sure about breaking output format just for the sake of ASK stats. I'd either make this optional or at least push it to the end of the CSV to minimize risk of breaking something.
| } else { | ||
| assert(0); | ||
| if (response->is_error()) { | ||
| benchmark_debug_log("server %s:%s handle response: %s\n", |
Contributor
There was a problem hiding this comment.
See above re/ Unix sockets.
fix cr: 1. add cluster data at the end of statistic file 2. add readable id for connection
fix cr: CSV header
yossigo
approved these changes
Aug 28, 2018
7 tasks done
This was referenced Sep 19, 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.
when using cluster mode, "-ASK ..." response can return from
cluster.
adding support to handle ASK reply.