Skip to content

Add WAL write duration metric - #153

Merged
yiwu-arbug merged 2 commits into
tikv:6.4.tikvfrom
hawkingrei:add_wal_duration_metric
Mar 9, 2020
Merged

yiwu-arbug merged 2 commits into
tikv:6.4.tikvfrom
hawkingrei:add_wal_duration_metric

Conversation

@hawkingrei

Copy link
Copy Markdown
Member

Add WAL write duration metric

UCP #5751

Signed-off-by: Wangweizhen [email protected]

@sre-bot sre-bot added the contribution This PR is from a community contributor. label Mar 7, 2020
@hawkingrei

Copy link
Copy Markdown
Member Author

@yiwu-arbug PTAL

// Same holds for all in the batch group
size_t write_with_wal = 0;
WriteBatch* to_be_cached_state = nullptr;
StopWatch write_sw(env_, stats_, DB_WRITE_WAL_TIME);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add the same stopwatch to ConcurrentWriteToWAL as well.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, have added.

@yiwu-arbug yiwu-arbug left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Will merge once CI passes.

@yiwu-arbug
yiwu-arbug merged commit 906258c into tikv:6.4.tikv Mar 9, 2020
@hawkingrei
hawkingrei deleted the add_wal_duration_metric branch March 9, 2020 06:15
yiwu-arbug pushed a commit that referenced this pull request Mar 20, 2020
Add WAL write duration metric

UCP [meta#5751](tikv/tikv#6541)

Signed-off-by: Wangweizhen <[email protected]>
@tabokie tabokie mentioned this pull request May 9, 2022
39 tasks done
tabokie pushed a commit to tabokie/rocksdb that referenced this pull request May 12, 2022
Add WAL write duration metric

UCP tikv/tikv#6541

Signed-off-by: Wangweizhen <[email protected]>
Signed-off-by: tabokie <[email protected]>
tabokie pushed a commit that referenced this pull request May 12, 2022
Add WAL write duration metric

UCP tikv/tikv#6541

Signed-off-by: Wangweizhen <[email protected]>
Signed-off-by: tabokie <[email protected]>
v01dstar pushed a commit to v01dstar/rocksdb that referenced this pull request Sep 24, 2024
Add WAL write duration metric

UCP tikv/tikv#6541

Signed-off-by: Wangweizhen <[email protected]>
Signed-off-by: tabokie <[email protected]>
Signed-off-by: Yang Zhang <[email protected]>
@v01dstar v01dstar mentioned this pull request Sep 24, 2024
v01dstar pushed a commit to v01dstar/rocksdb that referenced this pull request Sep 27, 2024
Add WAL write duration metric

UCP tikv/tikv#6541

Signed-off-by: Wangweizhen <[email protected]>
Signed-off-by: tabokie <[email protected]>
Signed-off-by: Yang Zhang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution This PR is from a community contributor.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants