Skip to content

Updated partition_stats sys view according to actual scheme #17264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions ydb/docs/en/core/dev/system-views.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ Column | Description | Data type | Instant/Cumulative
`OwnerId` | ID of the SchemeShard table.<br/>Key: `0`. | `Uint64` | Instant
`PathId` | ID of the SchemeShard path.<br/>Key: `1`. | `Uint64` | Instant
`PartIdx` | Partition sequence number.<br/>Key: `2`. | `Uint64` | Instant
`FollowerId` | ID of the partition tablet [follower](../concepts/glossary.md#tablet-follower). A value of 0 means the leader.<br/>Key: `3`.| `Uint32` | Instant
`DataSize` | Approximate partition size in bytes. | `Uint64` | Instant
`RowCount` | Approximate number of rows. | `Uint64` | Instant
`IndexSize` | Partition index size in bytes. | `Uint64` | Instant
`CPUCores` | Instantaneous value of the load on the partition (the share of the CPU core time spent by the actor of the partition). | `Double` | Instant
`TabletId` | ID of the partition tablet. | `Uint64` | Instant
`FollowerId` | ID of the partition tablet [follower](../concepts/glossary.md#tablet-follower). A value of 0 means the leader. | `Uint32` | Instant
`Path` | Full path to the table. | `Utf8` | Instant
`NodeId` | ID of the partition node. | `Uint32` | Instant
`StartTime` | Last time of the launch of the partition tablet. | `Timestamp` | Instant
Expand All @@ -43,10 +43,13 @@ Column | Description | Data type | Instant/Cumulative
`RangeReads` | Number of range reads. | `Uint64` | Cumulative
`RangeReadRows` | Number of rows read in ranges. | `Uint64` | Cumulative
`InFlightTxCount` | Number of in-flight transactions. | `Uint64` | Instant
`ImmediateTxCompleted` | Number of completed [single-shard transactions](../concepts/glossary.md#transactions). | `Uint64` | Cumulative
`ImmediateTxCompleted` | Number of completed [single-shard transactions](../concepts/glossary.md#transactions). | `Uint32` | Cumulative
`CoordinatedTxCompleted` | Number of completed [distributed transactions](../concepts/glossary.md#transactions). | `Uint64` | Cumulative
`TxRejectedByOverload` | Number of transactions cancelled due to [overload](../troubleshooting/performance/queries/overloaded-errors.md). | `Uint64` | Cumulative
`TxRejectedByOutOfStorage` | Number of transactions cancelled due to lack of storage space. | `Uint64` | Cumulative
`LastTtlRunTime` | Launch time of the last TTL erasure procedure | `Timestamp` | Instant
`LastTtlRowsProcessed` | Number of rows checked during the last TTL erasure procedure | `Uint64` | Instant
`LastTtlRowsErased` | Number of rows deleted during the last TTL erasure procedure | `Uint64` | Instant
`LocksAcquired` | Number of [locks](../contributor/datashard-locks-and-change-visibility.md) acquired. | `Uint64` | Cumulative
`LocksWholeShard` | The number of ["whole shard" locks](../contributor/datashard-locks-and-change-visibility.md#limitations) taken. | `Uint64` | Cumulative
`LocksBroken` | Number of [broken locks](../contributor/datashard-locks-and-change-visibility.md#high-level-overview). | `Uint64` | Cumulative
Expand Down
7 changes: 5 additions & 2 deletions ydb/docs/ru/core/dev/system-views.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
`OwnerId` | Идентификатор SchemeShard таблицы.<br/>Ключ: `0`. | `Uint64` | Моментальная
`PathId` | Идентификатор пути в SchemeShard.<br/>Ключ: `1`. | `Uint64` | Моментальная
`PartIdx` | Порядковый номер партиции.<br/>Ключ: `2`. | `Uint64` | Моментальная
`FollowerId` | Идентификатор [подписчика](../concepts/glossary.md#tablet-follower) таблетки партиции. Значение 0 означает лидера.<br/>Ключ: `3`. | `Uint32` | Моментальная
`DataSize` | Приблизительный размер данных партиции в байтах. | `Uint64` | Моментальная
`RowCount` | Приблизительное количество строк. | `Uint64` | Моментальная
`IndexSize` | Размер индекса партиции в байтах. | `Uint64` | Моментальная
`CPUCores` | Моментальное значение нагрузки на партицию (доля времени ядра процессора, затраченного актором партиции). | `Double` | Моментальная
`TabletId` | Идентификатор таблетки партиции. | `Uint64` | Моментальная
`FollowerId` | Идентификатор [подписчика](../concepts/glossary.md#tablet-follower) таблетки партиции. Значение 0 означает лидера. | `Uint32` | Моментальная
`Path` | Полный путь к таблице. | `Utf8` | Моментальная
`NodeId` | Идентификатор ноды, на которой в данный момент обслуживается партиция. | `Uint32` | Моментальная
`StartTime` | Последний момент запуска таблетки партиции. | `Timestamp` | Моментальная
Expand All @@ -43,10 +43,13 @@
`RangeReads` | Количество чтений по диапазону ключей. | `Uint64` | Кумулятивная
`RangeReadRows` | Количество строк, прочитанных в диапазонах. | `Uint64` | Кумулятивная
`InFlightTxCount` | Количество исполняющихся транзакций. | `Uint64` | Моментальная
`ImmediateTxCompleted` | Количество завершившихся [одношардовых транзакций](../concepts/glossary.md#transactions). | `Uint64` | Кумулятивная
`ImmediateTxCompleted` | Количество завершившихся [одношардовых транзакций](../concepts/glossary.md#transactions). | `Uint32` | Кумулятивная
`CoordinatedTxCompleted` | Количество завершившихся [распределенных транзакций](../concepts/glossary.md#transactions). | `Uint64` | Кумулятивная
`TxRejectedByOverload` | Количество транзакций, отменённых по причине [высокой нагрузки](../troubleshooting/performance/queries/overloaded-errors.md). | `Uint64` | Кумулятивная
`TxRejectedByOutOfStorage` | Количество транзакций, отменённых из-за нехватки места в хранилище. | `Uint64` | Кумулятивная
`LastTtlRunTime` | Последний момент запуска очистки партиции по TTL | `Timestamp` | Моментальная
`LastTtlRowsProcessed` | Количество проверенных строк партиции при последней очистке по TTL | `Uint64` | Моментальная
`LastTtlRowsErased` | Количество удалённых строк партиции при последней очистке по TTL | `Uint64` | Моментальная
`LocksAcquired` | Количество установленных [блокировок](../contributor/datashard-locks-and-change-visibility.md) . | `Uint64` | Кумулятивная
`LocksWholeShard` | Количество установленных [блокировок "весь шард"](../contributor/datashard-locks-and-change-visibility.md#ограничения). | `Uint64` | Кумулятивная
`LocksBroken` | Количество [сломанных блокировок](../contributor/datashard-locks-and-change-visibility.md#высокоуровневая-схема-работы). | `Uint64` | Кумулятивная
Expand Down