VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Why Mathematics? | Kubernetes, Resource Requests, Scheduling and Autoscaling

Three secondary students review textbooks and notes together at a classroom table.

Why Kubernetes Is a Mathematical System

Why is mathematics important in Kubernetes? A container platform must decide where workloads fit, how many replicas should run, what happens when a node fails, how requests and limits add up, and how quickly capacity should change when demand moves. Beneath commands and dashboards are sums, inequalities, constraint satisfaction, ratios, queues, probability and feedback control.

The importance of mathematics appears when a Pod remains pending despite visible free memory, an autoscaler oscillates, a deployment keeps availability during an update, or several replicas fail together because they were placed in one failure domain. Kubernetes does not create infinite capacity. It coordinates declared intentions with finite machines.

This article uses current official Kubernetes documentation checked on 10 October 2026. Features, defaults and maturity levels can change, so production decisions should confirm the documentation for the cluster's exact release and provider. The aim here is to explain durable mechanisms, not promise one configuration fits every workload.


Quick Reading Routes

  • Students: begin with Pods, nodes, resource sums, replicas and constraints.
  • Parents: read the reliability, limits, learning steps and career guidance.
  • Teachers: use the bin-packing, autoscaling, rollout and probability investigations.
  • Career explorers: connect this topic to cloud engineering, site reliability, cybersecurity, networking, data platforms and software operations.

Practise only in a sandbox or account you are authorised to use. Cloud resources can incur real cost, and deleting or scaling a shared workload can interrupt other people's services.


The Cluster Is a Finite Capacity Model

Nodes supply resources

A node offers finite CPU, memory and other allocatable resources after system reservations. Pods request resources. Scheduling asks whether a Pod's requests can fit on a node while satisfying other constraints.

For one resource, a necessary condition is

sum of existing requests + new Pod request ≤ node allocatable amount.

That condition must hold for every required resource, not just one. A node may have spare CPU but insufficient memory, or spare memory but no suitable accelerator.

Requests and usage are different quantities

A CPU request is a scheduling and management declaration, not a promise that usage is always equal to it. Actual usage varies over time. A limit constrains resource use according to resource-specific enforcement; memory and CPU do not behave identically.

The official Kubernetes resource-management documentation states that a Pod's request or limit for a resource is generally the sum of the corresponding values for its containers. That makes container-level declarations part of a larger addition problem.

A worked capacity example

A node has 8 CPU units allocatable. Existing Pods request 1.5, 2.0 and 2.25 units, totalling 5.75. A new Pod requests 2.5. The total would be 8.25, so it cannot fit under this simplified CPU-only test even if current usage happens to be low.

A different Pod requesting 2.0 would bring the total to 7.75 and pass the CPU condition. It might still fail memory, topology, volume or policy conditions. One passing inequality is not a complete schedule.


Scheduling Is Multidimensional Constraint Satisfaction

Filtering removes infeasible nodes

The scheduler first needs a set of nodes capable of running a Pod. Resource requests, node selectors, taints and tolerations, volume constraints, affinity rules and other policies can remove candidates.

Represent every node as a point with several attributes. A constraint defines an allowed subset. Feasible nodes lie in the intersection of all required subsets. If the intersection is empty, the Pod remains unscheduled even when each individual condition is satisfiable somewhere.

Scoring ranks feasible choices

After filtering, a scheduler can score candidates using several preferences. A simplified combined score is

S(node) = w1s1 + w2s2 + … + wksk,

where each component captures a policy and weights express relative importance. Production scoring plugins have documented rules; the weighted-sum model explains how multiple preferences can produce one ordering.

The highest score is not “best” in an absolute sense. It is best under the chosen model and current state. Changing weights or workload distribution changes the result.

Hard and soft constraints differ

A required anti-affinity rule is hard: a violating node is infeasible. A preferred rule is soft: it influences score but can be broken when stronger needs apply. Confusing these types can leave workloads pending or unexpectedly co-located.

This distinction appears in everyday planning. “The exam must be after registration closes” is a hard condition. “Prefer a morning room” is a soft preference. Mathematical modelling becomes clearer when requirements and preferences are not mixed.

Bin packing is difficult globally

Placing variable-size Pods into nodes resembles multidimensional bin packing. Finding a globally optimal arrangement can be computationally difficult, especially as state changes continuously. Schedulers therefore use practical heuristics and local decisions.

A choice that leaves 0.5 CPU and 0.5 GiB on two nodes may be worse than consolidating spare capacity if future Pods need 1 CPU and 1 GiB together. Fragmentation occurs in resource dimensions, not only storage blocks.


Requests Shape Packing and Guarantees

Under-requesting hides demand

If a service usually needs 700 millicpu but requests 100, the scheduler may pack many copies onto one node. Their combined actual demand can then exceed capacity, causing contention. The cluster looks feasible in request space but is overloaded in usage space.

Under-requesting can improve apparent utilisation while weakening predictability. Monitoring should compare distributions of actual use with requests, not celebrate one high utilisation number.

Over-requesting strands capacity

If the same service requests 2 CPU but rarely uses more than 0.5, fewer Pods fit even when machines sit mostly idle. The unused difference is reserved in the schedule and unavailable to other requests under the model.

Right-sizing is statistical. Examine ordinary use, bursts, tail behaviour, startup and seasonal change. A request based only on the mean may be too small for normal peaks; one based on a single maximum may be wasteful.

Percentiles support a decision

Suppose observed CPU samples have median 0.35, 95th percentile 0.70 and 99th percentile 1.10 units. Choosing a request near 0.70 accepts that about 5% of samples exceed it in the observed period, but that does not directly predict harm. Multiple replicas, limits, throttling and queueing affect outcomes.

Percentiles need a time window and representative workload. A quiet school holiday week should not define capacity for examination-results day.


Replicas Turn Availability into Probability

More copies reduce some risks

If one replica independently fails during an interval with probability p, the probability that all n replicas fail is p^n under the independence assumption. With p = 0.02 and n = 3, that is 0.000008, or 0.0008%.

Independence is the dangerous assumption. If all replicas share one node, zone, image defect or configuration error, failures can be correlated. Replicas protect against only the failure domains they actually separate.

Anti-affinity spreads failure domains

Topology-spread constraints and anti-affinity can encourage or require replicas across nodes or zones. Let counts across three zones be 4, 4 and 3. The skew, maximum minus minimum, is 1. A policy can define an allowed maximum skew.

Perfect balance is not always possible when capacity or labels differ. A strict constraint may improve resilience but block scheduling during reduced capacity. The design trades placement flexibility against correlated-failure exposure.

Availability is not durability

Several stateless web replicas can keep serving while one restarts. They do not by themselves preserve uploaded data or database state. Storage replication, backups and recovery procedures address other properties.

Do not treat “three replicas” as a universal reliability certificate. Name the component, state, failure domain and recovery objective.


Controllers Use Feedback Loops

Desired and observed state

A controller compares desired state with observed state, then acts to reduce the difference. If a Deployment desires five replicas and only four are ready, it works toward creating another.

This is negative feedback: error = desired − observed. The loop repeats because systems change and actions take time. Control theory asks whether the response is stable, timely and robust to noisy measurements.

Delay can create oscillation

Suppose a new replica needs 90 seconds to become ready. If an autoscaler reacts every few seconds to rising load without considering that delay, it may request many replicas before the first new one helps. When they all arrive, capacity overshoots and may later shrink too aggressively.

Stabilisation windows, cooldown behaviour and rate limits dampen this response. Faster reaction is not automatically better; the loop must match the system's time constants.

Hysteresis reduces switching

Hysteresis uses different conditions for scaling up and scaling down, or requires a condition to persist. A thermostat does something similar: one threshold turns heating on, another turns it off.

Without separation, noisy measurements near a threshold can cause repeated toggling. The cost includes churn, cold starts and cache loss.


Horizontal Autoscaling Uses Ratios

A simplified replica formula

The official Horizontal Pod Autoscaling documentation explains that an HPA updates a workload's scale to match demand using configured metrics. A simplified proportional calculation is

desired replicas = ceiling(current replicas × current metric / target metric).

If four replicas average 75% utilisation against a 50% target, the ratio is 1.5 and the simplified desired count is ceiling(4 × 1.5) = 6.

The denominator must be meaningful

For CPU utilisation based on requests, an incorrect request changes the ratio. A Pod using 400 millicpu against a 500 millicpu request reports 80%; the same usage against a 1,000 millicpu request reports 40%.

The workload did not change—only the baseline did. Metric definitions are part of the control system.

Missing and not-ready metrics matter

Real autoscaling algorithms handle missing samples and Pods that are not ready. They also apply tolerances and behaviour policies. A classroom ratio is helpful, but production behaviour must follow current versioned documentation.

The right lesson is not to memorise one formula. It is to trace the numerator, denominator, aggregation, delay and rounding.

Scaling does not create downstream capacity

Adding application replicas may increase pressure on a database, external API or shared storage. The bottleneck can move. If each replica opens 50 database connections, scaling from 10 to 30 can raise potential connections from 500 to 1,500.

Autoscaling must respect end-to-end capacity. A locally correct feedback loop can destabilise a dependency.


Node Autoscaling Solves a Different Problem

Pending Pods reveal capacity gaps

Workload autoscaling changes the number of Pods. Node autoscaling changes cluster machines. The Kubernetes node-autoscaling documentation notes that resource requests are common scheduling constraints considered when provisioning nodes.

If new Pods cannot fit, a node autoscaler estimates which node type or group could make them schedulable. Provisioning then takes time, so workload and infrastructure loops interact.

Shape matters, not only total capacity

Two machines each with 4 CPU and 16 GiB provide 8 CPU and 32 GiB total. A single Pod requesting 6 CPU cannot fit either node even though total free CPU across the cluster is 8. Resources cannot always be pooled across nodes for one Pod.

This is the indivisibility constraint in bin packing. Node shapes should reflect Pod shapes and failure needs.

Scale-down needs safety checks

Removing a node requires moving or terminating workloads. Pod disruption budgets, local storage, affinity and controller ownership affect feasibility. A node that looks lightly used may contain one hard-to-move Pod.

Scale-down is therefore a constrained evacuation problem, not subtraction from a bill.


Rolling Updates Are Availability Arithmetic

Surge and unavailability define bounds

A rolling update can temporarily add new replicas and remove old ones under parameters such as maximum surge and maximum unavailable. Suppose desired replicas are 10, maximum surge is 2 and maximum unavailable is 1. A simplified bound allows up to 12 total Pods and aims to keep at least 9 available during the rollout.

Percentages may be rounded according to documented rules, so small deployments need careful checking. One Pod is 50% of a two-replica service but only 1% of a hundred-replica service.

Readiness gates traffic

A created Pod is not necessarily ready to receive requests. Readiness probes and startup behaviour determine when it joins service. If readiness is too lenient, broken instances receive traffic; if too strict or slow, rollout capacity shrinks.

The probe measures a proxy for service ability. It should test a meaningful local condition without overloading a dependency or creating a common failure.

Progress has a deadline

Rollout progress needs time bounds and observation. A configuration that creates no ready new Pods can stall while old replicas remain. Automation should report rather than silently wait forever.

Time limits are safety constraints. They turn “eventually” into an actionable condition.


Queues Translate Load into Waiting Time

Arrival and service rates

Let requests arrive at average rate λ and replicas collectively serve at average rate μ. If λ persistently exceeds μ, backlog grows without bound in a simplified queue. Adding replicas raises μ only if dependencies and load distribution scale.

Short bursts can be absorbed by a queue, but queue capacity and deadlines matter. Waiting is not free; users experience latency and requests may expire.

Little's law

For a stable system, average number of items L equals arrival rate λ times average time W: L = λW. At 200 requests per second and 0.15 seconds average in the system, average concurrency is 30.

If response time doubles while arrival rate stays constant, average in-flight work doubles. This affects memory, connection pools and autoscaling metrics.

Tail latency dominates fan-out

If one request waits for several services, the slowest branch can set total time. Even when each dependency is usually fast, the chance that at least one is slow rises with the number of calls.

Optimising only averages misses this composition. Percentiles and traces reveal whether scaling one component improves the user's complete path.


Priorities and Preemption Express Policy

Higher priority is not more CPU

Priority can influence scheduling order and, under conditions, preemption. It does not automatically give a running Pod unlimited resources. Requests, limits and quality-of-service rules remain relevant.

The official Pod priority and preemption documentation describes current behaviour and caveats. Operators should use current release documentation rather than generalise from an old tutorial.

Preemption has a cost function

