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

Block finalization time on archive node is 5x slower than on core nodes during significant load #1777

Open
oleksandrSydorenkoJ opened this issue Jan 5, 2024 · 1 comment

Comments

@oleksandrSydorenkoJ
Copy link

Describe the bug
Reproducible only with 200-250 mill gas usage.

Preconditions:
Skale chain with connected archival node
Address A with contract deployment role and 5 Sfuel on balance

Versions
skalenetwork/schain:3.18.0-develop.17 - core nodes
skalenetwork/schain:3.17.2-develop.3-historic - archival node

To Reproduce

  1. Deploy the contract to store data to state
  2. Send 1000 transactions of storing data on blockchain, every block gas usage should be at least 200 mil
  3. Check block finalization time on the core node
  4. Check block finalization time on the archival node
  5. Compare results from step 3 and step 4

Expected behavior
Block finalization time on core and archival node should be the same

Actual state:
Block finalization time on Core node is 1-2 seconds, and 10-11 on archival node

Core node:

2024-01-05 16:51:44.502881   Block 7014 DB usage is 6310. Piece DB usage is 9500909 bytes
2024-01-05 16:51:44.503751   SWT:1053:BFT:1527

Archival node

2024-01-05 16:56:53.904277   Block 7014 DB usage is 6310. Piece DB usage is 9500909 bytes
2024-01-05 16:56:53.905577   SWT:5926:BFT:5938
@oleksandrSydorenkoJ oleksandrSydorenkoJ changed the title Block finalization time on archival node less than on core nodes 5 times during significant load Block finalization time on archive node is 5x slower than on core nodes during significant load Jan 5, 2024
@PolinaKiporenko PolinaKiporenko moved this from To Do to Ready For Pickup in SKALE Engineering 🚀 Jan 25, 2024
@olehnikolaiev
Copy link
Contributor

probably related to the high amount of time consumed by skaled to commit transaction into the historic state db and to the #1870

@PolinaKiporenko PolinaKiporenko moved this from Ready For Pickup to In Progress in SKALE Engineering 🚀 Jul 26, 2024
@PolinaKiporenko PolinaKiporenko modified the milestones: SKALE 3.1, SKALE 3.1.1 Oct 2, 2024
@olehnikolaiev olehnikolaiev moved this from In Progress to Code Review in SKALE Engineering 🚀 Jan 6, 2025
@PolinaKiporenko PolinaKiporenko removed the bug Something isn't working label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Code Review
Development

No branches or pull requests

4 participants