Giter Site home page Giter Site logo

Comments (3)

gustavocoding avatar gustavocoding commented on June 27, 2024

I have tested in another faster server, and this periodic stats gathering is running for hours with no way to know when it will finish (it's still in the first table), and it will run again tomorrow since the period is roughly 24h.

My understanding is this is used only to provide info about the db columns for the internal api (*:9030)? If so, this is extremely wasteful and the user couldn't care less, so please, could you stop doing it? 😃

I'd suggest an extra startup param db_stats which is false by default and can be activated if someone needs it.

from blockbook.

martinboehm avatar martinboehm commented on June 27, 2024

Sure, it makes sense to add the parameter that controls the stats collection. However, the parameter will specify the period of stats collection in hours with default of 24. If you set it to 0, the stats will not be collected.

Also, it is surprising to me that the stats collection is killing your server as it is done only in a single thread. We run multiple instances of Blockbook on our servers and do not notice it at all.

from blockbook.

gustavocoding avatar gustavocoding commented on June 27, 2024

Thanks for the quick fix!
I run bitcoin core and lnd in a dual core, spinning disk $100 NUC, and they run really well, until I installed blockbook, and during the stats collection period, everything would be brought to its knees, but run fine otherwise (when not collecting stats)

from blockbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.