https://github.com/freethinkingit/raid-fs
Raid Implementation in Typescript
https://github.com/freethinkingit/raid-fs
Last synced: 16 days ago
JSON representation
Raid Implementation in Typescript
- Host: GitHub
- URL: https://github.com/freethinkingit/raid-fs
- Owner: freethinkingit
- License: mit
- Created: 2020-04-11T06:34:16.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-26T12:09:50.000Z (almost 4 years ago)
- Last Synced: 2025-01-18T14:30:05.344Z (12 months ago)
- Language: TypeScript
- Size: 156 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RAID FS
A basic RAID 0 implementation that takes data written to one directory and writes it to multiple directories while sharding the writes.
The goal would be to use a performant disk for the main writes, while backing up the additional writes to less performant NFS disks.
## Usage
`npm start` by default will watch for changes in `input_dir` and write them to three `output_dir_x`s.
- writes update the data in the output directory
- deletes remove the data in the output directory
- moving a file constitutes a delete plus an update and is handled appropriately.
`npm start --restore` will load data from the output directories and assemble it into the input directory.
## Configuration
`npm start -f path/to/config.json` will allow you to change the parameters of which file constitutes input, output, and whether or not to erase the `inputDir` on start.