-
Notifications
You must be signed in to change notification settings - Fork 96
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
Can't see shared data from hypercored #90
Comments
Hopefully I am understanding your question correctly! Using Dat and On your other questions:
You should use the same ID, the archiver key is a hypercore feed that can only be used by other
The ports shouldn't matter, Dat should be able to connect to the peers - they advertise whatever port they are available on.
Not necessarily. We have some tools to get around firewalls, using hole-punching. But Dat works best if at least one of the machines is public. Bi-directional hole punching is more hit or miss depending on the network. You can run |
That clarifies it, thank you for the detailed reply @joehand. I have a Dat share (not My full use case will look like this:
Many thanks for the reply. |
Can you connect to the public peer in the first part of the test (from desktop)? It should look like this:
If you are running inside Docker on your desktop, that is likely the issue. We haven't been able to figure out how to get around Docker's NAT without switching to host networking mode.
Yep, exactly.
There is no network prioritization yet. But it should download more data from whatever is the fastest peer, just by the nature of how the requests work. |
Thanks, @joehand. I've gone down the I've been running Docker with Also, because we have a requirement to serve files from the fastest peer, how is that set up? If there are multiple Thank you again! You've been extremely helpful. |
Not ideal, but glad you figured it out. Feel free to run p2p test, it may give us some more data on your network:
Not quite sure I understand this question pre-coffee, but I'll give it a shot. Dat networks are only created around a specific key. So peers never connect to other peers unless they are sharing/downloading the same dat. If dats share a path, then the downloads will be completely unaware of each other (it may cause some weird problems too but it should work eventually - we'll have something that locks a given path for writes while Dat is running eventually). They will write to the same metadata, in the Prioritizing the fastest peer for a single key is definitely a good feature, feel free to open an issue in datproject/dat. But prioritization across keys will need to be something more custom. |
About fastest peers, if you have two sources online, the downloader will connect to the two sources and begin downloading from them at the same time. Since each individual block downloaded is quite small, the downloader will see that the blocks have downloaded mostly from the faster source. |
Thanks @Karissa , that's exactly what my use case is. We will have a West Coast site and an East Coast site in Canada, with data replicated across them. If a user requests a file, how does Dat know to pull from those multiple sources? Thank you! |
Dat automatically connects to all the sources sharing a specific key (similar to bittorrent). So if both your west cost + east coast are sharing |
@joehand Excellent! Thank you both for helping. I thought one had to run multiple Closing this issue. |
I'm using
dat
13.9.0 withhypercored
on Debian 9.2 and OS X.If I run
dat create
in my/data
directory, followed bydat share
, I can see the data on my local network. However, if instead ofdat share
I runhypercored
, the samedat clone ...
command that works with thedat share
no longer works.I have questions about how it's supposed to work:
Archiver key
as printed out after startinghypercored
?dat
s to work, do we need bi-directional access? Meaning, in order to have a share on a public machine, I can only clone to another public machine?Thanks!
Dustin
The text was updated successfully, but these errors were encountered: