]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: blocklist clients with "bloated" session metadata
authorVenky Shankar <vshankar@redhat.com>
Fri, 11 Aug 2023 08:36:52 +0000 (04:36 -0400)
committerVenky Shankar <vshankar@redhat.com>
Tue, 22 Aug 2023 04:47:26 +0000 (00:47 -0400)
commitbc6814d72a9fbec9c41ed75aee2314666cfca34b
treef536c3c68da4343b82e2f138fa561522a82462a7
parentde99a529f4aaa48dc3cb34d935f481c8bf7a5a72
mds: blocklist clients with "bloated" session metadata

Buggy clients (or maybe a MDS bug) causes a huge buildup of
`completed_requests` metadata in its session information.
This could cause the MDS to go read-only when its flushing
session metadata to the journal since the bloated metadata
causes the ODSOp payload to exceed the maximum write size.

Blocklist such clients so as to allow the MDS to continue
servicing requests.

Fixes: http://tracker.ceph.com/issues/61947
Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/common/options/mds.yaml.in
src/mds/MDSRank.cc
src/mds/SessionMap.cc
src/mds/SessionMap.h