Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hotkit/rask
Low latency multi-way peer-to-peer file replication
https://github.com/hotkit/rask
Last synced: about 5 hours ago
JSON representation
Low latency multi-way peer-to-peer file replication
- Host: GitHub
- URL: https://github.com/hotkit/rask
- Owner: hotkit
- License: bsl-1.0
- Created: 2015-05-07T08:21:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-14T10:57:50.000Z (almost 8 years ago)
- Last Synced: 2024-05-01T21:17:00.726Z (7 months ago)
- Size: 85.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_1_0.txt
Awesome Lists containing this project
README
# Rask #
Rask is (going to be) a multi-way peer-to-peer low-latency file replication system. Rask is the Norwegian word for "fast".
## Motivating use case ##
We have a number of web application servers serving a web site that includes a file upload feature. When a file has been updated to one server the next request issued by the browser may hit another application server, and this server should be able to serve the just uploaded file.
### Problems with existing solutions ###
* Use a networked file system
We could try to solve this using something like NFS, but there is no good way to make NFS redundant. When the server goes down then we lose the share and all application servers are affected.
* Use rsync in a CRON jobThis would be both secure and fast to do the actual file transfers, but the latency would be too high to allow another application server to serve a newly uploaded file.
## Minimal Viable Product ##We're aiming for a very limited set of features for the first version so we have just enough to match our motivating use case.
* Sweep feature to do an initial sync of the folders which will result in a super-set of the files across all nodes. Deletes will only propogate when the Rask monitors a file delete event on a node.
* Binary protocol to allow prioritised sends of data and instructions to another rask node.
* Library form of the core functionality so other applications can be built on top of rask.
* Use the kernel [inotify](http://man7.org/linux/man-pages/man7/inotify.7.html) stream on the watched. directories in order to get the latency down as much as possible.
* Keep a database of meta-data to speed up resynchronisation after a network break between nodes.
* Be able to scale up to ten thousand directories, one million files per directory and up to ten million files overall.
* We will aim for network latency & bandwidth and disk speeds to be the dominant factors in the speed of file replication. Rask itself should have very low CPU load when not doing anything.
* Embedded web server to allow monitoring of Rask synchronisation together with JSON APIs to enable external monitoring.The MVP will not:
* Allow changes of configuration after loading. The server will need to be restarted for changes to take effect.
* Attempt to synchronise file attributes.
* It will not try to efficiently send changes to a file.
* We will not try to optimise memory usage or disk usage for rask.
* We will not secure the connections between nodes -- they will be neither authenticated or encrypted. If a deployment requires nodes to communicate over a non-trusted and insecure network (e.g. the Internet) the a VPN should be used so the nodes can assume safe transit.All of these can be features once the MVP has been released.