Revision 93e2e44e lib/constants.py
b/lib/constants.py | ||
---|---|---|
1284 | 1284 |
NDC_DEFAULTS = _constants.NDC_DEFAULTS |
1285 | 1285 |
NDC_GLOBALS = _constants.NDC_GLOBALS |
1286 | 1286 |
|
1287 |
DISK_LD_DEFAULTS = { |
|
1288 |
DT_DRBD8: { |
|
1289 |
LDP_RESYNC_RATE: CLASSIC_DRBD_SYNC_SPEED, |
|
1290 |
LDP_BARRIERS: _constants.DRBD_BARRIERS, |
|
1291 |
LDP_NO_META_FLUSH: _constants.DRBD_NO_META_FLUSH, |
|
1292 |
LDP_DEFAULT_METAVG: DEFAULT_VG, |
|
1293 |
LDP_DISK_CUSTOM: "", |
|
1294 |
LDP_NET_CUSTOM: "", |
|
1295 |
LDP_PROTOCOL: DRBD_DEFAULT_NET_PROTOCOL, |
|
1296 |
LDP_DYNAMIC_RESYNC: False, |
|
1297 |
|
|
1298 |
# The default values for the DRBD dynamic resync speed algorithm |
|
1299 |
# are taken from the drbsetup 8.3.11 man page, except for |
|
1300 |
# c-plan-ahead (that we don't need to set to 0, because we have a |
|
1301 |
# separate option to enable it) and for c-max-rate, that we cap to |
|
1302 |
# the default value for the static resync rate. |
|
1303 |
LDP_PLAN_AHEAD: 20, # ds |
|
1304 |
LDP_FILL_TARGET: 0, # sectors |
|
1305 |
LDP_DELAY_TARGET: 1, # ds |
|
1306 |
LDP_MAX_RATE: CLASSIC_DRBD_SYNC_SPEED, # KiB/s |
|
1307 |
LDP_MIN_RATE: 4 * 1024, # KiB/s |
|
1308 |
}, |
|
1309 |
DT_PLAIN: { |
|
1310 |
LDP_STRIPES: _constants.LVM_STRIPECOUNT |
|
1311 |
}, |
|
1312 |
DT_FILE: {}, |
|
1313 |
DT_SHARED_FILE: {}, |
|
1314 |
DT_BLOCK: {}, |
|
1315 |
DT_RBD: { |
|
1316 |
LDP_POOL: "rbd", |
|
1317 |
LDP_ACCESS: DISK_KERNELSPACE, |
|
1318 |
}, |
|
1319 |
DT_EXT: {}, |
|
1320 |
} |
|
1287 |
DISK_LD_DEFAULTS = _constants.DISK_LD_DEFAULTS |
|
1321 | 1288 |
|
1322 | 1289 |
# readability shortcuts |
1323 | 1290 |
_LV_DEFAULTS = DISK_LD_DEFAULTS[DT_PLAIN] |
Also available in: Unified diff