简体   繁体   English

如何定义Pod接收请求的阈值(在Kubernetes环境中)

[英]How can I define threshold in receiving requests by the pods(In Kubernetes environment)

I have configured a cluster in Google Cloud Platform using KOPS. 我已经使用KOPS在Google Cloud Platform中配置了集群。 I used the "TCP LoadBalancer" option for exposing my services to public. 我使用“ TCP LoadBalancer”选项将服务公开。 In the current scenario,If a pod running in the cluster reached the maximum request,then the request is redirected to another pod which is in the same cluster. 在当前方案中,如果集群中运行的Pod达到了最大请求,则该请求将重定向到同一集群中的另一个Pod。 My question is Is it possible to manage or restrict the request handled by a pod,So that I can define a threshold in receiving requests by the pods. 我的问题是是否可以管理或限制Pod处理的请求,以便我可以定义Pod接收请求的阈值。

There is no possibility to do this. 这是不可能的。 GCP does not provide this kind of metrics on load balancers. GCP不在负载平衡器上提供此类指标。 You may find information about something similar to what you want in Documentation . 您可能会在“ 文档”中找到有关所需内容的信息。

Backend services 后端服务

Backend services direct incoming traffic to one or more attached backends. 后端服务将传入流量定向到一个或多个连接的后端。 Each backend is composed of an instance group and additional serving capacity metadata. 每个后端由一个实例组和其他服务容量元数据组成。 Backend serving capacity can be based on CPU or requests per second (RPS) . 后端服务容量可以基于CPU或每秒请求数(RPS)

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM