Single-server capacity estimation

You can estimate whether the production stack fits on one VPS and identify which measurements must validate the plan before launch.

Learning outcomes

  • Estimate average and peak requests per second from an installed-app traffic model.
  • Budget CPU, memory and MySQL connections across the production services.
  • Calculate database growth, retained dump storage and approximate restore time.
  • Evaluate deployment interruption and the resource cost of gRPC server streams.
  • Compare planning assumptions with Docker, MySQL and k6 measurements.

The Week 7 production deployment puts Caddy, the Go API, the worker, MySQL, Redis and Redpanda on one server. Migrations and nightly backups also run there. Before treating that server as ready for users, you need to estimate whether its CPU, memory, connections and disk can support the workload.

The hard part is that the API is not the only process consuming resources. A busy MySQL restore competes with the API for CPU and disk. Redpanda retains messages while the worker processes them. A large number of open gRPC streams consumes memory even when clients are not receiving updates. You need to budget the complete machine, not only the Go binary.

The production stack

The production deployment uses compose.prod.yml. It runs Caddy, the API, the worker, MySQL, Redis, Redpanda, a one-shot migration service and a backup service. The services use restart: unless-stopped. Stateful services use named volumes so their data survives container replacement.

Only Caddy publishes ports to the internet: 80 and 443. It acts as the reverse proxy for the API. MySQL, Redis and Redpanda remain internal services. The API and worker are separate Go binaries. Their images use CGO_ENABLED=0 and a distroless runtime stage, so they do not carry a shell or general-purpose operating system tools.

The one-shot migration service applies schema changes before the API starts using the new schema. The backup service runs backup.sh nightly. That script writes a compressed dump from a consistent snapshot, keeps the newest KEEP dumps and points latest.sql.gz at the newest dump. restore-test.sh restores the latest dump into a fresh database rather than touching the live database.

These details affect the capacity model:

  • The API and worker have separate MySQL connection pools.
  • MySQL, Redis and Redpanda compete with the Go processes for the same CPU and memory.
  • The migration and backup services create additional work, even though they are not handling normal API requests.
  • Database data, Redpanda logs, container images and retained dumps all consume the same disk.
  • Caddy is the public entry point, but it does not remove the resource limits of the API behind it.

The Expo application runs on users' phones. Do not include its memory or CPU in the VPS budget. Its requests still contribute to the server's traffic and network load.

The capacity model

Capacity estimation is the process of predicting whether available infrastructure can support an expected workload. You need three inputs: expected traffic, measured application performance and the resources available on the server.

A capacity estimate is not a guarantee that the server can sustain a particular number of requests. It is a model whose assumptions you can compare with measurements.

For this deployment, assume the following VPS:

ResourceAvailable capacity
CPU2 virtual CPUs
RAM4 GB
Disk80 GB

The machine runs the complete production stack. That means two virtual CPUs are shared by database queries, cache operations, broker processing, API handlers, background jobs, proxying and operating-system work.

Start with traffic, then check the resources needed to serve that traffic.

Request volume and peak traffic

Requests per second (RPS) describes how many requests arrive or are processed in one second. Average RPS is useful for estimating daily demand, but it can hide the traffic concentration around lunch and dinner.

Use the installed-app funnel as a first estimate. Assume:

  • 5,000 installed applications.
  • 20 percent of installed users are daily active.
  • Each active user starts 2 sessions per day.
  • Each session generates 6 API requests.
  • Peak traffic is 5 times average traffic.

Daily active users are:

5,000 * 0.20 = 1,000 active users

Each active user generates:

2 sessions * 6 requests = 12 requests/day

Total daily requests:

1,000 * 12 = 12,000 requests/day

There are 86,400 seconds in a day, so average RPS is:

Average RPS = 12,000 / 86,400
            = 0.1389 RPS

Apply the peak factor of 5:

Peak RPS = 0.1389 * 5
         = 0.6945 RPS

The estimated peak is approximately 0.7 requests per second. This is a planning estimate, not a traffic measurement. Real traffic may be concentrated into shorter periods than the model assumes. Replace the peak factor with observed traffic patterns when production data becomes available.

Request concurrency

RPS does not tell you how many requests are being handled at the same time. Little's Law relates the arrival rate, average time in the system and average number of concurrent requests.

Average concurrency = arrival rate * average time in the system

For the estimated peak:

Average concurrency = 0.6945 * average response time in seconds

