Coder Social home page Coder Social logo

Badger instead of RocksDB about blast HOT 8 CLOSED

mosuka avatar mosuka commented on August 25, 2024 1
Badger instead of RocksDB

from blast.

Comments (8)

 avatar commented on August 25, 2024 2

BLast uses bleve to do its magic.

I agree that removing cgo is nice and badgers perf and scaling is much easier to get working with raft IMHO.

here is the issue relating to using badger.
blevesearch/bleve#591

It looks possible now. It was not possible before.

from blast.

 avatar commented on August 25, 2024 2

Hay all, there is a new badger bleve repo here: https://github.com/alash3al/bbadger

Its called "bbadger" !!

It would be great if everyone interested in this can help with examples, PR's and general dog fooding.
Its also very easy to use.

@mosuka
This should address the need for badger that you mentioned.

@Scapal This removes the CGO aspects. I agree with you about the CGO as its a huge slowdown for golang to use CGO

from blast.

mosuka avatar mosuka commented on August 25, 2024

Hi @Scapal

I agree with you to keep minimize CGO dependencies.
Currently, Blast focuses on server implementation for using Bleve on distributed environment.
I will support Badger when Bleve merges Badger's code.

Thanks.

from blast.

 avatar commented on August 25, 2024

@mosuka The blocker for using Badger seems to have been lifted

see: blevesearch/bleve#591
at the bottom @manishrjain changed Badger to support transactions with multiples readers !

EDIT. It looks like Scorch is the only way forward to use bleve. KV ( BoltDB) is no longer supported.
I am not sue yet how you did your Raft implementation yet, but is it dependent on boltdb ?

from blast.

mosuka avatar mosuka commented on August 25, 2024

@gedw99 Blast has two storages. One is Bleve's index. The other one is KVS for storing raw data before indexing.
The latter currently uses BoltDB, but it is not affected by Bleve.
In the future I would like to migrate to Badger.

from blast.

mosuka avatar mosuka commented on August 25, 2024

Hi @Scapal @gedw99 ,

Fixed to support Bagder.

For example, build Badger to be available for index storage as follows:

$ make BUILD_TAGS=badger build

Then, you can start Blast as follows:

$ ./bin/blast-index start --node-id=index1 --data-dir=/tmp/blast/index1 --bind-addr=:6060 --grpc-addr=:5050 --http-addr=:8080 --index-storage-type=badger

Please clone the master branch.

from blast.

mosuka avatar mosuka commented on August 25, 2024

Sorry, it still have a bug.
Please wait.

from blast.

mosuka avatar mosuka commented on August 25, 2024

Fixed some Bader plugin bugs. But this feature is considered experimental.

from blast.

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.