英文:
Only single region in availability check
问题
我在Google Cloud上设置了一个运行时间检查。
然而,我只需要这个运行时间检查适用于单个区域,因为其他区域对我的项目无关。
当尝试编辑运行时间检查的区域并选择单个区域时,会出现一个错误,指示我需要选择至少三个区域。
是否有办法绕过这个限制,或者获得类似的功能,告诉我系统何时无法访问,并允许我查看特定时间段的平均运行时间?
英文:
I have an uptime check set up with Google Cloud.
However, I only need this uptime check for a single region as other regions are irrelevant for my project.
When trying to edit the regions of the uptime check and selecting a single region, I get an error saying I need to select at least three regions.
Is it possible to get around this restriction or get something similar that tells me when my system is not reachable and also lets me view the average uptime for a specific timespan?
答案1
得分: 1
你必须选择至少三个地区。
您希望至少有三个地理分散的站点来测试您的应用程序。问题在于只有一个路径,您无法确定哪里出现了问题(健康检查、网络路径、您的应用程序)。通过进行三次或更多次测试的共识,可以做出更好的决策。Google要求至少三个。
英文:
You must select at least three retions.
You want at least three geo-dispersed sites testing your application. The problem is with only one path, you cannot determine what is down (health check, network path, your app). By consensus of three or more tests, a better decision can be made. Google requires at least three.
答案2
得分: 0
根据Google Cloud政策,您需要至少有三个区域来进行可用性检查。Google Cloud从多个来源搜索以避免因一个地点的临时问题而产生误报。如果您想要跟踪特定地区的停机时间,这里有一个解决方法可以考虑,尽管这可能会产生额外的费用。
Cloud Functions / Cloud Run:您可以在特定地区配置一个简单的基于HTTP的云函数或云运行服务,用于监视和报告您服务的运行情况。然后,您可以对此作业或服务运行可用性检查。如果您想要跟踪特定时间段的正常运行时间,Cloud Monitoring可以为您提供数据,即使与上面显示的Cloud Functions或Cloud Run操作一起使用也可以。您可以随时配置Cloud Monitoring。Cloud Monitoring中的Metrics Explorer工具可用于创建显示一段时间内可用性检查统计信息的图表。
英文:
According to Google Cloud policy, you have a minimum of three zone counts for uptime check. Google Cloud searches from these multiple sources to avoid false positives due to temporary problems in one location. If you want to track downtime from a specific region, Here is a workaround you can consider, although this may incur additional charges.
Cloud Functions / Cloud Run: You can configure a simple HTTP-based cloud function or cloud run service in your specific region that monitors and reports the operation of your service. You can then run an uptime check against this job or service. If you want to track uptime over a specific period of time, Cloud Monitoring can provide that data for you even when used with the Cloud Functions or Cloud Run operations shown above .You can configure Cloud Monitoring at any time you want. The Metrics Explorer tool in Cloud Monitoring can be used to create charts showing uptime check stats over a period of time.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论