Cold Storage

Data grows in size and most data becomes cold (infrequently accessed). A Cold Storage Device (CSD) provides high storage density with low hardware and operating costs, but has lower performance (higher latency). Typical workload: Write Once – Read Occasionally (WORO).

1. Pelican

A Microsoft cold storage system consisting of a 52U rack with 1152 archival-class 3.5" SATA disks, providing approximately 5PB of storage. Only 8% of disks spin concurrently.

1.1 Resource Domains

A domain is provisioned to supply a particular resource to a subset of disks. Each disk uses resources from a set of domains.

Pelican has three resource domains: cooling, power and bandwidth. These physically distribute resources across disks to avoid contention.

1.2 Data Layout

Objective: Maximize the number of requests that can be serviced concurrently while respecting resource constraints.

Each blob is stored across a set of disks and split into 128kB fragments. For every k data fragments, an additional r redundant fragments are generated for fault tolerance. The k + r fragments form a stripe (using erasure coding).

Data placement: We want to minimize conflicts between disks storing different blobs. Random placement can create many conflicts, limiting concurrent requests. Pelican statically partitions disks into groups so that conflicts are concentrated into a small number of disk groups.

1.3 I/O Scheduler

Traditional disk schedulers reorder I/O requests to minimize seek latency. Pelican instead reorders requests to minimize the impact of disk spin-up latency.

1.4 Implementation

Power Up in Standby prevents disks from spinning up without the Pelican storage stack managing resource constraints.

The group abstraction parallelizes the boot process. Initialization is performed at group level, allowing all four groups to be initialized concurrently when there are no user requests. Initializing the entire rack takes approximately 3 minutes.

1.5 Evaluation

Advantages: Reduced hardware cost and power consumption. Erasure codes provide fault tolerance, while hardware abstraction simplifies I/O scheduler operation.

Disadvantages: Tight constraints make the system less flexible and sensitive to hardware changes. Some configuration decisions are not fully justified, and the design is not necessarily optimal.

2. Data Processing on CSD

2.1 Query Execution

Traditional database storage provides uniform access, control over data layout and static (pull-based) execution. Cold storage introduces additional constraints:

Hardware-software co-design is needed:

  1. Data access should be hardware-driven to minimize group switches.
  2. Query engines must process data pushed from storage in an out-of-order (unpredictable) manner.
  3. Reduce round-trips to cold storage through intelligent data caching.

2.2 Batch Processing on CSD

Common batch workloads on cold data include massive-scale Group-by / Join, (near-)duplicate detection, data localization and in-place MapReduce.

Data partitioning: Partition items into K groups and distribute each group between K disk groups. A partitioner (e.g. hash, range, map) determines where each element belongs. Each partition is buffered in RAM before being flushed to cold storage.

2.3 Flushing

When a buffer becomes full, its contents must be flushed to a disk group. The problem is deciding which disk group to flush into. A naïve approach can cause many disk group switches, which are expensive because disks need time to activate.

2.4 Buff-Pack

A greedy approach that tries to maximize throughput in the next operation(s).

Intuition: Flush into the currently active disk group whenever possible to avoid switching. Otherwise, switch to the disk group with the largest buffer.

The goal is to improve throughput by reducing expensive disk activation operations.

2.5 Off-Pack

Uses available buffer space to reduce group switches.

Main idea: Flush the entire buffer, even if some data is temporarily written to the wrong disk group.

When the buffer is full and disk group i is active:

  1. Flush buffer[i] into the active disk group.
  2. For every j != i, flush buffer[j] into a temporary offload_buffer_i_j.
  3. During post-processing, move the offloaded data to its correct disk group.

This trades additional reads and writes for fewer disk group switches.

2.6 Buff-Pack vs Off-Pack

An analytical model estimates the number of disk group switches and computation time. Key trade-off:

Off-Pack tends to perform better with smaller buffers, more disk groups and higher storage throughput.

Back to Home