Sfoglia il codice sorgente

docs: lesson on autoscaling and elasticity, with a free local load test (#461)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ChiefGyk3D 4 settimane fa
parent
commit
32b103130f
35 ha cambiato i file con 497 aggiunte e 68 eliminazioni
  1. 2 2
      docs/wiki/APIs-and-Tokens-From-Zero.md
  2. 418 0
      docs/wiki/Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md
  3. 2 2
      docs/wiki/Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md
  4. 2 2
      docs/wiki/Build-and-Destroy-Stack-Per-Service.md
  5. 3 2
      docs/wiki/Contents.md
  6. 2 2
      docs/wiki/DNS-Cloudflare-and-Hosting-Your-Own-Website.md
  7. 2 2
      docs/wiki/Data-Formats-JSON-YAML-HCL.md
  8. 2 2
      docs/wiki/Enterprise-Identity-SSO-SAML-OIDC.md
  9. 2 2
      docs/wiki/Environments-and-Promotion-Dev-Staging-Production.md
  10. 2 2
      docs/wiki/First-Hour-on-a-New-System-Updates-and-Baseline.md
  11. 2 2
      docs/wiki/Git-From-Zero.md
  12. 7 0
      docs/wiki/Glossary.md
  13. 2 2
      docs/wiki/Hashing-Encryption-and-Keys.md
  14. 2 1
      docs/wiki/Home.md
  15. 2 2
      docs/wiki/How-a-Web-Request-Works.md
  16. 2 2
      docs/wiki/IPv6-Adoption-and-Handling-It-Safely.md
  17. 3 3
      docs/wiki/LAMP-and-LEMP-From-Zero.md
  18. 2 2
      docs/wiki/Linux-for-Enterprise-Beginners.md
  19. 2 2
      docs/wiki/OpenTofu-From-Zero.md
  20. 2 2
      docs/wiki/Patch-Management-and-Automatic-Security-Updates.md
  21. 2 2
      docs/wiki/Plans-State-Drift-and-Recovery.md
  22. 1 0
      docs/wiki/Reading-Order.md
  23. 2 2
      docs/wiki/Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md
  24. 2 2
      docs/wiki/Secrets-From-Day-One.md
  25. 2 2
      docs/wiki/Spacelift-From-Zero.md
  26. 3 3
      docs/wiki/Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md
  27. 2 2
      docs/wiki/Subnets-NAT-and-Firewalls-By-Hand.md
  28. 2 2
      docs/wiki/Terminal-and-Your-First-Script.md
  29. 2 2
      docs/wiki/Virtual-Machines-Containers-and-Cloud-Service-Models.md
  30. 2 2
      docs/wiki/Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md
  31. 2 2
      docs/wiki/Windows-Active-Directory-and-macOS-in-the-Enterprise.md
  32. 3 3
      docs/wiki/WordPress-and-PHP-Security-WAF-and-Static-Sites.md
  33. 4 4
      docs/wiki/WordPress-at-Scale-CDN-WAF-and-CI.md
  34. 4 4
      docs/wiki/_Sidebar.md
  35. 1 0
      docs/wiki/_nav.yaml

+ 2 - 2
docs/wiki/APIs-and-Tokens-From-Zero.md

@@ -472,13 +472,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md) / Next: [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: **APIs and tokens from zero** / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 418 - 0
docs/wiki/Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md

@@ -0,0 +1,418 @@
+# Autoscaling and elasticity: scale out, targets, cooldowns and cost caps
+
+> Unfamiliar word or acronym? The [Glossary](Glossary.md) defines it.
+
+> **Status: unverified draft. Two small scripts were run; no cloud account, autoscaler or cluster was touched.** On **2026-11-07** I ran, on one Linux machine with Python 3.13.5 and nothing but the standard library, a toy web service and a load test against `127.0.0.1` (the three runs are quoted in [the free exercise](#free-exercise-a-local-load-test-and-a-scale-decision-by-hand)) and a 60-line decision loop that replays a fixed load trace. **Not run:** an AWS Auto Scaling group, an Azure scale set, a Google managed instance group, a DigitalOcean autoscale pool or App Platform autoscaling, Kubernetes, a load balancer, anything on macOS or Windows. Vendor statements were read on **2026-11-07** from the pages in the [claims register](#claims-register); anything I could not read there is marked **est.** Trust what your terminal prints over what this page says.
+
+> **Prerequisites.** [Containers and Docker basics](Containers-and-Docker-Basics.md), especially [the state section](Containers-and-Docker-Basics.md#state-the-thing-that-makes-containers-hard), and [How money works in the cloud](How-Money-Works-in-the-Cloud.md). A terminal and Python 3 for the exercise ([The terminal and your first script](Terminal-and-Your-First-Script.md)). You do not need a cloud account. About 75 minutes for the reading and the exercise (est.).
+
+> **Where this runs, and the rule.** The exercise is local and costs nothing: a server on `127.0.0.1`, a client on the same machine, and a script that only prints. No cloud resource is created anywhere on this page. If you later try a real autoscaler in your own account, set the billing alert and the maximum size first (see [the guard rails](#cost-guard-rails-unbounded-scaling-is-a-billing-risk)).
+
+<!-- BEGIN GENERATED PAGE NAV top: rewritten from docs/wiki/_nav.yaml by scripts/gen_wiki_nav.py; edit the manifest, not this block -->
+[Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foundations) > Autoscaling and elasticity
+
+Previous: [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+<!-- END GENERATED PAGE NAV top -->
+
+<!-- BEGIN GENERATED PAGE CONTENTS: rewritten from the page's own headings by scripts/gen_wiki_nav.py; edit the headings, not this block -->
+**On this page:**
+
+- [What you will be able to do](#what-you-will-be-able-to-do)
+- [Scalable and elastic are different words](#scalable-and-elastic-are-different-words)
+- [Horizontal and vertical](#horizontal-and-vertical)
+- [Metrics and policies](#metrics-and-policies)
+- [Cooldowns, warmup and flapping](#cooldowns-warmup-and-flapping)
+- [Why stateless matters](#why-stateless-matters)
+- [Health checks and the load balancer](#health-checks-and-the-load-balancer)
+- [Scale to zero](#scale-to-zero)
+- [Kubernetes: the Horizontal Pod Autoscaler](#kubernetes-the-horizontal-pod-autoscaler)
+- [Autoscaling groups and their managed equivalents](#autoscaling-groups-and-their-managed-equivalents)
+- [Cost guard rails: unbounded scaling is a billing risk](#cost-guard-rails-unbounded-scaling-is-a-billing-risk)
+- [What this project does](#what-this-project-does)
+- [Free exercise: a local load test and a scale decision by hand](#free-exercise-a-local-load-test-and-a-scale-decision-by-hand)
+- [Checkpoint](#checkpoint)
+- [Common mistakes](#common-mistakes)
+- [Claims register](#claims-register)
+<!-- END GENERATED PAGE CONTENTS -->
+
+## What you will be able to do
+
+- Say the difference between horizontal and vertical scaling, and between scalable and elastic.
+- Read a scaling policy: a metric, a target, a minimum, a maximum, and what the cooldown is for.
+- Tell target tracking, step scaling and scheduled scaling apart and say when each fits.
+- Explain flapping and name the two usual fixes.
+- Say why a server that keeps its own state cannot be scaled out safely, and what the health check does for a load balancer.
+- Name the autoscaling product on AWS, Azure, Google Cloud, DigitalOcean and Kubernetes.
+- Do the Kubernetes replica arithmetic by hand.
+- Explain why a missing maximum is a billing risk and where this project's cost gate stands on it.
+
+## Scalable and elastic are different words
+
+A system is **scalable** if you can make it handle more load by adding capacity. A system is **elastic** if it does that for you, in both directions, without a person: it grows when load arrives and shrinks when load leaves, and you pay for what is running. The second half is the part people forget. Autoscaling that only ever goes up is a bill, not elasticity.
+
+The thing that does it is an **autoscaler**: a loop that reads a number (CPU, requests per second, queue length), compares it with a target, and changes how many copies of something are running. Everything else on this page is a detail of that loop.
+
+## Horizontal and vertical
+
+**Horizontal scaling** (scale out and in) changes the number of copies. **Vertical scaling** (scale up and down) changes the size of one copy: more memory, a faster CPU.
+
+| Question | Horizontal | Vertical |
+|---|---|---|
+| What changes | The count of instances | The size of an instance |
+| Needs the program to cooperate | Yes: copies must be interchangeable (see [state](#why-stateless-matters)) | Usually no |
+| Limit | How many you are allowed and can pay for | The biggest machine that exists |
+| Interruption | None if a load balancer sits in front | Often a restart |
+| Failure | Lose one copy of many | Lose the only one |
+
+The vendors say the same thing. Azure's autoscale page says it scales horizontally only, "Autoscale does not support vertical scaling", that vertical scaling "is limited by the availability of larger hardware" and "might also require a restart of the VM". DigitalOcean's App Platform page says it "only offers fixed vertical scaling": you resize a container by hand. Kubernetes describes horizontal scaling as "deploy more Pods" and vertical as giving the existing Pods more CPU or memory. (All three read 2026-11-07.)
+
+That is why almost every autoscaler on this page is horizontal. Vertical is still the right first move for a single small server that is simply too small, and it is the only move for a database that cannot run as interchangeable copies. Plenty of production systems do both: a database scaled up, the web tier scaled out.
+
+## Metrics and policies
+
+An autoscaling setup has four numbers and one rule:
+
+- **Minimum**: never fewer than this many copies.
+- **Maximum**: never more than this many.
+- **Desired** (or current): how many there are now.
+- **Metric and target**: what to watch and what value to hold it near.
+- **Policy**: the rule that turns the metric into a change in the desired number.
+
+AWS describes the shape directly: the group "adjusts the desired capacity of the group, between the minimum and maximum capacity values that you specify" (Amazon EC2 Auto Scaling User Guide, read 2026-11-07). Azure's rules likewise carry "a minimum level of resources" and "a maximum level of resources that won't be exceeded".
+
+### Target tracking
+
+You pick a metric and a value, and the autoscaler does the arithmetic. AWS's example is a policy that targets an average CPU utilization of 50 percent: the group scales out when CPU is above 50 percent and scales in when it is below, "to optimize costs during periods of low utilization". You do not say how many instances to add; the service works that out. AWS recommends target tracking over the other two dynamic types when the metric moves in proportion to the number of instances. Kubernetes' Horizontal Pod Autoscaler is this style by design (formula below).
+
+Pick a metric that moves **inversely** with the number of copies. CPU per instance falls when you add instances. A metric that does not fall (total requests per second, which is the same however many servers there are) makes a poor target unless it is divided by the count.
+
+### Step scaling
+
+You define bands: if the metric is between 70 and 80 percent add one, between 80 and 90 add three, above 90 add five. AWS builds step scaling on CloudWatch alarms and lets you define separate policies for scaling out and in. Use it when the right response is not proportional, or when you want a hard response to a big breach.
+
+### Scheduled scaling
+
+You scale by the clock: "at 08:00 set the minimum to 6; at 20:00 set it back to 2". AWS lists it as its own scaling method, with recurring schedules and a time zone setting. Use it when the load is a known shape (an office-hours internal tool, a weekly event) because it needs no warning from a metric. It also covers the case where a metric reacts too late: a machine that takes five minutes to start (est.) cannot be started when the traffic is already there. Azure also offers predictive autoscale for cyclical patterns on scale sets, which is beyond this page.
+
+In practice you combine them: a schedule for the known shape, target tracking for the surprises, and a minimum and maximum around both.
+
+## Cooldowns, warmup and flapping
+
+Scaling is slow compared with a metric. A new copy takes time to start, pass its first health check and begin taking traffic. During that time the metric still looks bad. A naive autoscaler sees "still too high", adds more, and overshoots. Then the extra copies come online, the metric collapses, and it removes them. Then the load comes back. This is **flapping** (also called thrashing): the count bounces around the right answer.
+
+Kubernetes' own page names it: when you manage replicas with the Horizontal Pod Autoscaler, "the number of replicas keeps fluctuating frequently due to the dynamic nature of the metrics evaluated. This is sometimes referred to as thrashing, or flapping." (read 2026-11-07).
+
+The fixes, with the vendors' names:
+
+- **Cooldown.** After a change, wait before the next one. DigitalOcean's droplet autoscale pool has `cooldown_minutes`, "the number of minutes to wait between scaling events", default 10 (API reference generated 6 Nov 2026). Google calls the related setting the **initialization period** and says it was "formerly known as cool down period". AWS has a cooldown for simple scaling policies, with a warning above it: "As a best practice, we recommend that you do not use simple scaling policies and scaling cooldowns. A target tracking scaling policy or a step scaling policy is better."
+- **Warmup.** Do not count a new copy's numbers until it has started up. AWS says target tracking and step scaling "can initiate a scale-out activity immediately without waiting for the cooldown period to end" and use an instance warmup instead, and that while a scale-out is in progress, scale-in is blocked until the new instances finish warming up.
+- **Stabilization window.** Scale out quickly, scale in slowly. Kubernetes defaults to a 300-second stabilization window for scaling down and none for scaling up: "When the metrics indicate that the target should be scaled up the target is scaled up immediately". It scales down only to the highest desired count seen in the window.
+- **Tolerance.** Do nothing when the number is close enough. Kubernetes skips any change "if the ratio is sufficiently close to 1.0 (within a configurable tolerance, 0.1 by default)".
+
+The exercise below shows flapping on a fixed trace, and then removes it with a window.
+
+## Why stateless matters
+
+If every copy is interchangeable, any copy can answer any request, and you can add or remove copies freely. If copy A holds something copy B does not (a user's login session in memory, an uploaded file on its local disk, a counter), then removing A loses data and adding B gives a user a different answer on the next click. A server that works this way is **stateful**. A **stateless** server keeps nothing it cannot lose: state lives somewhere shared, such as a database, a cache or an object storage bucket, and the web tier only does work.
+
+[Containers and Docker basics: state](Containers-and-Docker-Basics.md#state-the-thing-that-makes-containers-hard) made the same point for a different reason: you want to be able to throw the machine away and rebuild it. Autoscaling makes that a routine event instead of an emergency, because the autoscaler throws machines away on purpose, on its own schedule, at 03:00. Concretely:
+
+- Sessions go in a shared store (or in a signed token the client holds), not in the process.
+- Uploads go to object storage, not the local disk.
+- Logs go to standard output or a collector, not a file on a machine that will disappear.
+- Startup must be fast and need no human step, or new copies join too late to help.
+- A copy being shut down should finish its current request and exit. AWS notes that Elastic Load Balancing waits 300 seconds by default for deregistration (connection draining) before a terminating instance goes away.
+
+Some things do not become stateless: the database itself, a single-leader queue, a game server holding a live match. They scale by other means (bigger machine, read replicas, partitioning) and are out of scope here.
+
+## Health checks and the load balancer
+
+A **load balancer** spreads requests across the copies. To do that safely it needs to know which copies are fit to receive them. It sends each one a small request on a schedule (a **health check**), and stops sending traffic to a copy that fails. DigitalOcean's load balancers "only send requests to Droplets that pass health checks", you define the check endpoint and what counts as a healthy response, and a failing droplet is removed from rotation and added back when it passes again (read 2026-11-07).
+
+Two things to know:
+
+1. **The health check is a different job from the scaling metric.** The metric asks "do we need more or fewer copies?" The health check asks "is this copy broken?" A group can use both: AWS notes an Auto Scaling group can take health notifications from EC2 status checks, Elastic Load Balancing, VPC Lattice, EBS and "custom health checks that you define", and when it decides an in-service instance is unhealthy, "it replaces it with a new instance to maintain the desired capacity". It does not wait for a scaling cooldown to do that.
+2. **A shallow check lies.** [Containers and Docker basics](Containers-and-Docker-Basics.md#pi-shaped-to-cloud-shaped) makes the same point about "the process exists". A check that only confirms the web server answers will report healthy when the database behind it is down, and the autoscaler will then replace perfectly good machines or, worse, keep serving errors. Check what a real request needs, but not so deep that one slow dependency makes every copy fail at once and the whole pool is taken out of rotation.
+
+A health check also starts the clock for a new copy. Give it a **grace period** (AWS has a setting for exactly this) so a copy that is still starting is not killed for failing a check it was never ready to pass.
+
+## Scale to zero
+
+If the minimum is zero, nothing runs when nobody asks, and nothing is billed for running (est., depends on the product). The cost is the first request after a quiet period, which waits while a copy starts: a **cold start**. Examples, each from its own vendor page:
+
+- **Google Cloud Run** removes instances that are not processing requests; a minimum-instances setting keeps some warm "even if they're not processing requests" to cut that wait.
+- **AWS Lambda** runs a function per request and scales the number of execution environments on its own, up to your account's concurrency limit. The default is 1,000 concurrent executions per Region, and you can ask for more.
+- **Kubernetes** can set `minReplicas: 0`, but only for metrics that can be read when nothing is running. The documentation says it is supported "only for object and external metrics", not CPU or memory, "because those can only be measured on running Pods". The page I read marks the feature Beta since Kubernetes v1.37 and on by default. I did not check how this reads on older versions, so check yours.
+- **A Google managed instance group** can scale to zero only if you do not use CPU utilization, load balancer serving capacity or per-instance monitoring metrics, and set `minNumReplicas` to 0.
+- **DigitalOcean App Platform** has Scale to Zero for web services. The page says "To request access, contact Support", and that a scaled-to-zero component is billed at 10 percent of the standard price. That page is marked private, so ask before you plan around it.
+
+Scale to zero fits a hobby web service nobody visits at night, and a worker that wakes for a queue. It fits badly where a cold start of seconds breaks something, and where a connection must stay open (the same line [serverless in the Containers lesson](Containers-and-Docker-Basics.md#serverless-the-container-you-do-not-run) draws).
+
+## Kubernetes: the Horizontal Pod Autoscaler
+
+Kubernetes keeps a count of Pods (copies of a container) for a Deployment. The **HorizontalPodAutoscaler** (HPA) changes that count. Its core is one line of arithmetic from the Kubernetes documentation:
+
+```text
+desiredReplicas = ceil[ currentReplicas * ( currentMetricValue / desiredMetricValue ) ]
+```
+
+If the current value is 200m and the target is 100m, the replicas double. If it is 50m against 100m, they halve. The controller runs this on a loop, every 15 seconds by default (`--horizontal-pod-autoscaler-sync-period`), skips the change inside the 0.1 tolerance, and applies the stabilization behavior from the previous section. You set the minimum and the maximum, the metric and the target. That is target tracking, with the formula visible.
+
+Two practical points. The HPA changes how many **Pods** run; it does not add machines. If the cluster has no room, new Pods wait. A separate component scales the machines: DigitalOcean's Kubernetes product has a cluster autoscaler per node pool with a minimum and a maximum node count (page last verified 29 Oct 2026), and it states that it scales nodes only, which is the same split. And the HPA reads metrics through the metrics API, which needs something installed to answer it; a CPU target does nothing if no metrics server is running (est.).
+
+## Autoscaling groups and their managed equivalents
+
+The AWS word is the **Auto Scaling group**: EC2 instances treated as one logical group, held to a minimum, maximum and desired capacity, and replaced when unhealthy. The other providers have the same idea under other names.
+
+| Provider | Group of machines | Platform (containers or apps) | Source read 2026-11-07 |
+|---|---|---|---|
+| AWS | Amazon EC2 Auto Scaling group: target tracking, step, simple and scheduled policies | Lambda scales on its own (concurrency limit); other AWS container products are not covered here | EC2 Auto Scaling User Guide; Lambda Developer Guide |
+| Azure | Virtual Machine Scale Sets, scaled by Azure Monitor autoscale rules on metrics or a schedule | Autoscale supports many resource types, listed on a separate page that I did not read | Azure Monitor autoscale overview; scale sets overview |
+| Google Cloud | Managed instance group with an autoscaler (policies on CPU, load balancing capacity, monitoring metrics or schedules) | Cloud Run scales instances on requests, minimum and maximum instances settable | Compute Engine autoscaler page; Cloud Run min instances |
+| DigitalOcean | Droplet autoscale pool: minimum, maximum, a CPU and/or memory target, a cooldown, or a fixed count | App Platform: manual, CPU-based or request-based autoscaling, 1 to 250 instances; DOKS: node pool cluster autoscaler | Droplet autoscale pools API reference; App Platform scaling page; DOKS autoscaling page |
+| Kubernetes (any host) | Cluster autoscaler for nodes (provider-specific) | HorizontalPodAutoscaler for Pods | Kubernetes documentation |
+
+Notes on the DigitalOcean row, since this project uses that provider. The autoscale pool is documented in the API reference (generated 6 Nov 2026); I did not find a how-to page for it. App Platform's CPU-based autoscaling needs a dedicated CPU plan, and request-based autoscaling is capped at a `max_instance_count` of 100, against 250 for the CPU-based kind. App Platform's `min_instance_count` must be 1 or higher; going to zero is the separate Scale to Zero feature.
+
+## Cost guard rails: unbounded scaling is a billing risk
+
+An autoscaler spends money on your behalf, automatically, in response to a number. That is the point and it is also the risk. A traffic spike you wanted becomes a bill, and a traffic spike you did not want (a crawler, an attack, a retry loop in your own code) becomes a bill too, with no one awake. [How money works in the cloud](How-Money-Works-in-the-Cloud.md#how-bills-get-out-of-hand) lists the ways bills grow; autoscaling adds a new one, because the machines are created without a person clicking anything.
+
+The guard rails, in the order they act:
+
+1. **A maximum, always.** Every setup above has one, and a missing one is an unlimited credit card. Choose it from a budget, not from a hope: maximum copies times the hourly price times 730 hours (est., the usual hours in a month) is the worst month you are agreeing to. DigitalOcean's pool requires `max_instances`; App Platform's autoscaling requires `max_instance_count`; AWS and Azure take a maximum on the group. The Lambda concurrency limit is a cap too, set by the provider and adjustable by you.
+2. **A budget alert.** [Step 1 of the defenses](How-Money-Works-in-the-Cloud.md#1-a-billing-alert-before-anything-else). An alert will not stop spending, but it makes a runaway visible the same day. The project set two in stage 0, at $10 and $25.
+3. **A ceiling that is code.** Here the cost gate reads the price of everything the code would create and fails the build over the phase's ceiling ([CI, tests and the cost gate](CI-Tests-and-Cost-Gate.md#the-cost-gate)). Its resource-type list is an allowlist, so an autoscaling resource it does not know is refused by name until someone prices and approves it. The gate cannot see what an autoscaler decides later, so any scaling resource would have to be priced at its **maximum**, which is exactly why the maximum has to exist. I did not test how the gate would price one. [What the gate cannot do](CI-Tests-and-Cost-Gate.md#what-the-gate-cannot-do) lists the other blind spots, such as bandwidth overage.
+4. **Autoscale on a metric an attacker cannot cheaply push.** CPU rises when anyone sends requests. Put [rate limiting](Rate-Limiting-at-Every-Layer.md) in front, so scaling out answers real users and not a flood.
+5. **Alert on "at the maximum for an hour".** A group pinned at its maximum is either a success or an attack. Either way a person should look.
+
+## What this project does
+
+Nothing here autoscales. Stage 3 is one droplet running Docker, Portainer, the five daemons and a Spaces bucket, at $29 a month in the Roadmap's current figure, against a $30 ceiling, and at the time of writing it is planned, not built ([Roadmap: stage 3](Roadmap.md#stage-3-workloads-planned)). One droplet is a fixed size with a fixed price, and that is a deliberate property: the cost gate can prove the bill because there is no number that moves. A second droplet, a load balancer or an autoscale pool would each be a new line in the manifest and a reviewed raise of the ceiling.
+
+What the stage 3 design does take from this lesson is the part that does not need a scaler: state in a bucket instead of on the disk, a disposable machine, a health check that means something, and a run-once mode for the daemons that fit a function. Those are what you would need if you ever scaled it out. For the five daemons, the honest answer to "do they need autoscaling" is no: they are bots with a trickle of traffic (est.), and the failure to plan for is a stuck loop, not a crowd. Autoscaling here is a lesson, not a plan.
+
+## Free exercise: a local load test and a scale decision by hand
+
+No account, no cloud, no money. You need Python 3 (I ran 3.13.5 on Linux) and a terminal. The first script is a toy web service on `127.0.0.1` with a fixed number of "workers"; the second hammers it from the same machine; the third replays a load trace through a scale decision. About 30 minutes (est.).
+
+### 1. A toy service with a fixed capacity
+
+Save as `toy.py`. It holds a worker slot for 50 milliseconds per request, so one slot handles about 20 requests a second. The number of slots comes from the command line.
+
+```python
+import sys
+import threading
+import time
+from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
+
+WORKERS = int(sys.argv[1])
+slots = threading.Semaphore(WORKERS)
+
+
+class Handler(BaseHTTPRequestHandler):
+    def do_GET(self):
+        with slots:
+            time.sleep(0.05)
+        self.send_response(200)
+        self.send_header("Content-Length", "2")
+        self.end_headers()
+        self.wfile.write(b"ok")
+
+    def log_message(self, *args):
+        pass
+
+
+ThreadingHTTPServer(("127.0.0.1", 8099), Handler).serve_forever()
+```
+
+### 2. A load test
+
+Save as `load.py`. It starts N client threads that send requests back to back for 3 seconds and prints throughput and latency.
+
+```python
+import sys
+import threading
+import time
+import urllib.request
+
+CLIENTS = int(sys.argv[1])
+SECONDS = 3
+lat = []
+lock = threading.Lock()
+stop = time.time() + SECONDS
+
+
+def run():
+    mine = []
+    while time.time() < stop:
+        t = time.time()
+        urllib.request.urlopen("http://127.0.0.1:8099/").read()
+        mine.append(time.time() - t)
+    with lock:
+        lat.extend(mine)
+
+
+threads = [threading.Thread(target=run) for _ in range(CLIENTS)]
+for t in threads:
+    t.start()
+for t in threads:
+    t.join()
+lat.sort()
+print(f"clients={CLIENTS} requests={len(lat)} per_second={len(lat) / SECONDS:.0f} "
+      f"p50_ms={lat[len(lat) // 2] * 1000:.0f} p95_ms={lat[int(len(lat) * 0.95)] * 1000:.0f}")
+```
+
+Run it in two terminals, once per worker count. Terminal 1: `python3 -I toy.py 1`. Terminal 2: `python3 -I load.py 8`. Stop the server with Ctrl-C, then repeat with `2` and `4`.
+
+What I saw on 2026-11-07, one run each (yours will differ by a few percent):
+
+| Workers | Requests in 3 s | Requests per second | Median latency | 95th percentile |
+|---|---|---|---|---|
+| 1 | 67 | 22 | 402 ms | 404 ms |
+| 2 | 126 | 42 | 201 ms | 223 ms |
+| 4 | 244 | 81 | 100 ms | 149 ms |
+
+Eight clients are always waiting. With one worker each request queues behind seven others, about 8 x 50 ms = 400 ms. Doubling the workers about halves the latency and doubles the throughput. That is horizontal scaling, and it is also why "latency" is a metric an autoscaler can watch: it falls as you add copies.
+
+### 3. The scale decision, by hand and by script
+
+Take the numbers from step 2: one worker is about 20 requests a second. Set a target of 70 percent utilization, so there is headroom. Suppose 90 requests a second arrive and you have 2 workers (capacity 40):
+
+- utilization = 90 / 40 = 2.25
+- ratio = 2.25 / 0.70 = 3.21
+- desired = ceil(2 x 3.21) = ceil(6.43) = **7**
+
+Check yourself with 6 workers and the same 90 requests: 90 / 120 = 0.75, ratio 1.07, inside the 0.10 tolerance, so no change. Now set a maximum of 6 and the 7 becomes 6. That is the cap doing its job.
+
+Save as `scaler.py`. It replays one load value per 15-second tick, makes this decision at every tick, and runs the same trace twice: with no stabilization window and with a window of 4 ticks (one minute) on scale-down.
+
+```python
+import math
+
+PER_WORKER = 20      # requests/s one worker handles (measured above)
+TARGET = 0.70        # keep average utilization near 70 percent
+TOLERANCE = 0.10     # skip the change if the ratio is within 10 percent of 1.0
+MIN_W, MAX_W = 1, 6  # the cap: never above 6, however high the load goes
+LOAD = [20, 20, 90, 90, 90, 90, 40, 90, 40, 90, 40, 40, 40, 40, 40, 40, 40]  # requests/s, one value per 15 s tick
+
+
+def run(window):
+    workers, history = 2, []
+    print(f"stabilization window = {window} ticks, cap = {MAX_W}")
+    print("tick  load  workers  util   desired  action")
+    changes = 0
+    for tick, load in enumerate(LOAD):
+        util = load / (workers * PER_WORKER)
+        ratio = util / TARGET
+        raw = math.ceil(workers * ratio)
+        history.append(raw)
+        # scale down only to the highest desired value seen in the window
+        desired = max(history[-(window + 1):]) if raw < workers else raw
+        desired = max(MIN_W, min(MAX_W, desired))
+        if abs(ratio - 1.0) <= TOLERANCE:
+            desired = workers
+        action = "-" if desired == workers else f"{workers} -> {desired}"
+        print(f"{tick:>4}  {load:>4}  {workers:>7}  {util:>4.2f}  {desired:>7}  {action}")
+        if desired != workers:
+            changes += 1
+        workers = desired
+    print(f"scale changes: {changes}\n")
+
+
+for w in (0, 4):
+    run(w)
+```
+
+Run `python3 -I scaler.py`. What it printed on 2026-11-07, trimmed to the lines that matter:
+
+```text
+stabilization window = 0 ticks, cap = 6
+   2    90        2  2.25        6  2 -> 6
+   6    40        6  0.33        3  6 -> 3
+   7    90        3  1.50        6  3 -> 6
+   8    40        6  0.33        3  6 -> 3
+   9    90        3  1.50        6  3 -> 6
+  10    40        6  0.33        3  6 -> 3
+scale changes: 6
+
+stabilization window = 4 ticks, cap = 6
+   2    90        2  2.25        6  2 -> 6
+  14    40        6  0.33        3  6 -> 3
+scale changes: 2
+```
+
+(The full output also lists the ticks where nothing changed; run the script to see them. Tick 2 asks for 7 and the cap makes it 6.)
+
+With no window the service changes size six times in 17 ticks, bouncing between 3 and 6 as the load alternates 40 and 90: that is flapping. With a one-minute window it grows once and shrinks once, after the load has stayed low for the whole window. The price of the window is visible too: the service held 6 workers for eight ticks it did not strictly need (ticks 6 to 13, where the load was 40 or 90 and utilization was 0.33 or 0.75), which is the cost of not flapping. Change `window`, `TARGET` and `MAX_W` and see what the cap and the window each buy you.
+
+This is a toy. It has no start-up delay, no warmup, no health check and a perfectly accurate metric. A real autoscaler also has to guess when the metric lags the truth, which is where the vendors' cooldown and warmup settings come from.
+
+### 4. Clean up
+
+Stop the toy server (Ctrl-C). Nothing was installed and nothing was written beyond the three files you saved; delete them when done.
+
+## Checkpoint
+
+Without looking back: give one reason the web tier scales out more easily than the database; say what target tracking, step scaling and scheduled scaling each do; explain flapping and name two fixes; do the HPA arithmetic for 4 replicas at 150 percent of the target; say what a health check is for and why a shallow one is dangerous; explain why a missing maximum is a billing risk; say whether stage 3 autoscales and why that is a feature.
+
+## Common mistakes
+
+| Symptom or belief | What is really true | What to check |
+|---|---|---|
+| "Autoscaling makes it cheaper" | It makes it follow the load. A busy service scales to a bigger bill | The maximum and the budget alert |
+| "No maximum, so it can never run out of capacity" | Also no ceiling on the bill, and the dependencies behind it (a database) still have a fixed size | A maximum from the budget, and what the database can take |
+| Scaling on a metric that does not fall when you add copies | The scaler adds copies forever up to the maximum | Pick per-instance CPU or latency, not total requests |
+| "The health check passes, so it is fine" | It proves the check passes | What the check actually exercises |
+| Sessions or uploads kept on the instance | The next scale-in deletes them | Shared store and object storage |
+| "Scale in as fast as scale out" | The load often comes straight back | A longer window for scale-in |
+| "Our cooldown is long enough" with start-up slower than the cooldown | New copies are not ready when the next decision is made | Warmup and start-up time |
+| "I have one droplet, so I have autoscaling if I resize it" | Resizing one droplet by hand is manual vertical scaling | An autoscale pool or group is a separate resource with its own cost |
+
+## Claims register
+
+| Claim | Source | Status |
+|---|---|---|
+| HPA formula, 15-second sync period, 0.1 tolerance, 300 s default scale-down window, no scale-up window, "thrashing, or flapping", horizontal versus vertical wording, `minReplicas: 0` for object and external metrics only, Beta since v1.37 and on by default | [Kubernetes: Horizontal Pod Autoscaling](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/) | Read 2026-11-07 |
+| Auto Scaling group definition, min/max/desired, replace unhealthy instances, health sources, scheduled scaling | [EC2 Auto Scaling groups](https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-groups.html), [health checks](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html), [scheduled scaling](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-scheduled-scaling.html) | Read 2026-11-07 |
+| Target tracking at 50 percent CPU; step scaling on CloudWatch alarms | [Target tracking](https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html), [step and simple scaling](https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html) | Read 2026-11-07 |
+| Cooldown applies to simple scaling, AWS recommends against simple scaling, warmup for target tracking and step, scale-in blocked during warmup, 300 s deregistration | [Scaling cooldowns](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-scaling-cooldowns.html) | Read 2026-11-07 |
+| Lambda default 1,000 concurrent executions per Region | [Lambda concurrency](https://docs.aws.amazon.com/lambda/latest/dg/lambda-concurrency.html) | Read 2026-11-07 |
+| Azure autoscale is horizontal only, min and max in rules, 70/40 percent example, predictive autoscale for scale sets; Virtual Machine Scale Sets grow and shrink on demand or schedule | [Azure Monitor autoscale overview](https://learn.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-overview), [Virtual Machine Scale Sets overview](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/overview) | Read 2026-11-07 |
+| Google MIG autoscaler, initialization period "formerly known as cool down period", which metrics block scale to zero | [Autoscaling groups of instances](https://cloud.google.com/compute/docs/autoscaler) | Read 2026-11-07 |
+| Cloud Run removes idle instances; minimum instances keep some warm | [Cloud Run minimum instances](https://cloud.google.com/run/docs/configuring/min-instances) | Read 2026-11-07 |
+| Droplet autoscale pool: min, max, CPU and memory targets, `cooldown_minutes` default 10 | [DigitalOcean API reference: Droplet Autoscale Pools](https://docs.digitalocean.com/reference/api/reference/droplet-autoscale-pools/) | Read 2026-11-07 (page generated 6 Nov 2026) |
+| App Platform: manual, CPU-based and request-based autoscaling, `instance_count` 1 to 250, request-based `max_instance_count` 100, CPU-based needs a dedicated CPU plan, fixed vertical scaling only | [App Platform: scale apps](https://docs.digitalocean.com/products/app-platform/how-to/scale-app/) | Read 2026-11-07 |
+| Scale to Zero on App Platform: web services only, by request, billed at 10 percent when at zero | [App Platform: scale to zero](https://docs.digitalocean.com/products/app-platform/how-to/scale-to-zero/) | Read 2026-11-07 (page "last verified 13 Jul 2026", marked private) |
+| DOKS cluster autoscaler: node pools, minimum and maximum nodes, scales nodes only | [DOKS: enable cluster autoscaler](https://docs.digitalocean.com/products/kubernetes/how-to/autoscale/) | Read 2026-11-07 (page "last verified 29 Oct 2026") |
+| DigitalOcean load balancers remove failing droplets and re-add them | [Load balancer features](https://docs.digitalocean.com/products/networking/load-balancers/details/features/) | Read 2026-11-07 |
+| Cost gate allowlist, ceiling per phase, blind spots; stage 3 estimate and status | [CI, tests and the cost gate](CI-Tests-and-Cost-Gate.md), [Roadmap](Roadmap.md) | Read in this repo 2026-11-07 |
+| Load test table, the 7 and 6 decisions, 6 and 2 scale changes | One run each on Linux with Python 3.13.5, 2026-11-07 | Observed; yours differ |
+| Cold start lag, typical VM start time of minutes, 730 hours in a month, metrics server needed for CPU targets, scale to zero meaning no running cost (varies), the 75-minute and 30-minute estimates | General knowledge | **est.** |
+
+Not verified, plainly: any real autoscaler, group, pool or cluster; the Azure list of resources autoscale supports; AWS predictive scaling details; how any of the pages above read before 2026-11-07 or after; whether Scale to Zero is open to your account; the cost of any of it.
+
+Next: [How money works in the cloud](How-Money-Works-in-the-Cloud.md), then continue on the [Reading order](Reading-Order.md) page.
+
+<!-- BEGIN GENERATED PAGE NAV bottom: rewritten from docs/wiki/_nav.yaml by scripts/gen_wiki_nav.py; edit the manifest, not this block -->
+Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foundations) > Autoscaling and elasticity
+
+Previous: [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
+
+- OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
+- Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
+- Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
+- Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / **Autoscaling and elasticity**
+
+Related pages:
+
+- [Containers and Docker (optional)](Containers-and-Docker-Basics.md)
+- [How money works](How-Money-Works-in-the-Cloud.md)
+- [CI, tests and the cost gate](CI-Tests-and-Cost-Gate.md)
+- [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md)
+- [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- [Rate limiting at every layer](Rate-Limiting-at-Every-Layer.md)
+<!-- END GENERATED PAGE NAV bottom -->

+ 2 - 2
docs/wiki/Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md

@@ -1042,13 +1042,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / Next: [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / **Behind a CDN: real client IPs and OSI basics** / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/Build-and-Destroy-Stack-Per-Service.md

@@ -1266,13 +1266,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Spacelift from zero](Spacelift-From-Zero.md) / Next: [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / **Build and destroy: one stack per service** / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 3 - 2
docs/wiki/Contents.md

@@ -6,7 +6,7 @@ page does not match the manifest. -->
 
 > Unfamiliar word or acronym? The [Glossary](Glossary.md) defines it.
 
-Every page of this wiki appears here once (158 pages), grouped by theme, with a line on what it is for and who it is for. If you do not know where to begin, take the numbered core path; [Reading order](Reading-Order.md) has the same pages with time estimates and checkpoints, and [Start here if you are new](Start-Here-If-You-Are-New.md) is the gentlest first page.
+Every page of this wiki appears here once (159 pages), grouped by theme, with a line on what it is for and who it is for. If you do not know where to begin, take the numbered core path; [Reading order](Reading-Order.md) has the same pages with time estimates and checkpoints, and [Start here if you are new](Start-Here-If-You-Are-New.md) is the gentlest first page.
 
 Some pages carry a status marker, copied from the page's own banner:
 
@@ -20,7 +20,7 @@ A page with no marker has no such banner. It may still say what was and was not
 
 - [Start here](#start-here) (5)
 - [Core path: read in this order](#core-path-read-in-this-order) (21)
-- [Track 1: Foundations](#track-1-foundations) (28)
+- [Track 1: Foundations](#track-1-foundations) (29)
 - [Security tools and threat modeling](#security-tools-and-threat-modeling) (6)
 - [Track 2: Defend and detect](#track-2-defend-and-detect) (34)
 - [Track 3: Privacy, anonymity and cryptocurrency](#track-3-privacy-anonymity-and-cryptocurrency) (19)
@@ -96,6 +96,7 @@ A page with no marker has no such banner. It may still say what was and was not
 | 26 | [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) | Why plugins carry most of a WordPress site's risk, what to harden and what a web application firewall does; also why static sites often win. | learner |  |
 | 27 | [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) | A static and a dynamic site that look the same, how to tell them apart from outside with curl, page source and WhatWeb, what each leaks, and a career note on public work. | learner | draft |
 | 28 | [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) | The path from one web server to a scaled design, with caches, a CDN, a WAF and a pipeline, for engineers who run web fleets. | engineer |  |
+| 29 | [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md) | Horizontal and vertical scaling, target tracking, step and scheduled policies, cooldowns, flapping, stateless design, health checks, scale to zero, Kubernetes HPA, cost caps and a free local load test. | learner | draft |
 
 ## Security tools and threat modeling
 

+ 2 - 2
docs/wiki/DNS-Cloudflare-and-Hosting-Your-Own-Website.md

@@ -1003,13 +1003,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [How a web request works](How-a-Web-Request-Works.md) / Next: [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / **DNS, Cloudflare and hosting your own website** / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/Data-Formats-JSON-YAML-HCL.md

@@ -961,13 +961,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md) / Next: [OpenTofu from zero](OpenTofu-From-Zero.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: **Data formats: JSON, YAML, HCL** / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/Enterprise-Identity-SSO-SAML-OIDC.md

@@ -961,13 +961,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Secrets from day one](Secrets-From-Day-One.md) / Next: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / **Enterprise identity: SSO, SAML and OIDC**
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/Environments-and-Promotion-Dev-Staging-Production.md

@@ -222,13 +222,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / Next: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / **Environments and promotion**
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/First-Hour-on-a-New-System-Updates-and-Baseline.md

@@ -636,13 +636,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / Next: [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / **First hour on a new system** / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/Git-From-Zero.md

@@ -523,13 +523,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Next: [The terminal and your first script](Terminal-and-Your-First-Script.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: **Git from zero** / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 7 - 0
docs/wiki/Glossary.md

@@ -64,6 +64,7 @@ Every term the wiki uses, in plain language, with a pointer to the page that exp
 | **auto.tfvars** | A value file name (`*.auto.tfvars`) that OpenTofu loads by itself. The repository ignores it like any `*.tfvars`, and the committed example is deliberately not named this way. [Variables, tfvars and secrets](Variables-Tfvars-and-Secrets.md#why-tfvars-is-ignored-and-example-is-committed) |
 | **Autodeploy** | A Spacelift stack setting: when on, a plan with no policy warnings applies without a person pressing Confirm. This project leaves it off for every stack. [Spacelift from zero: the pieces](Spacelift-From-Zero.md#the-pieces-in-the-order-you-meet-them) |
 | **Automatic updates** | Software that installs updates on a schedule without anyone clicking, such as `unattended-upgrades` or `dnf-automatic`. Installed is not the same as on: check the setting and the timer. [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md#what-automatic-updates-means-system-by-system) |
+| **Autoscaling** | A loop that reads a metric, compares it with a target and changes how many copies of something run, inside a minimum and a maximum. Without the maximum it is an open-ended bill. [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md#scalable-and-elastic-are-different-words) |
 | **Availability** | One of the three security properties: the thing works and authorized people can use it when they need it. Lost to a dead disk, an outage, a flood of traffic, a lost key or ransomware. [The CIA triad: availability](The-CIA-Triad-Confidentiality-Integrity-Availability.md#availability) |
 | **Availability zone** | A separate location inside a region, so one building's failure does not take down everything. AWS names one as the region code plus a letter (`us-east-1a`); DigitalOcean speaks of datacenters. [Virtual machines, containers and cloud service models: regions and availability zones](Virtual-Machines-Containers-and-Cloud-Service-Models.md#regions-and-availability-zones) |
 | **Backend (state)** | Where OpenTofu keeps its state: a local file by default, or a shared store such as a bucket. Some backends lock the state during writes. [Plans, state, drift and recovery: remote state](Plans-State-Drift-and-Recovery.md#why-teams-use-remote-state) |
@@ -153,6 +154,7 @@ Every term the wiki uses, in plain language, with a pointer to the page that exp
 | **Control (security control)** | A specific safeguard with a statement of what it does, such as a change review or a log retention rule. Auditors test its design, its implementation and whether it operated. [GRC: controls and evidence](GRC-Governance-Risk-and-Compliance-in-Plain-Terms-Laws-Frameworks-and-Attestations.md#controls-and-evidence) |
 | **Controller** | Twingate's hosted coordinator: configuration, sign-in, signed ACLs. Never carries traffic. [Twingate: the four pieces](Twingate.md#the-four-pieces) |
 | **Controller and processor (privacy law)** | The controller decides why and how personal data is processed; the processor processes it on the controller's behalf under a contract. POPIA says responsible party and operator; the PIPL says personal information handler and entrusted person; PIPEDA makes the organization accountable for what a third party processes. [Privacy law: the same ideas under four names](Privacy-Law-Around-the-World-GDPR-PIPEDA-POPIA-and-PIPL-Compared-With-the-United-States.md#the-same-ideas-under-four-names) |
+| **Cooldown** | A wait after a scaling change before the next is allowed, so the metric can settle. Google now calls the idea the initialization period; AWS recommends target tracking with a warmup over cooldowns. [Autoscaling and elasticity: cooldowns, warmup and flapping](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md#cooldowns-warmup-and-flapping) |
 | **COPPA** | The Children's Online Privacy Protection Act of 1998: operators of sites directed to children, or that know they are collecting from one, need verifiable parental consent to collect personal information from a child under 13. The FTC enforces it. [US privacy law: the federal laws](US-Privacy-Law-No-General-Right-the-Patchwork-Data-Brokers-Social-Security-Numbers-and-License-Plate-Readers.md#the-federal-laws-and-the-ftc-in-one-table) |
 | **Correlation (privacy)** | Combining pieces of information that relate to one person, so that facts which were harmless apart identify them together (RFC 6973). Two visits through two different addresses are joined by a shared cookie, handle or fingerprint. [Privacy, security and anonymity: correlation](Privacy-Security-and-Anonymity-Three-Different-Things-and-Why-There-Is-No-Silver-Bullet.md#correlation-how-small-facts-become-one-identity) |
 | **Cost gate** | `scripts/cost_check.py`, which fails CI if planned spend exceeds the approved total or an unpriced paid resource appears. [How money works in the cloud](How-Money-Works-in-the-Cloud.md) |
@@ -309,6 +311,7 @@ Every term the wiki uses, in plain language, with a pointer to the page that exp
 | **HD wallet** | A hierarchical deterministic wallet: every key is derived from one seed, so one backup restores all of them. Defined by BIP32. [Wallets and key custody: derivation paths](Wallets-and-Key-Custody-Hot-and-Cold-Hardware-Wallets-Recovery-Shamir-and-Multisig.md#one-seed-many-coins-derivation-paths-and-how-wallets-differ) |
 | **HEAD / detached HEAD** | HEAD is git's name for where you are now, normally a branch. Detached means it points at one old commit, not a branch. [Git from zero: detached HEAD](Git-From-Zero.md#4-you-are-in-detached-head-state) |
 | **Headless client** | A Twingate client run without a person to sign in, using a service key, so an unattended host can reach the resources its service account holds. [Twingate service accounts in CAH](Twingate-Service-Accounts-in-CAH.md#what-a-service-account-is) |
+| **Health check** | A small request a load balancer or autoscaling group sends on a schedule to decide whether a copy may receive traffic or must be replaced. A shallow one reports healthy while the database behind it is down. [Autoscaling and elasticity: health checks](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md#health-checks-and-the-load-balancer) |
 | **HiddenServiceDir** | The torrc setting that names the directory where Tor keeps one onion service: its secret and public key files and its `hostname` file. Whoever holds the secret key file is that address, and there is no revocation. [Lab: publish a web server as an onion service and an I2P site, Step 2](Lab-Publish-a-Web-Server-as-a-Tor-Onion-Service-and-an-I2P-Site-Time-Boxed-and-Defensive.md#step-2-the-tor-onion-service) |
 | **High availability (HA)** | Designing so one failed part does not stop the service, usually by running two. [Zero trust at home: why two connectors](Zero-Trust-at-Home-Two-Connectors-and-Failover.md#why-two-connectors) |
 | **HIPAA** | The United States health-privacy law whose Security Rule (45 CFR Part 164) requires safeguards and a documented risk analysis for electronic protected health information. A separate breach notification rule sets a 60-day deadline. [GRC: HIPAA and HITECH](GRC-Governance-Risk-and-Compliance-in-Plain-Terms-Laws-Frameworks-and-Attestations.md#laws-and-rules-you-will-meet-one-paragraph-each) |
@@ -320,6 +323,8 @@ Every term the wiki uses, in plain language, with a pointer to the page that exp
 | **Harvest now, decrypt later** | An attacker records encrypted traffic or files today, to read them once a quantum computer can break the public-key step that protected the keys. NIST names it as a main reason to plan the move to post-quantum cryptography. A system without forward secrecy cannot stop it. [Cryptography fundamentals: post-quantum planning](Cryptography-Fundamentals-Symmetric-Asymmetric-Hashing-Certificates-and-Keys.md#post-quantum-planning-as-far-as-nist-publishes-it); also [Radio and off-grid communication: encryption and privacy caveats](Radio-Off-Grid-Communication-LoRa-Meshtastic-Reticulum-Ham-and-SIGINT.md#encryption-and-privacy-caveats) |
 | **Honeypot fingerprinting** | A visitor's tests to decide whether a machine is a real system or an imitation: a default user name, banners that disagree, commands an imitation cannot answer. [Read what arrived](Deception-and-Honeypots-Read-the-Sensor-Logs.md#flip-the-board-how-a-visitor-spots-cowrie-and-how-you-harden-it) |
 | **Honeytoken** | One fake piece of data (a false record, a fake key, a fake account) that has no use except to be noticed when used. It needs no new server. [What deception is](Deception-and-Honeypots-What-Deception-Is.md#the-vocabulary) |
+| **Horizontal and vertical scaling** | Horizontal adds or removes copies of a service (scale out and in); vertical makes one copy bigger or smaller (scale up and down). Autoscalers are mostly horizontal. [Autoscaling and elasticity: horizontal and vertical](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md#horizontal-and-vertical) |
+| **Horizontal Pod Autoscaler (HPA)** | The Kubernetes controller that changes a workload's replica count by `ceil[current x (current metric / target metric)]`, with a 0.1 tolerance and a 300-second default scale-down window. It scales Pods, not machines. [Autoscaling and elasticity: Kubernetes](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md#kubernetes-the-horizontalpodautoscaler) |
 | **.htaccess** | A small per-folder configuration file that Apache can read on requests, if `AllowOverride` allows it. Nginx has no equivalent, so a rule kept there does nothing on Nginx. [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md#the-a-and-the-e-two-ways-to-serve-many-visitors) |
 | **Host-only network** | A virtual network that joins a virtual machine to the host and to other lab machines but has no route to the outside world. The usual home for a security lab. [Red and blue as yin and yang: a safe network for the lab](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md#a-safe-network-for-the-lab) |
 | **Hot list** | A list of vehicles of interest, such as stolen cars or missing persons, that a license plate reader compares each plate against to raise an alert. [US privacy law: license plate readers and Flock](US-Privacy-Law-No-General-Right-the-Patchwork-Data-Brokers-Social-Security-Numbers-and-License-Plate-Readers.md#what-an-automated-license-plate-reader-records) |
@@ -632,6 +637,7 @@ Every term the wiki uses, in plain language, with a pointer to the page that exp
 | **SASE / SSE** | Secure Access Service Edge / Security Service Edge. Vendor categories that bundle ZTNA with other network security services. [Small example: remote access](Small-Example-Enterprise-Landscape.md#remote-access-ztna-sse-and-the-vpn) |
 | **Save & test** | The button on a Grafana data source that saves it and runs one test of the connection. It shows the address, login and path worked once; it does not show the account is read-only or the TLS mode is strict. [Grafana basics: what Save & test proves](Grafana-Basics-From-a-Blank-Page.md#what-save--test-proves) |
 | **Saved plan** | A plan written to a file with `-out` and applied as that exact file, which is how pipelines make sure what was reviewed is what runs. [Plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md#saved-plans-and-why-ci-applies-the-file) |
+| **Scale to zero** | Letting an autoscaled service fall to no running copies when idle, at the price of a cold start on the next request. Support and billing differ by product. [Autoscaling and elasticity: scale to zero](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md#scale-to-zero) |
 | **Schema** | A description of what a valid document looks like: which names, which types, which values. Passing the syntax check does not prove a file matches its schema. [Data formats: reading, validating and converting](Data-Formats-JSON-YAML-HCL.md#reading-validating-and-converting) |
 | **SCIM** | System for Cross-domain Identity Management: a standard interface an identity provider uses to create, update and disable accounts and group memberships in other applications. [Enterprise identity](Enterprise-Identity-SSO-SAML-OIDC.md#scim-creating-and-removing-accounts-automatically) |
 | **Scope (engagement)** | The written list of what a test may touch and what is out of bounds. Not the same as a token scope. [Red and blue as yin and yang: ground rules](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md#ground-rules-before-any-tool) |
@@ -737,6 +743,7 @@ Every term the wiki uses, in plain language, with a pointer to the page that exp
 | **Tag (DigitalOcean)** | A label on a resource. Firewalls attach to tags, so a droplet is protected the moment it has one. [DigitalOcean network and firewalls: attach by tag](DigitalOcean-Network-and-Firewalls.md#attach-by-tag-at-creation) |
 | **Tag audit** | Listing everything that carries a tag to prove a teardown left nothing behind. It cannot find an untagged resource, so it is paired with a whole-account inventory and a cost report. [Build and destroy a bunch: tag everything](Build-and-Destroy-Stack-Per-Service.md#tag-everything-so-teardown-can-be-proven) |
 | **Tailgating** | Following an authorized person through a controlled door without authorization of your own; also called piggybacking. NIST's access control vestibule (two interlocking doors) is one fix; a person asking who you are is the other. [Privacy versus security: the physical side](Privacy-vs-Security-Blinds-and-Locks-Physical-Security-and-Monero.md#the-physical-side-of-security) |
+| **Target tracking** | A scaling policy where you pick a metric and a value (say 50 percent CPU) and the service works out how many copies hold it there. [Autoscaling and elasticity: target tracking](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md#target-tracking) |
 | **Targeting (-target)** | Restricting a plan or apply to part of the configuration. For exceptional cases only; it can leave unapplied changes behind. [Plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md#-target-a-last-resort) |
 | **Task (Spacelift)** | A one-off command run on a stack's worker, for example `tofu destroy -auto-approve`. Not a plan or an apply. [Spacelift from zero: destroy, then delete](Spacelift-From-Zero.md#exercise-10-destroy-then-delete-in-that-order) |
 | **TCP / UDP** (basics) | Two ways to send data to a port. TCP sets up a connection first (SSH, HTTPS); UDP just sends (DNS, time sync, Twingate peer-to-peer). [Networking basics: TCP and UDP](Networking-Basics-for-This-Project.md#tcp-and-udp) |

+ 2 - 2
docs/wiki/Hashing-Encryption-and-Keys.md

@@ -524,13 +524,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / Next: [Secrets from day one](Secrets-From-Day-One.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / **Hashing, encryption and keys** / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 1
docs/wiki/Home.md

@@ -27,7 +27,7 @@ If you only read one page, read [Why ZTNA and not a VPN](Why-ZTNA-Not-a-VPN.md):
 
 ## Every page, by theme
 
-All 158 pages of this wiki, grouped the way [Contents](Contents.md) groups them, with one line on what each is for. Pages marked draft, est. steps or unbuilt say so in their own banner; [Contents](Contents.md) explains the markers.
+All 159 pages of this wiki, grouped the way [Contents](Contents.md) groups them, with one line on what each is for. Pages marked draft, est. steps or unbuilt say so in their own banner; [Contents](Contents.md) explains the markers.
 
 ### Start here, by kind of reader
 
@@ -112,6 +112,7 @@ All 158 pages of this wiki, grouped the way [Contents](Contents.md) groups them,
 26. [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md): Why plugins carry most of a WordPress site's risk, what to harden and what a web application firewall does; also why static sites often win.
 27. [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) (draft): A static and a dynamic site that look the same, how to tell them apart from outside with curl, page source and WhatWeb, what each leaks, and a career note on public work.
 28. [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md): The path from one web server to a scaled design, with caches, a CDN, a WAF and a pipeline, for engineers who run web fleets.
+29. [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md) (draft): Horizontal and vertical scaling, target tracking, step and scheduled policies, cooldowns, flapping, stateless design, health checks, scale to zero, Kubernetes HPA, cost caps and a free local load test.
 
 ### Security tools and threat modeling
 

+ 2 - 2
docs/wiki/How-a-Web-Request-Works.md

@@ -740,13 +740,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md) / Next: [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: **How a web request works** / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/IPv6-Adoption-and-Handling-It-Safely.md

@@ -1065,13 +1065,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / Next: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / **IPv6 adoption and handling it safely**
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 3 - 3
docs/wiki/LAMP-and-LEMP-From-Zero.md

@@ -869,18 +869,18 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md) / Next: [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: **LAMP and LEMP from zero** / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: **LAMP and LEMP from zero** / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 
 - [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md)
 - [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 - [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md)
-- [Spacelift from zero](Spacelift-From-Zero.md)
 <!-- END GENERATED PAGE NAV bottom -->

+ 2 - 2
docs/wiki/Linux-for-Enterprise-Beginners.md

@@ -393,13 +393,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [The terminal and your first script](Terminal-and-Your-First-Script.md) / Next: [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / **Linux for enterprise beginners** / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/OpenTofu-From-Zero.md

@@ -1081,13 +1081,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / Next: [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / **OpenTofu from zero** / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/Patch-Management-and-Automatic-Security-Updates.md

@@ -412,13 +412,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / Next: [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / **Patch management and automatic security updates** / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/Plans-State-Drift-and-Recovery.md

@@ -1401,13 +1401,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [OpenTofu from zero](OpenTofu-From-Zero.md) / Next: [Spacelift from zero](Spacelift-From-Zero.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / **OpenTofu plans, state, drift and recovery** / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 1 - 0
docs/wiki/Reading-Order.md

@@ -253,6 +253,7 @@ Not a path. Open these when you need them; every one is linked from the sidebar.
 | [Business continuity and disaster recovery](Business-Continuity-and-Disaster-Recovery-BCP-and-DR.md) | You can take and restore a backup but "BCP", "DR", "BIA", "RTO per system", "pilot light" or "tabletop exercise" are only words to you, or you want to plan what comes back first when something big breaks. A foundations side page read after [Backups, recovery and patching](Backups-Recovery-and-Patching.md); no step is renumbered. About two hours of reading and paper exercises plus a 45 to 60 minute tabletop (est.); unverified draft, written from reading; not counted in the path totals. |
 | [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) | A lesson says "in a virtual machine" or "on a Linux host" and you do not have one, or "type 1", "KVM", "Proxmox" or the VMware licensing changes are only words to you. A foundations side page for any point after [The terminal and your first script](Terminal-and-Your-First-Script.md); no step is renumbered. About 90 minutes with the free lab (est.); unverified draft; not counted in the path totals. |
 | [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) | A virtual machine, a container and a "managed service" blur together, or IaaS, PaaS, SaaS, hypervisor or availability zone are only words to you. A foundations side page to [Containers and Docker basics](Containers-and-Docker-Basics.md); read it after that page and [What is the cloud](What-Is-the-Cloud.md), before [How money works in the cloud](How-Money-Works-in-the-Cloud.md); no step is renumbered. About two hours with the free lab (est.); the optional own-account path adds about 45 minutes (est.); not counted in the path totals. |
+| [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md) | "Autoscaling", "scale out", "cooldown", "flapping", "health check", "scale to zero" or "HPA" are only words to you, or you want to know why stage 3 is one droplet and what would change if it were not. A foundations side page read after [Containers and Docker basics](Containers-and-Docker-Basics.md) and [How money works in the cloud](How-Money-Works-in-the-Cloud.md); no step is renumbered. About 75 minutes with the free local load test (est.); unverified draft; not counted in the path totals. |
 | [Logs, SIEM and detection basics](Logs-SIEM-and-Detection-Basics.md) | "Log", "SIEM", "rule", "baseline" or "false positive" are only words to you, or you want to read an SSH log line and write a detection rule. A foundations side page to [Detection, Wazuh and the landscape](Detection-and-Monitoring-Wazuh-and-the-Landscape.md), read after [Droplet hardening](Droplet-Hardening.md) (core step 14) and before [Cloud telemetry: what and why](Cloud-Telemetry-What-and-Why.md); no step is renumbered. About an hour and a half with the free exercises on invented logs (est.); the optional own-account path is costed on the [Build your own mini SOC](Build-Your-Own-Mini-SOC.md) page; not counted in the path totals. |
 | [IDS and IPS: Snort and Suricata](IDS-and-IPS-Snort-and-Suricata.md) | "IDS", "IPS", "Snort", "Suricata" or "a signature" are only words to you, or you want to write one rule, see it alert, break it and tune it on a capture you build yourself. A foundations side page, read after [Logs, SIEM and detection basics](Logs-SIEM-and-Detection-Basics.md); offline, no live sniffing, no step is renumbered. About four hours with the free exercises (est.); not counted in the path totals. |
 | [Detecting and managing Tor, I2P and VPN traffic on a network: the defender's view](Detecting-and-Managing-Tor-I2P-and-VPN-on-a-Network-the-Defenders-View.md) | Someone asks whether your network can see Tor, I2P or a VPN, whether to block them, or what a match against a Tor list means. Where a network can watch, which signals are publicly documented and how weak each is, list matching in Suricata, a firewall log and a SIEM, false positives and misses, blocking as a policy choice, a detection as a lead, and a free script on synthetic logs. Page 7 of the VPN, Tor and I2P series, read after [IDS and IPS](IDS-and-IPS-Snort-and-Suricata.md) and [Wazuh SIEM and data pipelines](Wazuh-SIEM-and-Data-Pipelines.md); an unverified draft, written from reading. About 90 minutes with the exercise (est.); not counted in the path totals. |

+ 2 - 2
docs/wiki/Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md

@@ -607,13 +607,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / Next: [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / **Red and blue, and choosing your lab OS** / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/Secrets-From-Day-One.md

@@ -1160,13 +1160,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / Next: [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / **Secrets from day one** / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/Spacelift-From-Zero.md

@@ -656,13 +656,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / Next: [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / **Spacelift from zero** / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 3 - 3
docs/wiki/Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md

@@ -343,18 +343,18 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / Next: [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / **Static against dynamic: Hugo, WordPress and recon** / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / **Static against dynamic: Hugo, WordPress and recon** / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 
 - [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md)
+- [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 - [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
 - [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md)
-- [Spacelift from zero](Spacelift-From-Zero.md)
 <!-- END GENERATED PAGE NAV bottom -->

+ 2 - 2
docs/wiki/Subnets-NAT-and-Firewalls-By-Hand.md

@@ -1032,13 +1032,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / Next: [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / **Subnets, NAT and firewalls by hand** / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/Terminal-and-Your-First-Script.md

@@ -752,13 +752,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Git from zero](Git-From-Zero.md) / Next: [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / **The terminal and your first script** / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/Virtual-Machines-Containers-and-Cloud-Service-Models.md

@@ -612,13 +612,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / Next: [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / **Virtual machines, containers and cloud service models** / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md

@@ -425,13 +425,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / Next: [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / **Virtual machines and hypervisors: desktop to datacenter** / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 2 - 2
docs/wiki/Windows-Active-Directory-and-macOS-in-the-Enterprise.md

@@ -546,13 +546,13 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / Next: [How a web request works](How-a-Web-Request-Works.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / **Windows, Active Directory and macOS**
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 3 - 3
docs/wiki/WordPress-and-PHP-Security-WAF-and-Static-Sites.md

@@ -886,18 +886,18 @@ Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foun
 
 Previous: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / Next: [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / **WordPress and PHP security, WAFs and static sites** / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / **WordPress and PHP security, WAFs and static sites** / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 
 - [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 - [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
 - [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md)
-- [Spacelift from zero](Spacelift-From-Zero.md)
 <!-- END GENERATED PAGE NAV bottom -->

+ 4 - 4
docs/wiki/WordPress-at-Scale-CDN-WAF-and-CI.md

@@ -3,7 +3,7 @@
 <!-- BEGIN GENERATED PAGE NAV top: rewritten from docs/wiki/_nav.yaml by scripts/gen_wiki_nav.py; edit the manifest, not this block -->
 [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foundations) > WordPress at scale: CDN, WAF, caching and CI
 
-Previous: [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md)
+Previous: [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / Next: [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 <!-- END GENERATED PAGE NAV top -->
 
 <!-- BEGIN GENERATED PAGE CONTENTS: rewritten from the page's own headings by scripts/gen_wiki_nav.py; edit the headings, not this block -->
@@ -917,15 +917,15 @@ Next: [Reading order](Reading-Order.md), to choose the next page. Back to [From
 <!-- BEGIN GENERATED PAGE NAV bottom: rewritten from docs/wiki/_nav.yaml by scripts/gen_wiki_nav.py; edit the manifest, not this block -->
 Where you are: [Home](Home.md) > [Track 1: Foundations](Contents.md#track-1-foundations) > WordPress at scale: CDN, WAF, caching and CI
 
-Previous: [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md)
+Previous: [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / Next: [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
-In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 28 pages
+In this track: [Track 1: Foundations](Contents.md#track-1-foundations), 29 pages
 
 - OS and Linux, git and the terminal: [Git from zero](Git-From-Zero.md) / [The terminal and your first script](Terminal-and-Your-First-Script.md) / [Linux for enterprise beginners](Linux-for-Enterprise-Beginners.md) / [First hour on a new system](First-Hour-on-a-New-System-Updates-and-Baseline.md) / [Patch management and automatic security updates](Patch-Management-and-Automatic-Security-Updates.md) / [Red and blue, and choosing your lab OS](Red-and-Blue-Yin-and-Yang-and-Your-Lab-OS.md) / [Virtual machines and hypervisors: desktop to datacenter](Virtual-Machines-Hypervisors-Desktop-and-Datacenter-Options.md) / [Virtual machines, containers and cloud service models](Virtual-Machines-Containers-and-Cloud-Service-Models.md) / [Windows, Active Directory and macOS](Windows-Active-Directory-and-macOS-in-the-Enterprise.md)
 - Networking: [How a web request works](How-a-Web-Request-Works.md) / [DNS, Cloudflare and hosting your own website](DNS-Cloudflare-and-Hosting-Your-Own-Website.md) / [Subnets, NAT and firewalls by hand](Subnets-NAT-and-Firewalls-By-Hand.md) / [Behind a CDN: real client IPs and OSI basics](Behind-a-CDN-Real-Client-IPs-and-OSI-Basics.md) / [IPv6 adoption and handling it safely](IPv6-Adoption-and-Handling-It-Safely.md)
 - Identity and secrets: [APIs and tokens from zero](APIs-and-Tokens-From-Zero.md) / [Hashing, encryption and keys](Hashing-Encryption-and-Keys.md) / [Secrets from day one](Secrets-From-Day-One.md) / [Enterprise identity: SSO, SAML and OIDC](Enterprise-Identity-SSO-SAML-OIDC.md)
 - Infrastructure as code: [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) / [OpenTofu from zero](OpenTofu-From-Zero.md) / [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) / [Spacelift from zero](Spacelift-From-Zero.md) / [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md) / [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md)
-- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / **WordPress at scale: CDN, WAF, caching and CI**
+- Web hosting: [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) / [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) / [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) / **WordPress at scale: CDN, WAF, caching and CI** / [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md)
 
 Related pages:
 

+ 4 - 4
docs/wiki/_Sidebar.md

@@ -29,7 +29,7 @@ file does not match the manifest. -->
 21. [Roadmap](Roadmap.md)
 - [Full list (21)](Contents.md#core-path-read-in-this-order)
 </details>
-<details><summary><b>Track 1: Foundations</b> (28)</summary>
+<details><summary><b>Track 1: Foundations</b> (29)</summary>
 
 <details><summary>OS and Linux, git and the terminal (9)</summary>
 
@@ -51,13 +51,13 @@ file does not match the manifest. -->
 - [Data formats: JSON, YAML, HCL](Data-Formats-JSON-YAML-HCL.md) · [OpenTofu from zero](OpenTofu-From-Zero.md) · [OpenTofu plans, state, drift and recovery](Plans-State-Drift-and-Recovery.md) · [Spacelift from zero](Spacelift-From-Zero.md) · [Build and destroy: one stack per service](Build-and-Destroy-Stack-Per-Service.md)
 - [Environments and promotion](Environments-and-Promotion-Dev-Staging-Production.md) (unbuilt)
 </details>
-<details><summary>Web hosting (4)</summary>
+<details><summary>Web hosting (5)</summary>
 
 - [LAMP and LEMP from zero](LAMP-and-LEMP-From-Zero.md) · [WordPress and PHP security, WAFs and static sites](WordPress-and-PHP-Security-WAF-and-Static-Sites.md) · [Static against dynamic: Hugo, WordPress and recon](Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon.md) (draft)
-- [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md)
+- [WordPress at scale: CDN, WAF, caching and CI](WordPress-at-Scale-CDN-WAF-and-CI.md) · [Autoscaling and elasticity](Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps.md) (draft)
 </details>
 
-- [Full list (28)](Contents.md#track-1-foundations)
+- [Full list (29)](Contents.md#track-1-foundations)
 </details>
 <details><summary><b>Security tools and threat modeling</b> (6)</summary>
 

+ 1 - 0
docs/wiki/_nav.yaml

@@ -150,6 +150,7 @@ pages:
     - {page: WordPress-and-PHP-Security-WAF-and-Static-Sites, title: "WordPress and PHP security, WAFs and static sites", audience: "learner", subgroup: "Web hosting", desc: "Why plugins carry most of a WordPress site's risk, what to harden and what a web application firewall does; also why static sites often win."}
     - {page: Static-vs-Dynamic-Sites-Hugo-and-WordPress-and-Recon, title: "Static against dynamic: Hugo, WordPress and recon", audience: "learner", status: "draft", subgroup: "Web hosting", desc: "A static and a dynamic site that look the same, how to tell them apart from outside with curl, page source and WhatWeb, what each leaks, and a career note on public work."}
     - {page: WordPress-at-Scale-CDN-WAF-and-CI, title: "WordPress at scale: CDN, WAF, caching and CI", audience: "engineer", subgroup: "Web hosting", desc: "The path from one web server to a scaled design, with caches, a CDN, a WAF and a pipeline, for engineers who run web fleets."}
+    - {page: Autoscaling-and-Elasticity-Scale-Out-Targets-Cooldowns-and-Cost-Caps, related: [Containers-and-Docker-Basics, How-Money-Works-in-the-Cloud, CI-Tests-and-Cost-Gate, Virtual-Machines-Containers-and-Cloud-Service-Models, WordPress-at-Scale-CDN-WAF-and-CI, Rate-Limiting-at-Every-Layer], title: "Autoscaling and elasticity", audience: "learner", status: "draft", subgroup: "Web hosting", desc: "Horizontal and vertical scaling, target tracking, step and scheduled policies, cooldowns, flapping, stateless design, health checks, scale to zero, Kubernetes HPA, cost caps and a free local load test."}
   tools:
     - {page: Threats-in-Plain-Words, title: "Threats in plain words", audience: "learner", desc: "Vulnerabilities, exploits, phishing, malware and compliance told apart with real dated cases, for readers who meet these words as noise.", sidebar: true}
     - {page: Security-Tools-Basics-Nmap-OpenVAS-Burp-Metasploit, title: "Security tools: Nmap, OpenVAS, Burp, Metasploit", audience: "learner", desc: "The rules for using Nmap, OpenVAS, Wireshark, Burp, ZAP and Metasploit, and what each one is for, for learners in an isolated lab.", sidebar: true}