]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | import { CrushStep } from './crush-step'; |
2 | ||
3 | export class CrushRule { | |
4 | max_size: number; | |
5 | min_size: number; | |
6 | rule_id: number; | |
7 | rule_name: string; | |
8 | ruleset: number; | |
9 | steps: CrushStep[]; | |
10 | } | |
9f95a23c TL |
11 | |
12 | export class CrushRuleConfig { | |
13 | root: string; // The name of the node under which data should be placed. | |
14 | name: string; | |
15 | failure_domain: string; // The type of CRUSH nodes across which we should separate replicas. | |
16 | device_class?: string; // The device class data should be placed on. | |
17 | } |