Repository navigation
Conversation
what were the reasons to prefer quiche over lsquic ?
with the rest of the code we are using the spawn library with the optiobal_yield. i thought that the plan would be to refactor the frontends with c++20 coroutines in a later stage?
|
for me, the main differentiator was related to locking. with lsquic, the main API object is lsquic_engine which manages the state of all of its connections. every call into lsquic essentially requires a global lock on that engine object in quiche, Connection is the top-level API object. there are 'global' the tradeoff is that lsquic managed the set of open connections and their lookups by connection id, whereas quiche leaves that part up to the application. i believe we can do this part with no locking at all in the current prototype, i did add a mutex to the connection set in |
this will still use the spawn library to create the stackful coroutine that calls |
I feel we should exercise some caution about incorporating a rust library, but as a prototype, it seems motivated. I don't mind supporting it if it works well--and rust is so au courant. Matt |
7d85af0 to
dae5a4e
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
93901aa to
804c7c6
Compare
|
it's alive and working, but the bulk data transfers are pretty slow. testing PUT and GET of a 128mb object with http3: the same requests with tcp for comparison: the addition of |
|
@cbodley I assume that timer could eventually be eliminated? |
yeah, we just need some way to wake up ClientIO once their chunk of i/o completes. as a first draft, i used a timer to act like a condition variable here, but it's being notified far too often. once we convert this to a one-time notification, we can use a different primitive like |
|
updated the read path (corresponding to PutObj) and the PUT performance is much closer to tcp's: |
|
changes:
|
|
performance looks fine against the h3_zero example server. it's also fine for GET requests to rgw's /zero api, but PUTs are extremely slow. wireshark shows tons of tiny packets being exchanged there, ie separate ACKs of individual packets |
dump_body() and recv_body() both catch exceptions and return negative error codes. handle negative values as errors instead of trying to catch them errors here led to later crashes when trying to use a null s->formatter to format the error response. s->formatter is now allowed on init() Signed-off-by: Casey Bodley <[email protected]>
rgw frontends throw rgw::io::Exception = std::system_error for io errors, but other internal exceptions from boost::system::system_error may also escape from ClientIO. instead of trying to catch and rethrow as rgw::io::Exception, catch both types in the rgw_rest.cc helpers Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
this allows http/1.1 clients to discover the presence of an http/3 endpoint Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
the cert= and key= options were renamed to match beast's ssl_certificate= and ssl_private_key= Signed-off-by: Casey Bodley <[email protected]>
StreamIO tracks read and write state separately so that it can handle a read and a write at the same time Signed-off-by: Casey Bodley <[email protected]>
each time the Listener calls recvmmsg() to read an array of packets, it groups those packets by their associated Connection. this allows it to deliver all of its packets to the Connection in a single call to async_handle_packets() this avoids the need for multiple round trips between the Listener's executor and the Connection's. it also allows the Connection to process all of the packets before calling writer_wake() to send response packets or acks Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
1 similar comment
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
|
@cbodley — rebased Branch: Rebase / conflict resolution:
Suggested next steps:
Experimental HTTP/3 frontend — happy to help with further review items (unit/qa tests, i/o optimizations from PR TODO). |
|
after there is a build error myb it should be |
|
@mkogan1 Thanks for catching this — you're right, it should be That was my mistake in the Alt-Svc / beast merge: I called the Fixed in Sorry for the noise, and thanks again for testing the cherry-pick series. |
https://github.com/cloudflare/quiche is a rust library with C bindings. this PR adds quiche as a cmake ExternalProject, using
cargoto build it as a static librarylike several other quic libraries, quiche depends on boringssl so this pr adds a librgw_h3_quiche.so and dlopens it to isolate the boringssl/quiche linkage from the rest of rgw/ceph
libcurl's cmake also supports a
USE_QUICHEoption, which should prove useful as an http/3 client for testing. the latest curl 7.85 doesn't build against any quiche release, but curl 7.84 does. so curl 7.84 and the latest quiche 0.14.0 were the selected versionsi've sketched out some of the rgw frontend based on quiche, boost::asio, and c++20 coroutines. by running each quic connection on a separate strand executor, i hope to avoid the need for explicit locking
TODO:
beast::http::fieldsShow available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows