Slice Split Example for MariaDB Xpand
This page is part of MariaDB's Documentation.
The parent of this page is: MariaDB Xpand Rebalancer
Topics on this page:
Overview
MariaDB Xpand's Rebalancer automatically splits a slice when it has grown larger than rebalancer_split_threshold_kb
(8 GB by default).
Compatibility
Information provided here applies to:
MariaDB Xpand 5.3
MariaDB Xpand 6.0
MariaDB Xpand 6.1
Beginning State
Slice | Hash Range | Key Values | Size |
---|---|---|---|
| min-100 |
| 768 MB |
| 101-200 |
| 8354 MB (too large) |
| 201-max |
| 800 MB |
At the start of this example, a slice has grown larger than rebalancer_split_threshold_kb
(8 GB by default).
Slice Split
Slice | Hash Range | Key Values | Size |
---|---|---|---|
| min-100 |
| 768 MB |
| 201-max |
| 800 MB |
| 101-150 |
| 4670 MB |
| 151-200 |
| 4684 MB |
MariaDB Xpand's Rebalancer automatically detects that the split threshold has been exceeded, so it schedules a slice-split operation:
During the slice-split operation, the hash range for slice 2 is divided into two ranges, which are associated with two new slices called slice 4 and slice 5
After the data is moved to slice 4 and slice 5, slice 2 is removed
The Rebalancer only modifies the slices being split, which allows for very large data reorganizations to proceed in small chunks