warm-fs

Crates.iowarm-fs
lib.rswarm-fs
version0.2.0
sourcesrc
created_at2022-02-02 07:54:46.752067
updated_at2022-02-04 18:17:26.632217
descriptionFile system warmer
homepage
repositoryhttps://github.com/imbolc/warm-fs
max_upload_size
id525592
size23,324
Imbolc (imbolc)

documentation

README

License Crates.io Docs.rs

warm-fs

A File system warmer

Cloud providers tent to restore volumes from snapshots in a cold state:

For volumes that were created from snapshots, the storage blocks must be pulled down from Amazon S3 and written to the volume before you can access them. This preliminary action takes time and can cause a significant increase in the latency of I/O operations the first time each block is accessed (source).

It has methods to estimates total size of particular folder and then recursively read files in a thread pool.

It implements Iterator giving an access to the warming process intermediate state. Refer to cli example for progress bar implementation.

Contributing

We appreciate all kinds of contributions, thank you!

Note on README

The README.md file isn't meant to be changed directly. It instead generated from the crate's docs by the cargo-readme command:

  • Install the command if you don't have it: cargo install cargo-readme
  • Change the crate-level docs in src/lib.rs, or wrapping text in README.tpl
  • Apply the changes: cargo readme > README.md

If you have rusty-hook installed the changes will apply automatically on commit.

License

This project is licensed under the MIT license.

Commit count: 2

cargo fmt