No description
2a1557845d
The problem is that inserting an sd blob with ~5k blobs takes longer than 30 seconds. So the client times out and retries the request. At that point, reflector is not done inserting so it replies with a smaller number of blobs than it should. The client uploads that many blobs and marks the stream as reflected. The remaining blobs never get uploaded. Doing the insert inside a transaction should be faster than doing 10k (2 per blob) inserts independently. |
||
---|---|---|
cluster | ||
cmd | ||
db | ||
internal/metrics | ||
meta | ||
peer | ||
prism | ||
publish | ||
reflector | ||
server/http | ||
shared | ||
store | ||
updater | ||
wallet | ||
.gitignore | ||
.gometalinter.json | ||
.travis.yml | ||
config.tmpl | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
Makefile | ||
readme.md |
Reflector
A reflector cluster to accept LBRY content for hosting en masse, rehost the content, and make money on data fees (TODO). This code includes Go implementations of the LBRY peer protocol, reflector protocol, and DHT.
Installation
coming soon
Usage
coming soon
Running from Source
This project requires Go v1.11 or higher because it uses Go modules.
git clone git@github.com:lbryio/reflector.go.git
cd reflector.go
make
./bin/prism-bin
Contributing
coming soon
License
This project is MIT licensed.
Security
We take security seriously. Please contact security@lbry.com regarding any security issues. Our PGP key is here if you need it.
Contact
The primary contact for this project is @lyoshenka (grin@lbry.com)