> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Alluxio caching reference architecture

> Cache data from object storage outside CoreWeave on CKS GPU Nodes with Alluxio, a CoreWeave-validated pattern

This reference architecture shows how to run Alluxio on CoreWeave Kubernetes Service (CKS) to cache data from object storage outside CoreWeave, such as Azure Blob Storage or Google Cloud Storage (GCS). Alluxio caches the data on the local NVMe disks of GPU Nodes, so repeated reads come from local disk instead of the remote store. Alluxio is third-party software that you deploy and operate. CoreWeave validated this pattern in a proof of concept (PoC) but doesn't provide or manage Alluxio.

If your data is already in CoreWeave AI Object Storage, use [Local Object Transport Accelerator (LOTA)](https://docs.coreweave.com/products/storage/object-storage/improving-performance/about-lota.md) instead.

## Architecture

The architecture has the following components:

| Component | Role | Placement |
| - | - | - |
| **Remote object store** | Source of truth for the data | Outside CoreWeave, for example Azure Blob Storage or GCS |
| **Alluxio control plane** | Coordinates the namespace, metadata, and cache workers | A CPU Node Pool in the same CKS cluster |
| **etcd quorum** | Stores Alluxio cluster state | One Node in the PoC and three Nodes in production, on Node-local NVMe rather than Distributed File Storage |
| **Alluxio cache workers** | Cache data and metadata on local NVMe and serve reads | The GPU Nodes that run your workloads |

etcd is sensitive to `fsync` latency, and Distributed File Storage has no per-tenant latency guarantee. See [Distributed File Storage performance considerations](https://docs.coreweave.com/products/storage/distributed-file-storage/about.md#performance-considerations).

## Prerequisites

* A CKS cluster with a CPU Node Pool for the Alluxio control plane and a GPU Node Pool whose instance type has multiple local NVMe disks.
* `kubectl` with the cluster's kubeconfig, the [CoreWeave Intelligent CLI](https://github.com/coreweave/cwic) (`cwic`) with an [API access token](https://docs.coreweave.com/security/authn-authz/managed-auth/api-access.md), and `jq`.
* Alluxio, deployed with access to your remote object store.

## Configure cache disks that survive a reboot

By default, Node-local storage doesn't survive a reboot. To keep the Alluxio cache across reboots, set the `storage_config` Node Pool parameter under `spec.nodeParameters` to a layout with `flush: "false"`. The validated layout uses one disk for `/mnt/local`, which also holds container layers and `emptyDir` volumes, and gives each remaining NVMe disk its own encrypted XFS filesystem (just a bunch of disks, or JBOD).

> [!WARNING]
>
> Before you use a flush-disabled storage configuration, note the following:
>
> * **Turn on TPM.** Every encrypted mount point with `flush: "false"` also needs `tpm: "true"`, which stores the disk encryption key in the Node's Trusted Platform Module (TPM). If any mount point is missing it, CKS rejects the whole configuration, and the Node boots without its local disks. `tpm: "true"` works only on instance types that have a TPM, so confirm support for your instance type with [CoreWeave Support](https://docs.coreweave.com/support.md) before you roll it out.
> * **Migrate existing Nodes in two phases.** A flush-disabled configuration keeps the existing disk layout instead of replacing it. If you apply it directly to Nodes that already use another storage layout, the Nodes can fail to become `Ready` and move to [triage](https://docs.coreweave.com/platform/fleet-management/node-lifecycle/state-transitions.md#triage-transitions). New Nodes can use the flush-disabled configuration directly. On existing Nodes, run the configuration procedure that follows this warning twice:
>   1. This first run wipes and recreates every filesystem, so drain the Nodes and copy off any data you need to keep. Then run it on every Node, using a configuration with `system_flush` and every `flush` set to `"true"` and `tpm` set to `"false"`.
>   2. After every Node finishes the first run, run it again with the flush-disabled configuration.
> * **Expect no disk redundancy.** JBOD disks have no RAID redundancy, so each disk can fail independently. Treat the cache as disposable, not as durable storage.
> * **Keep labels short.** Keep each `fs_label` unique within its first 12 characters, the XFS label limit.

To apply the configuration, do the following:

1. Save the storage configuration as `storage-config.json`. This excerpt shows `/mnt/local` and the first cache disk. Add one entry for each remaining cache disk, incrementing the mount point and `fs_label` (`/lota_cache_02` and `lotacache-02`, and so on). The validated layout on an eight-disk Node has seven cache disks.

   ```json title="storage-config.json (excerpt)" theme={"system"}
   {
     "system_flush": "false",
     "mountpoints": [
       {
         "mountpoint": "/mnt/local",
         "raid": {},
         "single_disk": "true",
         "flush": "false",
         "encrypted": "true",
         "tpm": "true",
         "fs_label": "mnt-local",
         "fs": "xfs"
       },
       {
         "mountpoint": "/lota_cache",
         "raid": {},
         "single_disk": "true",
         "flush": "false",
         "encrypted": "true",
         "tpm": "true",
         "fs_label": "lotacache-01",
         "fs": "xfs"
       }
     ]
   }
   ```

2. Validate the JSON, encode it in Base64, and stage it on the Node Pool. Replace `[NODEPOOL-NAME]` with your Node Pool's name:

   ```bash theme={"system"}
   jq -e . storage-config.json >/dev/null
   STORAGE_CONFIG_B64="$(jq -c . storage-config.json | tr -d '\n' | base64 | tr -d '\n')"

   kubectl patch nodepool [NODEPOOL-NAME] --type=merge \
     --patch "{\"spec\":{\"nodeParameters\":{\"storage_config\":\"${STORAGE_CONFIG_B64}\"}}}"
   ```

   To confirm the staged value, decode it:

   ```bash theme={"system"}
   kubectl get nodepool [NODEPOOL-NAME] \
     -o jsonpath='{.spec.nodeParameters.storage_config}' | base64 --decode | jq .
   ```

   The output matches `storage-config.json`.

   With the default `OnSpecUpdate` update strategy, the patch stages the configuration without changing running Nodes. With `Manual`, promote it with `cwic nodepool upgrade [NODEPOOL-NAME]`.

3. List the Nodes that need reconfiguration:

   ```bash theme={"system"}
   cwic nodepool node get [NODEPOOL-NAME] --requiring-reconfiguration
   ```

4. Drain one test Node, then apply the configuration with a reconfigure reboot. Replace `[TEST-NODE]` with the Node's name:

   ```bash theme={"system"}
   kubectl drain [TEST-NODE] --ignore-daemonsets --delete-emptydir-data
   cwic node reboot [TEST-NODE] --reconfigure --force --no-test
   ```

   For details about these flags, see [Apply Node Pool updates](https://docs.coreweave.com/products/cks/nodes/apply-updates.md).

5. After the reconfigure reboot completes and the Node is `Ready`, confirm that each mount point is its own encrypted XFS filesystem. Run these commands on the Node, or from a privileged Pod scheduled on it:

   ```bash theme={"system"}
   lsblk -f
   df -h /mnt/local /lota_cache*
   ```

   An eight-disk Node shows eight encrypted XFS filesystems. The `lsblk` command lists disks in device order, not mount-point order, so check each mount point.

6. Drain and reconfigure the remaining Nodes in small batches. The `cwic node reboot` command accepts several space-separated Node names.

To remove the storage configuration from the Node Pool, set the `storage_config` parameter to `null`:

```bash theme={"system"}
kubectl patch nodepool [NODEPOOL-NAME] --type=merge \
  --patch '{"spec":{"nodeParameters":{"storage_config":null}}}'
```

Then drain and reconfigure the Nodes as in steps 3, 4, and 6. The Nodes return to the default layout, which wipes every local disk, including the cache disks.

## Keep cache Pods from blocking Node maintenance

Long-running Alluxio cache Pods on GPU Nodes that a DaemonSet doesn't manage count as active workloads. They keep the Node's `CWActive` condition at `True`, which blocks Node Pool scale-down and fleet lifecycle automation, and they delay pending Node lifecycle transitions, such as maintenance reboots. For more information, see [Active Nodes and stalled transitions](https://docs.coreweave.com/platform/fleet-management/node-lifecycle/state-transitions.md#active-nodes-and-stalled-transitions).

To keep cache Pods from blocking maintenance, do the following:

* **Don't tolerate all taints.** If cache Pods tolerate every taint, including the CKS [eviction taints](https://docs.coreweave.com/products/cks/clusters/scheduling/workload-scheduling.md#eviction-taints), they skip graceful eviction and can schedule back onto the Nodes that CoreWeave is trying to drain. Tolerate only the taints that the cache Pods need.
* **Label cache Pods as interruptible.** Add the `qos.coreweave.cloud/interruptable: "true"` label to the Pod templates of the Alluxio worker and FUSE Pods. CKS doesn't count Pods with this label as active, and the label suits a cache that refills from the remote store. The key is spelled `interruptable` for historical reasons. For more information, see [Interruptible workloads](https://docs.coreweave.com/products/cks/clusters/scheduling/workload-scheduling.md#interruptible).

  ```yaml theme={"system"}
  metadata:
    labels:
      qos.coreweave.cloud/interruptable: "true"
  ```

## Proof-of-concept results

These results come from the CoreWeave PoC and aren't a performance commitment. Results depend on object sizes, access patterns, the remote region, and the network path, so measure with your own workload.

The PoC used two `turin-gp-l` CPU Nodes, with six 7.68 TB NVMe disks on each Node as Alluxio cache, and read from Azure Blob Storage. It ran Alluxio Enterprise AI 3.8 with Alluxio operator 3.7.6 and LOTA turned off. CoreWeave tested the cache-disk storage configuration on this page separately from the PoC.

| Test | Cold read (from Azure Blob Storage) | Warm read (from cache) |
| - | - | - |
| One client, 50 MiB objects | 2.151 GiB/s | 18.45 GiB/s |
| Two clients and two workers, 50 MiB objects | Not measured | About 35 GiB/s |
| Two clients, 4 KiB objects | 9.7k operations per second, 45.2 ms time to first byte | 117k operations per second, 1 ms time to first byte |

When the PoC removed one worker, clients kept reading without interruption and the cache hit ratio dropped from 100% to about 94%. After the worker rejoined, the hit ratio returned to 100%.
