Repository navigation
rgw: Add request timeout to beast - #35355
Conversation
|
do you have a test for this case? did you see the timer expiration error code in the log? |
|
how about recycling idle tcp connection? |
isn't it the client that decides whether to reuse a connection? clients generally implement this with a connection pool keep-alive is the default for 1.1, and our interestingly, civetweb uses a separate keep_alive_timeout_ms of 500ms for these timeouts between requests, compared to the 65s timeouts for reads/writes during the request |
500ms seems a bit aggressive, but it does make sense that this timeout is much shorter. what is the value of our keepalive timeout for beast? |
c4d14fe to
9798d89
Compare
|
@yuvalif Thank you for reviewing the PR tc qdisc add dev lo root netem delay 400ms You will see it on the logs with this error message: The socket was closed due to a timeout. |
e30a3d4 to
5e94ebf
Compare
|
jenkins render docs |
5e94ebf to
82e4406
Compare
82e4406 to
5bb1a4c
Compare
5bb1a4c to
085d040
Compare
There was a problem hiding this comment.
can use auto& timeout = get_lowest_layer(stream); from above to simplify this to timeout.socket().shutdown(...
There was a problem hiding this comment.
Thank you for reviewing, done
085d040 to
c63d1da
Compare
|
@ofriedma I tried to build this for QA and I'm getting an error when building for "ubuntu | bionic | default | x86_64". It appears as though the "charconv" include file does not exist. I'll remove this from my QA run until this gets sorted out. /build/ceph-16.0.0-4495-ge7a6729f23b/src/rgw/rgw_asio_frontend.cc:7:10: fatal error: charconv: No such file or directory |
|
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. |
|
jenkins test this please |
|
jenkins test api |
c63d1da to
28a4e6a
Compare
Add request timeout beast The beast frontend will use the same parameter as the civetweb one, request_timeout_ms and will be configured to 65 seconds by default Fixes: https://tracker.ceph.com/issues/45431 Signed-off-by: Or Friedmann <[email protected]>
28a4e6a to
5d5f9a0
Compare
|
Looks ok (failures are not related to this PR) @cbodley |
|
@ofriedma congratulations! |
Add request timeout to beast
The beast frontend will use the same parameter as the civetweb one, request_timeout_ms and will be configured to 65 seconds by default
Fixes: https://tracker.ceph.com/issues/45431
Signed-off-by: Or Friedmann [email protected]