-
Notifications
You must be signed in to change notification settings - Fork 106
use hdr histogram & make maxLatency configurable in tpcc workload #65
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
Conversation
LGTM |
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.
Rest LGTM
tpcc/workload.go
Outdated
@@ -329,7 +335,10 @@ func (w *Workloader) OutputStats(ifSummaryReport bool) { | |||
hist, e := w.rtMeasurement.OpSumMeasurement["new_order"] | |||
if e && !hist.Empty() { | |||
result := hist.GetInfo() | |||
fmt.Printf("tpmC: %.1f\n", result.Ops*60) | |||
const SpecWarehouseFactor = 12.86 |
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.
const SpecWarehouseFactor = 12.86 | |
const specWarehouseFactor = 12.86 |
pkg/measurement/measure.go
Outdated
@@ -7,10 +7,13 @@ import ( | |||
"time" | |||
) | |||
|
|||
const DefaultMaxLatency = 16 * time.Second |
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.
16s is too small for TPC-H and CH-benCHmark, they usually take one minute to ten minutes, and more sf
means a longer duration
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.
Seems an unreasonable report on TPC-H:
[Summary] Q1: 10.33s
[Summary] Q10: 15.84s
[Summary] Q11: 14.23s
[Summary] Q12: 15.19s
[Summary] Q13: 10.44s
[Summary] Q14: 14.87s
[Summary] Q15: 15.57s
[Summary] Q16: 12.62s
[Summary] Q17: 14.50s
[Summary] Q18: 14.90s
[Summary] Q19: 10.33s
[Summary] Q2: 11.51s
[Summary] Q20: 12.48s
[Summary] Q21: 15.84s
[Summary] Q22: 10.80s
[Summary] Q3: 15.84s
[Summary] Q4: 15.84s
[Summary] Q6: 7.11s
[Summary] Q7: 15.84s
[Summary] Q8: 15.84s
[Summary] Q9: 14.76s
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.
lgtm
Signed-off-by: lysu <sulifx@gmail.com>
@mahjonp hi, it has be signed please help merge if free, thx~ |
now, we are analyze tpcc workload latency and found current output bucket count is too small and default latency configuration(16s) is too high for our situtation
so this PR try to: