]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph_osd: remove client message cap limit
authorHaomai Wang <haomai@xsky.com>
Fri, 5 May 2017 13:00:11 +0000 (21:00 +0800)
committerHaomai Wang <haomai@xsky.com>
Fri, 5 May 2017 13:01:20 +0000 (21:01 +0800)
Leave the messenger ops throttle interface, we could keep watching on changing

Signed-off-by: Haomai Wang <haomai@xsky.com>
src/ceph_osd.cc

index f4d28751a1688c90f850bd15498d0a5129fa6726..c60ff866af5219d11f5ce1b86933f714ec541e6a 100644 (file)
@@ -492,9 +492,6 @@ flushjournal_out:
   boost::scoped_ptr<Throttle> client_byte_throttler(
     new Throttle(g_ceph_context, "osd_client_bytes",
                 g_conf->osd_client_message_size_cap));
-  boost::scoped_ptr<Throttle> client_msg_throttler(
-    new Throttle(g_ceph_context, "osd_client_messages",
-                g_conf->osd_client_message_cap));
 
   // All feature bits 0 - 34 should be present from dumpling v0.67 forward
   uint64_t osd_required =
@@ -505,7 +502,7 @@ flushjournal_out:
   ms_public->set_default_policy(Messenger::Policy::stateless_server(0));
   ms_public->set_policy_throttlers(entity_name_t::TYPE_CLIENT,
                                   client_byte_throttler.get(),
-                                  client_msg_throttler.get());
+                                  nullptr);
   ms_public->set_policy(entity_name_t::TYPE_MON,
                                Messenger::Policy::lossy_client(CEPH_FEATURE_UID |
                                                               CEPH_FEATURE_PGID64 |
@@ -669,7 +666,6 @@ flushjournal_out:
   delete ms_objecter;
 
   client_byte_throttler.reset();
-  client_msg_throttler.reset();
 
   // cd on exit, so that gmon.out (if any) goes into a separate directory for each node.
   char s[20];