Repository navigation
HealthMonitor: Add topology-aware netsplit detection and warning - #59248
Conversation
029640f to
d68b351
Compare
|
Tested with a Netsplit test run: https://pulpito.ceph.com/ksirivad-2024-08-23_17:38:18-rados:singleton-wip-ksirivad-improve-netsplit-warning-distro-default-smithi/7868749/ By observing the logs, the solution seems to work as it should. |
anthonyeleven
left a comment
There was a problem hiding this comment.
Several doc suggestions; I am not worthy to review the code.
e601b57 to
e8ef616
Compare
|
@anthonyeleven Thanks for correcting my writing! |
|
@gregsfortytwo need your approval for this PR |
|
jenkins test api |
|
@anthonyeleven I pushed the doc fixes to this PR per your request, let me know if they are any good. |
|
@gregsfortytwo ping |
|
jenkins test make check arm64 |
|
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. |
|
Unstale please! |
|
@gregsfortytwo Ping for review |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
Closed/reopened to try and get the "missing .qa links" check to actually run. |
|
jenkins test make check arm64 |
Problem: Currently, Ceph cannot detect and report network partitions (netsplits) between monitors in different topology locations in a consolidated way. While stretch mode can handle partitions through monitor elections, users lack visibility into the topology-level view of network disconnections, making troubleshooting difficult. Solution: This implementation adds a hierarchical netsplit detection mechanism that: - Uses DirectedGraph structure for netsplit detection - Maps monitor disconnections to relevant CRUSH topology levels - Aggregates individual disconnections into location-level reports when appropriate - Detects complete location-level netsplits when ALL monitors between locations cannot communicate - Reports specific topology locations experiencing complete communication failures - Falls back to individual monitor-level reporting for partial disconnections - Handles monitors with missing location data gracefully - Leverages HealthMonitor::check_for_mon_down to receive a set of down monitors, efficiently avoiding false netsplit reports for monitors already known to be down - Implements smart filtering that correctly excludes down monitors from location-based analysis, ensuring accurate netsplit reporting at both individual and topology levels The implementation produces user-friendly health warnings: 1. For complete location netsplits: "Netsplit detected between dc1 and dc2" 2. For individual monitor disconnections: "Netsplit detected between mon.a and mon.d" Performance considerations: - Time complexity: O(m²) where m is the number of monitors - Space complexity: O(m²) for connection tracking - Practical impact is minimal as monitor count is typically small (3-7) Fixes: https://tracker.ceph.com/issues/67371 Signed-off-by: Kamoltat Sirivadhna <[email protected]> Conflicts: src/mon/Elector.cc - Trivial Fix
Fixes: https://tracker.ceph.com/issues/67371 Signed-off-by: Kamoltat Sirivadhna <[email protected]>
b344c7b to
a5248f5
Compare
|
jenkins test api |
|
jenkins test make check |
|
Unrelated: |
|
jenkins test make check |
2 similar comments
|
jenkins test make check |
|
jenkins test make check |
NOTE:
This PR is dependent on #62416 and should always be tested together.
Problem:
Solution:
Performance considerations:
Fixes: https://tracker.ceph.com/issues/67371
Signed-off-by: Kamoltat Sirivadhna [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