Repository navigation
mon/doc/qa: Enable EC pools for metadata in CephFS - #71817
MattyWilliams22 wants to merge 3 commits into
Conversation
15bc04d to
2d8298d
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
2d8298d to
3654aa4
Compare
3654aa4 to
51e47a7
Compare
51e47a7 to
b840306
Compare
|
jenkins test make check |
|
jenkins test make check arm64 |
|
jenkins test windows |
|
jenkins test api |
bill-scales
left a comment
There was a problem hiding this comment.
I think the mixed pool check should probably be removed. Other checks are good.
b840306 to
09ca924
Compare
gregsfortytwo
left a comment
There was a problem hiding this comment.
This documentation still seems pretty conflicted about if EC is okay to use on metadata pools. I think we need to have enough information to be clearer about that.
Do we have any performance evaluations we can link to and refer to for this?
| Separately, another erasure-coded data pool can be added (see also :ref:`ecpool`) | ||
| that can be used on an entire hierarchy of directories and files | ||
| (see also :ref:`file-layouts`). |
There was a problem hiding this comment.
There's not much point to this sentence if we're allowing people to use EC pools for data.
I don't remember how omap support ended up working on fast EC pools, though — do we actually want that kind of workload on those pools @aainscow ?
There was a problem hiding this comment.
With the tech preview file being referenced here now, I believe this sentence is fine to keep?
| @@ -285,7 +285,20 @@ class FsNewHandler : public FileSystemCommandHandler | |||
| if (r < 0) { | |||
| return r; | |||
| } | |||
|
|
|||
|
|
|||
| if (metadata_pool->is_erasure() && !data_pool->is_erasure()) { | |||
There was a problem hiding this comment.
Having this check for an inverted EC pool seems really odd when we already reject an EC metadata pool in check_pools? We do invoke that as part of this pool create workflow, right?
There was a problem hiding this comment.
check_pools no longer rejects all EC pools for metadata.
Therefore, this check is necessary.
There was a problem hiding this comment.
} else if (type == POOL_METADATA && !force) {
looks to me like it rejects them?
There was a problem hiding this comment.
If the force flag is used, it doesn't reject them.
As this check depends on the yes-i-really-really-mean-it flag, it is necessary in conjunction with _check_pools.
batrick
left a comment
There was a problem hiding this comment.
No testing?
Probably a knob should be turned in qa/suites/fs/workloads. Also admin commands added to qa/tasks/cephfs/test_admin.py.
|
|
||
| ceph osd pool create cephfs_data_ec erasure ec_profile | ||
| ceph osd pool set cephfs_data_ec allow_ec_overwrites true | ||
| ceph osd pool set cephfs_data_ec allow_ec_optimizations true |
There was a problem hiding this comment.
Is there any value in using different ec profiles for the two pool types? The load / operation patterns are very different.
There was a problem hiding this comment.
Probably not. Generally you choose m to decide how much redundancy you have (m=2 is equivalent to replca-3), for smaller clusters your choice of k will be limited by the number of nodes, for larger clusters you will restrict k to somewhere between 4 and 10 based what type of backfill performance you want.
There was a problem hiding this comment.
I find that people often don't understand the tradeoffs of EC profiles, cf. my Ceph Days Seattle presentation from 2025. I would keep it simple and suggest that an EC CephFS metadata pool not use k>4, and assert that m must >= 2. Even if the code doesn't enforce the latter, there's value in keeping people from shooting themselves in the foot
|
|
||
| .. code:: bash | ||
|
|
||
| ceph fs new fs_name cephfs_metadata_ec cephfs_data_replicated --force --yes-i-really-really-mean-it |
There was a problem hiding this comment.
This change walks back years of guidance / experience. I am wondering if we should make this TP in Vampire and add switches to allow doing it at all (--yes-i-really-mean-it).
There was a problem hiding this comment.
Users are also going to ask: can we migrate the metadata pools? (No. Maybe if the file system is taken offline and we plumb in the new metadata pool id into the FSMap.)
There was a problem hiding this comment.
Users are also going to ask: can we migrate the metadata pools? (No. Maybe if the file system is taken offline and we plumb in the new metadata pool id into the FSMap.)
Well actually that is what pool migration is for. You can't merge pools (so if you have a separate metadata and data pool you have to continue having two pools) but you can convert all your replica pools to EC pools (and versa versa) non-disruptively with no change/awareness needed at CephFS.
There was a problem hiding this comment.
This change walks back years of guidance / experience. I am wondering if we should make this TP in Vampire and add switches to allow doing it at all (--yes-i-really-mean-it).
I think this is the key discussion point. Technically we believe that EC pools now have equivalent functionality Replica pools - supporting Class Ops and OMAPs, we've got extensive testing of this at the RADOS layer, and QA changes which demonstrate that CephFS works using just EC pools. From a data integrity and robustness perspective we believe this works.
But just because we know that something works, doesn't necessarily mean its always a good idea. The use of Erasure Coded Pools versus Replica Pools generally comes down to a trade off between Storage Efficiency (EC is better) versus Performance (Replica is better). There is also an argument that using just one type of Pool is simpler. What we are lacking is experience to know when its fine to use CephFS with just EC pools and when you shouldn't. We probably need to collect more performance data to help make these decisions, but will need help from the CephFS team to define what test cases to run.
The documentation as written at the moment is trying to say that you can use EC pools with CephFS, but is trying to discourage this as an everyday choice because we don't have enough data to say what performance trade off you are making.
There was a problem hiding this comment.
Also, the storage efficiency argument is weak for metadata pools because in a well-behaved Ceph cluster, the metadata pool is dwarfed by the data pool and other pools. The metadata pool is also where performance is most critical.
So for those reasons, I don't think this should be suggested at all. We can say "yes it's possible" and "yes we test it". However, there are compelling reasons to stay on replica for metadata pools.
There was a problem hiding this comment.
Users are also going to ask: can we migrate the metadata pools? (No. Maybe if the file system is taken offline and we plumb in the new metadata pool id into the FSMap.)
This to me would be really ugly: a k/v store on top of indirection to EC sharding. No, just ... no.
| ss << "pool '" << metadata_name << "' is an erasure-coded pool but" | ||
| " pool '" << data_name << "' is a replicated pool." | ||
| " Using an EC metadata pool with a replicated data pool is not a" | ||
| " recommended configuration." |
There was a problem hiding this comment.
... why? Other than being really weird I don't see why.
There was a problem hiding this comment.
I must agree with Patrick. While there might be some valid reason for someone somewhere sometime to use omap on EC, I also wonder why that might be. Is anyone clamoring for this? If metadata pools were a nontrivial consumer of raw capacity it'd be different.
The tests are in this PR: #72786 |
combine the PRs please. From that PR:
That's a pretty big caveat and virtually guarantees this cannot be allowed by default without big warning statements. I'm fine with starting to test this for bug hunting but this is not ready for GA. |
That comment was written by me, and is false. I need to remove that comment from that PR, as it is a stale comment from a previous revision of the tests where I falsely believed that fscrypt wasn't supported by EC pools. |
When did this get fixed? I thought the allocation information was a straight-up BlueStore implementation detail that we got lucky with in replicated mode. |
|
@MattyWilliams22 Given that we're uncertain how this will go, why don't we enable this for lab testing but not present it to users? We can create a dev config value to accept EC pools in these places, default false but enable in teuthology, start running it in the nightlies, and see what happens. Plus do some CephFS performance testing. Save the user documentation until we have some confidence in it and an idea of what performance looks like. |
I don't have much standing here, but I strongly agree. I must admit that this seems like a solution in search of a problem. |
EC pools that support omap can be used as a CephFS metadata pool with the --force flag. Adding a replicated data pool with an EC metadata pool requires the --yes-i-really-mean-it flag. Fixes: http://tracker.ceph.com/issues/75062 Signed-off-by: Matty Williams <[email protected]> Assisted-by: IBM-Bob-2.2.1:Claude/GPT
Fixes: https://tracker.ceph.com/issues/75062 Signed-off-by: Matty Williams <[email protected]> Assisted-by: IBM-Bob-2.3.0:Claude/GPT
5cecf41 to
789f58c
Compare
Previously, you could add an ec_profile section to a yaml file to specify the profile that should be used for the EC data pool. This has been replaced with the pool_types section which allows you to specify the pool type, and EC profile settings of both the metadata and data pools. The objectstore-ec directory has also been condensed into an objectstore directory which can be used in combination with the pool_types randomisation to provide the same coverage as before. The 0-fscrypt/with-fscrypt-dummy.yaml is rejected with EC pools as fscrypt is currently unsupported for EC pools. Fixes: https://tracker.ceph.com/issues/75062 Signed-off-by: Matty Williams <[email protected]> Assisted-by: IBM-Bob-2.2.1:Claude/GPT
789f58c to
8f51b9d
Compare
|
This force push:
|
| Overwrites must be enabled on erasure-coded data pools. | ||
| :term:`BlueStore`. Overwrites must be enabled on erasure-coded data pools. | ||
| Using erasure-coded pools as metadata pools or default data pools is a tech | ||
| preview feature; see :ref:`cephfs-ec-metadata-pools`. |
There was a problem hiding this comment.
I'm not so sure about "default data pools", since I have dozens of volumes set up that way from at least Pacific.
There was a problem hiding this comment.
An EC default data pool currently (on the main branch) requires --force. I have not changed that.
However, EC default data pools are not being effectively tested in Teuthology (only EC extra data pools are currently being tested). This PR will test EC default data pools with the pool-types/ec-data option. As this was not being tested before (outside of some unit tests), I believe it is also in the same boat as EC metadata pools.
There was a problem hiding this comment.
Maybe we're talking about different things, since I haven't needed --force to create or to setfattr the volume root's layout.
|
After meeting with @batrick @gregsfortytwo @bill-scales and @aainscow, we came to the following consensus about how these changes should be delivered:
Having gone through the comments on this PR, I think the main topic we never came to a consensus on was whether creating a filesystem with an EC metadata pool and Replicated default data pool should require If there is anything you feel that I've left out, feel free to add your own comment. |
I’m not parsing this well, it seems like an incomplete edit. |
I've edited the bullet point. |
https://tracker.ceph.com/issues/75062
Enable the use of EC for metadata and default data pools in CephFS.
Update the documentation to reflect this new functionality.
Test EC metadata and default data pools in Teuthology.
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.