liveBook · Manning

Throughput

As explained in Kubernetes for Developers

Requests per second is a throughput metric measuring the number of requests received or processed during one second.

Throughput measures how many requests an application receives or serves each second. In HTTP deployments, requests per second (RPS) provides a practical view of demand and replica capacity. section 6.2.1

Use RPS to plan capacity: measure how many requests one replica can handle, divide current demand by that capacity, and provision the resulting number of replicas. The same metric can drive Kubernetes horizontal pod autoscaling. section 6.2.1

RPS is especially useful when:

  • CPU utilization does not represent demand because an HTTP service spends substantial time waiting on databases or other external services. section 6.2
  • A tested replica capacity provides confidence that enough replicas can be provisioned under load. section 6.2.1
  • Traffic enters through an Ingress, which sees HTTP requests and can expose the external metric. section 6.2.1

Scaling an HTTP deployment

Expose a Deployment through a NodePort Service and Ingress, then configure an HPA with an external request-count metric. Generate traffic with ApacheBench and observe the HPA increase replicas when demand exceeds the target.

How Kubernetes for Developers covers it

How deep it goes
Explains measurement, replica-capacity calculation, Ingress requirements, and external-metric configuration without detailing monitoring-provider internals.
Examples
Uses a timeserver Deployment, NodePort Service, Ingress, ApacheBench traffic, and an external request-count HPA.
What it assumes
Assumes HTTP traffic, Deployments, Services, Ingress, and HPA basics while deferring monitoring-provider-specific metric lookup.
What you can do after
Operate/configure Kubernetes autoscaling with an external RPS metric and evaluate replica changes under generated HTTP load.
How it connects
Connects throughput with capacity planning, Ingress, horizontal pod autoscaling, external metrics, and CPU-based scaling.

Also explained in

Compare how 20 books explain throughput →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kubernetes for Developers. The section links point to the parts of the book it draws on.