github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/docs/index.md (about) 1 --- 2 layout: post 3 title: AIStore - scalable storage for AI applications 4 permalink: / 5 redirect_from: 6 - /index.md/ 7 - /README.md/ 8 --- 9 10 **AIStore is a lightweight object storage system with the capability to linearly scale out with each added storage node and a special focus on petascale deep learning.** 11 12 ![License](https://img.shields.io/badge/license-MIT-blue.svg) 13 ![Go Report Card](https://goreportcard.com/badge/github.com/NVIDIA/aistore) 14 15 AIStore (AIS for short) is a built from scratch, lightweight storage stack tailored for AI apps. It's an elastic cluster that can grow and shrink at runtime and can be ad-hoc deployed, with or without Kubernetes, anywhere from a single Linux machine to a bare-metal cluster of any size. 16 17 AIS [consistently shows balanced I/O distribution and linear scalability](https://aiatscale.org/blog/2024/02/16/multihome-bench) across arbitrary numbers of clustered nodes. The ability to scale linearly with each added disk was, and remains, one of the main incentives. Much of the initial design was also driven by the ideas to [offload](https://aiatscale.org/blog/2023/06/09/aisio-transforms-with-webdataset-pt-3) custom dataset transformations (often referred to as [ETL](https://aiatscale.org/blog/2021/10/21/ais-etl-1)). And finally, since AIS is a software system that aggregates Linux machines to provide storage for user data, there's the requirement number one: reliability and data protection. 18 19 ## Features 20 21 * **Deploys anywhere**. AIS clusters are immediately deployable on any commodity hardware, on any Linux machine(s). 22 * **Highly available** control and data planes, end-to-end data protection, self-healing, n-way mirroring, erasure coding, and arbitrary number of extremely lightweight access points. 23 * **REST API**. Comprehensive native HTTP-based API, as well as compliant [Amazon S3 API](/docs/s3compat.md) to run unmodified S3 clients and apps. 24 * **Unified namespace** across multiple [remote backends](/docs/providers.md) including Amazon S3, Google Cloud, and Microsoft Azure. 25 * **Network of clusters**. Any AIS cluster can attach any other AIS cluster, thus gaining immediate visibility and fast access to the respective hosted datasets. 26 * **Turn-key cache**. Can be used as a standalone highly-available protected storage and/or LRU-based fast cache. Eviction watermarks, as well as numerous other management policies, are per-bucket configurable. 27 * **ETL offload**. The capability to run I/O intensive custom data transformations *close to data* - offline (dataset to dataset) and inline (on-the-fly). 28 * **File datasets**. AIS can be immediately populated from any file-based data source (local or remote, ad-hoc/on-demand or via asynchronus batch). 29 * **Read-after-write consistency**. Reading and writing (as well as all other control and data plane operations) can be performed via any (random, selected, or load-balanced) AIS gateway (a.k.a. "proxy"). Once the first replica of an object is written and _finalized_ subsequent reads are guaranteed to view the same content. Additional copies and/or EC slices, if configured, are added asynchronously via `put-copies` and `ec-put` jobs, respectively. 30 * **Write-through**. In presence of any [remote backend](/docs/providers.md), AIS executes remote write (e.g., using vendor's SDK) as part of the [transaction](https://github.com/NVIDIA/aistore/blob/main/docs/overview.md#read-after-write-consistency) that places and _finalizes_ the first replica. 31 * **Small file datasets.** To serialize small files and facilitate batch processing, AIS supports TAR, TAR.GZ (or TGZ), ZIP, and TAR.LZ4 formatted objects (often called _shards_). Resharding (for optimal sorting and sizing), listing contained files (samples), appending to existing shards, and generating new ones from existing objects and/or client-side files - is also fully supported. 32 * **Kubernetes**. Provides for easy Kubernetes deployment via a separate GitHub [repo](https://github.com/NVIDIA/ais-k8s) and [AIS/K8s Operator](https://github.com/NVIDIA/ais-k8s/tree/master/operator). 33 * **Command line management**. Integrated powerful [CLI](/docs/cli.md) for easy management and monitoring. 34 * **Access control**. For security and fine-grained access control, AIS includes OAuth 2.0 compliant [Authentication Server (AuthN)](/docs/authn.md). A single AuthN instance executes CLI requests over HTTPS and can serve multiple clusters. 35 * **Distributed shuffle** extension for massively parallel resharding of very large datasets. 36 * **Batch jobs**. APIs and CLI to start, stop, and monitor documented [batch operations](/docs/batch.md), such as `prefetch`, `download`, copy or transform datasets, and many more. 37 38 AIS runs natively on Kubernetes and features open format - thus, the freedom to copy or move your data from AIS at any time using the familiar Linux `tar(1)`, `scp(1)`, `rsync(1)` and similar. 39 40 For developers and data scientists, there's also: 41 * native [Go (language) API](https://github.com/NVIDIA/aistore/tree/main/api) that we utilize in a variety of tools including [CLI](/docs/cli.md) and [Load Generator](/docs/aisloader.md); 42 * native [Python SDK](https://github.com/NVIDIA/aistore/tree/main/python/aistore/sdk) 43 - [Python SDK reference guide](/docs/python_sdk.md) 44 * [PyTorch integration](https://github.com/NVIDIA/aistore/tree/main/python/aistore/pytorch) and usage examples 45 * [Boto3 support](https://github.com/NVIDIA/aistore/tree/main/python/aistore/botocore_patch) for interoperability with AWS SDK for Python (aka [Boto3](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html)) client 46 - and other [Botocore](https://github.com/boto/botocorehttps://github.com/boto/botocore) derivatives. 47 48 For the original AIStore **white paper** and design philosophy, for introduction to large-scale deep learning and the most recently added features, please see [AIStore Overview](/docs/overview.md) (where you can also find six alternative ways to work with existing datasets). Videos and **animated presentations** can be found at [videos](/docs/videos.md). 49 50 Finally, [getting started](/docs/getting_started.md) with AIS takes only a few minutes. 51 52 --------------------- 53 54 ## Deployment options 55 56 AIS deployment options, as well as intended (development vs. production vs. first-time) usages, are all [summarized here](deploy/README.md). 57 58 Since prerequisites boil down to, essentially, having Linux with a disk the deployment options range from [all-in-one container](/docs/videos.md#minimal-all-in-one-standalone-docker) to a petascale bare-metal cluster of any size, and from a single VM to multiple racks of high-end servers. But practical use cases require, of course, further consideration and may include: 59 60 | Option | Objective | 61 | --- | ---| 62 | [Local playground](https://github.com/NVIDIA/aistore/blob/main/docs/getting_started.md#local-playground) | AIS developers and development, Linux or Mac OS | 63 | Minimal production-ready deployment | This option utilizes preinstalled docker image and is targeting first-time users or researchers (who could immediately start training their models on smaller datasets) | 64 | [Easy automated GCP/GKE deployment](https://github.com/NVIDIA/aistore/blob/main/docs/getting_started.md#kubernetes-deployments) | Developers, first-time users, AI researchers | 65 | [Large-scale production deployment](https://github.com/NVIDIA/ais-k8s) | Requires Kubernetes and is provided via a separate repository: [ais-k8s](https://github.com/NVIDIA/ais-k8s) | 66 67 Further, there's the capability referred to as [global namespace](https://github.com/NVIDIA/aistore/blob/main/docs/providers.md#remote-ais-cluster): given HTTP(S) connectivity, AIS clusters can be easily interconnected to "see" each other's datasets. Hence, the idea to start "small" to gradually and incrementally build high-performance shared capacity. 68 69 > For detailed discussion on supported deployments, please refer to [Getting Started](/docs/getting_started.md). 70 71 > For performance tuning and preparing AIS nodes for bare-metal deployment, see [performance](/docs/performance.md). 72 73 ## Existing datasets 74 75 AIStore supports multiple ways to populate itself with existing datasets, including (but not limited to): 76 77 * **on demand**, often during the first epoch; 78 * **copy** entire bucket or its selected virtual subdirectories; 79 * **copy** multiple matching objects; 80 * **archive** multiple objects 81 * **prefetch** remote bucket or parts of thereof; 82 * **download** raw http(s) addressible directories, including (but not limited to) Cloud storages; 83 * **promote** NFS or SMB shares accessible by one or multiple (or all) AIS target nodes; 84 85 > The on-demand "way" is maybe the most popular, whereby users just start running their workloads against a [remote bucket](docs/providers.md) with AIS cluster positioned as an intermediate fast tier. 86 87 But there's more. In v3.22, we introduce [blob downloader](docs/blob_downloader.md), a special facility to download very large remote objects (BLOBs). 88 89 ## Installing from release binaries 90 91 Generally, AIStore (cluster) requires at least some sort of [deployment](/deploy#contents) procedure. There are standalone binaries, though, that can be [built](Makefile) from source or, alternatively, installed directly from GitHub: 92 93 ```console 94 $ ./scripts/install_from_binaries.sh --help 95 ``` 96 97 The script installs [aisloader](/docs/aisloader.md) and [CLI](/docs/cli.md) from the most recent, or the previous, GitHub [release](https://github.com/NVIDIA/aistore/releases). For CLI, it'll also enable auto-completions (which is strongly recommended). 98 99 ## PyTorch integration 100 101 AIS is one of the PyTorch [Iterable Datapipes](https://github.com/pytorch/data/tree/main/torchdata/datapipes/iter/load#iterable-datapipes). 102 103 Specifically, [TorchData](https://github.com/pytorch/data) library provides: 104 * [AISFileLister](https://pytorch.org/data/main/generated/torchdata.datapipes.iter.AISFileLister.html#aisfilelister) 105 * [AISFileLoader](https://pytorch.org/data/main/generated/torchdata.datapipes.iter.AISFileLoader.html#aisfileloader) 106 107 to list and, respectively, load data from AIStore. 108 109 Further references and usage examples - in our technical blog at https://aiatscale.org/blog: 110 * [PyTorch: Loading Data from AIStore](https://aiatscale.org/blog/2022/07/12/aisio-pytorch) 111 * [Python SDK: Getting Started](https://aiatscale.org/blog/2022/07/20/python-sdk) 112 113 Since AIS natively supports a number of [remote backends](/docs/providers.md), you can also use (PyTorch + AIS) to iterate over Amazon S3 and Google Cloud buckets, and more. 114 115 ## Reuse 116 117 This repo includes [SGL and Slab allocator](/memsys) intended to optimize memory usage, [Streams and Stream Bundles](/transport) to multiplex messages over long-lived HTTP connections, and a few other sub-packages providing rather generic functionality. 118 119 With a little effort, they all could be extracted and used outside. 120 121 ## Guides and References 122 123 - [Getting Started](/docs/getting_started.md) 124 - [Technical Blog](https://aiatscale.org/blog) 125 - API and SDK 126 - [Go (language) API](https://github.com/NVIDIA/aistore/tree/main/api) 127 - [Python SDK](https://github.com/NVIDIA/aistore/tree/main/python/aistore), and also: 128 - [pip package](https://pypi.org/project/aistore/) 129 - [reference guide](/docs/python_sdk.md) 130 - [REST API](/docs/http_api.md) 131 - [Easy URL](/docs/easy_url.md) 132 - Amazon S3 133 - [`s3cmd` client](/docs/s3cmd.md) 134 - [S3 compatibility](/docs/s3compat.md) 135 - [Presigned S3 requests](/docs/s3compat.md#presigned-s3-requests) 136 - [Boto3 support](https://github.com/NVIDIA/aistore/tree/main/python/aistore/botocore_patch) 137 - [CLI](/docs/cli.md) 138 - [`ais help`](/docs/cli/help.md) 139 - [Reference guide](https://github.com/NVIDIA/aistore/blob/main/docs/cli.md#cli-reference) 140 - [Monitoring](/docs/cli/show.md) 141 - [`ais show cluster`](/docs/cli/show.md) 142 - [`ais show performance`](/docs/cli/show.md) 143 - [`ais show job`](/docs/cli/show.md) 144 - [Cluster and node management](/docs/cli/cluster.md) 145 - [Mountpath (disk) management](/docs/cli/storage.md) 146 - [Attach, detach, and monitor remote clusters](/docs/cli/cluster.md) 147 - [Start, stop, and monitor downloads](/docs/cli/download.md) 148 - [Distributed shuffle](/docs/cli/dsort.md) 149 - [User account and access management](/docs/cli/auth.md) 150 - [Jobs](/docs/cli/job.md) 151 - Security and Access Control 152 - [Authentication Server (AuthN)](/docs/authn.md) 153 - Tutorials 154 - [Tutorials](/docs/tutorials/README.md) 155 - [Videos](/docs/videos.md) 156 - Power tools and extensions 157 - [Reading, writing, and listing *archives*](/docs/archive.md) 158 - [Distributed Shuffle](/docs/dsort.md) 159 - [Downloader](/docs/downloader.md) 160 - [Extract, Transform, Load](/docs/etl.md) 161 - [Tools and utilities](/docs/tools.md) 162 - Benchmarking and tuning Performance 163 - [AIS Load Generator: integrated benchmark tool](/docs/aisloader.md) 164 - [How to benchmark](/docs/howto_benchmark.md) 165 - [Performance tuning and testing](/docs/performance.md) 166 - [Performance monitoring](/docs/cli/performance.md) 167 - Buckets and Backend Providers 168 - [Backend providers](/docs/providers.md) 169 - [Buckets](/docs/bucket.md) 170 - Storage Services 171 - [CLI: `ais show storage` and subcommands](/docs/cli/show.md) 172 - [CLI: `ais storage` and subcommands](/docs/cli/storage.md) 173 - [Storage Services](/docs/storage_svcs.md) 174 - [Checksumming: brief theory of operations](/docs/checksum.md) 175 - [S3 compatibility](/docs/s3compat.md) 176 - Cluster Management 177 - [Node lifecycle: maintenance mode, rebalance/rebuild, shutdown, decommission](/docs/lifecycle_node.md) 178 - [Monitoring: `ais show` and subcommands](/docs/cli/show.md) 179 - [Joining AIS cluster](/docs/join_cluster.md) 180 - [Leaving AIS cluster](/docs/leave_cluster.md) 181 - [Global Rebalance](/docs/rebalance.md) 182 - [Troubleshooting](/docs/troubleshooting.md) 183 - Configuration 184 - [Configuration](/docs/configuration.md) 185 - [Environment variables](/docs/environment-vars.md) 186 - [CLI: `ais config`](/docs/cli/config.md) 187 - [Feature flags](/docs/feature_flags.md) 188 - Observability 189 - [Observability](/docs/metrics.md) 190 - [Prometheus](/docs/prometheus.md) 191 - [CLI: `ais show performance`](/docs/cli/show.md) 192 - For users and developers 193 - [Getting started](/docs/getting_started.md) 194 - [Docker](/docs/docker_main.md) 195 - [Useful scripts](/docs/development.md) 196 - Profiling, race-detecting, and more 197 - Batch jobs 198 - [Batch operations](/docs/batch.md) 199 - [eXtended Actions (xactions)](/xact/README.md) 200 - [CLI: `ais job`](/docs/cli/job.md) and [`ais show job`](/docs/cli/show.md), including: 201 - [prefetch remote dataset](/docs/cli/object.md#prefetch-objects) 202 - [copy bucket](/docs/cli/bucket.md#copy-bucket) 203 - [copy multiple objects](/docs/cli/bucket.md#copy-multiple-objects) 204 - [download remote BLOBs](/docs/cli/blob-downloader.md) 205 - [promote NFS or SMB share](https://aiatscale.org/blog/2022/03/17/promote), and more 206 - Assorted Topics 207 - [System files](/docs/sysfiles.md) 208 - [Switching cluster between HTTP and HTTPS](/docs/switch_https.md) 209 - [TLS: testing with self-signed certificates](/docs/getting_started.md#tls-testing-with-self-signed-certificates) 210 - [Feature flags](/docs/feature_flags.md) 211 - [`aisnode` command line](/docs/command_line.md) 212 - [Traffic patterns](/docs/traffic_patterns.md) 213 - [Highly available control plane](/docs/ha.md) 214 - [Start/stop maintenance mode, shutdown, decommission, and related operations](/docs/lifecycle_node.md) 215 - [Downloader](/docs/downloader.md) 216 - [On-disk layout](/docs/on_disk_layout.md) 217 - [Buckets: definition, operations, properties](https://github.com/NVIDIA/aistore/blob/main/docs/bucket.md#bucket) 218 - [Out-of-band updates](/docs/out_of_band.md) 219 220 ## License 221 222 MIT 223 224 ## Author 225 226 Alex Aizman (NVIDIA)