-
Notifications
You must be signed in to change notification settings - Fork 501
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
Measure size of current ledger with respect to claimable balances #3972
Comments
Would be great to have metrics on this in |
OK, number of ledger entries is now tracked by metric in #4015. Moving this back to Current Sprint to continue working on size of DB. |
I was confused: this is not related to Postbgres DB size but RAM size. This can be hard to do. If we want to get memory usage of Stellar-Core we'd need to execute system command and I don't think a breakdown per ledger entry is possible without Stellar-Core help (like exposing metrics). |
Let's start with DB disk size per ledger so we can reliably extrapolate growth of storage needs. |
I'm confused by this @bartekn. It seems to me that So why can't we answer this question? If (for example) RAM is 10GB and 3/4 of the ledger entries are claimable balances, then claimable balances are responsible for 7.5GB. What am I missing? |
We can't access this data from Go code directly (maybe using
Probably but there's also Overlay and some other components. I can agree that it's probably 90%+ but I don't know if it's 90% or 99%.
The problem here is the ledger entries are not equal in size. A data entry can be much smaller that claimable balance with a bunch of claimants. If the estimated values are OK then we can probably calculate it this way but we still don't have access to RAM usage of CC from Horizon code (see: |
Closing because better memory analysis requires exposing more metrics in Stellar-Core. However, given we probably need to move CC to disk such metric is probably no longer needed. |
We need an estimate of the current ledger state:
We want to know the current memory requirements for captive core, and how much headroom we have if ledger size continues to increase.
The text was updated successfully, but these errors were encountered: