]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: rename 'drop cache' and 'get cache stats' to group them by component
authorMohamad Gebai <mgebai@suse.com>
Mon, 8 Oct 2018 15:04:22 +0000 (11:04 -0400)
committerMohamad Gebai <mgebai@suse.com>
Wed, 10 Oct 2018 15:46:54 +0000 (11:46 -0400)
Rename 'drop cache' to 'cache drop' and 'get cache stats' to 'cache
status'.

Signed-off-by: Mohamad Gebai <mgebai@suse.com>
PendingReleaseNotes
doc/rados/operations/control.rst
src/osd/OSD.cc

index 4f5472f1d1edf9864c3c03ef74ec7f46d7f8d14d..a282d0fcef7478b794aed37c22c816e960e2c719 100644 (file)
   support. It features less network traffic and disk I/O when performing
   recovery.
 
-* The 'drop cache' OSD command has been added to drop an OSD's caches:
+* The 'cache drop' OSD command has been added to drop an OSD's caches:
 
-    - ``ceph tell osd.x drop cache``
+    - ``ceph tell osd.x cache drop``
 
-* The 'get cache stats' OSD command has been added to get an OSD's cache stats:
+* The 'cache status' OSD command has been added to get the cache stats of an
+  OSD:
 
-    - ``ceph tell osd.x get cache stats'
+    - ``ceph tell osd.x cache status'
 
 >=13.1.0
 --------
index 6ccf9c2793893f2ea978022a4c51d98144b48974..76abca275513135036fbef3b8c867745c61d62ff 100644 (file)
@@ -276,13 +276,13 @@ concurrently accessing the OSD. ::
 
        ceph tell osd.N bench [TOTAL_DATA_BYTES] [BYTES_PER_WRITE]
 
-To clear an OSD's caches between benchmarking runs, use the 'drop cache' command ::
+To clear an OSD's caches between benchmark runs, use the 'cache drop' command ::
 
-       ceph tell osd.N drop cache
+       ceph tell osd.N cache drop
 
-To get the cache statistics of an OSD, use the 'get cache stats' command ::
+To get the cache statistics of an OSD, use the 'cache status' command ::
 
-       ceph tell osd.N get cache stats
+       ceph tell osd.N cache status
 
 MDS Subsystem
 =============
index 74fc3e37d57f50fbd9cb521e185bfb0612eea2d8..79eb1ec2311a853e0dfbbeeb65b45abd3a72afb2 100644 (file)
@@ -6020,10 +6020,10 @@ COMMAND("compact",
 COMMAND("smart name=devid,type=CephString,req=False",
         "runs smartctl on this osd devices.  ",
         "osd", "rw", "cli,rest")
-COMMAND("drop cache",
+COMMAND("cache drop",
         "Drop all OSD caches",
         "osd", "rw", "cli,rest")
-COMMAND("get cache stats",
+COMMAND("cache status",
         "Get OSD caches statistics",
         "osd", "r", "cli,rest")
 };
@@ -6502,7 +6502,7 @@ int OSD::_do_command(
     probe_smart(devid, ds);
   }
 
-  else if (prefix == "drop cache") {
+  else if (prefix == "cache drop") {
     dout(20) << "clearing all caches" << dendl;
     // Clear the objectstore's cache - onode and buffer for Bluestore,
     // system's pagecache for Filestore
@@ -6519,7 +6519,7 @@ int OSD::_do_command(
     }
   }
 
-  else if (prefix == "get cache stats") {
+  else if (prefix == "cache status") {
     int obj_ctx_count = 0;
     vector<PGRef> pgs;
     _get_pgs(&pgs);
@@ -6527,7 +6527,7 @@ int OSD::_do_command(
       obj_ctx_count += pg->get_cache_obj_count();
     }
     if (f) {
-      f->open_object_section("cache_stats");
+      f->open_object_section("cache_status");
       f->dump_int("object_ctx", obj_ctx_count);
       store->dump_cache_stats(f.get());
       f->close_section();