简体   繁体   English

http负载均衡器和运行状况检查

[英]http load balancer and health check

I found this question.. 我发现了这个问题。

You want to configure autohealing for network load balancing for a group of Compute Engine instances that run in multiple zones, using the fewest possible steps. 您希望使用最少的步骤,为在多个区域中运行的一组Compute Engine实例配置自动修复,以实现网络负载平衡。 You need to configure recreation of VMs if they are unresponsive after 3 attempts of 10 seconds each. 如果虚拟机在3次尝试(每次10秒)后无响应,则需要配置虚拟机的重新创建。 What should you do? 你该怎么办?

A. Create an HTTP load balancer with a backend configuration that references an existing instance group. A.使用后端配置创建HTTP负载均衡器,该配置引用现有实例组。 Set the health check to healthy(HTTP) 将健康检查设置为“健康”(HTTP)

B. Create an HTTP load balancer with a backend configuration that references an existing instance group. B.用后端配置创建一个HTTP负载均衡器,该配置引用一个现有的实例组。 Define a balancing mode and set the maximum RPS to 10. 定义一种平衡模式并将最大RPS设置为10。

C. Create a managed instance group. C.创建一个托管实例组。 Set the Autohealing health check to healthy(HTTP) 将自动修复运行状况检查设置为“健康”(HTTP)

D. Create a managed instance group. D.创建一个托管实例组。 Verify that the auto scaling setting is on. 确认自动缩放设置已启用。

Which is the correct answer? 哪个是正确的答案? I think is A 我认为是

You want to configure autohealing for network load balancing for a group of Compute Engine instances that run in multiple zones, using the fewest possible steps. 您希望使用最少的步骤,为在多个区域中运行的一组Compute Engine实例配置自动修复,以实现网络负载平衡。 You need to configure recreation of VMs if they are unresponsive after 3 attempts of 10 seconds each. 如果虚拟机在3次尝试(每次10秒)后无响应,则需要配置虚拟机的重新创建。 What should you do? 你该怎么办?

Let's analyze each possible answer to determine the best answer. 让我们分析每个可能的答案以确定最佳答案。 Note that this question has a key phrase "using the fewest possible steps". 请注意,此问题的关键词是“使用最少的步骤”。 This phrase will bias selecting the best answer. 这句话会偏向选择最佳答案。

A. Create an HTTP load balancer with a backend configuration that references an existing instance group. A.使用后端配置创建HTTP负载均衡器,该配置引用现有实例组。 Set the health check to healthy(HTTP) 将健康检查设置为“健康”(HTTP)

This is a possible answer. 这是一个可能的答案。 This answer assumes that the existing backend is configured correctly. 该答案假定现有后端已正确配置。

B. Create an HTTP load balancer with a backend configuration that references an existing instance group. B.用后端配置创建一个HTTP负载均衡器,该配置引用一个现有的实例组。 Define a balancing mode and set the maximum RPS to 10. 定义一种平衡模式并将最大RPS设置为10。

This is a possible answer. 这是一个可能的答案。 This answer assumes that the existing backend is configured correctly. 该答案假定现有后端已正确配置。 This answer adds an additional step over answer A. 该答案比答案A增加了一个额外的步骤。

C. Create a managed instance group. C.创建一个托管实例组。 Set the Autohealing health check to healthy(HTTP) 将自动修复运行状况检查设置为“健康”(HTTP)

This is only a partial solution. 这只是部分解决方案。 The default configuration is auto scaling enabled. 默认配置为启用自动缩放。 You still need to create the HTTP Load Balancer. 您仍然需要创建HTTP负载平衡器。

D. Create a managed instance group. D.创建一个托管实例组。 Verify that the auto scaling setting is on. 确认自动缩放设置已启用。

This is only a partial solution. 这只是部分解决方案。 Creating a Managed Instance Group with Auto Scaling is required, but you still need to create the HTTP Load Balancer. 需要使用Auto Scaling创建托管实例组,但是您仍然需要创建HTTP Load Balancer。

Drumroll Please .... 请鼓...

Therefore the best answer is A in my opinion. 因此,我认为最好的答案是A。

To configure the recreation of VMs, you need Autohealing. 要配置虚拟机的重新创建,您需要自动修复。 So not B and D. 所以不是B和D。

A: Load balancing health checks help direct traffic away from non-responsive instances and toward healthy instances; 答:负载平衡运行状况检查可帮助将流量从无响应的实例引向正常实例; these health checks do not cause Compute Engine to recreate instances. 这些运行状况检查不会导致Compute Engine重新创建实例。

C: Application-based autohealing improves application availability by relying on a health checking signal that detects application-specific issues such as freezing, crashing, or overloading. C:基于应用程序的自动修复功能依靠运行状况检查信号来检测应用程序特定的问题(例如冻结,崩溃或过载),从而提高应用程序的可用性。 If a health check determines that an application has failed on an instance, the group automatically recreates that instance . 如果运行状况检查确定某个实例的应用程序已失败,则该组将自动重新创建该实例

So the answer is C . 因此答案是C。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 内部负载均衡器的 GCP 运行状况检查 - GCP health check for internal load balancer GCP 负载均衡器的运行状况检查(来自 terraform) - Health check for GCP Load balancer (from terraform) Kubernetes:负载均衡器与就绪状态检查 - Kubernetes: Load Balancer vs Readiness health check GCP 负载平衡器运行状况检查无法正常工作 - GCP load balancer health check not working properly 谷歌云 HTTP 没有外部负载均衡器健康检查失败 IP - Google Cloud HTTP Load Balancer Health Check Fails Without An External IP Google Cloud 未在负载均衡器运行状况检查中应用 BackendConfig - Google Cloud not Applying the BackendConfig on the Load Balancer Health Check 即使健康检查通过,GCP负载平衡器仍会返回404 - GCP load balancer returns a 404 even after health check passes Google Cloud HTTP 负载均衡器运行状况检查发送的请求过多? - Google Cloud HTTP Load Balancer health checks sends too many requests? Google云端:运行状况检查不会从UDP内部负载均衡器中删除失败的实例 - Google Cloud: Health Check is not removing failed instance from UDP Internal Load Balancer Google Cloud kubernetes负载平衡器,后端的运行状况检查不起作用 - Google cloud kubernetes load balancer, health check on the backend isn't working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM