Menu Close

7.5.7. 每秒请求数

对于请求的每秒(RPS)服务,提供了一个额外的 Observed RPS 仪表板,它每秒视觉化不同类型的请求:

  • stable_requests_per_second
  • panic_requests_per_second
  • target_requests_per_second
观察到的 RPS

请注意,Observed RPS 仪表板只有在设置了请求注解时才可见,例如:

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: helloworld-go
  namespace: default
spec:
  template:
    metadata:
      annotations:
        autoscaling.knative.dev/target: "10"
        autoscaling.knative.dev/metric: "rps"
    spec:
      containers:
        - image: docker.io/openshift/hello-openshift