To make room for a high-priority Pod, a system may remove lower-priority Pods. It seeks a feasible victim set while considering priorities, disruptions and placement. The smallest CPU sum is not necessarily the safest set.

A critical service classification is an organisational decision. If everything is highest priority, the ordering conveys no useful information.

Fairness needs several dimensions

Namespaces can have quotas, teams can have priorities, and workloads can have service objectives. Fairness might mean equal shares, proportional shares, guaranteed minimums or protection for essential tasks.

Mathematics makes the allocation rule visible. Governance decides which rule is legitimate.


Quotas Turn Policy into Inequalities

Namespace totals are constrained

A quota can limit aggregate requests, limits, object counts or other resources in a namespace. If the CPU-request quota is 20 and existing requests total 18.5, a new 2-CPU workload exceeds the bound.

The rejection is not evidence that the cluster has no spare CPU. It means the namespace's policy allocation is exhausted.

Ratios prevent one-sided declarations

Limit ranges and policy can constrain minimums, maximums or ratios between requests and limits. These rules reduce pathological declarations, but defaults should match real workloads.

A mathematically valid ratio can still be operationally poor if it causes throttling or wastes memory. Policy needs measurement and revision.

Quota protects shared capacity

Without quota, one experiment can consume all namespaced objects or requested capacity. Quotas define a budget that encourages prioritisation.

Budgets do not optimise within themselves. Teams still choose which workloads deserve the allocation.


Persistent State Changes the Model

Pods are replaceable; data may not be

A stateless Pod can be recreated elsewhere with little identity concern. A stateful service may require a volume, stable network identity, ordered membership or quorum.

The Kubernetes persistent-volume documentation describes persistent resources separately from ephemeral containers. Scheduling must account for where volumes can attach and how long operations take.

Replication and quorum

In a replicated data system, a quorum rule might require more than half of n members. For n = 5, a majority quorum is 3. Two majority quorums intersect in at least one member, which helps preserve ordering under defined protocols.

Kubernetes can run such systems, but it does not replace the database's consensus or backup logic. Platform replication and application replication are different layers.

Recovery objectives must be stated

Recovery point objective describes acceptable data loss in time; recovery time objective describes acceptable restoration time. Five replicas with no usable backup may offer availability but weak recovery from corruption or operator error.

Test restoration. A declared objective without a measured recovery path is an aspiration.


Cost Is Part of the Optimisation

Idle reserve buys resilience

Running exactly at maximum capacity may look efficient until a node fails or load rises. Headroom is spare capacity with a purpose. If a cluster should survive loss of one of four equal nodes, normal demand must fit in the remaining three under the intended model.

That suggests normal requested load no greater than about 75% of four-node aggregate capacity before other constraints. Unequal nodes and Pod shapes complicate the ratio.

Spot capacity changes probability

Interruptible or spot nodes may reduce cost but have higher revocation risk. Workloads need graceful termination, distribution and replacement. Mixing stable and interruptible pools can create a portfolio of cost and risk.

Do not quote one saving percentage as universal. Prices, interruption patterns, regions and providers change.

Overprovisioning is deliberate

Low-priority placeholder Pods can reserve space that is preempted when real workloads arrive, reducing wait for new nodes. The cost is visible idle allocation; the benefit is lower response delay during bursts.

Optimisation balances money, latency, availability and operational complexity. There is no single maximum-efficiency point for every organisation.


A Complete Worked Example: Scaling a School Results Portal

Estimate ordinary demand

A portal expects 120 requests per second. One ready replica sustainably serves 30 requests per second at the target latency in representative tests. A simple load calculation needs 120/30 = 4 replicas.

If the design needs one-replica failure tolerance without exceeding the tested per-replica rate, it needs at least five ready replicas. Add startup, uneven load and dependency capacity before selecting a final minimum.

Declare resource requests

Measurements show each replica uses a 95th-percentile 0.6 CPU and 700 MiB memory during ordinary peaks, with startup briefly higher. The team sets initial requests from evidence, then validates scheduling and throttling. Five replicas request 3 CPU and 3,500 MiB in aggregate.

If nodes offer 2 CPU and 4 GiB allocatable, the replicas cannot all fit on one node. Anti-affinity spreads them further, improving node-failure resilience.

Define autoscaling

