mds: set l_mds_req on client request

This is one input for the load balancer.

Signed-off-by: Sage Weil <sage@redhat.com>
mds: rename a bunch of metrics

Also clean out a few that were unused and some dead code.

Signed-off-by: Sage Weil <sage@redhat.com>
mds/Server: rename perfcounters

Signed-off-by: Sage Weil <sage@redhat.com>
fix wrong value of op_w_latency perf counter

Fixes: #9217

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
don't update op_rw_rlatency/op_w_rlatency when rlatency is zero

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
vstart: start rgw on port specified by env var

This ensures that user specified option according to $CEPH_RGW_PORT is
considered before starting radosgw

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Merge pull request #2327 from theanalyst/fix/vstart_rgw_port

vstart: start rgw on port specified by env var

Reviewed-by: Sage Weil <sage@redhat.com>
Merge pull request #2325 from xinxinsh/wip-9217

fix wrong value of op_w_latency perf counter

Reviewed-by: Sage Weil <sage@redhat.com>
Merge pull request #2314 from ceph/wip-mds-pc

mds: clean up perfcounter names

Reviewed-by: John Spray <john.spray@redhat.com>
include/CompatSet: make merge const()

With usual shenanigans to deal with [] on map
not being const-safe.

Signed-off-by: John Spray <john.spray@redhat.com>
mds: extract beacon state from MDS lock

For clarity, give it its own class for the
state protected by the separate lock too.

Fixes: #9152

Signed-off-by: John Spray <john.spray@redhat.com>
mds: promote Beacon to be a Dispatcher

This allows it to handle its own MSG_MDS_BEACON
messages from the mon, outside of mds_lock.

This is less important than the sending of beacons
being outside the lock, but still nice to have and
gets all the beacon messaging in one place.

Signed-off-by: John Spray <john.spray@redhat.com>
include/CompatSet: more const-ness

Signed-off-by: John Spray <john.spray@redhat.com>
mds: const getters in MDLog

Signed-off-by: John Spray <john.spray@redhat.com>
mds: add MDSHealth structure to beacon messages

Initially just includes log segment counts a la #9151

Signed-off-by: John Spray <john.spray@redhat.com>
mds: fix FP error in ROUND_UP_TO

Explicitly handle case where denominator is 0, instead of
passing into ROUND_UP_TO.

Regression from 9449520b121fc6ce0c64948386d4ff77f46f4f5f

Signed-off-by: John Spray <john.spray@redhat.com>
mon: handle and report on MDS health messages

Signed-off-by: John Spray <john.spray@redhat.com>