summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/shared/models/crush-rule.ts
blob: 83c1db6b6df2a4ec1e5529b1ec6d846c1fa4c621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { CrushStep } from './crush-step';

export class CrushRule {
  max_size: number;
  usable_size?: number;
  min_size: number;
  rule_id: number;
  rule_name: string;
  ruleset: number;
  steps: CrushStep[];
}

export class CrushRuleConfig {
  root: string; // The name of the node under which data should be placed.
  name: string;
  failure_domain: string; // The type of CRUSH nodes across which we should separate replicas.
  device_class?: string; // The device class data should be placed on.
}