Filter out OSDs reweighted to 0
parent
bd7fe4ef8f
commit
87f666d2a2
|
@ -881,13 +881,13 @@ class Mon
|
||||||
{
|
{
|
||||||
const stat = this.state.osd.stats[osd_num];
|
const stat = this.state.osd.stats[osd_num];
|
||||||
const osd_cfg = this.state.config.osd[osd_num];
|
const osd_cfg = this.state.config.osd[osd_num];
|
||||||
if (stat && stat.size && (this.state.osd.state[osd_num] || Number(stat.time) >= down_time ||
|
|
||||||
osd_cfg && osd_cfg.noout))
|
|
||||||
{
|
|
||||||
// Numeric IDs are reserved for OSDs
|
|
||||||
let reweight = osd_cfg == null ? 1 : Number(osd_cfg.reweight);
|
let reweight = osd_cfg == null ? 1 : Number(osd_cfg.reweight);
|
||||||
if (reweight < 0 || isNaN(reweight))
|
if (reweight < 0 || isNaN(reweight))
|
||||||
reweight = 1;
|
reweight = 1;
|
||||||
|
if (stat && stat.size && reweight && (this.state.osd.state[osd_num] || Number(stat.time) >= down_time ||
|
||||||
|
osd_cfg && osd_cfg.noout))
|
||||||
|
{
|
||||||
|
// Numeric IDs are reserved for OSDs
|
||||||
if (this.state.osd.state[osd_num] && reweight > 0)
|
if (this.state.osd.state[osd_num] && reweight > 0)
|
||||||
{
|
{
|
||||||
// React to down OSDs immediately
|
// React to down OSDs immediately
|
||||||
|
|
Loading…
Reference in New Issue