-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Feature Request] New Strorage Charging Scheme #10092
Comments
wen? |
how to deal with current data with free quota? |
Does this mean that there will be an implicit optimal storage size? Or will the incentive then be to cram as much data as possible into a single storage slot to avoid per-item costs? What about incentivizing conformity to cache sizes (e.g. cache hits like in a B+ tree in filesystems)? |
How does the base fee for a slot work? We have both ephemeral charge and the original value fee? Or? per permanent (state) byte fee this kinda sounds like we'll have two fees, one for the persistent and another ephemeral. From there, if we increase state, we get more towards persistent, if we decrease, we get a refund? |
Existing slots, when updated, will be charged according to the new scheme.
No. The optimal size will be (rightfully) dependent on how frequently you write to the slot.
That's more relevant on the read side, which is why read is proposed to be charged at 4k steps.
|
@msmouse thank you for the above
It seems like optimal space for a given slot is then a function of specific use: e.g. if I read a slot regularly and write infrequently, then I would tend toward 4k size, whereas if I write more often then reads, it changes the optimal size Correct? What would be optimal size for frequent writing? |
Exactly.
A nuance here is the breakdown of the ephemeral bytes fee for a write operation: even if the slot is only 1 byte large, all the nodes along the route from the leaf node representing the 1 byte value to the SMT root will be written down. As a result, there will be a constant ephemeral bytes charge associated with an individual write operation. One can also think of it as "per slot update fee". Then the ultimate trade-offs wrt the optimal size for frequently written to item is really down to this formula: Assuming most of the content of a slot gets updated pretty frequently: when roughly While if only part of the content is truly frequently updated, it can still be favorable to break it up to two items and enjoy some savings. A more complicated example: let's say
Let's say You get the idea. (numbers will become concrete down the road) |
This issue is stale because it has been open 45 days with no activity. Remove the |
Charge for IOPS, disk bandwidth and disk space in a fair and straightforward way.
Motivation
The current storage fee structure was designed pre- storage fee. Needs refresh.
Pitch
slot_fee / 4096
, for example.Additional context
AIP-17 Storage Fee
AIP-38 Deprecate Storage Gas Curves
AIP-32 Storage Deletion Refund
The text was updated successfully, but these errors were encountered: