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

How to integrate rocksplicator with exisiting application running on rocksdb. #154

Open
anip30 opened this issue Oct 4, 2017 · 3 comments

Comments

@anip30
Copy link

anip30 commented Oct 4, 2017

I have a standalone application running on rocksdb. I want to make it distributed for hackathon. I don't want to replace rocksdb with any distributed DB so we decided to use rocksplicator.

Do we need to change our application to use rocksdplicator or it is separate process. We just need to point it to the DBs.

@newpoo
Copy link
Contributor

newpoo commented Oct 5, 2017

It's a library, so you need to compile the library into your application process.

You need to open rocksdb instances in your application code, and add opened rocksdb instance to rocksplicator library at both Master and Slave sides. The library will do the data replication for you.

@anip30
Copy link
Author

anip30 commented Oct 5, 2017

you mean only rocksdb_replicator library not rocksdb_admin.

You mean opening the DB and all stay as it is but we need to add extra code to add that DB handle for replication.

@newpoo
Copy link
Contributor

newpoo commented Oct 5, 2017

Yes, opening db is still done by your application, but you need to add code to add db handlers to rocksplicator library. Also, you will need to write/read to/from db through the handlers returned from rocksplicator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants