Repository navigation
mgr: return EAGAIN when ceph-mgr request queue is full - #60194
neesingh-rh wants to merge 1 commit into
Conversation
|
This PR is open for any suggestions w.r.t. the naming of functions/commands too along with code reviews. I have used what looked apt to me. |
5b146c0 to
d8ffe12
Compare
d8ffe12 to
de3cae8
Compare
|
jenkins retest this please |
de3cae8 to
55ddd2a
Compare
|
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! |
Fixes: https://tracker.ceph.com/issues/62712 Signed-off-by: Neeraj Pratap Singh <[email protected]>
tchaikov
left a comment
There was a problem hiding this comment.
@neesingh-rh after reading the discussion at https://tracker.ceph.com/issues/62712, i think the consensus is to have
- an opt-in and per-module limit
- generic solution which applies to all modules
but this pr gets this wrong. as it uses a single global mod_finisher_cnt and a single global max_queue_len in ActivePyModules. So all modules share one counter and one threshold. could you help me understand how you implement the per-module limit with these global counter shared by all modules?
|
This is interesting, I'd like to see if this is implemented per module since it has a relevant use case in audit logging feature (#66946) |
|
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! |
|
@neesingh-rh are you planning to continue with that PR? or can i take over that one? |
A module's commands wait on its finisher thread while holding their client message throttle slot. If the module is slow or stuck (e.g. volumes blocked on an unresponsive MDS), its queued commands can fill mgr_client_messages and the mgr stops reading commands from all clients, including ones for other modules and native mgr commands. Add an opt-in per-module option, mgr/<module>/max_command_queue_length. DaemonServer counts commands queued or running per module and replies EAGAIN instead of queueing once the limit is reached. The limit is read in C++ on each command, so a change applies even while the module's thread is stuck. The count and the number of rejections are exported as cmd_in_flight and cmd_eagain in the mgr_module_<name> perf counters. Based on ceph#60194 Fixes: https://tracker.ceph.com/issues/62712 Co-authored-by: Neeraj Pratap Singh <[email protected]> Signed-off-by: Nitzan Mordechai <[email protected]> Assisted-by: Claude
No worries! I was busy with some other tasks and couldn't look into after having some updates further. I will look into your PR changes |
A module's commands wait on its finisher thread while holding their client message throttle slot. If the module is slow or stuck (e.g. volumes blocked on an unresponsive MDS), its queued commands can fill mgr_client_messages and the mgr stops reading commands from all clients, including ones for other modules and native mgr commands. Add an opt-in per-module option, mgr/<module>/max_command_queue_length. DaemonServer counts commands queued or running per module and replies EAGAIN instead of queueing once the limit is reached. The limit is read in C++ on each command, so a change applies even while the module's thread is stuck. The count and the number of rejections are exported as cmd_in_flight and cmd_eagain in the mgr_module_<name> perf counters. Based on ceph#60194 Fixes: https://tracker.ceph.com/issues/62712 Co-authored-by: Neeraj Pratap Singh <[email protected]> Signed-off-by: Nitzan Mordechai <[email protected]> Assisted-by: Claude
A module's commands wait on its finisher thread while holding their client message throttle slot. If the module is slow or stuck (e.g. volumes blocked on an unresponsive MDS), its queued commands can fill mgr_client_messages and the mgr stops reading commands from all clients, including ones for other modules and native mgr commands. Add an opt-in per-module option, mgr/<module>/max_command_queue_length. DaemonServer counts commands queued or running per module and replies EAGAIN instead of queueing once the limit is reached. The limit is read in C++ on each command, so a change applies even while the module's thread is stuck. The count and the number of rejections are exported as cmd_in_flight and cmd_eagain in the mgr_module_<name> perf counters. Based on ceph#60194 Fixes: https://tracker.ceph.com/issues/62712 Co-authored-by: Neeraj Pratap Singh <[email protected]> Signed-off-by: Nitzan Mordechai <[email protected]> Assisted-by: Claude
Fixes: https://tracker.ceph.com/issues/62712
Signed-off-by: Neeraj Pratap Singh [email protected]
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