vinyl: cleanup global statistics
- Remove vy_stat::rmean statistics, which were left from Sophia, as now we have per index statistics which are much more verbose than those. - Move vy_stat::dump_bw to vy_env and remove struct vy_stat as there's nothing left in it. - Move quota statistics from box.info.vinyl().performance.memory to box.info.vinyl().quota. Remove 'ratio', which equals used / limit, as this kind of calculations should be done by a script aggregating statistics. Report 'use_rate' and 'dump_bandwidth' there. - Report 'limit' in cache statistics to make them consistent with 'quota' statistics, where 'limit' is reported. Rename 'cache.count' to 'cache.tuples'. Remove vy_cache_env::cache_count, use mempool stats instead. - Move 'tx_allocated', 'txv_allocated', 'read_interval', 'read_view' from box.info.vinyl().performance to box.info.vinyl().tx and name them 'transactions', 'statements', 'gap_locks', and 'read_views', respectively. Remove vy_tx_stat::active and 'tx.active' as the same value is shown by 'tx.transactions', extracted from the mempool. - Zap box.info.vinyl().performance - there's nothing left there. Now global statistics look like: tarantool> box.info.vinyl() --- - cache: limit: 134217728 tuples: 32344 used: 34898794 tx: conflict: 1 commit: 324 rollback: 13 statements: 10 transactions: 3 gap_locks: 4 read_views: 1 quota: dump_bandwidth: 10000000 watermark: 119488351 use_rate: 1232703 limit: 134217728 used: 34014634 ... Closes #2861
Showing
- src/box/vinyl.c 89 additions, 160 deletionssrc/box/vinyl.c
- src/box/vy_cache.c 0 additions, 4 deletionssrc/box/vy_cache.c
- src/box/vy_cache.h 0 additions, 2 deletionssrc/box/vy_cache.h
- src/box/vy_stat.h 0 additions, 2 deletionssrc/box/vy_stat.h
- src/box/vy_tx.c 0 additions, 5 deletionssrc/box/vy_tx.c
- src/box/vy_tx.h 0 additions, 2 deletionssrc/box/vy_tx.h
- test/vinyl/errinj.result 6 additions, 6 deletionstest/vinyl/errinj.result
- test/vinyl/errinj.test.lua 6 additions, 6 deletionstest/vinyl/errinj.test.lua
- test/vinyl/mvcc.result 16 additions, 16 deletionstest/vinyl/mvcc.result
- test/vinyl/mvcc.test.lua 16 additions, 16 deletionstest/vinyl/mvcc.test.lua
- test/vinyl/quota.result 8 additions, 8 deletionstest/vinyl/quota.result
- test/vinyl/quota.test.lua 8 additions, 8 deletionstest/vinyl/quota.test.lua
- test/vinyl/quota_timeout.result 5 additions, 5 deletionstest/vinyl/quota_timeout.result
- test/vinyl/quota_timeout.test.lua 5 additions, 5 deletionstest/vinyl/quota_timeout.test.lua
- test/vinyl/recovery_quota.result 3 additions, 3 deletionstest/vinyl/recovery_quota.result
- test/vinyl/recovery_quota.test.lua 3 additions, 3 deletionstest/vinyl/recovery_quota.test.lua
- test/vinyl/tx_gap_lock.result 1 addition, 1 deletiontest/vinyl/tx_gap_lock.result
- test/vinyl/tx_gap_lock.test.lua 1 addition, 1 deletiontest/vinyl/tx_gap_lock.test.lua
- test/vinyl/upgrade/fill.lua 1 addition, 1 deletiontest/vinyl/upgrade/fill.lua
Loading
Please register or sign in to comment