You cannot calculate a reliable concurrency figure without the average response time. The Week 6 k6 results include p95 latency below 250 ms for the tested workloads. Do not substitute p95 latency for average response time. They describe different points in the latency distribution.

This distinction matters when you size server resources. Ten requests arriving per second with short processing times can need fewer simultaneous request handlers than the same arrival rate with slow database queries.

It also matters for long-lived gRPC streams. A stream can remain open for minutes or hours, so its connection lifetime is not the same as an ordinary HTTP request's processing time.

The Week 6 measurements

The Week 6 k6 browse and order tests ran on a laptop. Those results are the only measured application throughput numbers available to you. They provide a useful comparison for the request model, but they are not measurements of the complete production stack on the 2-vCPU VPS.

The example measurements used here are:

WorkloadWeek 6 measured result
Cached browse reads800 RPS per CPU core
Order writes120 writes per second
Tested p95 latencyBelow 250 ms

The browse result is for a cached read workload. A request served from Redis does not have the same cost as one that reads multiple MySQL tables. The cache hit rate tells you what fraction of cache lookups avoid the underlying data source.

Cache hit rate = cache hits / total cache lookups

A high hit rate can reduce MySQL query volume, but it does not mean every API request is cheap. Cache misses still need database work. Cache invalidation and refresh operations also consume resources.

Compare the estimated peak with the cached browse result:

Measured browse capacity = 800 RPS per CPU core
Expected peak load        = 0.6945 RPS

Utilization = 0.6945 / 800 * 100
            = 0.0868%

The apparent headroom against that particular browse measurement is:

Headroom = 100 - 0.0868
         = 99.9132%

This comparison suggests that the assumed launch traffic is small relative to the laptop's cached browse result. It does not establish that the full VPS can serve 800 RPS per core. The laptop benchmark does not account for the CPU contention and disk activity of MySQL, Redis, Redpanda, the worker and Caddy running together.

Do not multiply the per-core result by two and call the answer the VPS capacity. The other services also need CPU time. The complete machine must be tested under a representative workload.

Order write throughput

Order creation is a different workload. It validates input, checks prices and availability, writes database records and creates the corresponding outbox work. Its costs include database writes and transaction processing.

Assume 600 orders per day. Average order creation rate:

Average order writes = 600 / 86,400
                     = 0.00694 writes/second

Apply the same peak factor:

Peak order writes = 0.00694 * 5
                  = 0.03472 writes/second

Compare this with the measured 120 order writes per second:

Write utilization = 0.03472 / 120 * 100
                  = 0.0289%

Write throughput describes how many database writes the system completes per second while maintaining acceptable latency. The comparison suggests substantial apparent headroom for the assumed order volume, but it does not account for every write in the system.

Rider location updates, order status transitions, outbox records, event processing and unrelated application operations also consume resources. A real workload can therefore place more pressure on MySQL and Redpanda than the order creation rate alone suggests.

CPU allocation

The VPS has two virtual CPUs. All production services share them, so CPU demand depends on which operations are running at the same time.

ServiceMain CPU work
CaddyTLS handling and reverse proxying
APIHTTP handlers, gRPC handlers and application logic
WorkerOutbox relay and message processing
MySQLQuery execution, transaction processing and index work
RedisCommands, data access and any persistence work
RedpandaMessage handling, log writes and broker maintenance
Migration serviceSchema changes and index creation
Backup serviceDatabase dump and compression

The API and worker are separate processes. Their CPU use can rise independently. The same is true for MySQL and Redpanda. A busy worker can consume CPU while the API is serving requests. A backup can add compression work while MySQL is already processing queries.

There is no measured per-service CPU allocation in the supplied data. Do not invent a fixed percentage for each container and treat it as a proven limit. Use the workload model to identify likely contention, then observe each container under load.

For example, a high API CPU reading may point to application processing, but it can also be caused by excessive serialization or a large number of active streams. High MySQL CPU during an order test suggests database work is competing with request handling. Redpanda CPU and disk activity should be observed while the worker catches up with queued messages.

The docker stats command gives you a starting point for these comparisons. A single reading while the machine is idle does not tell you how much CPU the stack can sustain.

Memory budget

Memory is often the first resource underestimated when several services share a small server. Start with a planning allocation for each major process.

The following values are illustrative planning allocations in GB. They are not measured production consumption.

ResourcePlanning allocation
Operating system and Docker overhead0.70
MySQL InnoDB buffer pool0.80
Redis maxmemory0.25
Redpanda0.30
Go API and worker combined0.30
Caddy0.05
Total2.40

The total is:

0.70 + 0.80 + 0.25 + 0.30 + 0.30 + 0.05
= 2.40 GB

The nominal unused memory is:

4.00 - 2.40 = 1.60 GB

The unused fraction is:

1.60 / 4.00 * 100 = 40%

Capacity headroom is the fraction of available capacity left unused at the expected peak workload. This first-pass budget leaves a nominal 40 percent memory reserve.

Treat that number as a planning result, not proof that 40 percent of RAM will remain free. The MySQL value describes the InnoDB buffer pool, not every allocation in the MySQL process. Redis maxmemory limits its data memory, not all of its process memory. Allocator overhead, client buffers, temporary tables, Go runtime allocations and Redpanda operational overhead also consume RAM.

The 1.60 GB reserve must absorb those additional allocations, transient work from the migration and backup services, and differences between the planning assumptions and actual usage.

Container memory limits

A container memory limit caps the total memory available to that container. It is not interchangeable with an internal setting such as Redis maxmemory or the MySQL buffer pool size.

For example, setting Redis maxmemory to 0.25 GB does not guarantee that the Redis process stays below 0.25 GB. The process needs room for memory outside the dataset. MySQL also needs memory for connections, temporary tables and internal structures beyond the buffer pool.

The same applies to the Go processes. Their memory usage changes with request volume, message processing and open streams. A combined 0.30 GB planning budget for the API and worker must be checked against their actual separate process usage.

The values in the planning table are not enough to derive safe mem_limit values for every container. Set container limits above the required internal allocations, then validate them using observed peak memory. A limit that is too low can cause a container to be killed under load even while the host appears to have spare RAM.

A reasonable initial planning target is to retain 30 to 40 percent headroom at expected peak load. The exact target depends on workload variation and how quickly you can recover from resource pressure. A server that normally reaches 98 percent memory utilization has little room for a backup, a traffic spike or a container restart.

MySQL connection budget

MySQL has a finite connection limit. Each Go process can maintain its own pool, and operational processes also need connections.

Assume the MySQL configuration uses:

max_connections = 50

Allocate the planned connection budget as follows:

ProcessPlanned connections
API20
Worker10
Migration process5
Backup process2
Administrative access3
Total planned40

The calculation is:

20 + 10 + 5 + 2 + 3 = 40

Remaining connections:

50 - 40 = 10 connections

The budget leaves 20 percent of the configured maximum unused.

Connection pool sizing is the process of choosing pool limits that let the application use MySQL without exhausting the server's available connections. The API and worker belong to the same Go module, but they are separate binaries and do not share a process-level pool.

The API pool is bounded by DB_MAX_OPEN_CONNS, introduced in Week 6. In this planning example, its maximum must not exceed the API's allocation of 20 connections. The worker needs its own limit. The migration and backup processes need to be included because they connect to the same database.

A pool maximum is a ceiling, not a target that every process should fill immediately. The total number of open connections depends on active work and idle pool connections.

Restart behaviour

A restart storm can temporarily increase connection demand. Imagine the API and worker restarting while their old processes are still shutting down. New processes may begin creating pools while old connections remain active for a short period.

Multiple replicas can increase the total further. If three API replicas each have a maximum of 20 connections, they can collectively request up to 60 connections before accounting for the worker or operational processes. That exceeds the assumed MySQL limit of 50.

Use graceful shutdown and context timeouts so old processes release resources. Watch active and idle connections rather than relying only on configured pool maxima.

Disk storage

The 80 GB disk stores more than the live MySQL database. It also holds Redpanda logs, compressed dumps, container images, application logs and temporary files used during operations.

Storage estimation means predicting data growth and the disk space needed to keep that data available. Start with the order workload because it gives you a concrete growth estimate.

Assume:

  • 600 orders per day.
  • An order row, its lines and associated events occupy approximately 2 KB.
  • Outbox and additional event rows occupy another 1 KB per order.

The estimated storage per order is:

2 KB + 1 KB = 3 KB

Daily database growth from these records:

600 * 3 KB = 1,800 KB
             = 1.8 MB/day

Seven days of growth:

1.8 MB * 7 = 12.6 MB

This is only the growth attributable to the assumed order workload. Restaurant data, menus, indexes, metadata and other tables contribute to the full database size.

Database and dump storage

