]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: improve scheduler log
authorMark Kogan <mkogan@redhat.com>
Mon, 13 Jul 2020 12:11:21 +0000 (15:11 +0300)
committerMark Kogan <mkogan@redhat.com>
Mon, 13 Jul 2020 13:36:41 +0000 (16:36 +0300)
when scheduling a dmclock requests
add to the log the scheduler type as configured
per "rgw_scheduler_type"

Fixes: https://tracker.ceph.com/issues/46332
Signed-off-by: Mark Kogan <mkogan@redhat.com>
src/rgw/rgw_process.cc

index e314e8b2fb9c59dce3e024d47cfb372d83bfdb8c..e52f8cb6835c31a9264405f056c0824c551fbea1 100644 (file)
@@ -48,8 +48,12 @@ auto schedule_request(Scheduler *scheduler, req_state *s, RGWOp *op)
 
   const auto client = op->dmclock_client();
   const auto cost = op->dmclock_cost();
-  ldpp_dout(op,10) << "scheduling with dmclock client=" << static_cast<int>(client)
-                  << " cost=" << cost << dendl;
+  if (s->cct->_conf->subsys.should_gather(ceph_subsys_rgw, 10)) {
+    ldpp_dout(op,10) << "scheduling with "
+                    << s->cct->_conf.get_val<std::string>("rgw_scheduler_type")
+                    << " client=" << static_cast<int>(client)
+                    << " cost=" << cost << dendl;
+  }
   return scheduler->schedule_request(client, {},
                                      req_state::Clock::to_double(s->time),
                                      cost,