Repository navigation
rgw: supports lc aio using coroutines - #63678
matt-akamai wants to merge 1 commit into
Conversation
|
so this gets double the performance at some fixed set of values for lc_max_worker and lc_max_wp_worker? or is it twice as fast as, e.g., setting lc_max_wp_worker to 2x an original value? @cbodley and I think that the worker queue model probably scales fine up to many more than 3 x 3 workers--we observe it in testing. that said, @cbodley and I are both interested in eventually transitioning to a pure coroutine based model. what would you think about that? |
Signed-off-by: mheler <[email protected]>
Config Diff Tool Output+ added: rgw_lc_wp_worker_max_aio
- removed: breakpad
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
| boost::asio::io_context context; | ||
| for(auto& item : items) { |
There was a problem hiding this comment.
shouldn't access to items be protected with the mutex?
it doesn't look like rgw_lc_wp_worker_max_aio is taking effect here. this just spawns a coroutine for every item
based on your changes to dequeue(), i'm guessing you intended to do something like this?
auto my_items = dequeue(rgw_lc_wp_worker_max_aio);
for (auto& item : my_items)|
@matt-akamai thanks for joining the performance call to discuss this! i really like this use of coroutines for concurrent object processing, but the lifecycle design already uses threads for that concurrency. i'd really like to see coroutines replace those WorkPool threads, instead we've been adopting coroutines elsewhere, and made a ceph::async::spawn_throttle that i think fits this pattern very well. in exploring this design to describe it here, i found that it was easier to type up a draft: #63762. this just puts a |
|
Closing in favor of #63762 |
We are upstreaming a change we worked on in-house to modify the lc processing to use co-routintes. A new configuration parameter rgw_lc_wp_worker_max_aio is introduced to change this behavior, by default the value is set to 1 to keep current behavior.
In our tests, we've seen the max RPS on LC processing double in performance.
Signed-off-by: Matthew H [email protected]
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 Definition