With five replicas and current average CPU utilisation 80% against a 50% target, the simplified proportional result is ceiling(5 × 0.8/0.5) = 8. The team caps scale-up rate and keeps a minimum of five.

They confirm that the database can handle eight replicas' connection pools. Otherwise the application tier would scale into a new bottleneck.

Plan a rollout

Desired replicas are eight, maximum surge two and maximum unavailable one. The rollout can temporarily reach ten total Pods while aiming for at least seven available. Readiness checks include local application health and a lightweight dependency check.

The team monitors error rate, 95th- and 99th-percentile latency, ready replicas and queue depth. A successful rollout means user outcomes remain within targets, not merely that all objects reached a nominal state.

Test a node failure

They deliberately terminate one sandbox node. Remaining capacity must accept replacement Pods; topology rules must still be satisfiable. They time detection, rescheduling, readiness and user impact.

The exercise reveals whether headroom, disruption budgets and startup assumptions were realistic. It is performed in an authorised test environment, not during a real results release.


Services, Endpoints and Load Distribution

A stable name selects changing replicas

A Service can provide a stable virtual destination while its set of ready backend endpoints changes. A selector or controller associates eligible Pods with that destination. The client need not know every Pod address.

This is another layer of indirection: logical service identity maps to a dynamic set. The set should contain only endpoints ready under the chosen policy.

Equal request counts are not equal work

A simple load-distribution rule may spread connections or requests approximately evenly. If request costs differ greatly, equal counts can still create unequal load. One replica handling long reports remains busy while another completes many short reads.

Connection reuse, session affinity and transport behaviour also affect distribution. “Four replicas” does not mean each performs exactly 25% of work.

Readiness and termination must overlap safely

During scale-down or rollout, an endpoint should stop receiving new work before its process exits, while existing requests receive enough time to finish under policy. Detection, endpoint update and proxy propagation take time.

A grace period shorter than ordinary request duration can produce avoidable failures. A very long period slows rollout and consumes capacity. Measure the service-time distribution and select a bound intentionally.

End-to-end capacity is the minimum

If eight replicas can each serve 100 requests per second but the database supports 500 total, application capacity is not 800. The bottleneck caps the path near 500 before safety margin and workload variation.

Scaling a non-bottleneck may add overhead without increasing throughput. Capacity planning follows the narrowest shared stage.


Observability Turns Models into Evidence

Desired, scheduled, running and ready are separate counts

A dashboard should not collapse these states. A Pod can be scheduled but waiting for an image, running but not ready, or terminating while still visible. Each gap points to a different part of the system.

Time-series graphs should show transitions and durations, not only the final count.

Histograms preserve distributions

Average CPU or latency can hide hot replicas and slow requests. Histograms and percentiles reveal spread. When aggregating across replicas, weight observations correctly; averaging percentile values is generally not the percentile of the combined population.

Record sample window, bucket boundaries and missing data. A graph without measurement definitions is decoration.

Alerts are hypotheses

An alert such as “ready replicas below desired for five minutes” encodes a threshold and duration. Too short creates noise during normal rollout; too long delays incident response.

Review false positives and missed events. Operational mathematics improves through feedback just like the controllers it monitors.


Common Misconceptions to Correct

“Kubernetes creates more computing power”

It coordinates available resources and can request infrastructure through other systems. It cannot schedule beyond physical or purchased capacity.

“Current usage decides scheduling”

Resource requests are central to ordinary scheduling. Actual usage informs monitoring and some autoscaling, but low current use does not make an oversized request disappear.

“More replicas guarantee availability”

Replicas must be separated across relevant failure domains and depend on healthy shared services. Correlated failures can defeat the independence assumption.

“Autoscaling removes capacity planning”

Autoscaling needs targets, limits, metrics, startup time and downstream capacity. It automates a policy; it does not invent the policy.

“One hundred percent utilisation is efficient”

Near-saturation can produce queueing, tail latency and weak failure tolerance. Useful efficiency includes service objectives and headroom.

“A green dashboard proves data is safe”

Runtime health does not prove recoverability. Persistent data needs integrity, replication and tested backups.


How Students Can Build Transferable Skill

Solve a paper scheduling puzzle

Draw three nodes with CPU and memory capacities. Create ten Pods with two-dimensional requests. Place them without exceeding either resource. Then add anti-affinity and observe how the feasible set changes.

