如果您搭配使用复制功能和多集群路由来实现应用的高可用性 (HA),则应将客户端服务器或虚拟机放置在多个 Google Cloud 区域内或这些区域附近。即使您的应用服务器不是由 Google Cloud托管,这项建议也适用,因为您的数据会通过距离应用服务器最近的 Google Cloud区域进入 Google Cloud 网络。与任何请求一样,距离越短,故障切换的完成速度就越快。
自动故障切换过程通常非常简短,以至于您无法察觉。您可以在 Google Cloud 控制台中查看自动故障切换图表,以便了解在指定时间段内自动重新路由的请求数,方法如下:打开实例列表,点击实例名称,然后点击监控。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-06。"],[[["Replication enables traffic failover to another cluster within the same instance if a Bigtable cluster becomes unresponsive, and these failovers can be manual or automatic."],["Manual failovers, used with single-cluster routing, require user judgment based on signals like increased errors, timeouts, or latency, but are not guaranteed to resolve issues, so monitoring is recommended."],["Automatic failovers, utilized with multi-cluster routing, are handled by Bigtable, routing traffic to an available cluster when the nearest one is unable to process a request, and also apply to deadline requests."],["During failovers, Bigtable uses a *last write wins* algorithm to resolve data conflicts that might occur before replication is completed."],["For optimal performance in a multi-cluster routing environment, client servers or VMs should be located near or within multiple Google Cloud regions to ensure faster failovers."]]],[]]