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