From: Casey Bodley Subject: presentation: making rgw's process_request() asynchronous Date: Thu, 16 Nov 2017 13:22:31 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mail-qt0-f174.google.com ([209.85.216.174]:49399 "EHLO mail-qt0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759485AbdKPSWe (ORCPT ); Thu, 16 Nov 2017 13:22:34 -0500 Received: by mail-qt0-f174.google.com with SMTP id p44so34630279qtj.6 for ; Thu, 16 Nov 2017 10:22:34 -0800 (PST) Received: from [10.17.151.126] ([12.118.3.106]) by smtp.gmail.com with ESMTPSA id q24sm1216910qkq.63.2017.11.16.10.22.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Nov 2017 10:22:32 -0800 (PST) Content-Language: en-US Sender: ceph-devel-owner@vger.kernel.org List-ID: To: The Sacred Order of the Squid Cybernetic 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