Repository navigation
rgw/lc: replace WorkPool with ceph::async::spawn_throttle - #63762
Conversation
a9c0715 to
ed91e47
Compare
bb4f98f to
5db99f0
Compare
|
5db99f0 to
eec3542
Compare
Config Diff Tool Output! changed: rgw_lc_max_wp_worker: old: Number of workpool threads per LCWorker (rgw.yaml.in)
! changed: rgw_lc_max_wp_worker: new: Number of workpool coroutines per LCWorker (rgw.yaml.in)
! changed: rgw_lc_max_wp_worker: old: 3 (rgw.yaml.in)
! changed: rgw_lc_max_wp_worker: new: 128 (rgw.yaml.in)
! changed: rgw_lc_max_wp_worker: old: This option specifies the number of threads in each lifecycle workers work pool. This option can help accelerate processing each bucket. (rgw.yaml.in)
! changed: rgw_lc_max_wp_worker: new: This option specifies the number of coroutines in each lifecycle workers work pool. This option can help accelerate processing each bucket. (rgw.yaml.in)
! changed: rgw_lc_max_wp_worker: old: Number of threads in per-LCWorker workpools--used to accelerate per-bucket processing (rgw.yaml.in)
! changed: rgw_lc_max_wp_worker: new: Number of coroutines in per-LCWorker workpools--used to accelerate per-bucket processing (rgw.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
|
rebased, still passing s3tests for lifecycle_expiration |
|
sharing an update from Yixin via email:
|
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
eec3542 to
37624e2
Compare
|
rebased over conflicts from #63179 |
|
jenkins test make check arm64 |
|
During testing (this and other PRs) we got this crash: From here: @cbodley Since this pr also touches LC is there any connection? |
looks like it, thanks |
|
https://qa-proxy.ceph.com/teuthology/anuchaithra-2025-07-04_16:46:39-rgw-wip-anrao2-testing-2025-07-04-1031-distro-default-smithi/8369941/teuthology.log |
a5e56ea to
4bdacc2
Compare
|
i captured a failure with
in the radosgw log, i see lifecycle processing this bucket once:
but the objects are only ~9.3 seconds old so aren't considered expired yet (because
during this interval, the other 2 worker threads visit this bucket again but skip it:
about 10 seconds after that, this bucket is visited again but skipped by all 3 workers:
because of this, none of the expirations expected by the test were applied when first processed, the bucket's lc entry showed a start_time of |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
4bdacc2 to
b9fbafc
Compare
|
jenkins test make check |
Signed-off-by: mheler <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
these were only used to log the WorkQ's thread name, which will no longer be relevant with coroutines Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
use spawn_throttle to spawn the work functions as coroutines instead of passing WorkItems to separate WorkQ threads for processing. the spawn_throttle concurrency limit uses the same rgw_lc_max_wp_worker value that previously controlled the number of WorkQ threads Signed-off-by: Casey Bodley <[email protected]>
avoid blocking operations in LCObjsLister under bucket_lc_process() because it's serviced by a single thread Signed-off-by: Casey Bodley <[email protected]>
now that the workers run as coroutines instead of threads, we can afford to run several more workers per bucket Signed-off-by: Casey Bodley <[email protected]>
lifecycle debug output was no longer showing up after the rgw_lifecycle subsys split from rgw Signed-off-by: Casey Bodley <[email protected]>
b9fbafc to
ad4e36d
Compare
|
|
jenkins test make check |
the rgw suite is a mess of known failures, but this doesn't introduce any new ones and rgw/lifecycle is passing
|
use spawn_throttle to spawn the work functions as coroutines instead of passing WorkItems to separate WorkQ threads for processing. the spawn_throttle concurrency limit uses the same rgw_lc_max_wp_worker value that previously controlled the number of WorkQ threads
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 Definition