Repository navigation
qa: support for testing replica direct reads through teuthology - #71799
Conversation
Extend the rados task and TestRados test tool to support two new options needed for replica direct read testing. Add a standalone no_omap flag to rados.py so workloads on replica pools can suppress omap sub-ops (previously this was only possible for EC pools). Add a --min-split-size argument to TestRados so the osd_min_split_replica_read_size config variable can be set per-run, enabling tests that exercise different split size thresholds. Signed-off-by: Callum James <[email protected]>
Add five teuthology workload YAML files for the rados/thrash suite that exercise replica direct reads under different osd_min_split_replica_read_size configurations: no-split (size=0), default (cluster default), small (64 KiB), large (1 MiB), and very-large (2 MiB). All workloads enable balance_reads and set no_omap so that read operations are not rejected by the direct read path due to unsupported omap sub-ops. Signed-off-by: Callum James <[email protected]>
| if not config.get('erasure_code_use_overwrites', False): | ||
| args.extend(['--ec-pool']) | ||
| if config.get('no_omap', False): | ||
| args.extend(['--no-omap']) |
There was a problem hiding this comment.
ACK: #69269 is removing no-omap for ec_pools, but this change is compatible with that PR
|
API tests failed because of unrelated intermittent failure https://tracker.ceph.com/issues/68544 |
|
jenkins test api |
|
This PR has been added to wip-bharath3-testing-20260918.154843-main. |
aainscow
left a comment
There was a problem hiding this comment.
Discuss on monday if you disagree.
| log-ignorelist: | ||
| - \(POOL_APP_NOT_ENABLED\) | ||
| tasks: | ||
| - rados: |
There was a problem hiding this comment.
Why do we not set osd_min_split_replica_read_size here?
Default is currently 0 - but we plan to change that soon. Could this be a gotcha?
There was a problem hiding this comment.
You are right, this yaml will just take whatever the default is, which will be 0 since we haven't set that yet.
I suppose you could argue that the test serves it's purpose by testing the 'default' value whatever that is and that we have enough split coverage through other tests?
Happy to change this to what we will be changing the default to eventually though if you think that is better.
| r = rados.conf_set("osd_min_split_replica_read_size", | ||
| std::to_string(min_split_size).c_str()); | ||
| if (r < 0) | ||
| return r; |
| r = rados.conf_parse_env(NULL); | ||
| if (r < 0) | ||
| return r; | ||
| if (min_split_size > 0) { |
There was a problem hiding this comment.
I think the intent here is to make a default behaviour of the function be "config default", signalled by min_split_size = 0. However min_split_size = 0 is a valid value, which may be required by the caller.
| args.extend(['--balance-reads']) | ||
| pct_update_delay = config.get('pct_update_delay', 5); | ||
| pct_update_delay = config.get('pct_update_delay', 5) | ||
| if config.get('osd_min_split_replica_read_size', None) is not None: |
There was a problem hiding this comment.
See my comment on RadosModel.h - I think osd_min_split_replica_read_size IS relevant when balance_reads is false, because the default flag can modify the read behaviour.
aainscow
left a comment
There was a problem hiding this comment.
I think my review comments in commit 1 are still valid. However, this is test code and the PR is useful as-is, so as long they get addressed in a later PR, I am happy.
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
Add five teuthology workload YAML files for the rados/thrash suite that exercise replica direct reads under different
osd_min_split_replica_read_sizeconfigurations:All workloads enable
balance_readsand setno_omapso that read operations are not rejected by the direct read path due to unsupported omap sub-ops.Fixes: https://tracker.ceph.com/issues/80535
Signed-off-by: Callum James [email protected]
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.