Skip to content

support ASK in cluster mode - #60

Merged
yaacovhazan-Redislabs merged 3 commits into
redis:masterfrom
YaacovHazan:support_ask
Aug 28, 2018
Merged

yaacovhazan-Redislabs merged 3 commits into
redis:masterfrom
YaacovHazan:support_ask

Conversation

@YaacovHazan

Copy link
Copy Markdown
Collaborator

when using cluster mode, "-ASK ..." response can return from
cluster.

adding support to handle ASK reply.

when using cluster mode, "-ASK ..." response can return from
cluster.

adding support to handle ASK reply.
Comment thread client.cpp Outdated
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(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this log incompatible with unix sockets? Maybe better to hide server ID behind an abstraction in shard_connection.

Comment thread client.cpp Outdated
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,"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread cluster_client.cpp Outdated
} else {
assert(0);
if (response->is_error()) {
benchmark_debug_log("server %s:%s handle response: %s\n",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
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.

3 participants