Stats inner/inter zone network traffic for mpp tasks#9747
Stats inner/inter zone network traffic for mpp tasks#9747ti-chi-bot[bot] merged 20 commits intopingcap:masterfrom
Conversation
|
/hold |
|
@yibin87: GitHub didn't allow me to request PR reviews from the following users: SeaRise. Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/unhold |
5b96f79 to
e1de416
Compare
|
/cc @xzhangxian1008 |
| inter_zone_receive_bytes += bytes; | ||
| break; | ||
| default: | ||
| break; |
There was a problem hiding this comment.
Maybe we can throw exception if encountering an unknown type?
| inter_zone_send_bytes += bytes; | ||
| break; | ||
| default: | ||
| break; |
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
| } | ||
|
|
||
| static size_t getSourceNum() { return 1; } | ||
| static size_t getSourceNum() { return 2; } |
There was a problem hiding this comment.
I‘m not sure if the change will bring some side affects
There was a problem hiding this comment.
Checked that it's only used in CoprocessorReaderSourceOp as the IOProfile's connection info num.
|
|
||
| String store_zone_label; | ||
| auto kv_store = tmt.getKVStore(); | ||
| if likely (kv_store) |
There was a problem hiding this comment.
does this work for the compute node in disagg-arch?
There was a problem hiding this comment.
No, for disagg-arch, compute node, kv_store is nullptr.
| } | ||
| String LocalTableScanDetail::toJson() const | ||
| { | ||
| return fmt::format(R"({{"is_local":false,"bytes":{},{}}})", bytes, time_detail.toJson()); |
There was a problem hiding this comment.
why is_local is false for LocalTableScanDetail?
There was a problem hiding this comment.
Good catch, updated.
Signed-off-by: yibin <huyibin@pingcap.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: windtalker, xzhangxian1008 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
What problem does this PR solve?
Issue Number: close #9748
Problem Summary:
What is changed and how it works?
Inner/inter zone network traffic is priced differently in cloud, thus trace each mpp query's such info will help users to locate the most network-expensive query.
This PR stats thress kinds of network traffic:
Check List
Tests
Currently, set same and different zone labels for tiflash proxy config, and hack DAGStorageInterpreter to always use remote coprocessor read. Then check the MPPTaskStatistics.cpp output to see if local/inner/inter zone label is set correctly.
When tidb side change is merged, will check slow log and statements summary.
Side effects
Documentation
Release note