Repository navigation
osd: Log acting set when a PG is marked as laggy. - #66974
Conversation
|
Can one of the admins verify this patch? |
14 similar comments
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
jenkins test make check |
| @@ -875,6 +875,18 @@ bool PrimaryLogPG::check_laggy(OpRequestRef& op) | |||
|
|
|||
| // go to laggy state | |||
| state_set(PG_STATE_LAGGY); | |||
| { | |||
| auto acting = get_acting(); | |||
| std::ostringstream ss; | |||
There was a problem hiding this comment.
I guess (haven't tried to compile the idea below) there is no need for std::ostringstream as dout helpers might be able to host even a loop within:
dout(0) << __func__ << " PG " << get_pgid() << " marked LAGGY; acting [";
for (size_t i = 0; i < acting.size(); ++i) {
if (i)
*_dout << ",";
*_dout << acting[i];
}
*_dout << "]";
*_dout << dendl;There was a problem hiding this comment.
Thanks @rzarzynski for taking a look. Yes, dout does work as you suggested. However, I've modified the code so that the same is logged into the cluster log too as that's probably a better place to have this info.
|
Overall nice idea, thank you! |
1d3e57b to
c0336c9
Compare
| for (size_t i = 0; i < acting.size(); ++i) { | ||
| if (i) | ||
| ss << ","; | ||
| ss << acting[i]; | ||
| } |
There was a problem hiding this comment.
We should be able to print << get_acting()
There was a problem hiding this comment.
That's neat - I've modified as such. Thanks @Matan-B!
6709a53 to
d2177b1
Compare
e8a9371 to
90720d5
Compare
|
Hi @pponnuvel, there was a related failure in a test due to the newly introduced cluster warning. Please see |
Fixes: https://tracker.ceph.com/issues/74448 Signed-off-by: Ponnuvel Palaniyappan <[email protected]>
0ff0fb3 to
04bce29
Compare
When pggrow_host thrasher kills a host and all its OSDs, those OSDs stop sending lease ACKs. Then, once the lease interval (16s) expires, PGs go into laggy state. This is expected for this test scenario and thus adding it to the ignore list. Signed-off-by: Ponnuvel Palaniyappan <[email protected]>
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok to test" to allow the Jenkins jobs to run. |
Thanks @sseshasa for the info. I've also fixed a bug that this revealed - the previous change was using a temporary resulting in UB. Fixed that in code. Yes, this is an expected behaviour as the PG thrasher kills all OSDs, resulting in lease expiry and thus PGs can get into LAGGY state. I've added this to the ignore list now. Thanks again! |
|
Hi @Matan-B Looks like this needs a re-look before marking it 'needs-qa' as there were some related failure in the QA run. PTAL when you can. Thanks. |
|
@pponnuvel - If this PR requires re-testing, please add the needs-qa label accordingly. |
Hi @SrinivasaBharath yes, it does need re-testing. But I don't have the permission to add labels, so please add if you can. Thanks. |
|
@Matan-B ping |
|
Hi @SrinivasaBharath , can you please pickup this PR for the next round of testing (Matan's approved again). Thanks. (I don't have permission to add the 'needs-qa' label btw) |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
2 similar comments
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
@sseshasa @SrinivasaBharath Would you mind taking a look at this and see if this is good to merge? Thanks. |
|
This PR has been added to wip-bharath1-testing-20260810.014116-main. |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
| auto msg = fmt::format("PG {} marked LAGGY; acting [{}]", | ||
| get_pgid(), fmt::join(acting_osds, ",")); | ||
| dout(0) << __func__ << " " << msg << dendl; | ||
| osd->clog->warn() << msg; |
There was a problem hiding this comment.
Was logging both the OSD log (at level 0, so unconditionally) and to the cluster log intended? I don't think many other more durable/severe conditions (e.g. PG_DEGRADED or PG_DAMAGED) do that.
Regardless, this is disrupting multiple suites now. Here is an example of a krbd run:
The vast majority of jobs that failed due to marked LAGGY in the cluster log there don't ever kill OSDs or do any kind of thrashing -- it's just regular I/O workloads (some more intensive, some less).
Laggy PGs should be relatively less common and thus the additional logging shouldn't cause any negative impact on performance.
When PGs do get into laggy state, the cluster is likely affected, so this is going to be useful and likely offset any potential downside due to additional logging.
Fixes: https://tracker.ceph.com/issues/74448
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 test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.