Assume the existing database occupies 1 GB at launch. For this estimate, use 1 GB as 1,000 MB.

After seven days:

Live database size = 1,000 MB + (7 * 1.8 MB)
                   = 1,012.6 MB

Assume a compressed mysqldump occupies approximately 25 percent of the on-disk database size. This compression ratio is a planning assumption. Measure the actual dump size because the result depends on the data.

The first nightly dump is estimated at:

1,000 MB * 0.25 = 250 MB

The seventh nightly dump is estimated at:

1,012.6 MB * 0.25 = 253.15 MB

For a seven-dump retention policy, use the largest estimated dump size for all seven files:

Seven dumps = 7 * 253.15 MB
            = 1,772.05 MB
            = approximately 1.77 GB

Include the live database:

Live data + seven dumps
= 1,012.6 + 1,772.05
= 2,784.65 MB

Add 20 percent headroom:

Required space = 2,784.65 * 1.20
               = 3,341.58 MB
               = approximately 3.35 GB

This estimates the space for the live database and seven compressed dumps, with 20 percent headroom. It does not include Redpanda logs, container images, application logs, temporary restore files or unrelated data.

The backup service runs backup.sh nightly. It writes a timestamped zomato-*.sql.gz file from a consistent snapshot. It points latest.sql.gz at the newest dump and retains only the newest KEEP files. The pointer to the newest dump is not another full copy of the dump, so do not count it as a separate backup file.

Redpanda log storage

Redpanda also uses disk. Its log storage depends on how many messages the application produces, how large those messages are and how long the broker retains them.

The supplied workload model does not specify an average encoded event size or a Redpanda retention period. You therefore cannot produce a defensible numeric disk estimate for Redpanda from the order count alone.

Start with the message workload:

Daily message bytes = messages per day * average encoded message size

Retained log bytes = daily message bytes * retention days

Use actual event volume, encoded message sizes and configured retention when filling in those values. Include broker storage overhead in the final disk budget. A high consumer lag can also indicate that messages are accumulating faster than the worker processes them. That is a processing problem and can become a storage problem when retained logs continue to grow.

The complete disk estimate needs to account for:

Live MySQL data
+ retained compressed dumps
+ Redpanda retained logs
+ container images and application logs
+ temporary restore-test data
+ operating-system and filesystem reserve

The 80 GB disk is much larger than the estimated 3.35 GB for live database data and seven dumps at launch. That comparison alone does not prove the complete deployment fits. Redpanda retention, image storage, logs and temporary restore space still need explicit budgets.

Backup and restore time

A successful dump command does not prove that you can recover the application. The restore test must load the latest dump into a fresh database and confirm that restored data exists.

Assume the effective restore throughput is 50 MB per second. Use the 1,012.6 MB uncompressed database size for a simple lower-bound calculation:

Restore time = 1,012.6 MB / 50 MB/s
             = 20.252 seconds

The estimated data-processing time is approximately 20 seconds. It is not a measured recovery time.

A real restore also needs time to start MySQL, read and decompress the dump, execute SQL statements, rebuild indexes and make the database ready for the API. The test database may also need initialization and cleanup. Measure the full procedure rather than treating the division as the final result.

As the database grows, the simple estimate changes with its size:

Estimated restore seconds = database size in MB / measured MB per second

Re-run the restore test as the data grows. The throughput can change as the database becomes larger or the disk becomes busier. A restore test performed against a small launch database does not establish recovery time for a much larger database.

Recovery objectives

Recovery time objective (RTO) is the maximum acceptable time between a service failure and the application becoming operational again.

Assume an RTO of one hour. The complete recovery procedure must finish within 60 minutes. That includes provisioning or preparing the replacement database, restoring the dump, checking application connectivity and making the API available.

The recovery point objective (RPO) describes how much recent data the system can afford to lose, measured as time. With one successful nightly backup every 24 hours, the assumed RPO is 24 hours.

For example, if the latest successful backup was taken at midnight and the database fails at 11 PM, the restored data may be missing up to 23 hours of changes.

RTO and RPO describe different limits. A theoretical 20-second restore does not mean the application has a 20-second RTO. A one-hour RTO does not protect recent writes from being lost.

The restore-test.sh script should exercise the real restore path. It loads the latest dump into a fresh database, never touches the live database, cleans up after itself and fails when there is no backup or the restored table is empty. Record the complete restore duration so the RTO estimate has evidence behind it.

Deployment interruption

A single-instance deployment has no second API container ready to serve requests while the existing container is replaced. You therefore need a deploy downtime budget, the amount of interruption the deployment can introduce.

Assume pulling a new image takes 20 seconds and starting replacement containers takes another 10 seconds.

The order of operations matters. When you pull the new image before replacing the running container, the 20-second pull happens while the old container can still serve traffic. It is deployment preparation, not automatically 20 seconds of downtime.

The simplified replacement gap from the supplied startup assumption is:

Image pull before replacement = 20 seconds
Replacement startup           = 10 seconds

Minimum modeled interruption  = 10 seconds

The 10 seconds does not include an unknown shutdown delay or the time needed for readiness checks. Measure the actual interval during deployment. Do not add the image pull time to the outage unless the deployment process stops the old service before pulling the image.

Using the earlier average RPS:

Average RPS = 0.1389
Interruption = 10 seconds

Expected arrivals = 0.1389 * 10
                  = 1.389

Approximately 1 to 2 requests may arrive during the modeled average-traffic interruption.

At peak traffic:

Peak RPS = 0.6945
Interruption = 10 seconds

Expected arrivals = 0.6945 * 10
                  = 6.945

Approximately 7 requests may arrive during the modeled peak interruption.

These are expected arrival counts, not guaranteed failed-request counts. Actual traffic is discrete, and the timing of the replacement affects the result.

Readiness and retries

A running container is not necessarily ready to accept traffic. The production stack distinguishes liveness from readiness. /healthz provides a liveness response without checking dependencies. /readyz checks whether the application can serve requests and reports failing dependencies without leaking their error text.

Caddy uses readiness to health-check the API. That helps detect an API that has started but cannot serve requests. It does not create another API instance, so it does not remove the single-instance replacement gap.

Client retries can help recover from temporary failures, but retrying order creation without protection can create duplicates. The existing order API uses an idempotency key to identify a logical order operation. A retry with the same key can return the existing result rather than creating another order.

A single-instance deployment can be acceptable for a small launch when the interruption is understood and the business accepts it. A team that needs continuous availability would normally run multiple API instances behind a load balancer. That requires migrations to remain compatible with both the old and new application versions while the deployment is in progress.

gRPC stream capacity

The API also exposes the gRPC service. Its WatchOrder method can keep a connection open while the server sends multiple order updates to a client. This is server streaming RPC.

An ordinary request-response call finishes after the response. A server stream stays open and sends messages over the same RPC. The open stream consumes resources even when no update is currently being sent.

Assume each open stream uses 20 KB for its goroutine, buffers and HTTP/2 state. For 10,000 open watchers:

10,000 * 20 KB = 200,000 KB
                = approximately 200 MB

This is a simplified planning estimate. Actual memory depends on Go stack growth, HTTP/2 state, message buffers, TLS, connection management and application state.

Compare the estimated stream memory with the Go API and worker planning allocation of 0.30 GB. A 200 MB stream estimate would consume a large part of that combined budget before accounting for other Go work. The estimate needs validation with actual concurrent streams.

The number of open streams is not the same as the number of events sent per second. Consider a separate event fan-out example with 500 active orders. Assume each active order produces one location or status event every five seconds:

Event production rate = 500 orders / 5 seconds
                      = 100 events/second

If each order has two watching clients on average:

Event deliveries = 100 events/second * 2 watchers
                 = 200 event deliveries/second

The 10,000-stream memory scenario and the 200-delivery event scenario are separate planning examples. The latter assumes two watchers per active order. Do not combine the two into one watcher population without checking that the assumptions describe the same clients.

Stream payload and fan-out

The payload budget describes how much data the API sends and how frequently it sends it. With 200 event deliveries per second, network demand depends on the average encoded event size:

Outgoing bytes per second = deliveries per second * average payload bytes

The event size is not specified here, so a numeric bandwidth estimate would be invented. Measure actual serialized messages and include protocol overhead when checking network use.

Slow clients can also accumulate buffered messages. A stream that sends faster than a client reads can consume more memory over time. Set sensible buffer limits and define what happens when a client cannot keep up.

Broker and database pressure

Stream updates can create work beyond the Go API. The API may need to authorize a watcher or look up order state. The worker may need to relay messages. Redpanda stores messages while the worker processes them.

If messages arrive faster than the worker can process them, consumer lag grows. A rising lag means the worker group is falling behind the produced messages. Monitor it alongside broker disk usage and worker CPU.

