aha, thanks very much for pointing out, Anthony!
Just a summary for the screenshot pasted in my previous email. Based on my understanding, "ceph daemon osd.x ops" or "ceph daemon osd.x dump_ops_in_flight" shows the ops currently being processed in the osd.x. I also noticed that there is another ceph cli that shows the number of ops with particular osds, i.e. "ceph osd status {<bucket>}", and the number doesn't match with the daemon one, nor "ceph daemon osd.x dump_historic_ops". I haven't looked into the code yet, and just try to get a quick help from the community about how the ops number from "ceph osd status {<bucket>}" is calculated? Is it a statistical value?
Thanks!
------------------ Original ------------------
From: "Anthony D'Atri" <anthony.datri@xxxxxxxxx>;
Date: Tue, Jul 21, 2020 02:01 AM
To: "rainning"<tweetypie@xxxxxx>;
Subject: Re: [ceph-users] "ceph daemon osd.x ops" shows different number from "ceph osd status <bucket>"
On Jul 20, 2020, at 12:58 AM, rainning <tweetypie@xxxxxx> wrote:
"ceph daemon osd.x ops" shows ops currently in flight, the number is different from "ceph osd status <bucket>". Is the number of ops in "ceph osd status <bucket>" also the ops currently in flight?
root@osd021:~# ceph daemon osd.636 ops
{
"ops": [],
"num_ops": 0
}
root@osd021:~# ceph osd status osd021
+-----+--------+-------+-------+--------+---------+--------+---------+-----------+
| id | host | used | avail | wr ops | wr data | rd ops | rd data | state |
+-----+--------+-------+-------+--------+---------+--------+---------+-----------+
| 37 | osd021 | 542G | 1134G | 22 | 225k | 12 | 274k | exists,up |
| 91 | osd021 | 567G | 1109G | 38 | 281k | 12 | 1006k | exists,up |
| 147 | osd021 | 551G | 1125G | 32 | 307k | 4 | 247k | exists,up |
| 201 | osd021 | 549G | 1127G | 82 | 1505k | 5 | 42.4k | exists,up |
| 264 | osd021 | 1503G | 2222G | 3 | 55.2k | 4 | 12.2k | exists,up |
| 317 | osd021 | 1537G | 2188G | 13 | 138k | 1 | 6190 | exists,up |
| 375 | osd021 | 1369G | 2356G | 1 | 834k | 5 | 67.4k | exists,up |
| 430 | osd021 | 1424G | 2301G | 1 | 8192 | 6 | 1661k | exists,up |
| 480 | osd021 | 1435G | 2289G | 3 | 16.6k | 2 | 42.4k | exists,up |
| 535 | osd021 | 1494G | 2231G | 2 | 12.0k | 1 | 27.8k | exists,up |
| 584 | osd021 | 1484G | 2241G | 1 | 5529 | 1 | 12.7k | exists,up |
| 636 | osd021 | 1394G | 2331G | 2 | 850k | 406 | 78.1M | exists,up |
+-----+--------+-------+-------+--------+---------+--------+---------+-----------+
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx
_______________________________________________ ceph-users mailing list -- ceph-users@xxxxxxx To unsubscribe send an email to ceph-users-leave@xxxxxxx