TExcelTAD
Home › AWS Cloud › Snow Family and Storage Gateway

Snow Family and Storage Gateway

Some data is too big, or too far from a good network, to simply upload. AWS offers two families of tools for these cases: physical devices that carry data (the Snow family) and hybrid gateways that connect on-premises systems to cloud storage (Storage Gateway). This lesson is a short overview; certification exams like to ask when to use which.

The Snow family

AWS ships you a rugged device, you copy data onto it locally, ship it back, and AWS imports the data into S3. Data on the device is encrypted with keys from KMS, and the device itself is tamper-resistant.

Device Capacity (approx.) Notes
AWS Snowball Edge Storage Optimized tens of TB usable Data migration, local storage, some compute
AWS Snowball Edge Compute Optimized smaller storage, more vCPUs/GPU option Edge computing in remote places (ships, mines, field sites)
AWS Snowmobile (retired) up to 100 PB, a shipping container on a truck Exabyte-scale migrations; AWS has retired it

AWS has been changing the Snow line-up (some older models are no longer offered to new customers), so check the current options. Online alternatives include AWS DataSync (fast online transfer agent), S3 Transfer Acceleration and AWS Direct Connect.

Model: network or truck?

The famous rule of thumb: never underestimate the bandwidth of a truck full of disks. This model compares uploading over a network with shipping devices (assuming a week for the whole Snowball round trip and 80% usable link efficiency, both example figures):

python · try it yourself
def network_days(tb, mbps, efficiency=0.8):
    bits = tb * 1e12 * 8
    seconds = bits / (mbps * 1e6 * efficiency)
    return seconds / 86400

SNOWBALL_TB = 80          # usable capacity per device (example)
SHIPPING_DAYS = 7         # order, ship, copy, ship back, import (example)

for tb in (2, 50, 500):
    devices = -(-tb // SNOWBALL_TB)
    row = [f"{tb:>4} TB:"]
    for mbps in (100, 1000):
        row.append(f"{mbps:>5} Mbps -> {network_days(tb, mbps):6.1f} days")
    row.append(f"Snowball x{devices} -> ~{SHIPPING_DAYS} days")
    print("  ".join(row))
   2 TB:    100 Mbps ->    2.3 days   1000 Mbps ->    0.2 days  Snowball x1 -> ~7 days
  50 TB:    100 Mbps ->   57.9 days   1000 Mbps ->    5.8 days  Snowball x1 -> ~7 days
 500 TB:    100 Mbps ->  578.7 days   1000 Mbps ->   57.9 days  Snowball x7 -> ~7 days

A few terabytes upload in hours on a good link. Hundreds of terabytes would take more than a month even at 1 Gbps, so shipping devices (in parallel) wins. AWS's own guidance points to Snow devices when an online transfer would take more than about a week.

Storage Gateway

AWS Storage Gateway is a virtual machine (or hardware appliance) that you run on-premises. It speaks traditional storage protocols to your servers and stores the data in AWS, with a local cache for fast access to recent data.

Gateway type On-premises sees Stored in AWS as
S3 File Gateway NFS/SMB file shares Objects in S3 (one file = one object)
FSx File Gateway SMB shares with a local cache Amazon FSx for Windows File Server
Volume Gateway iSCSI block volumes (cached or stored mode) EBS snapshots in S3
Tape Gateway A virtual tape library for backup software Virtual tapes in S3 / Glacier

Model: a gateway's local cache

The gateway keeps the most recently used data locally (an LRU cache). Reads of hot files are fast; cold files come from AWS:

python · try it yourself
from collections import OrderedDict

class GatewayCache:
    def __init__(self, capacity):
        self.capacity, self.items = capacity, OrderedDict()
        self.hits = self.misses = 0

    def read(self, name):
        if name in self.items:
            self.items.move_to_end(name)
            self.hits += 1
            return "local cache"
        self.misses += 1
        self.items[name] = True
        if len(self.items) > self.capacity:
            evicted, _ = self.items.popitem(last=False)
            return f"from S3 (evicted {evicted})"
        return "from S3"

cache = GatewayCache(capacity=3)
for f in ["plan.docx", "budget.xlsx", "plan.docx", "photo1.jpg", "logo.svg", "budget.xlsx", "plan.docx"]:
    print(f"{f:<12} {cache.read(f)}")
print(f"hit rate: {cache.hits}/{cache.hits + cache.misses}")
plan.docx    from S3
budget.xlsx  from S3
plan.docx    local cache
photo1.jpg   from S3
logo.svg     from S3 (evicted budget.xlsx)
budget.xlsx  from S3 (evicted plan.docx)
plan.docx    from S3 (evicted photo1.jpg)
hit rate: 1/7

With only three cache slots and four files in rotation, the cache thrashes: each read evicts the file that is needed next, and almost every read goes to S3. Size the gateway's cache disk for your working set (the data read regularly), not for the whole data set.

Choosing a tool

Situation Tool
Move 300 TB from a data centre with a slow link Snowball Edge devices
Keep migrating changed files online every night AWS DataSync
Office servers need a file share whose data ends up in S3 S3 File Gateway
Replace a physical tape library Tape Gateway
Process sensor data on a ship without connectivity Snowball Edge Compute Optimized

Test yourself

A company must move 400 TB to AWS over a 100 Mbps link. What is the most practical approach?

  1. Upload over the internet
  2. Use AWS Snowball Edge devices
  3. Use Amazon CloudFront
  4. Use an EBS snapshot

Which Storage Gateway type lets backup software write to virtual tapes stored in AWS?

  1. S3 File Gateway
  2. Volume Gateway
  3. Tape Gateway
  4. FSx File Gateway

What does S3 File Gateway present to on-premises servers?

  1. iSCSI disks
  2. NFS/SMB file shares backed by S3
  3. A tape library
  4. A database