osd/osd_types: include up and acting count in pool_sum_t

Sum up the up and acting instances of the PGs in the pool.

Signed-off-by: Sage Weil <sage@redhat.com>
mon/PGMonitor: fix summation when we adjust up/acting

We're touching up/acting, which now affect the sum.

Signed-off-by: Sage Weil <sage@redhat.com>
mon/PGMonitor: make min pg warning based on pg *instances*

This makes the effective number of PGs we are using the number of instances
of PGs on an OSD, not the nubmer of PGs an OSD will be primary for.  Our
check becomes less aggressive since we are now less likely to trigger a
warning.

Signed-off-by: Sage Weil <sage@redhat.com>
mon/PGMonitor: add max pgs per osd warning

This is just like the min warning, but a max.  It should help warn users
away from having too many PGs in their cluster, which can be very
dangerous.

Signed-off-by: Sage Weil <sage@redhat.com>
mon: tighten pg vs osd warning bounds to 3x above/below 100 (target)

Previously we were warning at (effectively) 60, so this is still less
noisy than before on the min.  The max threshold is new.

Signed-off-by: Sage Weil <sage@redhat.com>
Merge remote-tracking branch 'gh/wip-warn-max-pg' into wip-sage-testing