The likely bottleneck depends on the workload:

  • CPU contention: MySQL, Redpanda, API handlers and the worker compete for two virtual CPUs.
  • Memory pressure: MySQL, Redis, Redpanda and Go processes compete with the operating system for 4 GB.
  • Network usage: Frequent updates sent to many watchers increase outgoing traffic.
  • Database activity: Stream setup, authorization and location lookups can add query load.
  • Slow clients: Buffered messages can increase memory use.
  • Broker pressure: Consumer lag can grow when the worker cannot keep up.

The first bottleneck is not fixed by the server specification alone. CPU and disk contention between MySQL and Redpanda are candidates on this deployment. At high watcher counts, stream memory and network fan-out can also become significant.

Start by measuring. Filter each stream to its authorized order, avoid unnecessary database queries when an event already contains the required data, and prevent slow clients from accumulating unlimited pending messages. Separate the database or broker onto other resources when the complete stack can no longer meet its latency and error-rate requirements.

Validating the capacity estimate

The estimate is a hypothesis. The local Docker Compose deployment lets you test whether the assumptions describe the complete stack.

Start the development stack and inspect the containers:

bash
docker compose up -d
docker stats

Observe CPU, memory, network and block I/O while idle and while generating traffic. Compare each service's resource usage with the planning budget. A low idle reading does not establish peak capacity.

Use MySQL status values to check connection use:

sql
SHOW VARIABLES LIKE 'max_connections';

SHOW STATUS LIKE 'Threads_connected';

SHOW STATUS LIKE 'Max_used_connections';

Threads_connected reports the current number of connected clients. Max_used_connections reports the highest simultaneous connection count since the server started.

Compare those values with the planned total of 40 connections and the configured maximum of 50. If the database approaches the limit, inspect API and worker pool settings, idle connections, slow requests and restart behaviour.

Run the Week 6 k6 browse and order tests against the complete local Compose stack. The laptop results provide a reference, but the complete stack has different resource contention.

Test the workloads separately and together:

  • Browse requests: Compare successful RPS and p95 latency with the Week 6 cached browse result.
  • Order creation: Compare successful writes per second with the Week 6 order result.
  • Mixed traffic: Combine browse requests, order creation and background processing.
  • Stream traffic: Open multiple WatchOrder streams and observe memory, CPU and network use.
  • Restart behaviour: Replace containers while requests are running and record failed requests, retries and the actual interruption.
  • Backup and restore: Run the nightly dump path and restore test. Record dump size and complete restore duration.

Record throughput, p95 latency, error rate, CPU, memory, connection counts and disk usage. Keep the request mix with the results. A maximum RPS number without the workload and latency is not a useful capacity limit.

A useful capacity result is the maximum sustainable load at which the application still meets its latency and error-rate requirements. If CPU reaches saturation before the expected traffic target, investigate which process consumes the time. If memory grows continuously during streaming, inspect buffers and stream lifecycle management. If MySQL connections approach 50, revisit pool allocation. If disk usage grows faster than the database estimate, include Redpanda retention, images, logs and temporary files in the storage model.

Capacity decision

For the Week 7 production stack, the estimate gives you a starting point rather than a launch guarantee. The example traffic model produces approximately 0.139 average RPS and 0.6945 peak RPS. The memory allocation has a nominal 40 percent reserve, and the planned MySQL connections use 40 of the configured 50. Seven compressed database dumps, live data and 20 percent headroom account for approximately 3.35 GB, before Redpanda logs and other disk use.

The laptop k6 measurements cannot certify the capacity of the production VPS. The final decision depends on measurements from the complete stack, including the worker, broker, database, backup and gRPC workloads.

Keep the assumptions next to the measurements. Update the traffic model as real usage changes, measure dump and restore time as data grows, and revisit resource limits when the workload changes. Week 8's final capacity validation should use the evidence from the complete system rather than treating the original estimate as a permanent limit.

Check your understanding

Question 1 of 4

The VPS has 4 GB of RAM. The first-pass planning allocations total 2.4 GB. What is the nominal unused memory fraction?

Pick an answer, then say how sure you are.

References

Everything above is explained on this page; these are where it comes from (Docker Compose, Go, MySQL).

Finished Lesson 7.14?

Single-server capacity

1 items

  • 7.14Single-server capacity estimationnot completed

Release safety extensions

Up next · Module 6 · 4 items · about 2 h 45 min

Start module 6