Compare first-fit, largest-first and balance-seeking heuristics. Count unused fragments in both dimensions.

Simulate an autoscaler in a spreadsheet

Create columns for time, replicas, load, average utilisation, desired replicas and a startup delay. Apply the ceiling formula with min/max bounds. Add a moving average and stabilisation rule.

Change the delay and observe oscillation. The exercise teaches feedback more clearly than memorising a configuration file.

Model correlated failure

Calculate all-replica failure under independence, then add a shared-zone event. If zone failure probability is q and all replicas occupy that zone, q dominates the p^n replica calculation.

Draw a fault tree so assumptions remain visible.

Measure before tuning

In a sandbox, record requests, actual usage, latency and queue depth. Change one resource or replica parameter at a time. Keep the workload fixed enough for comparison.

Do not treat a one-minute test as proof for every day. State the window and uncertainty.


Guidance for Parents and Teachers

Start with timetables and classrooms

Nodes are classrooms with finite seats and equipment; Pods are lesson groups with requirements; the scheduler assigns feasible rooms. A class needing a laboratory cannot use an empty ordinary room.

Then show where the analogy breaks: workloads consume variable resources and can be recreated automatically.

Reward labelled assumptions

A strong report states capacities, requests, independence assumptions, delays and objectives. It distinguishes desired, scheduled, running and ready replicas.

Avoid projects that celebrate a dashboard without explaining the model beneath it.

Include cost and ethics

Cloud experiments can incur charges and process personal data. Use budgets, synthetic data and authorised accounts. Reliability work is partly responsibility to users.


Mathematics Learning in Singapore

The MOE secondary mathematics syllabuses centre mathematical problem solving and include algebra, ratios, statistics, graphs and algorithms. Kubernetes connects these ideas: inequalities test fit, sums aggregate resources, ratios guide scaling, graphs model dependencies and probability tests resilience assumptions.

Students do not need access to a production cluster. Paper packing puzzles and spreadsheet feedback models teach the core reasoning safely. The transferable skill is to define state, constraints, measurements and trade-offs.

SEAB states that the Singapore-Cambridge Secondary Education Certificate begins in 2027 with G1, G2 and G3 subjects; current terminology is on the SEC information page. This article is enrichment, not an examination or admissions claim.


Did You Know?

A cluster can have enough CPU and memory in total while still being unable to fit one Pod, because the required resources must coexist on one suitable node.

Autoscaling can make latency worse if every new replica opens connections to an already overloaded database. A correct local ratio can move the bottleneck downstream.

Three replicas on one node protect against a single process crash better than one replica, but they do not protect against that node's failure. Placement geometry matters.


Frequently Asked Questions

What mathematics is most useful for Kubernetes?

Arithmetic, ratios, inequalities and graphs are the entry point. Statistics, probability, queueing and feedback control become valuable as systems grow.

What is a resource request?

It is a declared amount used by scheduling and management. It is not necessarily equal to current use and is distinct from a limit.

Why can a Pod stay pending when dashboards show free capacity?

No single node may satisfy all resource and placement constraints, or policy such as quota, affinity, storage or taints may exclude candidates.

Does HPA always use CPU?

No. It can use configured supported metrics. The exact setup and algorithm should be checked in current documentation.

How many replicas are enough?

There is no universal number. Consider load, failure domains, startup time, maintenance, dependencies and recovery objectives.

Is Kubernetes required for every application?

No. It adds capabilities and operational complexity. Smaller systems may be better served by simpler deployment models.

Does Kubernetes knowledge guarantee a cloud job?

No. It can support a pathway, while operating systems, networking, security, coding, communication and experience also matter.


Useful Next Reading


Final Perspective

Kubernetes shows why mathematics matters in modern computing. A cluster is a changing collection of finite capacities, constraints, queues and feedback loops. Reliable operation depends on knowing what is counted, what is assumed independent, what delay exists and which objective is being optimised.

The strongest question is not “How many Pods are running?” It is “Can they fit, are they ready, are they spread across the right failure domains, can dependencies serve them, and will the control loop stay stable?”

Those questions turn infrastructure from a collection of YAML files into a reasoned system. They also give students a practical view of mathematics as a tool for sharing scarce resources fairly, recovering from change and keeping digital services dependable.