Commit 360c8a4
authored
[Filestore] implement availability counters for FUSE requests (#6826)
### Notes
A Shared Filesystem is considered **unavailable** during any `N-minute`
interval in which, for at least one filesystem request type, at least
one request was **outstanding** and every such request either failed
with an **EIO** error, or **hung**.
**Note**: A request submitted during an interval and still outstanding
when the interval ends is not classified for that interval. It does not
contribute to determining whether the interval is available or
unavailable
In all `N-minute` intervals in which the unavailability condition is not
met, a Shared Filesystem is considered **available**.
Shared Filesystem availability for the measurement period shall be
calculated as:
Number of `N-minute` intervals in which the Shared Filesystem was
Available / Total number of `N-minute` intervals in the measurement
period × 100%
### Definitions
A request is **outstanding** at a given point in time if it was
submitted but had received no response, success or error, by that point.
A request is **hung** if it was **outstanding** for the entire duration
of the `N-minute` interval.
Request type - a category of filesystem operation, Fuse request types:
```
readdir
readdirplus
opendir
releasedir
lookup
getattr
setattr
write
write_buf
read
open
create
release
mkdir
rmdir
unlink
rename
link
symlink
readlink
flush
fsync
```
EIO error - POSIX EIO error code (see
https://man7.org/linux/man-pages/man3/errno.3.html)
### Issue
#68251 parent bdb2af8 commit 360c8a4
23 files changed
Lines changed: 2220 additions & 38 deletions
File tree
- cloud/filestore
- config
- libs
- diagnostics
- ut
- service
- storage
- core
- tablet
- vfs_fuse
- public/api/protos
- tests/common_configs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
130 | 136 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
896 | 896 | | |
897 | 897 | | |
898 | 898 | | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
899 | 905 | | |
0 commit comments