Skip to content

Commit

Permalink
src/mon/MonCommands.h: add 'reweight-by-pg' and 'reweight-by-utilizat…
Browse files Browse the repository at this point in the history
…ion' as mon commands

Signed-off-by: Spandan Kumar Sahu <[email protected]>
  • Loading branch information
SpandanKumarSahu committed Aug 23, 2017
1 parent b15aed0 commit 3780ac2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/mon/MonCommands.h
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,20 @@ COMMAND("osd reweightn " \
"name=weights,type=CephString",
"reweight osds with {<id>: <weight>,...})",
"osd", "rw", "cli,rest")
COMMAND("osd reweight-by-utilization " \
"name=oload,type=CephInt,req=false " \
"name=max_change,type=CephFloat,req=false " \
"name=max_osds,type=CephInt,req=false " \
"name=no_increasing,type=CephChoices,strings=--no-increasing,req=false",\
"reweight OSDs by utilization [overload-percentage-for-consideration, default 120]", \
"osd", "rw", "cli,rest")
COMMAND("osd reweight-by-pg " \
"name=oload,type=CephInt,req=false " \
"name=max_change,type=CephFloat,req=false " \
"name=max_osds,type=CephInt,req=false " \
"name=pools,type=CephPoolname,n=N,req=false", \
"reweight OSDs by PG distribution [overload-percentage-for-consideration, default 120]", \
"osd", "rw", "cli,rest")
COMMAND("osd force-create-pg " \
"name=pgid,type=CephPgid ",
"force creation of pg <pgid>",
Expand Down
1 change: 1 addition & 0 deletions src/pybind/mgr/balancer/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

TIME_FORMAT = '%Y-%m-%d_%H:%M:%S'


class MappingState:
def __init__(self, osdmap, pg_dump, desc=''):
self.desc = desc
Expand Down

0 comments on commit 3780ac2

Please sign in to comment.