]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: note weird balancer debug behavior
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 9 Jun 2022 16:03:30 +0000 (12:03 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 20 Sep 2023 15:27:26 +0000 (11:27 -0400)
Fixes: https://tracker.ceph.com/issues/55980
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 0113aebdc22f7a21c8c771838b7ea5ee44f3d80a)

src/mds/MDBalancer.cc
src/mds/Mantle.cc

index cb63f60544426e43c351e85beccf11ca832cd603..0e078a3fc4ee4f0454189cee3020ee378f70184c 100644 (file)
@@ -37,6 +37,11 @@ using namespace std;
 #include "common/config.h"
 #include "common/errno.h"
 
+/* Note, by default debug_mds_balancer is 1/5. For debug messages 1<lvl<=5,
+ * should_gather (below) will be true; so, debug_mds will be ignored even if
+ * set to 20/20. For this reason, some messages may not appear in the log.
+ * Increase both debug levels to get expected output!
+ */
 #define dout_context g_ceph_context
 #undef dout_prefix
 #define dout_prefix *_dout << "mds." << mds->get_nodeid() << ".bal " << __func__ << " "
index 653d47d6665edcac205a162ff1ca973938f2d2ea..e9033bbd94c1478ce7eb4eae82ab20c36e242632 100644 (file)
 #include "common/Clock.h"
 #include "CInode.h"
 
+/* Note, by default debug_mds_balancer is 1/5. For debug messages 1<lvl<=5,
+ * should_gather (below) will be true; so, debug_mds will be ignored even if
+ * set to 20/20. For this reason, some messages may not appear in the log.
+ * Increase both debug levels to get expected output!
+ */
 #define dout_context g_ceph_context
 #undef dout_prefix
 #define dout_prefix *_dout << "mds.mantle "