wip: add filtered L1 Bundle copycat depth-aware indexing by ID#734
Open
charmful0x wants to merge 17 commits intoneo/edgefrom
Open
wip: add filtered L1 Bundle copycat depth-aware indexing by ID#734charmful0x wants to merge 17 commits intoneo/edgefrom
charmful0x wants to merge 17 commits intoneo/edgefrom
Conversation
Author
|
added support for comma separated include-owner-alias filter: 48> hb_ao:resolve( <<"~copycat@1.0/arweave&id=6DODXspJYXcMbUvadcAQ9FoP3xh5N0dhDCiOwU7d4Q4&mode=write&include-owner-alias=neo-bundler,turbo&exclude-tag=Bundler-App-Name:Redstone">>, Opts2 ).
{ok,#{items_count => 1404,bundle_count => 1,skipped_count => 0,
<<"priv">> =>
#{<<"hashpath">> =>
<<"M8hn9wfAiAF8pQirF-j48KgJ1lXxkD02MlDX0uWhUoM/sV4DMZxa1fCz2ajn144goQSnEGoJcaTSHrTaOqvhHps">>}}}
49> |
Author
|
get/set recursion cap -- overrides dev_copycat_arweave:set_depth_recursion_cap(5, Opts).
dev_copycat_arweave:get_depth_recursion_cap(Opts).
|
Author
|
new features: hb_ao:resolve( <<"~copycat@1.0/arweave&id=fFt5eteych-ppitofKFoeuzm5I_2CyY1ce4FSAGC3Ow&mode=write&load-l1-offset=true&include-owner-alias=neo-bundler,turbo&exclude-tag=Bundler-App-Name:Redstone&include-tag=Bundler-App-Name:ao">>, Opts2 ).
|
Author
|
updated the MEMORY_SAFE_CAP to match the highest recorded L1 data tx size under turbo's ao bundler: Ardrive Turbo (data uploads stopped at block 867572 ): JNC6vBhjHY1EPwV3pEeNmrsgFMxH5d38_LHsZ7jful8 {
"total_size_bytes": "69035238626980",
"total_size_gb": "64294.076",
"largest_txid": "DEk-63yOLQNt04ZjUeTYJ4GJ18ur7kDNLg_6wBsVvz0",
"largest_tx_size": "5369655672",
"smallest_txid": "Bmbz9xuw3m1whhBXa2hI1OZXp68Bi0Wsu-rdCV2YOwg",
"smallest_tx_size": "3836"
}neo-uploader (actively uploading data): FPjbN_btYKzcf8QASjs30v5C0FPv7XpwKXENBW8dqVw latest snapshot stats: "total_size_bytes": "3663945608",
"total_size_gb": "3.412",
"largest_txid": "wzoLJaO6ahteoIU_UfjC0noJPM1PxV7XVDFH_QLM0nE",
"largest_tx_size": "84331158",
"smallest_txid": "eNzAdhwi6GC9HMcjfAn-MFWaD_zHOK8bFokqPeStA6E",
"smallest_tx_size": "2231"bucketed distribution{
"input_file": "turbo-txs.json",
"total_entries": 198400,
"entries_with_size": 198400,
"under_100mb": 93767,
"under_100mb_pct": 47.26,
"under_250mb": 139179,
"under_250mb_pct": 70.15,
"under_500mb": 164341,
"under_500mb_pct": 82.83,
"under_1gb": 181073,
"under_1gb_pct": 91.27,
"under_2gb": 192998,
"under_2gb_pct": 97.28,
"under_3gb": 196288,
"under_3gb_pct": 98.94,
"under_4gb": 197542,
"under_4gb_pct": 99.57,
"under_5gb": 198093,
"under_5gb_pct": 99.85,
"over_6gb": 0,
"over_6gb_pct": 0,
"buckets": {
"bucket_0_100mb": {
"count": 93767,
"pct": 47.26
},
"bucket_100_250mb": {
"count": 45412,
"pct": 22.89
},
"bucket_250_500mb": {
"count": 25162,
"pct": 12.68
},
"bucket_500mb_1gb": {
"count": 16732,
"pct": 8.43
},
"bucket_1_2gb": {
"count": 11925,
"pct": 6.01
},
"bucket_2_3gb": {
"count": 3290,
"pct": 1.66
},
"bucket_3_4gb": {
"count": 1254,
"pct": 0.63
},
"bucket_4_5gb": {
"count": 551,
"pct": 0.28
},
"bucket_5_6gb": {
"count": 307,
"pct": 0.15
},
"bucket_over_6gb": {
"count": 0,
"pct": 0
}
}
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
About
performance-aware resource-minimalist filtering-aware L1 bundles copycat indexing - status: wip
configurability
in id=.. path:
&depth=safe_maxrecurse every bundle till DEPTH_RECURSION_CAP. if no depth is provided (1..safe_max), it defaults to safe_max.supported paths
at the moment, the new path is the &id=.. + filters. how it works:
to test the feature locally, and to simulate having the required local L1 tx offset index, index a block with depth=1
for block https://aolink.ar.io/#/block/1870797
now if we assume we have the required L1 TXs offsets indexed locally, we can integrate over IDs and assert filters:
res:
{ok,#{items_count => 1404,bundle_count => 1,skipped_count => 0,if we try a L1 TX with redstone filter enabled: must be a turbo owner L1 TX (bundle) but exclude redstone tags.
txid: https://viewblock.io/arweave/tx/5q95xvC3_BbZa5C4hypcgnIHkyLSlgGef-OpAdMjoOY
TODOs:
MEMORY_SAFE_CAPDEPTH_RECURSION_CAPconfigurable, with getter/setter parity toMEMORY_SAFE_CAP~copycat@1.0/arweave&include-owner=<OWNER_ADDR>&exclude-tag=<TAG_NAME>:<TAG_VALUE>