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

nodeos should check disk space immediately on startup instead of first loading all the blockchain data #58

Closed
matthewdarwin opened this issue Aug 26, 2022 · 2 comments
Labels
more-info waiting for submitter to reply with more information

Comments

@matthewdarwin
Copy link

Nodeos stops with following error:

 nodeos    file_space_handler.hpp:112    add_file_system      ] /var/lib/nodeos/blocks's file system monitored. shutdown_available: 5259198460, capacity: 52591984640, threshold: 90
resmon    file_space_handler.hpp:62     is_threshold_exceede ] Space usage warning: /var/lib/nodeos/blocks's file system exceeded threshold 90%, available: 5215444992, Capacity: 52591984640, shutdown_available: 5259198460
[etc...]
info  2022-08-26T17:02:35.539 nodeos    main.cpp:181                  main                 ] nodeos successfully exiting

Then if you start nodeos again, it goes all through the process of loading all the blockchain state (which takes a while with database-map-mode = heap). Once that it is done, then it again exits.

When you have nodeos running under some sort of thing that just restarts it when it exits (eg systemd), then this just burns CPU and Disk I/O.

Two improvements if not sufficient disk space:

  • hard fail (exit code non-zero)
    • possibly exit 0 on initial shutdown, and then exit non-zero if starting with not sufficient disk space
  • exit as quickly as possible on startup (without loading all the blockchain data)
@stephenpdeos
Copy link
Member

To be re-evaluated after #97

@bhazzard
Copy link

Closing this request. I've turned it into a product initiative and will create new issues when and if we prioritize specific tasks.

eosnetworkfoundation/product#154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more-info waiting for submitter to reply with more information
Projects
Archived in project
Development

No branches or pull requests

3 participants