Managed Website Hosting
Distributed website infrastructure: caching, queues, SLOs, geographic latency and reproducible resilience testing.
Managed infrastructure is the system of compute nodes, networks, storage and operating processes that keeps a website available. For a search crawler, its output is observed as name resolution, connection setup, the HTTP response and the time taken to receive the document. For a visitor, JavaScript execution, loading dependencies and interacting with the interface are added on top. A good server response is therefore necessary but not sufficient for a good user experience.
Architecture and observable signals
Section titled “Architecture and observable signals”A typical chain: DNS → edge node/CDN → load balancer → application → database. A cache can complete a request before it reaches the application. Checking only the origin will not reveal a DNS, certificate or regional routing failure. The observation model should keep external availability checks separate from internal telemetry. Google SRE describes four main classes of signals: latency, traffic, errors and resource saturation [1].
| Layer | Observation | Diagnostic meaning |
|---|---|---|
| DNS and TLS | Resolution success, connection time | Whether a client can start a request |
| CDN | Hit ratio, object age | How often the origin is needed |
| Application | Latency quantiles and errors | Whether the useful operation is performed |
| Storage | Latency, queue, replication | Whether consistency is preserved |
| Region | External probes and real sessions | Whether the service is available to the target audience |
Caching and consistency
Section titled “Caching and consistency”HTTP caching is defined by RFC 9111: object freshness, validation, and request and response directives [2]. no-cache requires validation before reuse; no-store forbids storage within the semantics defined by the standard. A shared cache must not mix personalised responses. A product’s price or stock level needs a different policy from a versioned font file.
A simplified model of mean latency:
Here is the hit ratio, and and are the mean latencies of the respective paths. This is our own diagnostic model; the mean does not describe the slow tail. With , ms and ms, the mean is 112 ms. A cache change is also evaluated by the correctness of the content and by p95/p99.
Queues, load and the error budget
Section titled “Queues, load and the error budget”Little’s law links the mean number of requests in a stable system , the arrival rate and the mean time spent in the system [3]:
At 100 requests per second and 0.2 seconds per request, the mean number of requests being served at once is 20. The law does not promise stability under overload. Concurrency limits, backpressure and controlled retries are needed so that a temporary slowdown in a dependency does not trigger an avalanche of requests.
For a target success level , the error budget over eligible requests is:
where is the observed error rate and is the relative burn rate of the budget. With a 99.9% SLO and a million requests, a thousand errors are allowed in the chosen window. The definition of a successful request and of the window must be fixed in advance; the Google SRE example policy shows how the budget ties into decisions about releasing changes [4].
Answerwell’s research loop
Section titled “Answerwell’s research loop”Our own robots measure availability from target regions and replay crawler load profiles. Models forecast saturation, latency anomalies and the consequences of caching changes. Compute clusters are used for repeatable simulations and for training on the observation log. The grounds for the models and the data versions are recorded according to the general methodology.
Response time forecasts are tested on later periods and on new regions. A good average forecast error does not excuse systematic errors on rare incidents. Optimisation must take into account the correctness of the document, availability for people and robots, and the cost of resources, not a single CPU load figure.
Testing protocol
Section titled “Testing protocol”- Select the critical operations, regions, page templates and acceptable latencies.
- Measure cold and warm cache, mobile network, dependency failures and peak load.
- Test node failover, restoring from backup and data integrity; distinguish RTO — the recovery time — from RPO — the acceptable loss of changes.
- After a change, repeat a comparable load profile and the external probes. Present distributions, the number of observations and failed attempts.
Sources
Section titled “Sources”- Rob Ewaschuk; ed. Betsy Beyer. Monitoring Distributed Systems, Google SRE, 2016. Book chapter.
- R. Fielding, M. Nottingham, J. Reschke. RFC 9111: HTTP Caching, 2022. Specification.
- John D. C. Little. A Proof for the Queuing Formula: L = λW, 1961. Operations Research.
- Steven Thurgood. Example Error Budget Policy, Google SRE Workbook, 2018. Policy and worked example.
See also: regional performance, bot analytics.