All of lore.kernel.org
 help / color / mirror / Atom feed
* adding "{mds,mon} metadata" asok command
@ 2015-03-20  5:39 kefu chai
  2015-03-20 11:43 ` John Spray
  2015-03-20 13:30 ` Sage Weil
  0 siblings, 2 replies; 11+ messages in thread
From: kefu chai @ 2015-03-20  5:39 UTC (permalink / raw)
  To: ceph-devel@vger.kernel.org

hi ceph,

to pave the road to http://tracker.ceph.com/issues/10904, where we
need to add a command to list the hostname of nodes in a ceph cluster,
i would like to add the "{mds,mon} metadata" commands to print the
system information including, but not limited to hostname,
mem_{total,swap}_kb, and distro info, of specified mds and mon.

the implementation follow the mechanism of "osd metadata":

on the mds side i would like to reuse the MDSMonitor service:
1. piggy back a map for the metadata in MMDSBeacon message,
2. put the metadata into the same DBStore transaction but with another
prefix when storing the pending inc into local storage.
3. and expose it using the "mds metadata" and later on the "service
ls" (not sure about the name ...)

@greg and @zyan, are you good with this? not sure this will overburden
the mds or not. i will use uname(2) and grep /proc/meminfo to get the
metadata in the same way of OSD.

on the mon side, i will apply the same approach to MMonJoin and
MonmapMonitor, but with another prefix when putting encoding metadata
into transaction.

@joao, IIRC, you were suggesting me to add another paxos service for
this purpose but is it feasible to put this data into MMonJoin and
persist it into the paxos service's storage?

any suggestion or comments would be appreciated. if no objections, i
will be on it.

thanks =)

-- 
Regards
Kefu Chai

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-03-25 18:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-20  5:39 adding "{mds,mon} metadata" asok command kefu chai
2015-03-20 11:43 ` John Spray
     [not found]   ` <CAJE9aOPK6Qge8BNvB0na2-Y_12THB2aSmk-wvpPytAwcjonMGQ@mail.gmail.com>
2015-03-20 15:58     ` Fwd: " kefu chai
2015-03-20 13:30 ` Sage Weil
2015-03-20 16:04   ` kefu chai
2015-03-23 10:04   ` Joao Eduardo Luis
2015-03-23 10:35     ` John Spray
2015-03-23 13:58       ` Sage Weil
2015-03-24 10:11         ` Joao Eduardo Luis
2015-03-24 10:20           ` John Spray
2015-03-25 18:18         ` kefu chai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.