-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add more logs and metrics to trace the broker load process #1530
Conversation
The Operator wants to known when the job being scheduled as PENDING and LOADING. And how long it takes to finish these sub states. Also add 2 metrics on BE to monitor the memtable's flush time. `memtable_flush_total` and `memtable_flush_duration_us`
for (auto const& pair: _node_add_batch_time_map) { | ||
ss << "{" << pair.first << "=" << pair.second << "}"; | ||
} | ||
LOG(INFO) << ss.str(); |
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 think you should VLOG(), and use be.conf to switch it to open.
and you should use if (LOG.level) to enclose string constructor.
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.
VLOG can not be used online..
I think add one log for one load job is OK.
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.
You can use pattern to make only this module
The Operator wants to known when the job being scheduled as PENDING and LOADING. And how long it takes to finish these sub states. Also add 2 metrics on BE to monitor the memtable's flush time. `memtable_flush_total` and `memtable_flush_duration_us`
The Operator wants to known when the job being scheduled as PENDING
and LOADING. And how long it takes to finish these sub states. So I add log
at the beginning of each state.
Add 2 metrics on BE to monitor the memtable's flush time.
memtable_flush_total
andmemtable_flush_duration_us
Add a log when closing OlapTableSink, to record the add_batch() time of each
Backend, cumulative.