"db_slots", "wal_slots", "block_db_size", "placement", "service_id", "service_type",
"data_devices", "db_devices", "wal_devices", "journal_devices",
"data_directories", "osds_per_device", "objectstore", "osd_id_claims",
- "journal_size", "unmanaged", "filter_logic", "preview_only"
+ "journal_size", "unmanaged", "filter_logic", "preview_only",
+ "data_allocate_fraction"
]
def __init__(self,
unmanaged=False, # type: bool
filter_logic='AND', # type: str
preview_only=False, # type: bool
+ data_allocate_fraction=None, # type: Optional[float]
):
assert service_type is None or service_type == 'osd'
super(DriveGroupSpec, self).__init__('osd', service_id=service_id,
#: If this should be treated as a 'preview' spec
self.preview_only = preview_only
+ #: Allocate a fraction of the data device (0,1.0]
+ self.data_allocate_fraction = data_allocate_fraction
+
@classmethod
def _from_json_impl(cls, json_drive_group):
# type: (dict) -> DriveGroupSpec