Default partition-power is too small
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Swift Proxy Charm |
Fix Released
|
Undecided
|
Erlon R. Cruz |
Bug Description
The partition power is used to build the swift rings and define the
granularity of the data copies. The total number of partitions in
the cluster will be 2^partition-power. The recommended number of
partitions of a cluster is a minimum of 100 per disk, and it should
be considered any future cluster expansion, since changing this value
is not trivial after the cluster initialization.
Currently, the default value is 8, and given that 2^8 is only 256,
this number will lead to a sub-optimal configuration even on test
deployments with 3+ disks, not to say on a production where disks can
surpass the hundreds and this will lead to a very unbalanced cluster.
We had some production clusters that were wrongly set to the default
value and that resulted in an awfully unbalanced cluster. We should
avoid that to happen again.
Changed in charm-swift-proxy: | |
status: | New → In Progress |
Changed in charm-swift-proxy: | |
milestone: | none → 21.10 |
Changed in charm-swift-proxy: | |
status: | Fix Committed → Fix Released |
As I mentioned offline, the only drawback of using a big value would be memory consumption, but that would be in the MBs, and wouldn't affect performance. Documentation on the recommended values is not present in the official documentation, but there are some good presentations[1] providing info on that.
[1] https:/ /youtu. be/LzaQKKp58JI? t=606