Skip to content

Conversation

@morningman
Copy link
Contributor

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

  2. Add 2 metrics on BE to monitor the memtable's flush time.
    memtable_flush_total and memtable_flush_duration_us

  3. Add a log when closing OlapTableSink, to record the add_batch() time of each
    Backend, cumulative.

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();
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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

like http://rpg.ifi.uzh.ch/docs/glog.html#verbose

@imay imay merged commit a88b55e into apache:master Jul 23, 2019
morningman added a commit to baidu-doris/incubator-doris that referenced this pull request Jul 23, 2019
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`
@imay imay mentioned this pull request Sep 26, 2019
luwei16 pushed a commit to luwei16/Doris that referenced this pull request Apr 7, 2023
swjtu-zhanglei pushed a commit to swjtu-zhanglei/incubator-doris that referenced this pull request Jul 25, 2023
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