Repository navigation
luminous: bulk backport of ceph-mgr improvements - #18675
Merged
Merged
Conversation
This is summary info, same as what's in 'ceph status'. Signed-off-by: Sage Weil <[email protected]> (cherry picked from commit 85b5b80)
Signed-off-by: Sage Weil <[email protected]> (cherry picked from commit bfb9286)
Signed-off-by: Sage Weil <[email protected]> (cherry picked from commit 2ef0051)
Signed-off-by: Sage Weil <[email protected]> (cherry picked from commit 39c42dd)
- wake up every minute - back off when unknown, inactive, degraded - throttle against misplaced ratio - apply some optimization step - initially implement 'upmap' only Signed-off-by: Sage Weil <[email protected]> (cherry picked from commit 0d9685c)
Signed-off-by: Sage Weil <[email protected]> (cherry picked from commit 028a66d)
…ts too Allow us to specify a root node in the hierarchy instead of a rule. This way we can use it in conjunction with find_takes(). Signed-off-by: Sage Weil <[email protected]> (cherry picked from commit 69454e0)
Signed-off-by: Sage Weil <[email protected]> (cherry picked from commit ef140de)
These let us identify distinct CRUSH hierarchies that rules distribute data over, and create relative weight maps for the OSDs they map to. Signed-off-by: Sage Weil <[email protected]> (cherry picked from commit 3b8a276)
Signed-off-by: Sage Weil <[email protected]> (cherry picked from commit a928bf6)
Signed-off-by: Sage Weil <[email protected]> (cherry picked from commit d5e5c68)
Signed-off-by: Sage Weil <[email protected]> (cherry picked from commit 7a00e02)
* score lies in [0, 1), 0 being perfect distribution * use shifted and scaled cdf of normal distribution to prioritize highly over-weighted device. * consider only over-weighted devices to calculate score Signed-off-by: Spandan Kumar Sahu <[email protected]> (cherry picked from commit c09308c)
(with upmap at least) Signed-off-by: Sage Weil <[email protected]> (cherry picked from commit ef1a3be)
...so that we can control the level of load we're putting on ceph-mgr with perf counters. Don't collect anything below PRIO_USEFUL by default. Signed-off-by: John Spray <[email protected]> (cherry picked from commit bdc775f)
ceph-mgr has missed out on the `config set` command that the other daemons got recently: add it here and hook it all up to the stats period and threshold settings. Signed-off-by: John Spray <[email protected]> (cherry picked from commit 057b73d)
Various things here were dangerously operating outside locks. Additionally switch to a RWLock because this lock will be relatively read-hot when it's taken every time a MMgrReport is handled, to look up the DaemonState for the sender. Fixes: http://tracker.ceph.com/issues/21158 Signed-off-by: John Spray <[email protected]> (cherry picked from commit 806f108)
The DaemonStateIndex locking is sufficient to make all the report processing safe: holding DaemonServer::lock through all ms_dispatch was unnecessarily serializing dispatch. Signed-off-by: John Spray <[email protected]> (cherry picked from commit 64af9d3)
Signed-off-by: John Spray <[email protected]> (cherry picked from commit d209157)
Because we don't (yet) properly prevent multiple sessions from daemons reporting the same name (e.g. rgws), storing it in the DaemonPerfCounters meant that one daemon's report was referring to another daemon's set of reported types. This should always have been a property of the session. The behaviour will still be ugly when multiple daemons are using the same name (stomping on each other's stats/statsu) but it shouldn't crash. Fixes: http://tracker.ceph.com/issues/21197 Signed-off-by: John Spray <[email protected]> (cherry picked from commit dc415f1)
Signed-off-by: My Do <[email protected]> (cherry picked from commit 68ae26c)
Signed-off-by: My Do <[email protected]> (cherry picked from commit e345fe3)
Both follow prometheus best practices. While : is a legal metric character, "Exposed metrics should not contain colons, these are for users to use when aggregating." Signed-off-by: Jan Fajerski <[email protected]> (cherry picked from commit 177afcc)
… now Signed-off-by: Jan Fajerski <[email protected]> (cherry picked from commit 49b3ff8)
added 3 commits
November 1, 2017 23:03
Otherwise, when someone wants to see what's possible to do with `mgr module enable` they have to trawl through the whole mgr map dump. Signed-off-by: John Spray <[email protected]> (cherry picked from commit 5861c4c)
This was converted to options.cc only, but we cannot backport another commit that removes this legacy health reporting code, so this commit updates the legacy health reporting code for the options.cc style config opt. Signed-off-by: John Spray <[email protected]>
This was getting the definition some other way in master, but in luminous we need to include the backport14 header. Signed-off-by: John Spray <[email protected]>
jcsp
force-pushed
the
wip-luminous-mgr
branch
from
November 1, 2017 23:03
42a3a9b to
d4fcb97
Compare
I inadvertently broke this with the latest change to the module ls output. Signed-off-by: John Spray <[email protected]> (cherry picked from commit 4fb3025)
Contributor
Author
|
This inherited some master failures from #18685, I've pulled that fix into this branch. |
Contributor
|
@jcsp Thanks, John. This will reduce cherry-pick conflicts for sure, at least in the short term. |
This was referenced Nov 8, 2017
Merged
This was referenced Jan 25, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The motivation here is to provide the latest ceph-mgr additions to luminous users:
This PR includes the relevant commits along with the things they depend on and some bug fixes that are coming along for the ride. This will overlap with some backport tracker tickets, but we can clean those up afterwards. It's essential to do this in a big PR because of the subtle merge conflicts that otherwise exist between the changes included here: the order in which things are cherry-picked into this PR is somewhat magic.