forked from mtusi2026/mtusi2026lab6
выполение на 5
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"scenarios": [
|
||||
{
|
||||
"scenario": "worker_outage",
|
||||
"injected_fault": "Stopped the worker while one attachment job was queued.",
|
||||
"alert": "MessengerQueueLag",
|
||||
"alert_fired": true,
|
||||
"alert_resolved_after_recovery": true,
|
||||
"job_reached_ready": true,
|
||||
"data_loss": false
|
||||
},
|
||||
{
|
||||
"scenario": "postgres_outage",
|
||||
"injected_fault": "Stopped PostgreSQL during 90 sequential API user-creation requests.",
|
||||
"api_responses": {
|
||||
"503": 90
|
||||
},
|
||||
"alert": "MessengerApiErrorBudgetBurn",
|
||||
"alert_fired": true,
|
||||
"api_ready_after_database_and_api_recovery": true
|
||||
},
|
||||
{
|
||||
"scenario": "tempo_outage",
|
||||
"injected_fault": "Stopped Tempo for 40 seconds.",
|
||||
"public_smoke_passed_during_outage": true,
|
||||
"api_and_collector_memory_mib_while_stopped": {
|
||||
"api_replica_1": 58.6,
|
||||
"api_replica_2": 58.6,
|
||||
"otel_collector": 76.2
|
||||
},
|
||||
"api_ready_after_recovery": true
|
||||
}
|
||||
],
|
||||
"limitations": [
|
||||
"The fault checks are local single-run experiments, not production availability tests.",
|
||||
"Telemetry backends may drop data after bounded exporter retries during an outage."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"fixture": "tests/fixtures/sample.png",
|
||||
"invariants": {
|
||||
"ambiguous_confirm_republishes_stable_job": true,
|
||||
"confirmed_work_eventually_ready": true,
|
||||
"delivery_semantics": "at-least-once; effects are fenced/idempotent",
|
||||
"duplicate_effects_create_no_second_variant_set": true,
|
||||
"stale_attempt_writes_no_effects": true,
|
||||
"stale_pipeline_cannot_publish_current_metadata": true
|
||||
},
|
||||
"result": "PASS",
|
||||
"scenarios": [
|
||||
{
|
||||
"deliveries": 2,
|
||||
"duplicate_delivery_writes": 0,
|
||||
"effective_object_writes": 4,
|
||||
"scenario": "duplicate_delivery_after_commit_before_ack"
|
||||
},
|
||||
{
|
||||
"attempts": 2,
|
||||
"scenario": "crash_after_claim",
|
||||
"terminal_status": "ready"
|
||||
},
|
||||
{
|
||||
"attempts": 2,
|
||||
"scenario": "crash_after_original_put",
|
||||
"terminal_status": "ready"
|
||||
},
|
||||
{
|
||||
"current_attempt": 2,
|
||||
"scenario": "out_of_order_attempt_delivery",
|
||||
"stale_attempt_extra_writes": 0
|
||||
},
|
||||
{
|
||||
"current_pipeline_version": 2,
|
||||
"published_variant_versions": [
|
||||
"v2"
|
||||
],
|
||||
"scenario": "stale_pipeline_after_newer_version"
|
||||
},
|
||||
{
|
||||
"outbox_recovered_after_restart": true,
|
||||
"published_after_restart": 1,
|
||||
"scenario": "publisher_crash_before_publish"
|
||||
},
|
||||
{
|
||||
"deliveries": 2,
|
||||
"same_message_id": true,
|
||||
"scenario": "publish_confirm_lost_after_broker_accept"
|
||||
},
|
||||
{
|
||||
"configured_timeout_seconds": 1,
|
||||
"observed_seconds": 1.006,
|
||||
"scenario": "transform_timeout_terminated"
|
||||
}
|
||||
],
|
||||
"track": "2"
|
||||
}
|
||||
@@ -0,0 +1,208 @@
|
||||
{
|
||||
"experiment": "telemetry overhead under fixed-rate synthetic POST load",
|
||||
"hypothesis": "Trace sampling lowers API/worker CPU and Tempo ingest; metrics and logs remain enabled.",
|
||||
"method": {
|
||||
"duration_seconds": 15,
|
||||
"concurrency": 2,
|
||||
"target_rps": 20,
|
||||
"warmup_seconds": 3,
|
||||
"telemetry_flush_wait_seconds": 15,
|
||||
"hardware": {
|
||||
"platform": "macOS-27.0.1-arm64-arm-64bit-Mach-O",
|
||||
"processor": "arm",
|
||||
"logical_cpus": 10
|
||||
},
|
||||
"sampled_span_estimate": "The first 20 matching message traces per mode are opened in Tempo; the resulting mean spans per trace is extrapolated to all sampled messages.",
|
||||
"storage_method": "Filesystem byte deltas in Prometheus, Loki and Tempo named volumes; this includes indexes/WAL and is not network wire size."
|
||||
},
|
||||
"limitations": [
|
||||
"The generator paces arrivals but has finite concurrency and can catch up after delays; it is not a production open-loop load model.",
|
||||
"Database history grows between modes; all modes use identical duration and concurrency.",
|
||||
"Sampling is head-based and random: errors and rare slow requests can be omitted along with successful requests.",
|
||||
"Span loss is an estimate based on sampled message traces, not Collector exporter delivery counters.",
|
||||
"CPU and memory are sampled Docker container totals for API, worker, publisher and Collector; the monitor adds equal overhead to all modes."
|
||||
],
|
||||
"results": [
|
||||
{
|
||||
"configuration": "off",
|
||||
"sdk_disabled": true,
|
||||
"trace_sampling_ratio": 1.0,
|
||||
"load": {
|
||||
"workload": "paced synthetic POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 15,
|
||||
"target_rps": 20,
|
||||
"elapsed_seconds": 16.901,
|
||||
"concurrency": 2,
|
||||
"successful_requests": 300,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 17.75,
|
||||
"successful_latency_ms": {
|
||||
"p50": 7.449,
|
||||
"p95": 12.198,
|
||||
"p99": 14.054
|
||||
},
|
||||
"docker_resource_samples": 4,
|
||||
"docker_resources": {
|
||||
"mean_cpu_percent_sum": 17.18,
|
||||
"peak_cpu_percent_sum": 46.29,
|
||||
"peak_memory_bytes_sum": 331140298,
|
||||
"services": [
|
||||
"api",
|
||||
"worker",
|
||||
"publisher",
|
||||
"otel-collector"
|
||||
]
|
||||
}
|
||||
},
|
||||
"window_unix_seconds": {
|
||||
"start": 1793781279,
|
||||
"end": 1793781296
|
||||
},
|
||||
"sampled_message_trace_count": 0,
|
||||
"estimated_spans_per_message_trace": 0.0,
|
||||
"persistent_storage_bytes_delta": {
|
||||
"prometheus": 25354,
|
||||
"loki": 0,
|
||||
"tempo": 122589
|
||||
},
|
||||
"estimated_spans_not_recorded": 2400.0
|
||||
},
|
||||
{
|
||||
"configuration": "sample-100-percent",
|
||||
"sdk_disabled": false,
|
||||
"trace_sampling_ratio": 1.0,
|
||||
"load": {
|
||||
"workload": "paced synthetic POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 15,
|
||||
"target_rps": 20,
|
||||
"elapsed_seconds": 17.678,
|
||||
"concurrency": 2,
|
||||
"successful_requests": 300,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 16.97,
|
||||
"successful_latency_ms": {
|
||||
"p50": 8.22,
|
||||
"p95": 14.766,
|
||||
"p99": 37.456
|
||||
},
|
||||
"docker_resource_samples": 4,
|
||||
"docker_resources": {
|
||||
"mean_cpu_percent_sum": 25.32,
|
||||
"peak_cpu_percent_sum": 49.25,
|
||||
"peak_memory_bytes_sum": 340199994,
|
||||
"services": [
|
||||
"api",
|
||||
"worker",
|
||||
"publisher",
|
||||
"otel-collector"
|
||||
]
|
||||
}
|
||||
},
|
||||
"window_unix_seconds": {
|
||||
"start": 1793781337,
|
||||
"end": 1793781354
|
||||
},
|
||||
"sampled_message_trace_count": 300,
|
||||
"estimated_spans_per_message_trace": 8.0,
|
||||
"persistent_storage_bytes_delta": {
|
||||
"prometheus": 27422,
|
||||
"loki": 240231,
|
||||
"tempo": 428182
|
||||
},
|
||||
"estimated_spans_not_recorded": 0.0
|
||||
},
|
||||
{
|
||||
"configuration": "sample-25-percent",
|
||||
"sdk_disabled": false,
|
||||
"trace_sampling_ratio": 0.25,
|
||||
"load": {
|
||||
"workload": "paced synthetic POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 15,
|
||||
"target_rps": 20,
|
||||
"elapsed_seconds": 16.811,
|
||||
"concurrency": 2,
|
||||
"successful_requests": 300,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 17.845,
|
||||
"successful_latency_ms": {
|
||||
"p50": 6.822,
|
||||
"p95": 12.894,
|
||||
"p99": 14.415
|
||||
},
|
||||
"docker_resource_samples": 4,
|
||||
"docker_resources": {
|
||||
"mean_cpu_percent_sum": 26.23,
|
||||
"peak_cpu_percent_sum": 47.71,
|
||||
"peak_memory_bytes_sum": 352195705,
|
||||
"services": [
|
||||
"api",
|
||||
"worker",
|
||||
"publisher",
|
||||
"otel-collector"
|
||||
]
|
||||
}
|
||||
},
|
||||
"window_unix_seconds": {
|
||||
"start": 1793781394,
|
||||
"end": 1793781411
|
||||
},
|
||||
"sampled_message_trace_count": 88,
|
||||
"estimated_spans_per_message_trace": 8.0,
|
||||
"persistent_storage_bytes_delta": {
|
||||
"prometheus": 27362,
|
||||
"loki": -7107212,
|
||||
"tempo": 4092487
|
||||
},
|
||||
"estimated_spans_not_recorded": 1696.0
|
||||
},
|
||||
{
|
||||
"configuration": "sample-10-percent",
|
||||
"sdk_disabled": false,
|
||||
"trace_sampling_ratio": 0.1,
|
||||
"load": {
|
||||
"workload": "paced synthetic POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 15,
|
||||
"target_rps": 20,
|
||||
"elapsed_seconds": 17.248,
|
||||
"concurrency": 2,
|
||||
"successful_requests": 300,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 17.393,
|
||||
"successful_latency_ms": {
|
||||
"p50": 7.351,
|
||||
"p95": 13.809,
|
||||
"p99": 17.187
|
||||
},
|
||||
"docker_resource_samples": 4,
|
||||
"docker_resources": {
|
||||
"mean_cpu_percent_sum": 28.82,
|
||||
"peak_cpu_percent_sum": 49.75,
|
||||
"peak_memory_bytes_sum": 339979794,
|
||||
"services": [
|
||||
"api",
|
||||
"worker",
|
||||
"publisher",
|
||||
"otel-collector"
|
||||
]
|
||||
}
|
||||
},
|
||||
"window_unix_seconds": {
|
||||
"start": 1793781454,
|
||||
"end": 1793781471
|
||||
},
|
||||
"sampled_message_trace_count": 25,
|
||||
"estimated_spans_per_message_trace": 8.0,
|
||||
"persistent_storage_bytes_delta": {
|
||||
"prometheus": 31886,
|
||||
"loki": 239322,
|
||||
"tempo": 106458
|
||||
},
|
||||
"estimated_spans_not_recorded": 2200.0
|
||||
}
|
||||
],
|
||||
"balanced_configuration": "sample-25-percent"
|
||||
}
|
||||
Reference in New Issue
Block a user