mds: emit warning with estimated replay time#55616
Conversation
fbc84d0 to
b5246b4
Compare
|
jenkins test make check |
b5246b4 to
7f63a76
Compare
* refs/pull/55616/head: mds: emit warning with estimated replay time
|
(dropping from current batch) |
batrick
left a comment
There was a problem hiding this comment.
Also, I'd like to see the commit broken into:
mds: ...qa: ...PendingReleaseNotes,doc: ...
(we need release note)
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
7f63a76 to
9450bab
Compare
|
jenkins retest this please |
|
jenkins test make check |
|
jenkins test api |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
2f78af0 to
0aa487c
Compare
|
This PR is under test in https://tracker.ceph.com/issues/68968. |
* refs/pull/55616/head: PendingReleaseNotes: add note for replay completion warning qa: test to verify `MDS_ESTIMATED_REPLAY_TIME` warning doc: add a note for `MDS_ESTIMATED_REPLAY_TIME` MDS warning mds: emit warning for estinated replay time Reviewed-by: Patrick Donnelly <[email protected]>
0aa487c to
e5a9be4
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
If replay runs more than 30 seconds, emit a warning with estimated replay completion time. Fixes: https://tracker.ceph.com/issues/61863 Signed-off-by: Manish M Yathnalli <[email protected]> Signed-off-by: Venky Shankar <[email protected]>
Signed-off-by: Venky Shankar <[email protected]>
Signed-off-by: Venky Shankar <[email protected]>
Signed-off-by: Venky Shankar <[email protected]>
e5a9be4 to
65acd39
Compare
* refs/pull/55616/head: PendingReleaseNotes: add note for replay completion warning qa: test to verify `MDS_ESTIMATED_REPLAY_TIME` warning doc: add a note for `MDS_ESTIMATED_REPLAY_TIME` MDS warning mds: emit warning for estinated replay time Reviewed-by: Patrick Donnelly <[email protected]>
| auto total_bytes = write_pos - trimmed_pos; | ||
| double percent_complete = ((double)(read_pos - trimmed_pos)) / (double)total_bytes; | ||
| auto elapsed_time = std::chrono::duration_cast<std::chrono::seconds> | ||
| (ceph::coarse_mono_clock::now() - replay_start_time); | ||
| auto time = ((1 - percent_complete) / percent_complete) * elapsed_time; | ||
|
|
||
| dout(20) << __func__ << "percent_complete=" << percent_complete | ||
| << ", elapsed_time=" << elapsed_time | ||
| << ", estimated_time=" << std::chrono::round<std::chrono::seconds>(time) | ||
| << dendl; | ||
|
|
||
| estimated_time.percent_complete = percent_complete * 100; | ||
| estimated_time.elapsed_time = elapsed_time; | ||
| estimated_time.estimated_time = std::chrono::round<std::chrono::seconds>(time); | ||
| dout(20) << __func__ << "estimated_time.percent_complete=" << estimated_time.percent_complete | ||
| << ", estimated_time.elapsed_time=" << estimated_time.elapsed_time | ||
| << ", estimated_time.estimated_time=" << estimated_time.estimated_time | ||
| << dendl; |
There was a problem hiding this comment.
Why are there 2 log lines with almost the same info ?
There was a problem hiding this comment.
For debugging when I was trying to get the regex prefect. I'll remove it in a follow up PR once this change is merge (of course if nothing else stands out).
It is helpful to get an estimate of how much time it might take to finish replaying the journal.
Fixes: https://tracker.ceph.com/issues/61863
Supersedes #52527
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e