Skip to content
New issue

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

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

Already on GitHub? # to your account

Stats RPC to print out rocksdb memory stats #2852

Merged
merged 3 commits into from
Aug 14, 2020

Conversation

wezrule
Copy link
Contributor

@wezrule wezrule commented Jul 24, 2020

This extends the stats RPC with another type called rocksdb

Example output is:

{
    "cur-size-all-mem-tables": "84208080",
    "size-all-mem-tables": "434238032",
    "estimate-table-readers-mem": "129269335",
    "estimate-live-data-size": "16350750564",
    "compaction-pending": "0",
    "estimate-num-keys": "70453544",
    "estimate-pending-compaction-bytes": "0",
    "total-sst-files-size": "18014738665",
    "block-cache-capacity": "260046848",
    "block-cache-usage": "132867094"
}

@wezrule wezrule self-assigned this Jul 24, 2020
@wezrule wezrule added this to the V22.0 milestone Jul 24, 2020
@wezrule wezrule requested a review from SergiySW August 5, 2020 14:33
@guilhermelawless guilhermelawless added rpc Changes related to Remote Procedure Calls database Relates to lmdb or rocksdb labels Aug 13, 2020
Copy link
Contributor

@guilhermelawless guilhermelawless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example response

{
    "block-cache-capacity": "1140850688",
    "block-cache-usage": "884216512",
    "compaction-pending": "0",
    "cur-size-all-mem-tables": "52192",
    "estimate-live-data-size": "14672331",
    "estimate-num-keys": "157449",
    "estimate-pending-compaction-bytes": "0",
    "estimate-table-readers-mem": "300488",
    "size-all-mem-tables": "52192",
    "total-sst-files-size": "50024942"
}

@wezrule wezrule added the documentation This item indicates the need for or supplies updated or expanded documentation label Aug 14, 2020
@wezrule wezrule merged commit d656e87 into nanocurrency:develop Aug 14, 2020
@wezrule wezrule deleted the rpc_to_print_rocksb_stats branch August 14, 2020 19:40
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
database Relates to lmdb or rocksdb documentation This item indicates the need for or supplies updated or expanded documentation rpc Changes related to Remote Procedure Calls
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants