Bug #81784
closedDaemon mgr sessions reset every ms_connection_idle_timeout because the mgr sends nothing back
0%
Description
The mgr sends nothing back on a daemon's lossy mgr session, and AsyncConnection::tick() measures idleness from last_active, which only reads update. So every OSD and MDS faults its mgr session once it has been open for ms_connection_idle_timeout, even though it sends a report every mgr_stats_period. With debug_ms 1 and debug_mgrc 20 on an OSD:
-- [v2:<osd addr>] >> [v2:<mgr addr>] conn(... s=STATE_CONNECTION_ESTABLISHED l=1).tick idle (1799882133) for more than 900000000 us, fault. mgrc ms_handle_reset ms_handle_reset con 0x556d4a935000 mgrc reconnect Terminating session with v2:<mgr addr> mgrc reconnect Starting new session with [v2:<mgr addr>] mgrc handle_mgr_configure stats_period=61 mgrc operator() sending 140 counters (of possible 633), 140 new, 0 removed
Each reconnect authenticates again and declares all of the daemon's perf counters again. Daemons that connected together after a mgr failover stay in step, so on a Reef 18.2.8 cluster every OSD and MDS reconnected to the mgr at the same moment every 15 or 30 minutes.
Fix: after each report, MgrClient sends the mgr a keepalive if half of the daemon's own ms_connection_idle_timeout has passed since the last one. The ack counts as received traffic on the daemon, so the session stays open.
AD Updated by Anthony D'Atri about 2 months ago
- Status changed from New to Fix Under Review
- Pull request ID set to 72720
AD Updated by Anthony D'Atri about 2 months ago
- Subject changed from MgrClient sends no keepalive so daemon mgr sessions reset every ms_connection_idle_timeout to Daemon mgr sessions reset every ms_connection_idle_timeout because the mgr sends nothing back
- Description updated (diff)
AD Updated by Anthony D'Atri about 2 months ago
- Description updated (diff)
AD Updated by Anthony D'Atri about 1 month ago
- Description updated (diff)
UB Updated by Upkeep Bot about 1 month ago
- Copied to Backport #82492: tentacle: Daemon mgr sessions reset every ms_connection_idle_timeout because the mgr sends nothing back added
UB Updated by Upkeep Bot about 1 month ago
- Copied to Backport #82493: umbrella: Daemon mgr sessions reset every ms_connection_idle_timeout because the mgr sends nothing back added
UB Updated by Upkeep Bot about 1 month ago
- Status changed from Fix Under Review to Backporting
- Merge Commit set to b88220a5e9ba1a020df58b9407a7434e296132f9
- Fixed In set to v22.0.0-216-gb88220a5e9
- Upkeep Timestamp set to 2026-11-01T15:14:39+00:00
UB Updated by Upkeep Bot 8 days ago
- Status changed from Backporting to Resolved
- Upkeep Timestamp changed from 2026-11-01T15:14:39+00:00 to 2026-11-26T01:10:51+00:00