您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

Azure Cosmos DB etcd API(预览版)简介Introduction to the Azure Cosmos DB etcd API (preview)

Azure Cosmos DB 是 Microsoft 的全球分布式多模型数据库服务的关键任务应用程序。Azure Cosmos DB is Microsoft's globally distributed, multi-model database service for mission-critical applications. 它提供统包全局分发、 弹性缩放吞吐量和存储,达 99%的个位数的毫秒级延迟以及得到保证的高可用性,所有这些均由行业领先的 SLA。It offers turnkey global distribution, elastic scaling of throughput and storage, single-digit millisecond latencies at the 99th percentile, and guaranteed high availability, all backed by industry-leading SLA's.

Etcd 是分布式键/值存储。Etcd is a distributed key/value store. Kubernetes 中,etcd 用于存储 Kubernetes 群集的状态和配置。In Kubernetes, etcd is used to store the state and the configuration of the Kubernetes clusters. 确保 etcd 的可用性、可靠性和性能对于 Kubernetes 群集的整体群集运行状况、可伸缩性、弹性可用性和性能至关重要。Ensuring availability, reliability, and performance of etcd is crucial to the overall cluster health, scalability, elasticity availability, and performance of a Kubernetes cluster.

通过使用 Azure Cosmos DB 中的 etcd API,可将 Azure Cosmos DB 用作 Azure Kubernetes 的后端存储。The etcd API in Azure Cosmos DB allows you to use Azure Cosmos DB as the backend store for Azure Kubernetes. Azure Cosmos DB 中的 etcd API 目前处于预览状态。etcd API in Azure Cosmos DB is currently in preview. Azure Cosmos DB 实施 etcd 线路协议。Azure Cosmos DB implements the etcd wire protocol. Azure Cosmos DB 中 etcd API,开发人员将自动获得高度可靠可用全球分布式Kubernetes。With etcd API in Azure Cosmos DB, developers will automatically get highly reliable, available, globally distributed Kubernetes. 此 API 可让开发人员在完全托管的云原生 PaaS 服务中缩放 Kubernetes 状态管理。This API allows developers to scale Kubernetes state management on a fully managed cloud native PaaS service.

备注

与 Azure Cosmos DB 中的其他 API 不同,无法通过 Azure 门户、CLI 或 SDK 预配 etcd API 帐户。Unlike other APIs in Azure Cosmos DB, you cannot provision an etcd API account through the Azure portal, CLI or SDKs. 只能通过部署资源管理器模板来预配 etcd API 帐户;有关详细步骤,请参阅如何使用 Azure Cosmos DB 预配 Azure Kubernetes 一文。You can provision an etcd API account by deploying the Resource Manager template only; for detailed steps, see How to provision Azure Kubernetes with Azure Cosmos DB article. Azure Cosmos DB etcd API 目前以受限预览版提供。Azure Cosmos DB etcd API is currently in limited preview. 可以通过填写注册表单来注册预览版You can sign-up for the preview, by filling out the sign-up form.

线路级兼容性Wire level compatibility

Azure Cosmos DB 实施 etcd 线路协议版本 3,允许主节点的 API 服务器使用 Azure Cosmos DB,就像在本地安装的 etcd 环境中一样。Azure Cosmos DB implements the wire-protocol of etcd version 3, and allows the master node's API servers to use Azure Cosmos DB just like it would do in a locally installed etcd environment. etcd API 支持 TLS 相互身份验证。The etcd API supports TLS mutual authentication.

下图显示了 Kubernetes 群集的组件。The following diagram shows the components of a Kubernetes cluster. 在群集主节点中,API 服务器使用 Azure Cosmos DB etcd API 而不是本地安装的 etcd。In the cluster master, the API Server uses Azure Cosmos DB etcd API, instead of locally installed etcd.

实施 etcd 线路协议的 Azure Cosmos DB

主要优点Key benefits

无需 etcd 操作管理No etcd operations management

作为一种完全托管的云原生服务,Azure Cosmos DB 无需 Kubernetes 开发人员设置和管理 etcd。As a fully managed native cloud service, Azure Cosmos DB removes the need for Kubernetes developers to set up and manage etcd. Azure Cosmos DB 中的 API etcd 具有可伸缩性、高可用性和容错能力,并提供高性能。The etcd API in Azure Cosmos DB is scalable, highly available, fault tolerant, and offers high performance. 设置跨多个节点的复制、执行滚动更新、安全修补和监视 etcd 运行状况所造成的开销均由 Azure Cosmos DB 处理。The overhead of setting up replication across multiple nodes, performing rolling updates, security patches, and monitoring the etcd health are handled by Azure Cosmos DB.

全局分发和高可用性Global distribution & high availability

Azure Cosmos DB 使用 etcd API 来保证单个区域中 99.99% 的数据读写可用性,以及多个区域中 99.999% 的读写可用性。By using etcd API, Azure Cosmos DB guarantees 99.99% availability for data reads and writes in a single region, and 99.999% availability across multiple regions.

弹性的可伸缩性Elastic scalability

Azure Cosmos DB 为不同区域中的读写请求提供弹性缩放能力。Azure Cosmos DB offers elastic scalability for read and write requests across different regions. 随着 Kubernetes 群集的不断扩大,Azure Cosmos DB 中的 etcd API 帐户可弹性缩放,且不会造成停机。As the Kubernetes cluster grows, the etcd API account in Azure Cosmos DB elastically scales without any downtime. 将 etcd 数据存储在 Azure Cosmos DB 而不是 Kubernetes 主节点中还可以进一步灵活缩放主节点。Storing etcd data in Azure Cosmos DB, instead of the Kubernetes master nodes also enables more flexible master node scaling.

安全性和企业就绪Security & enterprise readiness

将 etcd 数据存储到 Azure Cosmos DB 后,Kubernetes 开发人员会自动获得 Azure Cosmos DB 支持的内置静态加密认证与法规遵从性备份与还原功能When etcd data is stored in Azure Cosmos DB, Kubernetes developers automatically get the built-in encryption at rest, certifications and compliance, and backup and restore capabilities supported by Azure Cosmos DB.

后续步骤Next steps