Skip to content

Detect and remove stale connections - #126

Merged
petrutlucian94 merged 4 commits into
cloudbase:mainfrom
petrutlucian94:stale_conn
Jun 7, 2023
Merged

petrutlucian94 merged 4 commits into
cloudbase:mainfrom
petrutlucian94:stale_conn

Conversation

@petrutlucian94

Copy link
Copy Markdown
Member

Storport resets the lun after hitting request timeouts. However,
it never actually removes the disk. Having a stale disk can be
troublesome, leading to an unresponsive host in certain situations
(e.g. cache deadlocks, hanging persistent reservation
requests, etc).

For this reason, we'll detect stale connections and disconnect
the disk. This feature along with the timeouts are configurable.
By default, we'll consider a connection to be stale if at least one
request older than 15s got aborted and if no IO reply was received
in the last minute.

At the same time, we'll include the following timestamps in the
wnbd-client.exe stats output:

  • last received request
  • last submitted request
  • last received reply

Signed-off-by: Lucian Petrut [email protected]

In order to detect stale daemons, we'll record the timestamp of
certain IO events:

* last received request
* last submitted request
* last received reply
* queue timestamp for each async IO request

Signed-off-by: Lucian Petrut <[email protected]>
We'll include the following timestamps in the wnbd-client stats
output:

* last received request
* last submitted request
* last received reply
Comment thread driver/options.h Resolved
Storport resets the lun after hitting request timeouts. However,
it never actually removes the disk. Having a stale disk can be
troublesome, leading to an unresponsive host in certain situations
(e.g. cache deadlocks, hanging persistent reservation
requests, etc).

For this reason, we'll detect stale connections and disconnect
the disk. This feature along with the timeouts are configurable.
By default, we'll consider a connection to be stale if at least one
request older than 15s got aborted and if no IO reply was received
in the last minute.

Signed-off-by: Lucian Petrut <[email protected]>
The PR test job installs qemu in order to run NBD tests.

The issue is that we're hitting checksum errors with the latest
Qemu choco build (released 1 week ago), for which reason we'll
switch to the previous version.

Signed-off-by: Lucian Petrut <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant