[bucket]Make inventory size configurable.

Signed-off-by: Dimitri Molenaars <Tyrope@TyRope.nl>