Skip to content

Don't reorder the up set for EC pools - #22

Merged
xvillaneau merged 3 commits into
mainfrom
xvillaneau/ec_pool_no_up_reorder
Mar 22, 2022
Merged

xvillaneau merged 3 commits into
mainfrom
xvillaneau/ec_pool_no_up_reorder

Conversation

@xvillaneau

Copy link
Copy Markdown
Contributor

A bit of a hack but this should work. Now runs ceph osd pool ls detail to get pool metadata, and skips up OSD reordering for EC pools. This is because ordering in EC pools does matter, so differences between the up and acting sets count as distinct backfills.
Also refactored reorderUpToMatchActing to be more readable and maybe a little bit faster.

Reorganized the logic so that the functiion is easier to read, and also
hopefully a bit faster.
Comment thread ceph.go Resolved

@baergj baergj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments only!

Comment thread ceph.go Resolved
Comment thread ceph.go Resolved
A bit of a hack but this should work. Now runs `ceph osd pool ls detail`
to get pool metadata, and skips up OSD reordering for EC pools.
This is because ordering in EC pools _does_ matter, so differences
between the up and acting sets count as distinct backfills.
@xvillaneau
xvillaneau force-pushed the xvillaneau/ec_pool_no_up_reorder branch from 6dff25b to 24d37a9 Compare March 22, 2022 15:28
@xvillaneau
xvillaneau force-pushed the xvillaneau/ec_pool_no_up_reorder branch from 3337131 to 4d03dca Compare March 22, 2022 17:07
@xvillaneau
xvillaneau merged commit cb5b542 into main Mar 22, 2022
@xvillaneau
xvillaneau deleted the xvillaneau/ec_pool_no_up_reorder branch March 22, 2022 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants