оценка 4

This commit is contained in:
2026-10-23 16:20:43 +03:00
parent 34618bd423
commit 5300a1a1e0
18 changed files with 1861 additions and 29 deletions
+39
View File
@@ -0,0 +1,39 @@
# Lab 3 grade-4 experiment
Generated: 2026-10-23T12:31:12.749687+00:00.
## Method
- concurrency: 8;
- baseline duration: 12 s;
- load: closed-loop POST messages through Nginx;
- failover: both original API containers stopped and restored in turn;
- rolling update: one surge replica, old replicas replaced one by one;
- percentiles cover successful responses; failures are separate.
## Results
| Phase | RPS | Errors | p50 ms | p95 ms | p99 ms | Recovery s |
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
| baseline | 319.463 | 0 (0.000%) | 16.799 | 55.515 | 93.803 | n/a |
| failover-1 | 301.04 | 1 (0.022%) | 17.145 | 69.558 | 89.752 | 3.464 |
| failover-2 | 374.449 | 0 (0.000%) | 14.211 | 49.542 | 81.04 | 3.476 |
| rolling-update | 376.959 | 1 (0.005%) | 15.725 | 48.724 | 79.337 | n/a |
## Parallel idempotency
32 requests produced 1 unique message ID across 2 API instances.
## Graphs
![Throughput and errors](throughput-errors.svg)
![Latency](latency.svg)
![Timeline](timeline.svg)
![Resources](resources.svg)
## Scope
Single-host process failure and rolling replacement only. PostgreSQL and Nginx remain single points of failure.
+69
View File
@@ -0,0 +1,69 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1100" height="560" viewBox="0 0 1100 560">
<rect width="100%" height="100%" fill="#0e1013"/>
<style>
text { font-family: Inter, Segoe UI, sans-serif; fill: #eceef0; }
.title { font-size: 26px; font-weight: 650; }
.label { font-size: 14px; fill: #c8cbd0; }
.small { font-size: 12px; fill: #a2a5aa; }
.grid { stroke: #34373d; stroke-width: 1; }
.bar { fill: #cfd2d6; }
.bar2 { fill: #73777f; }
.line { fill: none; stroke: #f4f5f6; stroke-width: 3; }
.error { fill: #8f949c; stroke: #f4f5f6; stroke-width: 1; }
.event { stroke: #a2a5aa; stroke-width: 2; stroke-dasharray: 6 5; }
</style>
<text x="48" y="42" class="title">Grade 4: successful latency percentiles</text>
<line x1="80" y1="450.0" x2="1040" y2="450.0" class="grid"/>
<text x="68" y="454.0" text-anchor="end" class="small">0</text>
<line x1="80" y1="378.0" x2="1040" y2="378.0" class="grid"/>
<text x="68" y="382.0" text-anchor="end" class="small">19</text>
<line x1="80" y1="306.0" x2="1040" y2="306.0" class="grid"/>
<text x="68" y="310.0" text-anchor="end" class="small">38</text>
<line x1="80" y1="234.0" x2="1040" y2="234.0" class="grid"/>
<text x="68" y="238.0" text-anchor="end" class="small">56</text>
<line x1="80" y1="162.0" x2="1040" y2="162.0" class="grid"/>
<text x="68" y="166.0" text-anchor="end" class="small">75</text>
<line x1="80" y1="90.0" x2="1040" y2="90.0" class="grid"/>
<text x="68" y="94.0" text-anchor="end" class="small">94</text>
<rect x="128.0" y="385.5" width="42.0" height="64.5" rx="7" class="bar"/>
<text x="149.0" y="378.5" text-anchor="middle" class="small">17</text>
<text x="149.0" y="470" text-anchor="middle" class="small">p50</text>
<rect x="178.0" y="236.9" width="42.0" height="213.1" rx="7" class="bar2"/>
<text x="199.0" y="229.9" text-anchor="middle" class="small">56</text>
<text x="199.0" y="470" text-anchor="middle" class="small">p95</text>
<rect x="228.0" y="90.0" width="42.0" height="360.0" rx="7" class="bar2"/>
<text x="249.0" y="83.0" text-anchor="middle" class="small">94</text>
<text x="249.0" y="470" text-anchor="middle" class="small">p99</text>
<text x="200.0" y="498" text-anchor="middle" class="label">baseline</text>
<rect x="368.0" y="384.2" width="42.0" height="65.8" rx="7" class="bar"/>
<text x="389.0" y="377.2" text-anchor="middle" class="small">17</text>
<text x="389.0" y="470" text-anchor="middle" class="small">p50</text>
<rect x="418.0" y="183.0" width="42.0" height="267.0" rx="7" class="bar2"/>
<text x="439.0" y="176.0" text-anchor="middle" class="small">70</text>
<text x="439.0" y="470" text-anchor="middle" class="small">p95</text>
<rect x="468.0" y="105.5" width="42.0" height="344.5" rx="7" class="bar2"/>
<text x="489.0" y="98.5" text-anchor="middle" class="small">90</text>
<text x="489.0" y="470" text-anchor="middle" class="small">p99</text>
<text x="440.0" y="498" text-anchor="middle" class="label">failover-1</text>
<rect x="608.0" y="395.5" width="42.0" height="54.5" rx="7" class="bar"/>
<text x="629.0" y="388.5" text-anchor="middle" class="small">14</text>
<text x="629.0" y="470" text-anchor="middle" class="small">p50</text>
<rect x="658.0" y="259.9" width="42.0" height="190.1" rx="7" class="bar2"/>
<text x="679.0" y="252.9" text-anchor="middle" class="small">50</text>
<text x="679.0" y="470" text-anchor="middle" class="small">p95</text>
<rect x="708.0" y="139.0" width="42.0" height="311.0" rx="7" class="bar2"/>
<text x="729.0" y="132.0" text-anchor="middle" class="small">81</text>
<text x="729.0" y="470" text-anchor="middle" class="small">p99</text>
<text x="680.0" y="498" text-anchor="middle" class="label">failover-2</text>
<rect x="848.0" y="389.7" width="42.0" height="60.3" rx="7" class="bar"/>
<text x="869.0" y="382.7" text-anchor="middle" class="small">16</text>
<text x="869.0" y="470" text-anchor="middle" class="small">p50</text>
<rect x="898.0" y="263.0" width="42.0" height="187.0" rx="7" class="bar2"/>
<text x="919.0" y="256.0" text-anchor="middle" class="small">49</text>
<text x="919.0" y="470" text-anchor="middle" class="small">p95</text>
<rect x="948.0" y="145.5" width="42.0" height="304.5" rx="7" class="bar2"/>
<text x="969.0" y="138.5" text-anchor="middle" class="small">79</text>
<text x="969.0" y="470" text-anchor="middle" class="small">p99</text>
<text x="920.0" y="498" text-anchor="middle" class="label">rolling-update</text>
<text x="24" y="270.0" transform="rotate(-90 24 270.0)" class="label">Successful latency, ms</text>
</svg>

After

Width:  |  Height:  |  Size: 4.4 KiB

+42
View File
@@ -0,0 +1,42 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1100" height="600" viewBox="0 0 1100 600">
<rect width="100%" height="100%" fill="#0e1013"/>
<style>
text { font-family: Inter, Segoe UI, sans-serif; fill: #eceef0; }
.title { font-size: 26px; font-weight: 650; }
.label { font-size: 14px; fill: #c8cbd0; }
.small { font-size: 12px; fill: #a2a5aa; }
.grid { stroke: #34373d; stroke-width: 1; }
.bar { fill: #cfd2d6; }
.bar2 { fill: #73777f; }
.line { fill: none; stroke: #f4f5f6; stroke-width: 3; }
.error { fill: #8f949c; stroke: #f4f5f6; stroke-width: 1; }
.event { stroke: #a2a5aa; stroke-width: 2; stroke-dasharray: 6 5; }
</style>
<text x="48" y="42" class="title">Grade 4: peak container resources</text>
<text x="80" y="72" class="label">Peak CPU, %</text>
<rect x="103.6" y="270.1" width="57.8" height="179.9" rx="9" class="bar"/>
<text x="132.5" y="262.1" text-anchor="middle" class="small">52.6</text>
<text x="132.5" y="475" text-anchor="middle" class="small">api</text>
<rect x="208.6" y="370.1" width="57.8" height="79.9" rx="9" class="bar"/>
<text x="237.5" y="362.1" text-anchor="middle" class="small">23.4</text>
<text x="237.5" y="475" text-anchor="middle" class="small">load-balancer</text>
<rect x="313.6" y="90.0" width="57.8" height="360.0" rx="9" class="bar"/>
<text x="342.5" y="82.0" text-anchor="middle" class="small">105.2</text>
<text x="342.5" y="475" text-anchor="middle" class="small">postgres</text>
<rect x="418.6" y="429.9" width="57.8" height="20.1" rx="9" class="bar"/>
<text x="447.5" y="421.9" text-anchor="middle" class="small">5.9</text>
<text x="447.5" y="475" text-anchor="middle" class="small">redis</text>
<text x="600" y="72" class="label">Peak memory, MiB</text>
<rect x="623.6" y="286.2" width="57.8" height="163.8" rx="9" class="bar"/>
<text x="652.5" y="278.2" text-anchor="middle" class="small">66.1</text>
<text x="652.5" y="475" text-anchor="middle" class="small">api</text>
<rect x="728.6" y="416.5" width="57.8" height="33.5" rx="9" class="bar"/>
<text x="757.5" y="408.5" text-anchor="middle" class="small">13.5</text>
<text x="757.5" y="475" text-anchor="middle" class="small">load-balancer</text>
<rect x="833.6" y="90.0" width="57.8" height="360.0" rx="9" class="bar"/>
<text x="862.5" y="82.0" text-anchor="middle" class="small">145.2</text>
<text x="862.5" y="475" text-anchor="middle" class="small">postgres</text>
<rect x="938.6" y="419.6" width="57.8" height="30.4" rx="9" class="bar"/>
<text x="967.5" y="411.6" text-anchor="middle" class="small">12.3</text>
<text x="967.5" y="475" text-anchor="middle" class="small">redis</text>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

+675
View File
@@ -0,0 +1,675 @@
{
"schema_version": 1,
"environment": {
"utc_started_at": "2026-10-23T12:31:12.749687+00:00",
"git_commit": "34618bd4237bbb8bf6a3a303056fc95d799577f9",
"working_tree_dirty": true,
"logical_cpu_count": 8,
"host_memory_mib": 3813.6,
"docker_engine": "29.7.2",
"docker_compose": "5.5.0",
"container_limits": [
{
"service": "api",
"nano_cpus": 500000000,
"memory_limit_bytes": 268435456
},
{
"service": "api",
"nano_cpus": 500000000,
"memory_limit_bytes": 268435456
},
{
"service": "load-balancer",
"nano_cpus": 250000000,
"memory_limit_bytes": 134217728
},
{
"service": "postgres",
"nano_cpus": 1000000000,
"memory_limit_bytes": 536870912
},
{
"service": "redis",
"nano_cpus": 250000000,
"memory_limit_bytes": 134217728
}
]
},
"methodology": {
"base_url": "http://localhost:8080",
"concurrency": 8,
"baseline_seconds": 12,
"action_after_seconds": 3,
"post_action_seconds": 8,
"warmup_requests": 12,
"workload": "closed-loop POST messages via Nginx; no automatic retries"
},
"phases": [
{
"name": "baseline",
"elapsed_seconds": 12.574,
"successful_requests": 4017,
"failed_requests": 0,
"error_ratio": 0.0,
"errors": {},
"successful_rps": 319.463,
"successful_latency_ms": {
"p50": 16.799,
"p95": 55.515,
"p99": 93.803
},
"instances": [
"0b933a46fccb",
"55aaffcf508a"
],
"recovery_seconds": null,
"action": null,
"per_second": {
"0": {
"successful": 118,
"failed": 0
},
"1": {
"successful": 308,
"failed": 0
},
"2": {
"successful": 386,
"failed": 0
},
"3": {
"successful": 378,
"failed": 0
},
"4": {
"successful": 344,
"failed": 0
},
"5": {
"successful": 322,
"failed": 0
},
"6": {
"successful": 316,
"failed": 0
},
"7": {
"successful": 384,
"failed": 0
},
"8": {
"successful": 380,
"failed": 0
},
"9": {
"successful": 402,
"failed": 0
},
"10": {
"successful": 377,
"failed": 0
},
"11": {
"successful": 288,
"failed": 0
},
"12": {
"successful": 14,
"failed": 0
}
},
"resources": {
"api": {
"cpu_percent_avg": 28.453,
"cpu_percent_max": 36.1,
"memory_mib_avg": 42.413,
"memory_mib_max": 66.07
},
"load-balancer": {
"cpu_percent_avg": 17.448,
"cpu_percent_max": 20.8,
"memory_mib_avg": 9.214,
"memory_mib_max": 9.559
},
"postgres": {
"cpu_percent_avg": 85.888,
"cpu_percent_max": 105.25,
"memory_mib_avg": 97.975,
"memory_mib_max": 100.8
},
"redis": {
"cpu_percent_avg": 2.552,
"cpu_percent_max": 5.79,
"memory_mib_avg": 8.796,
"memory_mib_max": 11.74
}
}
},
{
"name": "failover-1",
"elapsed_seconds": 15.324,
"successful_requests": 4613,
"failed_requests": 1,
"error_ratio": 0.000217,
"errors": {
"POST /api/v1/chats/60f7f146-7d10-4711-8a99-2098bc1c2496/messages: expected [201], received 504": 1
},
"successful_rps": 301.04,
"successful_latency_ms": {
"p50": 17.145,
"p95": 69.558,
"p99": 89.752
},
"instances": [
"0b933a46fccb",
"55aaffcf508a"
],
"recovery_seconds": 3.464,
"action": {
"started_at": 3.006,
"ended_at": 6.463,
"duration_seconds": 3.457,
"exit_code": 0,
"summary": "stopped API instance 55aaffcf508a"
},
"per_second": {
"0": {
"successful": 404,
"failed": 0
},
"1": {
"successful": 426,
"failed": 0
},
"2": {
"successful": 358,
"failed": 0
},
"3": {
"successful": 399,
"failed": 0
},
"4": {
"successful": 392,
"failed": 0
},
"5": {
"successful": 322,
"failed": 0
},
"6": {
"successful": 299,
"failed": 0
},
"7": {
"successful": 329,
"failed": 1
},
"8": {
"successful": 313,
"failed": 0
},
"9": {
"successful": 229,
"failed": 0
},
"10": {
"successful": 155,
"failed": 0
},
"11": {
"successful": 187,
"failed": 0
},
"12": {
"successful": 299,
"failed": 0
},
"13": {
"successful": 317,
"failed": 0
},
"14": {
"successful": 184,
"failed": 0
}
},
"resources": {
"api": {
"cpu_percent_avg": 27.62,
"cpu_percent_max": 52.59,
"memory_mib_avg": 11.58,
"memory_mib_max": 12.66
},
"load-balancer": {
"cpu_percent_avg": 18.536,
"cpu_percent_max": 21.25,
"memory_mib_avg": 9.351,
"memory_mib_max": 9.523
},
"postgres": {
"cpu_percent_avg": 81.822,
"cpu_percent_max": 104.67,
"memory_mib_avg": 100.512,
"memory_mib_max": 109.1
},
"redis": {
"cpu_percent_avg": 1.486,
"cpu_percent_max": 5.88,
"memory_mib_avg": 8.04,
"memory_mib_max": 8.25
}
}
},
{
"name": "failover-2",
"elapsed_seconds": 15.529,
"successful_requests": 5815,
"failed_requests": 0,
"error_ratio": 0.0,
"errors": {},
"successful_rps": 374.449,
"successful_latency_ms": {
"p50": 14.211,
"p95": 49.542,
"p99": 81.04
},
"instances": [
"0b933a46fccb",
"55aaffcf508a"
],
"recovery_seconds": 3.476,
"action": {
"started_at": 3.013,
"ended_at": 6.485,
"duration_seconds": 3.472,
"exit_code": 0,
"summary": "stopped API instance 0b933a46fccb"
},
"per_second": {
"0": {
"successful": 396,
"failed": 0
},
"1": {
"successful": 439,
"failed": 0
},
"2": {
"successful": 412,
"failed": 0
},
"3": {
"successful": 355,
"failed": 0
},
"4": {
"successful": 378,
"failed": 0
},
"5": {
"successful": 440,
"failed": 0
},
"6": {
"successful": 362,
"failed": 0
},
"7": {
"successful": 419,
"failed": 0
},
"8": {
"successful": 385,
"failed": 0
},
"9": {
"successful": 372,
"failed": 0
},
"10": {
"successful": 420,
"failed": 0
},
"11": {
"successful": 423,
"failed": 0
},
"12": {
"successful": 432,
"failed": 0
},
"13": {
"successful": 375,
"failed": 0
},
"14": {
"successful": 207,
"failed": 0
}
},
"resources": {
"api": {
"cpu_percent_avg": 31.411,
"cpu_percent_max": 51.63,
"memory_mib_avg": 10.373,
"memory_mib_max": 11.6
},
"load-balancer": {
"cpu_percent_avg": 15.778,
"cpu_percent_max": 21.79,
"memory_mib_avg": 9.62,
"memory_mib_max": 9.781
},
"postgres": {
"cpu_percent_avg": 76.87,
"cpu_percent_max": 104.51,
"memory_mib_avg": 106.016,
"memory_mib_max": 120.0
},
"redis": {
"cpu_percent_avg": 0.786,
"cpu_percent_max": 2.83,
"memory_mib_avg": 8.844,
"memory_mib_max": 12.28
}
}
},
{
"name": "rolling-update",
"elapsed_seconds": 53.985,
"successful_requests": 20350,
"failed_requests": 1,
"error_ratio": 4.9e-05,
"errors": {
"POST /api/v1/chats/60f7f146-7d10-4711-8a99-2098bc1c2496/messages: expected [201], received 502": 1
},
"successful_rps": 376.959,
"successful_latency_ms": {
"p50": 15.725,
"p95": 48.724,
"p99": 79.337
},
"instances": [
"0b933a46fccb",
"3adbcad9e34b",
"55aaffcf508a",
"ceca3f6f1faf",
"f0a3bedda85a"
],
"recovery_seconds": null,
"action": {
"started_at": 3.016,
"ended_at": 45.961,
"duration_seconds": 42.945,
"exit_code": 0,
"summary": "rolling update completed with 2 healthy API replicas"
},
"per_second": {
"0": {
"successful": 340,
"failed": 0
},
"1": {
"successful": 369,
"failed": 0
},
"2": {
"successful": 426,
"failed": 0
},
"3": {
"successful": 382,
"failed": 0
},
"4": {
"successful": 371,
"failed": 0
},
"5": {
"successful": 376,
"failed": 0
},
"6": {
"successful": 328,
"failed": 0
},
"7": {
"successful": 350,
"failed": 0
},
"8": {
"successful": 434,
"failed": 0
},
"9": {
"successful": 411,
"failed": 0
},
"10": {
"successful": 399,
"failed": 0
},
"11": {
"successful": 417,
"failed": 0
},
"12": {
"successful": 374,
"failed": 0
},
"13": {
"successful": 427,
"failed": 0
},
"14": {
"successful": 414,
"failed": 0
},
"15": {
"successful": 418,
"failed": 0
},
"16": {
"successful": 408,
"failed": 0
},
"17": {
"successful": 352,
"failed": 0
},
"18": {
"successful": 391,
"failed": 0
},
"19": {
"successful": 388,
"failed": 0
},
"20": {
"successful": 413,
"failed": 0
},
"21": {
"successful": 417,
"failed": 0
},
"22": {
"successful": 388,
"failed": 0
},
"23": {
"successful": 396,
"failed": 0
},
"24": {
"successful": 400,
"failed": 0
},
"25": {
"successful": 339,
"failed": 0
},
"26": {
"successful": 225,
"failed": 0
},
"27": {
"successful": 376,
"failed": 0
},
"28": {
"successful": 385,
"failed": 0
},
"29": {
"successful": 396,
"failed": 0
},
"30": {
"successful": 403,
"failed": 0
},
"31": {
"successful": 262,
"failed": 0
},
"32": {
"successful": 428,
"failed": 0
},
"33": {
"successful": 362,
"failed": 0
},
"34": {
"successful": 286,
"failed": 0
},
"35": {
"successful": 337,
"failed": 0
},
"36": {
"successful": 328,
"failed": 0
},
"37": {
"successful": 424,
"failed": 0
},
"38": {
"successful": 356,
"failed": 0
},
"39": {
"successful": 386,
"failed": 0
},
"40": {
"successful": 422,
"failed": 0
},
"41": {
"successful": 285,
"failed": 0
},
"42": {
"successful": 279,
"failed": 0
},
"43": {
"successful": 222,
"failed": 1
},
"44": {
"successful": 316,
"failed": 0
},
"45": {
"successful": 359,
"failed": 0
},
"46": {
"successful": 405,
"failed": 0
},
"47": {
"successful": 398,
"failed": 0
},
"48": {
"successful": 395,
"failed": 0
},
"49": {
"successful": 430,
"failed": 0
},
"50": {
"successful": 453,
"failed": 0
},
"51": {
"successful": 409,
"failed": 0
},
"52": {
"successful": 445,
"failed": 0
},
"53": {
"successful": 450,
"failed": 0
}
},
"resources": {
"api": {
"cpu_percent_avg": 25.598,
"cpu_percent_max": 37.65,
"memory_mib_avg": 8.956,
"memory_mib_max": 10.97
},
"load-balancer": {
"cpu_percent_avg": 19.935,
"cpu_percent_max": 23.36,
"memory_mib_avg": 9.836,
"memory_mib_max": 13.52
},
"postgres": {
"cpu_percent_avg": 98.172,
"cpu_percent_max": 105.11,
"memory_mib_avg": 127.975,
"memory_mib_max": 145.2
},
"redis": {
"cpu_percent_avg": 0.722,
"cpu_percent_max": 3.94,
"memory_mib_avg": 7.661,
"memory_mib_max": 11.84
}
}
}
],
"idempotency": {
"parallel_requests": 32,
"successful_responses": 32,
"failed_responses": 0,
"unique_message_ids": 1,
"observed_instances": [
"0b933a46fccb",
"55aaffcf508a"
]
},
"dataset": {
"warmup_requests": 12,
"minimum_confirmed_messages": 34808
},
"limitations": [
"single Docker host",
"closed-loop coordinated omission",
"successful-response latency percentiles only",
"PostgreSQL and Nginx remain single points of failure"
]
}
+45
View File
@@ -0,0 +1,45 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1100" height="560" viewBox="0 0 1100 560">
<rect width="100%" height="100%" fill="#0e1013"/>
<style>
text { font-family: Inter, Segoe UI, sans-serif; fill: #eceef0; }
.title { font-size: 26px; font-weight: 650; }
.label { font-size: 14px; fill: #c8cbd0; }
.small { font-size: 12px; fill: #a2a5aa; }
.grid { stroke: #34373d; stroke-width: 1; }
.bar { fill: #cfd2d6; }
.bar2 { fill: #73777f; }
.line { fill: none; stroke: #f4f5f6; stroke-width: 3; }
.error { fill: #8f949c; stroke: #f4f5f6; stroke-width: 1; }
.event { stroke: #a2a5aa; stroke-width: 2; stroke-dasharray: 6 5; }
</style>
<text x="48" y="42" class="title">Grade 4: throughput and errors</text>
<line x1="80" y1="450.0" x2="1040" y2="450.0" class="grid"/>
<text x="68" y="454.0" text-anchor="end" class="small">0</text>
<line x1="80" y1="378.0" x2="1040" y2="378.0" class="grid"/>
<text x="68" y="382.0" text-anchor="end" class="small">75</text>
<line x1="80" y1="306.0" x2="1040" y2="306.0" class="grid"/>
<text x="68" y="310.0" text-anchor="end" class="small">151</text>
<line x1="80" y1="234.0" x2="1040" y2="234.0" class="grid"/>
<text x="68" y="238.0" text-anchor="end" class="small">226</text>
<line x1="80" y1="162.0" x2="1040" y2="162.0" class="grid"/>
<text x="68" y="166.0" text-anchor="end" class="small">302</text>
<line x1="80" y1="90.0" x2="1040" y2="90.0" class="grid"/>
<text x="68" y="94.0" text-anchor="end" class="small">377</text>
<rect x="140.0" y="144.9" width="120.0" height="305.1" rx="10" class="bar"/>
<text x="200.0" y="134.9" text-anchor="middle" class="label">319.5 RPS</text>
<text x="200.0" y="478" text-anchor="middle" class="label">baseline</text>
<text x="200.0" y="498" text-anchor="middle" class="small">errors 0.00%</text>
<rect x="380.0" y="162.5" width="120.0" height="287.5" rx="10" class="bar"/>
<text x="440.0" y="152.5" text-anchor="middle" class="label">301.0 RPS</text>
<text x="440.0" y="478" text-anchor="middle" class="label">failover-1</text>
<text x="440.0" y="498" text-anchor="middle" class="small">errors 0.02%</text>
<rect x="620.0" y="92.4" width="120.0" height="357.6" rx="10" class="bar"/>
<text x="680.0" y="82.4" text-anchor="middle" class="label">374.4 RPS</text>
<text x="680.0" y="478" text-anchor="middle" class="label">failover-2</text>
<text x="680.0" y="498" text-anchor="middle" class="small">errors 0.00%</text>
<rect x="860.0" y="90.0" width="120.0" height="360.0" rx="10" class="bar"/>
<text x="920.0" y="80.0" text-anchor="middle" class="label">377.0 RPS</text>
<text x="920.0" y="478" text-anchor="middle" class="label">rolling-update</text>
<text x="920.0" y="498" text-anchor="middle" class="small">errors 0.00%</text>
<text x="24" y="270.0" transform="rotate(-90 24 270.0)" class="label">Successful requests per second</text>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

+38
View File
@@ -0,0 +1,38 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1100" height="600" viewBox="0 0 1100 600">
<rect width="100%" height="100%" fill="#0e1013"/>
<style>
text { font-family: Inter, Segoe UI, sans-serif; fill: #eceef0; }
.title { font-size: 26px; font-weight: 650; }
.label { font-size: 14px; fill: #c8cbd0; }
.small { font-size: 12px; fill: #a2a5aa; }
.grid { stroke: #34373d; stroke-width: 1; }
.bar { fill: #cfd2d6; }
.bar2 { fill: #73777f; }
.line { fill: none; stroke: #f4f5f6; stroke-width: 3; }
.error { fill: #8f949c; stroke: #f4f5f6; stroke-width: 1; }
.event { stroke: #a2a5aa; stroke-width: 2; stroke-dasharray: 6 5; }
</style>
<text x="48" y="42" class="title">Grade 4: request timeline</text>
<line x1="70" y1="480.0" x2="1050" y2="480.0" class="grid"/>
<text x="58" y="484.0" text-anchor="end" class="small">0</text>
<line x1="70" y1="402.0" x2="1050" y2="402.0" class="grid"/>
<text x="58" y="406.0" text-anchor="end" class="small">91</text>
<line x1="70" y1="324.0" x2="1050" y2="324.0" class="grid"/>
<text x="58" y="328.0" text-anchor="end" class="small">181</text>
<line x1="70" y1="246.0" x2="1050" y2="246.0" class="grid"/>
<text x="58" y="250.0" text-anchor="end" class="small">272</text>
<line x1="70" y1="168.0" x2="1050" y2="168.0" class="grid"/>
<text x="58" y="172.0" text-anchor="end" class="small">362</text>
<line x1="70" y1="90.0" x2="1050" y2="90.0" class="grid"/>
<text x="58" y="94.0" text-anchor="end" class="small">453</text>
<circle cx="277.9" cy="472" r="4" class="error"/>
<circle cx="951.0" cy="472" r="4" class="error"/>
<polyline points="70.0,378.4 79.9,214.8 89.8,147.7 99.7,154.6 109.6,183.8 119.5,202.8 129.4,207.9 139.3,149.4 149.2,152.8 159.1,133.9 169.0,155.4 178.9,232.1 188.8,467.9 208.6,132.2 218.5,113.2 228.4,171.8 238.3,136.5 248.2,142.5 258.1,202.8 268.0,222.6 277.9,196.8 287.8,210.5 297.7,282.8 307.6,346.6 317.5,319.0 327.4,222.6 337.3,207.1 347.2,321.6 367.0,139.1 376.9,102.1 386.8,125.3 396.7,174.4 406.6,154.6 416.5,101.2 426.4,168.3 436.3,119.3 446.2,148.5 456.1,159.7 466.0,118.4 475.9,115.8 485.8,108.1 495.7,157.2 505.6,301.8 525.4,187.3 535.3,162.3 545.2,113.2 555.1,151.1 564.9,160.6 574.8,156.3 584.7,197.6 594.6,178.7 604.5,106.4 614.4,126.2 624.3,136.5 634.2,121.0 644.1,158.0 654.0,112.4 663.9,123.6 673.8,120.1 683.7,128.7 693.6,177.0 703.5,143.4 713.4,146.0 723.3,124.4 733.2,121.0 743.1,146.0 753.0,139.1 762.9,135.6 772.8,188.1 782.7,286.3 792.6,156.3 802.5,148.5 812.4,139.1 822.3,133.0 832.2,254.4 842.1,111.5 852.0,168.3 861.9,233.8 871.8,189.9 881.7,197.6 891.6,115.0 901.5,173.5 911.4,147.7 921.3,116.7 931.2,234.6 941.1,239.8 951.0,288.9 960.9,207.9 970.8,170.9 980.7,131.3 990.6,137.4 1000.5,139.9 1010.4,109.8 1020.3,90.0 1030.2,127.9 1040.1,96.9 1050.0,92.6" class="line"/>
<line x1="238.3" y1="90" x2="238.3" y2="480" class="event"/>
<text x="244.3" y="108" class="small">failover-1 action</text>
<line x1="396.8" y1="90" x2="396.8" y2="480" class="event"/>
<text x="402.8" y="108" class="small">failover-2 action</text>
<line x1="555.2" y1="90" x2="555.2" y2="480" class="event"/>
<text x="561.2" y="108" class="small">rolling-update action</text>
<text x="70" y="512" class="label">One-second buckets; circles mark failed requests</text>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB