Skip to contentSkip to conversation

presentation: making rgw's process_request() asynchronous

DISCUSSION Casey Bodley 2 participants 3 messages Nov 16, 2017 – Nov 21, 2017

lore
Share & tools
lore
#0 lore raw

Hi all,

I've been working on a new http frontend for rgw over the past year and a half that's based on boost::asio and the beast http library. We're aiming to remove its 'experimental' status for the mimic release.

Since that project started, I've been brainstorming ways to take advantage of asio's asynchronous primitives throughout more of rgw. I think I've finally landed on a good strategy to incrementally convert process_request() (the main entrypoint for http requests) to be fully asynchronous when used with the beast frontend, without changing how the existing civetweb frontend works at all. The end result would allow us to serve more concurrent requests, reduce the number of threads needed, and plug in qos/prioritization features that would otherwise block frontend threads.

I'd like to present this to the rgw team and do a short code walkthrough to show what it looks like. Anyone else that's interested is more than welcome to join us next Tuesday, Nov 21 at 11am EST in https://bluejeans.com/u/cbodley/. I'll share the recording for anyone that can't make it.

Casey

#1 lore raw

The recording is available here: https://bluejeans.com/s/DMYtT/

Etherpad: http://pad.ceph.com/p/rgw_async_process_request

Quoted 9 lines · Casey Bodley

Hi all,

I've been working on a new http frontend for rgw over the past year and a half that's based on boost::asio and the beast http library. We're aiming to remove its 'experimental' status for the mimic release.

Since that project started, I've been brainstorming ways to take advantage of asio's asynchronous primitives throughout more of rgw. I think I've finally landed on a good strategy to incrementally convert process_request() (the main entrypoint for http requests) to be fully asynchronous when used with the beast frontend, without changing how the existing civetweb frontend works at all. The end result would allow us to serve more concurrent requests, reduce the number of threads needed, and plug in qos/prioritization features that would otherwise block frontend threads.

I'd like to present this to the rgw team and do a short code walkthrough to show what it looks like. Anyone else that's interested is more than welcome to join us next Tuesday, Nov 21 at 11am EST in https://bluejeans.com/u/cbodley/. I'll share the recording for anyone that can't make it.

Casey

#2 lore raw

Thanks for sharing

2017-11-22 1:25 GMT+08:00 Casey Bodley <[email protected]>:

Quoted 36 lines

The recording is available here: https://bluejeans.com/s/DMYtT/

Etherpad: http://pad.ceph.com/p/rgw_async_process_request

Quoted 16 lines · Casey Bodley

Hi all,

I've been working on a new http frontend for rgw over the past year and a half that's based on boost::asio and the beast http library. We're aiming to remove its 'experimental' status for the mimic release.

Since that project started, I've been brainstorming ways to take advantage of asio's asynchronous primitives throughout more of rgw. I think I've finally landed on a good strategy to incrementally convert process_request() (the main entrypoint for http requests) to be fully asynchronous when used with the beast frontend, without changing how the existing civetweb frontend works at all. The end result would allow us to serve more concurrent requests, reduce the number of threads needed, and plug in qos/prioritization features that would otherwise block frontend threads.

Quoted 7 lines

I'd like to present this to the rgw team and do a short code walkthrough to show what it looks like. Anyone else that's interested is more than welcome to join us next Tuesday, Nov 21 at 11am EST in
https://bluejeans.com/u/cbodley/. I'll share the recording for anyone that can't make it.

Casey

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html