Commit 2dc55c8
sysbench: fix A/B testing device configuration conflicts
The sysbench workflow automatically enables A/B testing for atomic write
tests, but the single CONFIG_SYSBENCH_DEVICE configuration causes device
conflicts where both baseline and dev nodes try to use the same physical
device.
This commit implements separate device configuration for A/B testing:
* Add CONFIG_SYSBENCH_DEVICE_BASELINE for baseline nodes
* Add CONFIG_SYSBENCH_DEVICE_DEV for dev nodes
* Update CONFIG_SYSBENCH_DEVICE to work with single-node setups
* Add Ansible device resolution logic to automatically assign the
correct device based on node group membership
* Add validation script to detect device conflicts and provide
clear error messages with solutions
* Integrate validation into sysbench Makefile to run automatically
The solution maintains backward compatibility for non-A/B configurations
while eliminating device conflicts in A/B testing scenarios.
Generated-by: Claude AI
Signed-off-by: Daniel Gomez <[email protected]>
Signed-off-by: Luis Chamberlain <[email protected]>1 parent f05e530 commit 2dc55c8
File tree
3 files changed
+63
-1
lines changed- playbooks/roles/sysbench/tasks
- mysql-docker
- postgresql-native
- workflows/sysbench
3 files changed
+63
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
2 | 13 | | |
3 | 14 | | |
4 | 15 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
2 | 13 | | |
3 | 14 | | |
4 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
174 | 212 | | |
175 | 213 | | |
176 | 214 | | |
| |||
184 | 222 | | |
185 | 223 | | |
186 | 224 | | |
187 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
188 | 228 | | |
189 | 229 | | |
190 | 230 | | |
| |||
0 commit comments