Repository navigation
rgw/beast: realm reload closes connections so requests drain quickly - #57640
Conversation
outstanding requests may take arbitrarily long to complete. instead of waiting for everything to complete successfully before pause() returns, close all client connections so their requests fail quickly this matches the behavior of stop() for radosgw shutdown/restart. this should help to minimize the downtime of realm reloads where the frontend isn't accepting connections or processing new requests Signed-off-by: Casey Bodley <[email protected]>
|
this was motivated by recent discussions with @mmgaggle about shutdown/upgrade behavior, as well as @BBoozmen's discussion regarding realm reloads in https://tracker.ceph.com/issues/66100 |
|
I performed a quick test of the changes. It looks like a regression might be introduced which can be exposed by the multisite site integration test: i.e., After c1 is created by this script: I think c1 prematurely closes the connection to c2 before sending a request? Relevant events: |
require the callers to trigger the realm notify manually. RGWOp_Period_Post takes advantage of this to delay the realm notify until after it's sent its response to the client. this avoids racing with realm reload which will close the connection commit returns EEXIST errors directly so the caller can avoid the realm notify Signed-off-by: Casey Bodley <[email protected]>
|
thanks @BBoozmen, that post_period op triggers realm reload, so couldn't send its response. i added another commit to delay that realm notification until after the response is sent |
BBoozmen
left a comment
There was a problem hiding this comment.
LGTM - our test which could reproduce https://tracker.ceph.com/issues/66100 (reloading new realm getting stuck while closing the underlying store/driver) is now passing with these changes.
|
@cbodley - is this something that can be backported to Squid branch? |
outstanding requests may take arbitrarily long to complete. instead of waiting for everything to complete successfully before pause() returns, close all client connections so their requests fail quickly
this matches the behavior of stop() for radosgw shutdown/restart. this should help to minimize the downtime of realm reloads where the frontend isn't accepting connections or processing new requests
Show 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 windowsjenkins test rook e2e