This allows us to send objects to different backends according to their size,
for instance different RADOS pools with different settings.
Details
- Reviewers
- None
- Group Reviewers
Reviewers
A new unit test has been added to make sure the tiering behavior really works
Diff Detail
- Repository
- rDOBJS Object storage
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 1263 Build 1607: arc lint + arc unit
Event Timeline
Since there are also some code for checking bounds are contiguous, don't you think adding a test for it as well would be good?
Other than my questions, this seems good to go.
swh/objstorage/multiplexer/size_tiering_objstorage.py | ||
---|---|---|
59 | I'm wondering if this should go to the check_config method? I get that we don't want to instantiate a wrong ObjStorage if the config is a nogo. | |
87 | I did not know about this part. |
Since there are also some code for checking bounds are contiguous, don't you think adding a test for it as well would be good?
Yeah, it would :-) I'll add those tests in a moment.
swh/objstorage/multiplexer/size_tiering_objstorage.py | ||
---|---|---|
59 | I've toyed with moving these checks in the check_config call (I think I put them there initially), but I really do need to initialize the upper_bounds attribute at the point of instantiation. I don't like the pattern of setting up a mandatory attribute somewhere else than __init__. |
There's no more use case for this currently, let's avoid cluttering the review pool with it :-)