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

read only api node #6231

Open
PikaZ76 opened this issue Mar 9, 2025 · 3 comments
Open

read only api node #6231

PikaZ76 opened this issue Mar 9, 2025 · 3 comments

Comments

@PikaZ76
Copy link

PikaZ76 commented Mar 9, 2025

I get a snapshot, and if we can config to make node read only?
which means, node only read data from levelDB, and no p2p function?
to maxmum the read API performance under the same resource?
btw,can I use rocketDB for snapshot file?

@Sunny6889
Copy link

@PikaZ76 You can start a java-tron node with snapshot and stop sync with other blocks, just remember the lightweight data is outdated, and may not contains the block details you needed. Check the lightweight official document. If your API need to return account status, like balance, you need to keep your node syncing with the Mainnet.

@King31T
Copy link

King31T commented Mar 10, 2025

Image The third one is RocksDB and be careful of the 'Note' about config file.

@halibobo1205
Copy link
Contributor

node only read data from levelDB, and no p2p function?

Yes, start node the --p2p-disable true param since GreatVoyage-v4.7.2.

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

No branches or pull requests

4 participants