osd tree to show primary-affinity value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I stumbled upon this feature request from Dmitry, to make osd tree
show primary-affinity value:

  http://tracker.ceph.com/issues/10036

This looks useful in some cases and is simple to implement, so here is
the patch:

  https://github.com/trociny/ceph/compare/feature-10036

But before sending a pull request, I'd like to hear other people
opinion. I wonder if it would be useful for most of the users or they
would rather consider this as a white noice in osd tree output?

Note, currently primary-affinity can be obtain by other ways, e.g:

 ceph -f json-pretty osd dump

Here is an example of osd tree output after the change:

 % ceph osd tree
 # id	weight	type name	up/down	reweight	primary-affinity
 -1	3	root default
 -2	3		host zhuzha
 0	1			osd.0	up	1	0.5
 1	1			osd.1	up	1	0.75
 2	1			osd.2	up	1	1
 
 % ceph -f json-pretty osd tree
 
 { "nodes": [
         { "id": -1,
           "name": "default",
           "type": "root",
           "type_id": 10,
           "children": [
                 -2]},
         { "id": -2,
           "name": "zhuzha",
           "type": "host",
           "type_id": 1,
           "children": [
                 2,
                 1,
                 0]},
         { "id": 0,
           "name": "osd.0",
           "exists": 1,
           "type": "osd",
           "type_id": 0,
           "status": "up",
           "reweight": 1.000000,
           "primary_affinity": 0.500000,
           "crush_weight": 1.000000,
           "depth": 2},
         { "id": 1,
           "name": "osd.1",
           "exists": 1,
           "type": "osd",
           "type_id": 0,
           "status": "up",
           "reweight": 1.000000,
           "primary_affinity": 0.750000,
           "crush_weight": 1.000000,
           "depth": 2},
         { "id": 2,
           "name": "osd.2",
           "exists": 1,
           "type": "osd",
           "type_id": 0,
           "status": "up",
           "reweight": 1.000000,
           "primary_affinity": 1.000000,
           "crush_weight": 1.000000,
           "depth": 2}],
   "stray": []}

-- 
Mykola Golub
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux