# UFS 回退

如果客户端尝试从一个工作节点读取数据而该工作节点不可用，客户端可以自动**回退**到直接从底层文件系统（UFS）读取数据。这确保了即使 Alluxio 集群无响应，应用程序的读取请求也能不间断地成功。

当 Alluxio 客户端无法从其首选工作节点读取数据时，它将按以下顺序尝试不同的源来自动恢复：

1. **使用本地副本重试：** 如果启用了数据复制，客户端将首先尝试从同一集群中拥有所请求数据副本的其他工作节点读取。
2. **故障转移到远程集群（多可用区）：** 如果所有本地副本都不可用并且启用了多可用区支持，客户端将尝试从其他联合集群中的工作节点读取，这些集群通常位于不同的可用区。
3. **回退到 UFS：** 如果所有 Alluxio 工作节点（本地和远程）都不可用，客户端将作为最后手段回退到直接从底层文件系统（UFS）读取数据。

这种分层方法在优先选择最快可用数据源的同时，最大化了成功读取的机会。

UFS 回退功能默认启用。在某些情况下，例如为了防止对 UFS 的“[惊群效应](https://en.wikipedia.org/wiki/Thundering_herd_problem)”请求，您可能希望禁用它。

| 属性                                         | 描述                                               | 默认值    |
| ------------------------------------------ | ------------------------------------------------ | ------ |
| `alluxio.dora.client.ufs.fallback.enabled` | 如果为 `true`，当客户端无法从 Alluxio 工作节点读取时，将回退到从 UFS 读取。 | `true` |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.alluxio.io/ee-ai-cn/ai-3.7/data-access/high-availability/ufs-fallback.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
