diff options
author | Konstantin Khlebnikov <koct9i@gmail.com> | 2025-03-06 18:44:34 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2025-03-06 18:58:11 +0300 |
commit | 8e54aae06a79164d9e6e72ee397ad1497d991c9e (patch) | |
tree | 1552af50be46547c64adc12f7a70ac15a9f5c8b9 /library/cpp/lua/json.cpp | |
parent | b2a614b978aa9ece8ea6f19758cbd3cbff7bb59e (diff) | |
download | ydb-8e54aae06a79164d9e6e72ee397ad1497d991c9e.tar.gz |
Refactor block device I/O statistics
- Store block device id as major:minor pair
They are more readable and useful as major-minor pair.
ID anyway should be that size, because libc dev_t is 64-bit.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@tracto.ai>
- Remove /proc/diskstats parser
This code is unused.
Fetching statistics for all disks at once is very ineffective.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@tracto.ai>
- Add functions for working with block device statistics by major:minor
Storage devices not always have predictable names,
but we can easily translate filesystem path into major:minor.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@tracto.ai>
- Fetch location disk statistics by device id.
Translate disk name or path into device id at the initialization.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@tracto.ai>
---
> If this change is not needed to be mentioned in release notes then just remove changelog entry.
> If this change is needed to be mentioned in release notes then please add changelog entry at the end of pull request description, using this format:
>
> * Changelog entry
> Type: ? # fix/feature (Select one value, example: `Type: fix`)
> Component: ? # master/proxy/scheduler/dynamic-tables/controller-agent/queue-agent/query-tracker
> # map-reduce/misc-server/odin/spyt/chyt/strawberry/python-sdk/python-yson/python-rpc-bindings/java-sdk
> # cpp-sdk/go-sdk (Select one value, example: `Component: scheduler`)
> Description of this change which will be added in release notes.
* Changelog entry
Type: fix
Component: Make collection disk I/O statistics k8s compatible
<Your description.>
---
Co-authored-by: Konstantin Khlebnikov [khlebnikov@tracto.ai]
Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1105
Co-authored-by: yuryalekseev <yuryalekseev@yandex-team.com>
commit_hash:5dbce3d21027763dfd052c8aa078466bc0c634b7
Diffstat (limited to 'library/cpp/lua/json.cpp')
0 files changed, 0 insertions, 0 deletions