Repository navigation
osd: Support for OMAPs in EC Pools PR 1 - #66618
MattyWilliams22 wants to merge 3 commits into
Conversation
78d9d27 to
2a43381
Compare
2a43381 to
cfba4ae
Compare
|
jenkins test api |
|
jenkins test windows |
cfba4ae to
7ddb5e8
Compare
7ddb5e8 to
185276e
Compare
|
jenkins test make check |
|
jenkins test make check arm64 |
1 similar comment
|
jenkins test make check arm64 |
f7523e6 to
7efe3f7
Compare
|
jenkins test make check |
bill-scales
left a comment
There was a problem hiding this comment.
Looking good, one bug in should_be_removed and a few nits or places the code could be tidied up a little.
7efe3f7 to
825ae35
Compare
825ae35 to
8b4cea4
Compare
8b4cea4 to
9c35d17
Compare
|
nit: the original source of the term omap lowercased it, so that’s what we’ve been doing in docs. |
@anthonyeleven Can I check is this also the case for lists such as below? i.e Omap should simply be omap?
|
|
That is my personal practice, but it's a nit and not a hill to die on. |
|
Have changed Omap to omap where it exists in the middle of a sentence. Have left as Omap where it either, A) Begins the sentence |
aainscow
left a comment
There was a problem hiding this comment.
Mostly nits / style / add consts.
I have concern about append_create - maybe I have misunderstood the code, but as I read it a delete-create-update-omap sequence may end up updating the wrong object.
97efefa to
b7f32e1
Compare
The ECOmapJournal will be used to store omap updates (in ec pools with optimisations enabled) which have not yet been committed to the object store. Added unit tests for this class. Promoted OmapUpdateType to osd_types.h so that it can be shared to multiple files without circular dependencies. Signed-off-by: Matty Williams <[email protected]>
Introduced a "supports_omap" pool flag which is always enabled for Replicated pools and currently always disabled for EC pools. Introduced wrappers around omap read operations in PGBackend to include updates from the journal in EC pools with optimisations enabled. Introduced a function for encoding an EC_OMAP operation in the ObjectModDesc::Visitor class and a function for committing an operation in the Trimmer struct. Signed-off-by: Matty Williams <[email protected]>
b7f32e1 to
0d48237
Compare
anthonyeleven
left a comment
There was a problem hiding this comment.
Fascinating stuff.
Operationally would one still have the ability to provision a separate omap pool, be it replicated or EC? Notably in cases where bulk data storage is on slower / less endurant media like HDDs, coarse-IU QLC, aspirational PLC etc.
Are there any issues with existing data pools that share a single metadata pool, e.g. for RGW .index?
Yes. This change doesn't prevent you using separate pools for metadata and data (and these are good examples of where you would want separate pools), you now just have the option of these both being the same EC pool. You could choose to use separate EC pools for data and metadata, but if you are only storing metadata in a pool there is no advantage (omaps will still be replicated).
No, nothing will change with existing pools. This feature In conjunction with pool migration could technically allow you to change a metadata pool from being Replica to EC (but see comment above), there is currently no way you can merge a metadata and data pool which is where sharing a metadata pool might cause problems. |
…ng this feature https://tracker.ceph.com/issues/74187 Signed-off-by: Matty Williams <[email protected]>
0d48237 to
2240c6b
Compare
|
jenkins test api |
|
jenkins test make check |
|
jenkins test windows |
1 similar comment
|
jenkins test windows |
|
This PR has been combined into this PR: #66726 |
This PR introduces the data structures and interfaces required to enable omap operations in erasure coded pools with optimisations enabled.
Fixes: https://tracker.ceph.com/issues/74187
ECOmapJournal:
An in-memory journal to maintain OMAP consistency for Erasure Coded pools.
Background:
Unlike Replicated pools which use a "roll-forward" recovery model, EC pools rely on a
"roll-back" mechanism for interrupted updates. To support efficient rollback without
incurring expensive read-before-write operations to generate rollback info, EC OMAP
updates are initially recorded only in the PG Log. They are applied to the underlying
ObjectStore only after the transaction is fully committed on all shards.
The Problem:
This deferred application creates a latency window where the authoritative state exists
in the PG Log but the ObjectStore contains stale data. Reads served during this window
would return incorrect results.
The Solution:
An ECOmapJournal tracks these "log-only" updates in memory. When an OMAP read occurs,
the backend fetches the base state from the ObjectStore and supplements it with the
updates stored in this journal. This ensures clients always receive the most up-to-date
result, merging the persistent state with the in-flight log state.
Unit tests for the journal have also been added.
"supports_omap" Pool Flag:
Added a pool flag to determine whether a pool supports omap operations.
This pool flag is currently always enabled in Replicated pools and always disabled in EC pools.
This flag will be used to enable EC Omap functionality in EC pools in PR 3.
Omap Read Operation Wrappers:
In PGBackend, we have introduced abstract omap read operations methods.
In ReplicatedBackend, these methods maintain existing behaviour.
In ECSwitch:
ObjectModDesc::Visitor:
Added EC_OMAP ModID and a function to encode omap updates.
Trimmer:
Added function to commit omap updates and remove the corresponding entry from the journal.
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.