Skip to content
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

v1.3.0-alpha7 pruning state with prune.mode=archive #586

Closed
datanexus-vincent opened this issue Dec 31, 2024 · 3 comments
Closed

v1.3.0-alpha7 pruning state with prune.mode=archive #586

datanexus-vincent opened this issue Dec 31, 2024 · 3 comments

Comments

@datanexus-vincent
Copy link

System information

Erigon version: 1.3.0-alpha7-240c16b4

OS & Version: Ubuntu 22.04.5 LTS Linux version 5.15.0-130-generic

Commit hash: 240c16b4210de9bccede3d9a7dcbd15276ea9a3c

Erigon Command (with flags/config):

erigon \
      --networkid 56 \
      --nat any \
      --chain=bsc \
      --metrics \
      --metrics.addr=0.0.0.0 \
      --metrics.port=6060 \
      --pprof \
      --pprof.addr=0.0.0.0 \
      --pprof.port=6061 \
      --authrpc.jwtsecret=/data/erigon3-bnb/jwt.hex \
      --datadir=/data/erigon3-bnb \
      --http \
      --http.addr=0.0.0.0 \
      --http.port=8545 \
      --http.vhosts=* \
      --http.api="eth,erigon,web3,net,debug,trace,txpool,engine" \
      --ws \
      --rpc.returndata.limit=1100000 \
      --rpc.batch.limit=1000 \
      --db.pagesize=64kb \
      --db.size.limit=16TB \
      --torrent.download.rate=99mb \
      --prune.mode=archive

Consensus Layer: N/A

Consensus Layer Command (with flags/config): N/A

Chain/Network: BSC / ChainID 56

Expected behaviour

Archive BSC node

Actual behaviour

Seems to be pruning

[INFO] [12-31|03:43:23.732] [snapshots] pruning state                until commit=11h57m59.572436548s pruneLimit=1000000 aggregatedStep=4263 stepsRangeInDB="accounts:0.5, storage:0.5, code:0.5, commitment:0.0, receipt:0.5, logaddrs: 0.5, logtopics: 0.5, tracesfrom: 0.5, tracesto: 0.5" pruned="accounts| kv: 481.53k from steps 4263-4263, values: 6.04M, txns: 1545412 from 6.66B-6.66B; code| kv: 9.00k from steps 4263-4263, values: 9.00k, txns: 2662 from 6.66B-6.66B; commitment| kv: 3.00M from steps 4263-4263; receipt| kv: 3 from steps 4263-4263, values: 2.66M, txns: 1553955 from 6.66B-6.66B; storage| kv: 1.79M from steps 4263-4263, values: 6.69M, txns: 1079819 from 6.66B-6.66B; logaddrs| values: 2.32M, txns: 1107519 from 6.66B-6.66B; logtopics| values: 7.26M, txns: 1107519 from 6.66B-6.66B; tracesfrom| values: 3.44M, txns: 1545412 from 6.66B-6.66B; tracesto| values: 4.71M, txns: 1545412 from 6.66B-6.66B"

[INFO] [12-31|03:43:38.620] [snapshots] PruneSmallBatches finished   took=2m15.315655492s stat="accounts| kv: 481.53k from steps 4263-4263, values: 6.04M, txns: 1545412 from 6.66B-6.66B; code| kv: 9.00k from steps 4263-4263, values: 9.00k, txns: 2662 from 6.66B-6.66B; commitment| kv: 4.67M from steps 4263-4263; receipt| kv: 3 from steps 4263-4263, values: 2.66M, txns: 1553955 from 6.66B-6.66B; storage| kv: 1.79M from steps 4263-4263, values: 6.69M, txns: 1079819 from 6.66B-6.66B; logaddrs| values: 2.32M, txns: 1107519 from 6.66B-6.66B; logtopics| values: 7.26M, txns: 1107519 from 6.66B-6.66B; tracesfrom| values: 3.44M, txns: 1545412 from 6.66B-6.66B; tracesto| values: 4.71M, txns: 1545412 from 6.66B-6.66B"
 			 stage_at 	 prune_at
OtterSync 		 45359861 	 0
Headers 		 45359862 	 0
BorHeimdall 		 0 		 0
PolygonSync 		 0 		 0
BlockHashes 		 45359862 	 0
Bodies 			 45359862 	 0
Senders 		 45359862 	 0
Execution 		 45359862 	 45359861
CustomTrace 		 0 		 0
Translation 		 0 		 0
TxLookup 		 45359862 	 45357976
Finish 			 45359862 	 0
--
prune distance: 

blocks: segments=45357999, indices=45357999
blocks.bor: segments=0, indices=0

blocks.bsc: segments=45299999, indices=45299999

state.history: idx steps: 0.79, TxNums_Index(45359862,6678249163), filesAmount: [5 5 5 5 4 69 69 69 69]

sequence: EthTx=6678250026

in db: first header 45357976, last header 45359862, first body 45357976, last body 45359862
--

Steps to reproduce the behaviour

Just run the command and let Erigon download the snapshot. It prunes almost immediately after finishing the snapshot download.

Backtrace

N/A

@blxdyx
Copy link
Collaborator

blxdyx commented Jan 2, 2025

pruning state or PruneSmallBatches means move something from db to snapshots(freeze db). It's still archive mode.

@blxdyx blxdyx closed this as completed Jan 6, 2025
@datanexus-vincent
Copy link
Author

Got it, thanks for the info. I was worried because a fellow node runner said they did not see any logs like that on their node that was on the version previous to this one.

@blxdyx
Copy link
Collaborator

blxdyx commented Jan 8, 2025

These logs will not be very frequent, only every step (about 12hours). It shows normal in my node logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants