Coder Social home page Coder Social logo

Comments (3)

muneeb-ali avatar muneeb-ali commented on July 27, 2024

There are actually multiple things going on here, each one of them can/should be separated into a Github issue:

  1. The Onename bitcoind server is running behind a load-balancer which makes it more reliable but also slower than if we expose the bitcoind without the load-balancer. Amazon's load-balancer needs to be "warmed up" by hitting it with traffic before it really starts to give better performance. There must be a workaround to this (can always have a custom load-balancer that will not have this issue) and need to figure out a solution to this initial slow-start time.

  2. We're fetching blocks from the load-balancer sequentially right now. It's a no-brainer to either make this async or use threads. @jcnelson had some good ideas about this.

  3. We're making calls to bitcoind for fetching each transactions meaning you first get the block (1 rpc call), and then if there are n transactions in the block, you make another n calls. There has to be a better way for doing this. @bmuller had some good ideas about this.

  4. Even with all the above things are fixed, the reality is still that you need to get the blocks and then process them for name operations. At this stage, a lot of people just want to quickly start playing around with blockstore and see how it works. A docker that has pre-processed the blockchain upto a recent-enough block can be interesting. You'll have to trust the docker image and the maintainer, but that's fine if you treat it as just a way to quickly get up and running (you can also force the docker to re-analyze the blockchain and construct the namespace again before pushing it to production).

from stacks-blockchain.

jcnelson avatar jcnelson commented on July 27, 2024

Hi @satorsq,

I just pushed branch 'parallel-startup' that should make the initial indexing considerably faster.

If you're not running bitcoind locally, feel free to point blockstored to our new load-balanced bitcoind fleet at 54.237.72.244 (which should be somewhat less variadic than btcd.onename.com). I regularly see one block per 1.5 seconds (on average) with this branch, as well as between 10Mbps to 20Mbps downstream RPC bandwidth.

-Jude

from stacks-blockchain.

jcnelson avatar jcnelson commented on July 27, 2024

Since there has been no activity on this for some time, and since this has been long since fixed by having multiple processes index the blockchain in parallel and by installing a much more performant load-balancer, I'm going to close this issue. Please re-open if there are any further questions.

from stacks-blockchain.

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.