Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

How do you set up a cluster? #98

Open
jackie-scholl opened this issue Dec 14, 2016 · 6 comments
Open

How do you set up a cluster? #98

jackie-scholl opened this issue Dec 14, 2016 · 6 comments

Comments

@jackie-scholl
Copy link

It's clear from the readme how to set up a database that can be used locally, but I don't understand how to set up a cluster with high availability and durability? It's also not clear to me how database clients could connect to such a cluster without becoming a part of it.

@jbenet
Copy link

jbenet commented Dec 14, 2016

This is not yet figured out for orbit-db. orbit-db is a CRDT-modelled thing-- and it's in the leveldb or sqllite "db" category. (it may make sense to make clusters of it, but not yet there)

@jbenet
Copy link

jbenet commented Dec 14, 2016

Possible we may be able to use something like https://github.com/ipfs/ipfs-cluster -- (which maybe is just a libp2p-cluster) to do this

@jackie-scholl
Copy link
Author

jackie-scholl commented Dec 14, 2016

So is the idea that under the current system, every node stores a complete copy of the entire database, but it's still possible for two nodes to sync their copies?

Edit: Ah, and I think the part that I was missing was that two nodes that are both on the global IPFS network and have databases with identical names will automatically sync with each other, yes?

@haadcode
Copy link
Member

@raptortech-js that's the idea, yeah! Currently all databases are in the public network and open to anyone. Obviously this is not what we want and we're working on IPFS primitives that orbit-db can use to provide mechanisms and protocol-level guarantees for private/access controlled databases. Today, if you need such functionality, you have to do it on application level.

@sholtomaud
Copy link

How does orbit-db determine which db wins during the sync?

@aphelionz
Copy link
Collaborator

Moving to the Field Manual for deeper discussion

@aphelionz aphelionz transferred this issue from orbitdb/orbitdb Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants