-
Notifications
You must be signed in to change notification settings - Fork 1
DMA reads #12
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
base: master
Are you sure you want to change the base?
DMA reads #12
Conversation
|
|
||
| void opentelemetry_state_data::serialize_dma_counter(bytes& serialized) const { | ||
| const auto counter = htonl(_dma_counter); | ||
| const auto *counter_ptr = reinterpret_cast<const int8_t*>(&counter); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By chance, int8_t* doesn't break strict aliasing?
service/storage_proxy.cc
Outdated
| return _proxy->_messaging.send_read_data(netw::messaging_service::msg_addr{ep, 0}, timeout, *_cmd, _partition_range, opts.digest_algo).then([this, ep](rpc::tuple<query::result, rpc::optional<cache_temperature>> result_hit_rate) { | ||
| auto&& [result, hit_rate] = result_hit_rate; | ||
| return _proxy->_messaging.send_read_data(netw::messaging_service::msg_addr{ep, 0}, timeout, *_cmd, _partition_range, opts.digest_algo).then([this, ep](rpc::tuple<query::result, rpc::optional<cache_temperature>, tracing::trace_state_ptr::cache_counter_t, tracing::trace_state_ptr::dma_counter_t, tracing::trace_state_ptr::dma_size_t> result_hit_rate) { | ||
| auto&& [result, hit_rate, cache_counter, dma_counter, dma_size] = result_hit_rate; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I suggest that we put comments wrt. "parent PRs" here, so they can be all fixed at once)
My suggestion is to modernize the name of result_hit_rate
f6f9e1f to
f912bab
Compare
Add an attribute to opentelemetry_state to store a number of partitions read from the cache. Extend RPC READ_DATA procedure to pass a number of reads from the cache in replicas. It's summed up by the coordinator and returned in custom_payload.
f912bab to
10e6316
Compare
10e6316 to
1ee37d7
Compare
Move gathered telemetry data to opentelemetry_state_data and make it sharded.
1ee37d7 to
4ac7e6a
Compare
The PR introduces new replica-side tracing information gathered in opentelemetry state and send by a coordinator to the client in custom payload: