Previously this var was unbounded, meaning that rogue injectargs
could kill the cluster. Also, add a description to it and to
osd_heartbeat_min_size.
Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
Option("osd_heartbeat_interval", Option::TYPE_INT, Option::LEVEL_ADVANCED)
.set_default(6)
- .set_description(""),
+ .set_min_max(1, 86400)
+ .set_description("Interval (in seconds) between peer pings"),
Option("osd_heartbeat_grace", Option::TYPE_INT, Option::LEVEL_ADVANCED)
.set_default(20)
Option("osd_heartbeat_min_size", Option::TYPE_INT, Option::LEVEL_ADVANCED)
.set_default(2000)
- .set_description(""),
+ .set_description("Minimum heartbeat packet size in bytes. Will add dummy payload if heartbeat packet is smaller than this."),
Option("osd_pg_max_concurrent_snap_trims", Option::TYPE_UINT, Option::LEVEL_ADVANCED)
.set_default(2)