s3d-rs / s3d

s3d is an S3 daemon for the Edge written in Rust

Home Page:https://s3d.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


The S3 Daemon

s3d is a daemon for data access using S3 API. A modern cousin of nfsd, ftpd, httpd, etc. It is designed to be simple, tiny, blazing fast, and portable in order to fit in a variety of environments from developer machines, containers, kubernetes, edge devices, etc.

By default, s3d serves the S3 API as a gateway to a main remote S3 storage (AWS/compatible), with ultimate protocol compatiblity (based on the AWS SDK and Smithy API), it adds critical features needed by remote clients such as queueing, caching, and synching, in order to optimize performance, increase data availability, and service continuity for its clients.

The need for a daemon running alongside applications emerges in Edge computing use cases, where data is stored and processed locally at the edge as it gets collected, while some of the data gets synced to and from a main data storage. Refer to Wikipedia - Edge computing: "Edge computing is a distributed computing paradigm that brings computation and data storage closer to the sources of data. This is expected to improve response times and save bandwidth. ...".

Features

Maturity legend: πŸ₯‰ - design phase, πŸ₯ˆ - development phase, πŸ₯‡ - released.

  • πŸ₯ˆ   S3 API
    • Generated S3 protocol code with awslabs/smithy-rs which builds the AWS SDK for Rust.
    • Provides compatible parsing of API operations, inputs, outputs, errors, and the server skeleton.
  • πŸ₯ˆ   Write Queue
    • Writing new objects to local filesystem first to tolerate connection issues.
    • Pushing in the background to remote storage.
  • πŸ₯‰   Read Cache
    • Store cached and prefetched objects in local filesystem.
    • Reduce egress costs and latency of reads from remote storage.
  • πŸ₯‰   Filters
    • Fine control over which objects to include/exclude for upload/cache/sync.
    • Filter by bucket name, bucket tags, object keys (or prefixes), object tags, and object meta-data.
    • Optional integration with OpenPolicyAgent (OPA) for advanced filtering.
  • πŸ₯‰   Sync Folder
    • Continuous, bidirectional and background sync of local dirs to remote buckets.
    • This is a simple way to get data that begins as local files to the remote S3 storage.
  • πŸ₯‰   Fuse Mount
    • Virtual filesystem mountpoint provided by the daemon (see kernel fuse docs).
    • The filesystem can be accessed normally for applications that do not use the S3 API.
  • πŸ₯‰   Metrics
    • Optional integration with OpenTelemetry.
    • Expose logging, metrics, and tracing of S3 operations and s3d features.

Docs

  • πŸ§‘β€πŸš€   User guide - how to use features and configurations.
  • πŸ₯·   Developer guide - how to build and test.
  • 🧝   Architecture page - designs of components, software and roadmap ideas.

Status

πŸ§ͺπŸ§ͺ❕   Experimental
πŸ§ͺπŸ§ͺ❕  
πŸ§ͺπŸ§ͺ❕   This project is still in it's early days, which means it's a great time
πŸ§ͺπŸ§ͺ❕   to affect its direction, and it welcomes contributions and open discussions.
πŸ§ͺπŸ§ͺ❕  
πŸ§ͺπŸ§ͺ❕   Keep in mind that all internal and external interfaces are considered unstable
πŸ§ͺπŸ§ͺ❕   and might change without notice.

Getting Started

Until the first releases are available, please refer to the Developer guide for building s3d from source.

Here are some commands to explore:

make                        # build from source (see dev guide for prerequisites)
eval $(make env)            # defines aliases such as s3d -> build output binary
aws configure list          # make sure remote S3 credentials are configured
s3d run                     # runs daemon (foreground)
s3d status                  # check daemon status
s3d status bucket/key       # check bucket or object status
s3d ls bucket/prefix        # list buckets or objects
s3d get bucket/key > file   # get object data to stdout (meta-data to stderr)
s3d put bucket/key < file   # put object data from stdin
s3d set bucket/key          \
  --tag s3d.upload=true     \
  --tag s3d.cache=pin       # set tags for bucket or object to be used in filters
s3d <command> --help        # show usage for command

Project

  • Github repo - The project lives here, set your πŸ‘οΈ Watch options to get notified on releases, issues, etc.
  • Discord chat - use this invite link to join.
  • Redhat-et - this project was initiated at Red Hat Emerging Technologies.
  • License - Apache 2.0

About

s3d is an S3 daemon for the Edge written in Rust

https://s3d.rs

License:Apache License 2.0


Languages

Language:Rust 91.0%Language:Makefile 5.0%Language:Shell 2.6%Language:Dockerfile 1.4%