> For the complete documentation index, see [llms.txt](https://www.axisnow.io/zh/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.axisnow.io/zh/docs/multi-edge/services.md).

# 服务

聚合边缘的业务管理单元

服务（Service）是聚合边缘的管理单元，代表您的一部分流量：这部分流量通过同一个服务 CNAME 进入 AxisNow，共用一组边缘提供商和同一套路由规则、源站、策略。它接近 CloudFront 里的一个 Distribution：一组域名加一套配置，区别在于同时对应多家边缘提供商；它不是 Cloudflare 的 zone 那种包含一个主域名下全部子域名的概念。

服务不等于一个域名。域名是否放进同一个服务，取决于它们是不是同一个业务：源站、策略和调度需求相同的，例如 `www.example.com` 和 `m.example.com`，放在一起；不同的，即使同属一个主域名，也各建一个服务，例如 `api.example.com` 回源到另一套后端、不缓存、调度策略也不同，就应当单独建一个服务。不同主域名必须分开。划分建议见[最佳实践](/zh/docs/multi-edge/services/best-practices.md)。

**服务 CNAME（Service CNAME）** 是服务的流量调度入口，形如 `a237a991.a4d61a.axisnow-edge.io`，创建时生成，之后不变。业务域名通过 CNAME 记录指向它，由 AxisNow 决定每个访客走哪一家边缘提供商。

## 服务的组成 <a href="#service-components" id="service-components"></a>

服务详情页的每一个标签页对应一类对象。

**边缘提供商（Edge Providers）** 是服务的流量承载方，一个服务可以有一家或多家，每一家以配置同步（Provision，由 AxisNow 创建并同步配置）或仅调度（Steer，不改动配置）两种方式之一加入。详见[边缘提供商](/zh/docs/multi-edge/services/edge-providers.md)。

**域名（Domains）** 是服务下由您持有的业务主机名。一个域名会部署到服务内每一家 Provision 方式加入的边缘上，每一份部署有自己的状态，某一家部署失败不影响其他家。详见[域名](/zh/docs/multi-edge/services/domains.md)。

**源站（Origins）** 是内容的来源，边缘收到请求后向它取内容。源站属于服务，一个源站可以被多个域名引用，同一个域名也可以按路径回源到不同的源站；源站地址变更后，引用它的所有域名在各家边缘上自动跟随。详见[源站](/zh/docs/multi-edge/services/origins.md)。

**流量调度（Routing）** 决定不同地区和运营商的访客走哪一家边缘。规则按访客范围划分，可以固定走一家，也可以根据拨测结果在几家之间自动故障切换或择优；规则的变更几秒内写入 DNS。详见[流量调度](/zh/docs/multi-edge/services/routing.md)。

**策略（Policy）** 是作用于服务全部边缘的请求行为规则，包括缓存清除、缓存控制、访问控制、限速和响应头，详见[策略](/zh/docs/multi-edge/services/policy.md)。

**仪表盘（Dashboard）** 汇总这个服务在各家边缘上的流量、错误率、缓存命中与调度状态，详见[统一可观测性](/zh/docs/multi-edge/how-it-works.md#unified-observability)。

## 创建服务 <a href="#create-service" id="create-service"></a>

在 **服务** 中点击 **添加服务**，填写 **服务名称**，服务 CNAME 保持默认的 **AxisNow 托管**，点击 **创建服务**。

新建的服务是一个空壳：有名字和服务 CNAME，没有任何边缘提供商，页面会直接进入它的 **边缘提供商** 标签页。接下来添加边缘提供商、配置路由规则、把域名指向服务 CNAME，完整步骤见[分步骤配置](/zh/docs/multi-edge/getting-started/step-by-step-configuration.md)。如果您的站点在 Cloudflare 上，[一键解锁 Cloudflare 聚合边缘](/zh/docs/multi-edge/getting-started/unlock-cloudflare.md)会替您创建好服务。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.axisnow.io/zh/docs/multi-edge/services.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
