From ccb463aea1c04f3469ebbdd368a77fb215958ad9 Mon Sep 17 00:00:00 2001 From: AndrewNikkk Date: Mon, 16 Nov 2026 18:47:37 +0300 Subject: [PATCH] lab6 --- .dockerignore | 2 + .env.example | 40 +- CMakeLists.txt | 146 + CMakePresets.json | 26 + Dockerfile | 123 + Makefile | 13 + README.md | 25 +- REPORT.md | 555 +- cmake/ImportMinioDeps.cmake | 55 + compose.yaml | 340 + docker-entrypoint.sh | 22 + evidence/README.md | 13 + evidence/incidents.json | 56 + evidence/load.json | 17 + evidence/observability.json | 39 + evidence/track1-benchmark.json | 41317 ++++++++++++++++ evidence/track1-benchmark.md | 59 + evidence/verification.md | 34 + infra/README.md | 34 +- infra/grafana/dashboards/messenger.json | 485 + .../provisioning/dashboards/provider.yaml | 7 + .../provisioning/datasources/sources.yaml | 33 + infra/loki/loki.yaml | 31 + infra/mc/Dockerfile | 19 + infra/minio/Dockerfile | 22 + infra/minio/policy-attachments.json | 29 + infra/otel/README.md | 40 +- infra/otel/collector-sampling10.yaml | 67 + infra/otel/collector.yaml | 63 + infra/prometheus/alerts.yaml | 27 + infra/prometheus/prometheus.yaml | 11 + infra/tempo/tempo.yaml | 22 + lb/nginx.conf.template | 44 + migrations/001_init.sql | 33 + migrations/002_sessions.sql | 6 + migrations/003_idempotency.sql | 11 + migrations/004_attachments.sql | 22 + migrations/005_message_attachments.sql | 12 + migrations/006_direct_uploads.sql | 26 + migrations/007_direct_upload_staging.sql | 12 + migrations/008_async_attachments.sql | 21 + migrations/009_outbox.sql | 20 + migrations/010_staging_and_replay.sql | 22 + migrations/011_versioned_pipeline.sql | 41 + scripts/benchmark_telemetry.py | 461 + scripts/bootstrap-local.py | 25 + src/attachment_queue.cpp | 94 + src/attachment_queue.hpp | 27 + src/attachment_repo.cpp | 156 + src/attachment_repo.hpp | 28 + src/attachment_storage.hpp | 20 + src/auth.cpp | 39 + src/auth.hpp | 7 + src/chat_repo.cpp | 186 + src/chat_repo.hpp | 23 + src/cursor.hpp | 47 + src/db.cpp | 370 + src/db.hpp | 62 + src/direct_upload_repo.cpp | 292 + src/direct_upload_repo.hpp | 63 + src/errors.hpp | 15 + src/fault_injection.hpp | 42 + src/image_pipeline.cpp | 151 + src/image_pipeline.hpp | 25 + src/image_util.cpp | 90 + src/image_util.hpp | 41 + src/job_admin_main.cpp | 110 + src/job_repo.cpp | 139 + src/job_repo.hpp | 35 + src/main.cpp | 2361 + src/message_repo.cpp | 377 + src/message_repo.hpp | 38 + src/models.hpp | 86 + src/observability_monitor.cpp | 37 + src/observability_monitor.hpp | 13 + src/outbox.cpp | 80 + src/outbox.hpp | 26 + src/pg_session_repo.cpp | 66 + src/pg_session_repo.hpp | 18 + src/redis_pool.cpp | 216 + src/redis_pool.hpp | 59 + src/s3_client.cpp | 290 + src/s3_client.hpp | 71 + src/session_repo.cpp | 87 + src/session_repo.hpp | 18 + src/session_repo_base.hpp | 22 + src/staging_cleaner.cpp | 77 + src/staging_cleaner.hpp | 18 + src/telemetry.cpp | 270 + src/telemetry.hpp | 60 + src/user_repo.cpp | 100 + src/user_repo.hpp | 22 + src/worker_main.cpp | 236 + student-tests/incidents.py | 178 + student-tests/observability.py | 133 + student-tests/telemetry_test.cpp | 33 + third_party/stb/README.md | 6 + third_party/stb/VERSION | 1 + third_party/stb/stb_image.h | 7988 +++ third_party/stb/stb_image_resize.h | 2634 + third_party/stb/stb_image_write.h | 1724 + tools/fixtures/320x200.png | Bin 0 -> 502 bytes tools/fixtures/small.jpg | Bin 0 -> 644 bytes tools/fixtures/tiny.jpg | Bin 0 -> 633 bytes tools/fixtures/tiny.png | Bin 0 -> 69 bytes tools/image_smoke.cpp | 111 + tools/s3_smoke.cpp | 35 + tools/thumbnail_smoke.cpp | 24 + tools/variants_smoke.cpp | 32 + 109 files changed, 64105 insertions(+), 32 deletions(-) create mode 100644 CMakeLists.txt create mode 100644 CMakePresets.json create mode 100644 Dockerfile create mode 100644 cmake/ImportMinioDeps.cmake create mode 100644 compose.yaml create mode 100644 docker-entrypoint.sh create mode 100644 evidence/incidents.json create mode 100644 evidence/load.json create mode 100644 evidence/observability.json create mode 100644 evidence/track1-benchmark.json create mode 100644 evidence/track1-benchmark.md create mode 100644 evidence/verification.md create mode 100644 infra/grafana/dashboards/messenger.json create mode 100644 infra/grafana/provisioning/dashboards/provider.yaml create mode 100644 infra/grafana/provisioning/datasources/sources.yaml create mode 100644 infra/loki/loki.yaml create mode 100644 infra/mc/Dockerfile create mode 100644 infra/minio/Dockerfile create mode 100644 infra/minio/policy-attachments.json create mode 100644 infra/otel/collector-sampling10.yaml create mode 100644 infra/otel/collector.yaml create mode 100644 infra/prometheus/alerts.yaml create mode 100644 infra/prometheus/prometheus.yaml create mode 100644 infra/tempo/tempo.yaml create mode 100644 lb/nginx.conf.template create mode 100644 migrations/001_init.sql create mode 100644 migrations/002_sessions.sql create mode 100644 migrations/003_idempotency.sql create mode 100644 migrations/004_attachments.sql create mode 100644 migrations/005_message_attachments.sql create mode 100644 migrations/006_direct_uploads.sql create mode 100644 migrations/007_direct_upload_staging.sql create mode 100644 migrations/008_async_attachments.sql create mode 100644 migrations/009_outbox.sql create mode 100644 migrations/010_staging_and_replay.sql create mode 100644 migrations/011_versioned_pipeline.sql create mode 100644 scripts/benchmark_telemetry.py create mode 100644 scripts/bootstrap-local.py create mode 100644 src/attachment_queue.cpp create mode 100644 src/attachment_queue.hpp create mode 100644 src/attachment_repo.cpp create mode 100644 src/attachment_repo.hpp create mode 100644 src/attachment_storage.hpp create mode 100644 src/auth.cpp create mode 100644 src/auth.hpp create mode 100644 src/chat_repo.cpp create mode 100644 src/chat_repo.hpp create mode 100644 src/cursor.hpp create mode 100644 src/db.cpp create mode 100644 src/db.hpp create mode 100644 src/direct_upload_repo.cpp create mode 100644 src/direct_upload_repo.hpp create mode 100644 src/errors.hpp create mode 100644 src/fault_injection.hpp create mode 100644 src/image_pipeline.cpp create mode 100644 src/image_pipeline.hpp create mode 100644 src/image_util.cpp create mode 100644 src/image_util.hpp create mode 100644 src/job_admin_main.cpp create mode 100644 src/job_repo.cpp create mode 100644 src/job_repo.hpp create mode 100644 src/main.cpp create mode 100644 src/message_repo.cpp create mode 100644 src/message_repo.hpp create mode 100644 src/models.hpp create mode 100644 src/observability_monitor.cpp create mode 100644 src/observability_monitor.hpp create mode 100644 src/outbox.cpp create mode 100644 src/outbox.hpp create mode 100644 src/pg_session_repo.cpp create mode 100644 src/pg_session_repo.hpp create mode 100644 src/redis_pool.cpp create mode 100644 src/redis_pool.hpp create mode 100644 src/s3_client.cpp create mode 100644 src/s3_client.hpp create mode 100644 src/session_repo.cpp create mode 100644 src/session_repo.hpp create mode 100644 src/session_repo_base.hpp create mode 100644 src/staging_cleaner.cpp create mode 100644 src/staging_cleaner.hpp create mode 100644 src/telemetry.cpp create mode 100644 src/telemetry.hpp create mode 100644 src/user_repo.cpp create mode 100644 src/user_repo.hpp create mode 100644 src/worker_main.cpp create mode 100644 student-tests/incidents.py create mode 100644 student-tests/observability.py create mode 100644 student-tests/telemetry_test.cpp create mode 100644 third_party/stb/README.md create mode 100644 third_party/stb/VERSION create mode 100644 third_party/stb/stb_image.h create mode 100644 third_party/stb/stb_image_resize.h create mode 100644 third_party/stb/stb_image_write.h create mode 100644 tools/fixtures/320x200.png create mode 100644 tools/fixtures/small.jpg create mode 100644 tools/fixtures/tiny.jpg create mode 100644 tools/fixtures/tiny.png create mode 100644 tools/image_smoke.cpp create mode 100644 tools/s3_smoke.cpp create mode 100644 tools/thumbnail_smoke.cpp create mode 100644 tools/variants_smoke.cpp diff --git a/.dockerignore b/.dockerignore index bc16e55..8eb0c08 100644 --- a/.dockerignore +++ b/.dockerignore @@ -18,3 +18,5 @@ __pycache__ node_modules evidence .DS_Store + +build diff --git a/.env.example b/.env.example index 2b32655..ff4f995 100644 --- a/.env.example +++ b/.env.example @@ -11,20 +11,42 @@ SESSION_STORE=postgres CACHE_URL_FILE=/run/secrets/cache_url API_REPLICAS=2 IDEMPOTENCY_TTL_SECONDS=86400 -S3_ENDPOINT=http://s3:9000 +S3_ENDPOINT=http://minio:9000 S3_REGION=us-east-1 S3_BUCKET=messenger-attachments S3_ACCESS_KEY_ID_FILE=/run/secrets/s3_access_key_id S3_SECRET_ACCESS_KEY_FILE=/run/secrets/s3_secret_access_key MAX_UPLOAD_BYTES=10485760 MAX_IMAGE_PIXELS=40000000 -BROKER_URL_FILE=/run/secrets/broker_url -WORKER_CONCURRENCY=2 -JOB_MAX_ATTEMPTS=5 +# Same Valkey instance serves sessions and Streams. +BROKER_URL_FILE=/run/secrets/cache_url +WORKER_CONCURRENCY=1 +# One initial attempt plus five retries. +JOB_MAX_ATTEMPTS=6 +JOB_RECLAIM_IDLE_MS=5000 +JOB_RETRY_BASE_MS=1000 +JOB_RETRY_MAX_MS=60000 JOB_TIMEOUT_SECONDS=60 STAGING_RETENTION_SECONDS=86400 -OTEL_SERVICE_NAME=messenger-api -# Worker must set a distinct service.name. -OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318 -OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf -OTEL_RESOURCE_ATTRIBUTES=deployment.environment.name=lab +STAGING_CLEANUP_INTERVAL_SECONDS=60 + +# Local Compose bootstrap; choose your own values and matching secret files. +POSTGRES_USER=messenger +POSTGRES_PASSWORD=change_me_locally +POSTGRES_DB=messenger +MINIO_ROOT_USER=minioadmin +MINIO_ROOT_PASSWORD=change_me_minio_root_locally +MINIO_USER_ACCESS_KEY=messenger-s3 +MINIO_USER_SECRET_KEY=change_me_s3_user_locally +MAX_CONCURRENT_UPLOADS=3 +DIRECT_UPLOAD_TTL_SECONDS=300 + +# Observability: distinct service.name is set by each binary. +OTEL_SDK_DISABLED=false +GRAFANA_ADMIN_USER=admin +API_PORT=8080 +GRAFANA_PORT=3000 +PROMETHEUS_PORT=9090 + +# Optional Collector profile (Track 1 overrides this per trial). +OTEL_COLLECTOR_CONFIG=./infra/otel/collector.yaml diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..ad7cb3b --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,146 @@ +cmake_minimum_required(VERSION 3.16) +project(mtusi_messenger CXX) + +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +# Official MinIO C++ SDK (S3-compatible). Pinned tag; not a hand-rolled SigV4. +set(MTUSI_MINIO_CPP_VERSION "v0.3.0" CACHE STRING "minio-cpp git tag") + +find_package(Threads REQUIRED) +find_package(PkgConfig REQUIRED) + +pkg_check_modules(PQXX REQUIRED IMPORTED_TARGET libpqxx>=7.8) +pkg_check_modules(HIREDIS REQUIRED IMPORTED_TARGET hiredis) +pkg_check_modules(SODIUM REQUIRED IMPORTED_TARGET libsodium) +pkg_check_modules(EXIF REQUIRED IMPORTED_TARGET libexif) +pkg_check_modules(WEBP REQUIRED IMPORTED_TARGET libwebp) + +include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/ImportMinioDeps.cmake") + +include(FetchContent) +set(MINIO_CPP_TEST OFF CACHE BOOL "" FORCE) +set(MINIO_CPP_MAKE_DOC OFF CACHE BOOL "" FORCE) +FetchContent_Declare( + miniocpp + GIT_REPOSITORY https://github.com/minio/minio-cpp.git + GIT_TAG ${MTUSI_MINIO_CPP_VERSION} + GIT_SHALLOW TRUE +) +# Inject find_package stubs before miniocpp configures. +function(_mtusi_provide_minio_find_packages) + # miniocpp calls find_package(unofficial-curlpp CONFIG) etc. + # We already created ALIAS targets; create tiny config files in a prefix. + set(_cfg_dir "${CMAKE_CURRENT_BINARY_DIR}/mtusi-minio-deps") + file(MAKE_DIRECTORY "${_cfg_dir}") + file(WRITE "${_cfg_dir}/unofficial-curlpp-config.cmake" "") + file(WRITE "${_cfg_dir}/unofficial-inih-config.cmake" "") + list(PREPEND CMAKE_PREFIX_PATH "${_cfg_dir}") + set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH}" PARENT_SCOPE) +endfunction() +_mtusi_provide_minio_find_packages() + +FetchContent_GetProperties(miniocpp) +if(NOT miniocpp_POPULATED) + FetchContent_Populate(miniocpp) + # Neutralize CONFIG find_package calls by providing empty configs + targets. + set(CMAKE_FIND_PACKAGE_REDIRECTS_DIR "${CMAKE_CURRENT_BINARY_DIR}/mtusi-find-redirects") + file(MAKE_DIRECTORY "${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}") + # CMake 3.24+ redirects; for older, patch via policy: set variables that + # make find_package(CONFIG) succeed when targets already exist. + set(unofficial-curlpp_DIR "${CMAKE_CURRENT_BINARY_DIR}/mtusi-minio-deps" CACHE PATH "" FORCE) + set(unofficial-inih_DIR "${CMAKE_CURRENT_BINARY_DIR}/mtusi-minio-deps" CACHE PATH "" FORCE) + # Provide package config bodies that are no-ops (targets already defined). + file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/mtusi-minio-deps/unofficial-curlpp-config.cmake" + "# provided by ImportMinioDeps.cmake\n") + file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/mtusi-minio-deps/unofficial-inih-config.cmake" + "# provided by ImportMinioDeps.cmake\n") + # Skip miniocpp install(EXPORT) — our INTERFACE system deps are not exportable. + set(CMAKE_SKIP_INSTALL_RULES ON) + add_subdirectory(${miniocpp_SOURCE_DIR} ${miniocpp_BINARY_DIR}) + set(CMAKE_SKIP_INSTALL_RULES OFF) +endif() + +# OpenTelemetry C++ v1.21.0, OTLP HTTP/protobuf only (no gRPC). +set(WITH_OTLP_HTTP ON CACHE BOOL "" FORCE) +set(WITH_OTLP_GRPC OFF CACHE BOOL "" FORCE) +set(BUILD_TESTING OFF CACHE BOOL "" FORCE) +set(WITH_EXAMPLES OFF CACHE BOOL "" FORCE) +set(WITH_FUNC_TESTS OFF CACHE BOOL "" FORCE) +FetchContent_Declare(opentelemetry_cpp + GIT_REPOSITORY https://github.com/open-telemetry/opentelemetry-cpp.git + GIT_TAG v1.21.0 # b9cf499ff5715433848b316059714b5c59af1f2c + GIT_SHALLOW TRUE + GIT_SUBMODULES "") +FetchContent_MakeAvailable(opentelemetry_cpp) + +add_library(messenger_core STATIC + src/telemetry.cpp + src/observability_monitor.cpp + src/db.cpp + src/auth.cpp + src/user_repo.cpp + src/chat_repo.cpp + src/message_repo.cpp + src/redis_pool.cpp + src/session_repo.cpp + src/pg_session_repo.cpp + src/s3_client.cpp + src/image_util.cpp + src/attachment_repo.cpp + src/attachment_queue.cpp + src/outbox.cpp + src/staging_cleaner.cpp + src/job_repo.cpp + src/image_pipeline.cpp + src/direct_upload_repo.cpp +) + +target_include_directories(messenger_core PUBLIC + src + ${CMAKE_CURRENT_SOURCE_DIR}/third_party/stb +) +target_compile_definitions(messenger_core PUBLIC + MTUSI_MINIO_CPP_VERSION="${MTUSI_MINIO_CPP_VERSION}" +) + +target_link_libraries(messenger_core PUBLIC + Threads::Threads + PkgConfig::PQXX + PkgConfig::HIREDIS + PkgConfig::SODIUM + PkgConfig::EXIF + PkgConfig::WEBP + opentelemetry_exporter_otlp_http + opentelemetry_exporter_otlp_http_metric + opentelemetry_exporter_otlp_http_log + miniocpp::miniocpp +) + +add_executable(messenger src/main.cpp) +target_link_libraries(messenger PRIVATE messenger_core) + +add_executable(worker src/worker_main.cpp) +target_link_libraries(worker PRIVATE messenger_core) + +add_executable(s3_smoke tools/s3_smoke.cpp) +target_link_libraries(s3_smoke PRIVATE messenger_core) + +add_executable(image_smoke tools/image_smoke.cpp) +target_link_libraries(image_smoke PRIVATE messenger_core) +target_compile_definitions(image_smoke PRIVATE + IMAGE_SMOKE_FIXTURES="${CMAKE_SOURCE_DIR}/tools/fixtures" +) + +add_executable(thumbnail_smoke tools/thumbnail_smoke.cpp) +target_link_libraries(thumbnail_smoke PRIVATE messenger_core) + +add_executable(variants_smoke tools/variants_smoke.cpp) +target_link_libraries(variants_smoke PRIVATE messenger_core) + +add_executable(job_admin src/job_admin_main.cpp) +target_link_libraries(job_admin PRIVATE messenger_core) + +add_executable(telemetry_test student-tests/telemetry_test.cpp) +target_link_libraries(telemetry_test PRIVATE messenger_core) +target_compile_options(telemetry_test PRIVATE -UNDEBUG) diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 0000000..b8f9885 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,26 @@ +{ + "version": 6, + "cmakeMinimumRequired": { + "major": 3, + "minor": 16, + "patch": 0 + }, + "configurePresets": [ + { + "name": "release", + "displayName": "Release with minio-cpp", + "generator": "Unix Makefiles", + "binaryDir": "${sourceDir}/build", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release", + "MTUSI_MINIO_CPP_VERSION": "v0.3.0" + } + } + ], + "buildPresets": [ + { + "name": "release", + "configurePreset": "release" + } + ] +} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2fc206f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,123 @@ +# Clean-clone build: Ubuntu 24.04 + libpqxx from a pinned git tag. +# S3 client: official minio-cpp v0.3.0 via FetchContent (library SigV4). +# No dependency on mtusi2026lab3-api or other prior-lab images. + +ARG PQXX_VERSION=7.10.0 +ARG MTUSI_MINIO_CPP_VERSION=v0.3.0 + +# --------------------------------------------------------------------------- +# Stage: build libpqxx into /opt/libpqxx +# --------------------------------------------------------------------------- +FROM ubuntu:24.04 AS pqxx +ARG PQXX_VERSION +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update && apt-get install -y --no-install-recommends \ + build-essential cmake git ca-certificates pkg-config \ + libpq-dev \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /tmp +RUN git clone --depth 1 --branch "${PQXX_VERSION}" \ + https://github.com/jtv/libpqxx.git libpqxx-src \ + && cmake -S libpqxx-src -B libpqxx-build \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/opt/libpqxx \ + -DBUILD_SHARED_LIBS=ON \ + -DSKIP_BUILD_TEST=ON \ + && cmake --build libpqxx-build -j"$(nproc)" \ + && cmake --install libpqxx-build \ + && rm -rf /tmp/libpqxx-src /tmp/libpqxx-build + +# --------------------------------------------------------------------------- +# Stage: build messenger + worker + smokes +# --------------------------------------------------------------------------- +FROM ubuntu:24.04 AS builder +ARG MTUSI_MINIO_CPP_VERSION +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update && apt-get install -y --no-install-recommends \ + build-essential cmake pkg-config git ca-certificates \ + libpq-dev \ + libhiredis-dev \ + libsodium-dev libexif-dev libwebp-dev \ + libprotobuf-dev protobuf-compiler \ + nlohmann-json3-dev \ + libcurl4-openssl-dev libssl-dev zlib1g-dev \ + libpugixml-dev \ + libcurlpp-dev \ + libinih-dev \ + && rm -rf /var/lib/apt/lists/* + +COPY --from=pqxx /opt/libpqxx /opt/libpqxx +ENV PKG_CONFIG_PATH=/opt/libpqxx/lib/pkgconfig:/opt/libpqxx/lib/x86_64-linux-gnu/pkgconfig +ENV LD_LIBRARY_PATH=/opt/libpqxx/lib:/opt/libpqxx/lib/x86_64-linux-gnu +ENV CMAKE_PREFIX_PATH=/opt/libpqxx + +WORKDIR /src +COPY CMakeLists.txt CMakePresets.json ./ +COPY cmake ./cmake +COPY src ./src +COPY tools ./tools +COPY student-tests/telemetry_test.cpp ./student-tests/telemetry_test.cpp +COPY migrations ./migrations +COPY third_party ./third_party + +RUN cmake -S . -B build -DCMAKE_BUILD_TYPE=Release \ + -DMTUSI_MINIO_CPP_VERSION=${MTUSI_MINIO_CPP_VERSION} \ + && cmake --build build --target messenger worker job_admin s3_smoke image_smoke thumbnail_smoke variants_smoke telemetry_test -j2 + +# --------------------------------------------------------------------------- +# Runtime +# --------------------------------------------------------------------------- +FROM ubuntu:24.04 AS runtime +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update && apt-get install -y --no-install-recommends \ + ca-certificates curl \ + libprotobuf32t64 \ + libpq5 \ + libhiredis1.1.0 \ + libsodium23 libexif12 libwebp7 \ + libssl3t64 \ + libcurl4t64 \ + zlib1g \ + libpugixml1v5 \ + libcurlpp0t64 \ + libinih1 \ + libinireader0 \ + util-linux \ + && rm -rf /var/lib/apt/lists/* \ + && groupadd --gid 10001 app \ + && useradd --uid 10001 --gid app --shell /usr/sbin/nologin --no-create-home app + +COPY --from=pqxx /opt/libpqxx /opt/libpqxx +ENV LD_LIBRARY_PATH=/opt/libpqxx/lib:/opt/libpqxx/lib/x86_64-linux-gnu + +WORKDIR /app +COPY --from=builder /src/build/_deps/opentelemetry_cpp-build/libopentelemetry_proto.so /usr/local/lib/libopentelemetry_proto.so +COPY --from=builder /src/build/messenger /app/messenger +COPY --from=builder /src/build/worker /app/worker +COPY --from=builder /src/build/telemetry_test /app/telemetry_test +COPY --from=builder /src/build/job_admin /app/job_admin +COPY --from=builder /src/build/s3_smoke /app/s3_smoke +COPY --from=builder /src/build/image_smoke /app/image_smoke +COPY --from=builder /src/build/thumbnail_smoke /app/thumbnail_smoke +COPY --from=builder /src/build/variants_smoke /app/variants_smoke +COPY --from=builder /src/migrations /app/migrations +COPY tools/fixtures /app/fixtures +COPY docker-entrypoint.sh /docker-entrypoint.sh + +RUN chmod 0755 /docker-entrypoint.sh \ + && chown -R app:app /app \ + && ldconfig + +# Entrypoint starts as root to stage S3 secret files for uid 10001, then drops. +USER root +ENV APP_HOST=0.0.0.0 +ENV APP_PORT=8080 + +EXPOSE 8080 + +HEALTHCHECK --interval=5s --timeout=3s --start-period=20s --retries=3 \ + CMD curl -fsS http://127.0.0.1:8080/health/live || exit 1 + +ENTRYPOINT ["/docker-entrypoint.sh"] +CMD ["/app/messenger"] diff --git a/Makefile b/Makefile index 5d86d17..e38e130 100644 --- a/Makefile +++ b/Makefile @@ -28,3 +28,16 @@ test-persistence: test-failover: @test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable stop-one hook"; exit 2) $(PYTHON) tests/resilience.py --mode failover --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS) + +.PHONY: test-observability test-incidents +COMPOSE ?= docker compose +test-observability: + $(COMPOSE) exec -T api /app/telemetry_test + $(PYTHON) student-tests/observability.py --base-url "$(BASE_URL)" + +test-incidents: + COMPOSE="$(COMPOSE)" $(PYTHON) student-tests/incidents.py --base-url "$(BASE_URL)" + +.PHONY: benchmark-telemetry +benchmark-telemetry: + COMPOSE="$(COMPOSE)" $(PYTHON) scripts/benchmark_telemetry.py diff --git a/README.md b/README.md index a607238..0ce2e0c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,30 @@ Научиться находить причину деградации через метрики, логи и трассы всей системы, включая фоновую обработку. -Это **skeleton**, а не готовый сервер. Здесь есть задание, контракт и публичные проверки. Реализацию приложения, Dockerfile и требуемую инфраструктуру пишет студент. Язык и framework свободные; UI не обязателен. +В репозитории реализован C++ сервер на основе lab5 и стек наблюдаемости уровня 4: +OpenTelemetry C++ → Collector → Prometheus / Loki / Tempo → Grafana. +Бизнес-API сохранён. Архитектура, метрики, ограничения и результаты проверок — в [REPORT.md](REPORT.md). + +```sh +python3 scripts/bootstrap-local.py +docker compose up -d --build +# После готовности http://localhost:8080/health/ready: +make test +make test-observability +``` + +Grafana: [localhost:3000](http://localhost:3000/d/messenger-observability), login `admin`, +пароль — локальный `secrets/grafana_admin_password`. Bootstrap не перезаписывает существующие секреты. +Контролируемые отказы с автоматическим восстановлением: `make test-incidents`. + +Track 1 (9 прогонов по 1000 uploads, затем автоматическое восстановление telemetry): + +```sh +python3 scripts/benchmark_telemetry.py --requests 1000 --concurrency 4 --repetitions 3 +``` + +Результаты: `evidence/track1-benchmark.md` и подробные обезличенные samples в `evidence/track1-benchmark.json`. +Ниже сохранены исходные требования и критерии лабораторной. [Карта курса](COURSE.md) · [Процесс fork/PR](CONTRIBUTING.md) · [OpenAPI](contracts/openapi.json) · [Семантика API](contracts/README.md) · [Проверки](tests/README.md) · [Отчёт](REPORT.md) · [Примеры JSON](contracts/examples.json) · [Памятка преподавателю](MAINTAINERS.md) diff --git a/REPORT.md b/REPORT.md index b97ae42..5231c43 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,37 +1,564 @@ # Отчёт — лабораторная 6 -- Автор, группа: TODO -- Целевая оценка; выбранный трек 5, если нужен: TODO -- Commit/PR: TODO после публикации -- Использованные источники, библиотеки и помощь ИИ: TODO +- Автор, группа: Никитин Андрей Александрович, БВТ2301 +- Целевая оценка; выбранный трек 5, если нужен: 5; Track 1 — цена наблюдаемости. +- Commit/PR: реализация находится в рабочем дереве; отдельный commit/PR ещё не опубликован. Baseline шаблона: `470d9d6f1e4fe4f594e37c2ba59550ee5ca54fc1`. +- Использованные источники, библиотеки и помощь ИИ: README и контракты курса; первичная документация OpenTelemetry, W3C Trace Context и Grafana; opentelemetry-cpp, minio-cpp, libpqxx, hiredis, libsodium, nlohmann/json, libexif, libwebp и stb. Помощь ИИ: Codex — реализация инструментации, конфигурации, скрипты проверок/бенчмарка и оформление отчёта. Версии и ссылки приведены ниже. ## Запуск из чистого clone -TODO: версии runtime/образов, prerequisites, команды создания локальных secrets/.env, build, миграций, запуска, ожидания готовности, тестов и остановки. Указать необходимые действия оператора. Не вставлять секреты. Отдельно указать безопасную остановку и команду намеренного удаления учебных данных. +Требуются Linux amd64, Docker Engine с Compose v2+, Python 3.9+ и доступ к +Ubuntu/GitHub/registry при первой сборке. Приложения собираются как C++17; +компилятор, CMake и native-зависимости устанавливаются внутри Dockerfile. +Прежние готовые API-образы lab5 не требуются. + +| Компонент | Закреплённая версия | +| --- | --- | +| Build/runtime OS | Ubuntu 24.04 | +| OpenTelemetry C++ / MinIO C++ / libpqxx | v1.21.0 / v0.3.0 / 7.10.0 | +| PostgreSQL / Valkey / Nginx | 16.15-alpine / 8.1.10-alpine / 1.28.0-alpine | +| MinIO / mc | RELEASE.2025-04-22T22-12-26Z / RELEASE.2025-04-16T18-13-26Z | +| Collector Contrib / Prometheus | 0.119.0 / 3.2.1 | +| Loki / Tempo / Grafana | 3.4.2 / 2.7.2 / 11.6.0 | + +```sh +python3 scripts/bootstrap-local.py +docker compose config --quiet +docker compose up -d --build +# Дождаться HTTP 200: +curl -fsS http://localhost:8080/health/ready +make check +make test +make test-observability +make test-incidents +``` + +Grafana: http://localhost:3000/d/messenger-observability, пользователь `admin`, +пароль в локальном `secrets/grafana_admin_password`. Dashboard: папка Messenger. +Prometheus: http://localhost:9090, alerts http://localhost:9090/alerts. +В Grafana Explore выбрать Tempo, найти trace, перейти к Loki logs; либо выбрать +Loki `{service_name="messenger-worker"}` и фильтровать по `trace_id`. +API → HTTP → worker → S3/DB проверяется `student-tests/observability.py`. + +`API_PORT`, `GRAFANA_PORT`, `PROMETHEUS_PORT` настраиваются в `.env`; при их +изменении URL тестов задаются параметрами соответствующих Python scripts. +`OTEL_SDK_DISABLED=true docker compose up -d --force-recreate api worker` отключает +SDK для сравнения; бизнес-процессы продолжают работать. + +Если в окружении Docker Snap команда `docker compose` не найдена, используйте +установленный CLI plugin напрямую: `make test-observability COMPOSE=/path/to/docker-compose`. + +Первый запуск требует действий оператора: запустить bootstrap, выполнить build/up, +дождаться HTTP 200 readiness и затем запустить проверки. Bootstrap создаёт `.env` +и `secrets/` со случайными учебными credentials без вывода значений. Если они уже +существуют, скрипт сохраняет их и завершает работу: для повторного запуска достаточно +`docker compose up -d`. Секреты в отчёт и evidence не включаются. + +API и Worker применяют SQL-миграции автоматически под PostgreSQL advisory lock. +Сервисы `minio-init` и `minio-user-init` идемпотентно создают приватный bucket, +policy и ограниченного S3 пользователя; Worker создаёт Redis consumer group. +Grafana автоматически загружает datasources/dashboard. Ручное выполнение SQL +и ручной импорт dashboard не требуются. + +Безопасная остановка с сохранением named volumes: + +```sh +docker compose down +``` + +Намеренное удаление **всех учебных данных этого Compose-проекта**: БД, Redis, +MinIO, Prometheus, Loki, Tempo и состояния Grafana. Ниже приведена только инструкция; +в рамках работы эта команда не выполнялась: + +```sh +# Только для осознанного сброса собственного учебного стенда: +docker compose down --volumes +``` + +Локальные `.env` и `secrets/` эта команда не удаляет. + ## Архитектура и решения -TODO: схема процессов/хранилищ, источник истины, транзакционные границы, ограничения. Что перенесено из lab5, что изменено в этой работе. Соответствие переменных из .env.example реальной конфигурации. +### Основа и границы изменений + +В исходном lab6 был skeleton без C++ приложения, CMakeLists.txt и рабочего compose.yaml. +В этот репозиторий перенесены исходники lab5 из соседнего checkout +(commit `580b33efe867d348285785bcccd63681ec7ae962`), миграции, MinIO bootstrap, +Nginx, инструменты проверки изображений и vendored stb. Соседний lab5 не изменён. + +Сохранены API, авторизация/сессии, схемы БД, Redis Streams, transactional outbox, +retry/backoff, дедупликация, ACK после durable результата, проверка изображений, +MinIO original/variants и direct-upload расширение lab5. Изменения в job payload: +только предусмотренные контрактом optional поля `traceparent`/`tracestate`. +Когда SDK отключён, отсутствующий traceparent не записывается как пустая строка. + +### Процессы, хранилища и версии SDK + +```mermaid +flowchart LR + API[API x2 / opentelemetry-cpp] -->|OTLP HTTP protobuf :4318| C[OTel Collector] + W[Worker / opentelemetry-cpp] -->|OTLP HTTP protobuf :4318| C + API --> O[PostgreSQL outbox + W3C context] + O --> P[Publisher producer span] + P --> R[Redis Stream / JSON + traceparent] + R --> W + C -->|Prometheus exporter :9464| M[Prometheus / 7 days] + C -->|OTLP HTTP /otlp/v1/logs| L[Loki / 7 days] + C -->|OTLP HTTP /v1/traces| T[Tempo / 7 days] + G[Grafana] --> M + G --> L + G --> T +``` + +API и worker инициализируют SDK в своих `main()`. В каждом процессе отдельные +TracerProvider, MeterProvider, LoggerProvider, resource attributes: +`service.name=messenger-api|messenger-worker`, `service.version=lab6-1.0`, +`service.instance.id=`, `deployment.environment.name=lab`. +Instrumentation scope `messenger`, version `1.0`. Используются имена OTel HTTP/messaging +и локальные документированные метрики worker/queue/pool; это не заявление о полном +соответствии всем экспериментальным semantic conventions конкретного schema URL. + +SDK закреплён на `opentelemetry-cpp v1.21.0` (commit +`b9cf499ff5715433848b316059714b5c59af1f2c`), ABI 1. Экспортер только OTLP +HTTP/protobuf: `WITH_OTLP_HTTP=ON`, `WITH_OTLP_GRPC=OFF`. +Collector Contrib 0.119.0, Prometheus 3.2.1, Loki 3.4.2, Tempo 2.7.2, +Grafana 11.6.0. PostgreSQL 16.15, Valkey 8.1.10, Nginx 1.28.0; +MinIO RELEASE.2025-04-22T22-12-26Z, mc RELEASE.2025-04-16T18-13-26Z. +Теги и конфиги закреплены в Compose. Loki использует native OTLP endpoint, +а не удалённый Loki exporter. Collector не является долговременным хранилищем; +Grafana строит запросы и визуализирует данные хранилищ. Все четыре хранилища +состояния telemetry имеют отдельные named volumes. + +### Источник истины и транзакционные границы + +PostgreSQL — источник истины для пользователей, чатов, сообщений, вложений, +состояний jobs и durable outbox; MinIO хранит бинарные оригиналы/варианты. +Valkey используется для Redis Streams и, при `SESSION_STORE=redis`, сессий; +в проверенной `.env` выбран `SESSION_STORE=postgres`. Брокер доставляет задания, +а не заменяет durable состояние job в PostgreSQL. + +Создание job и outbox записи выполняется в одной PostgreSQL-транзакции. +Publisher отмечает outbox published после XADD; повторная доставка допускается. +Worker сохраняет durable результат/следующую попытку до ACK. Публикация ссылки на +готовые S3-объекты и статуса ready происходит транзакционно в БД. Эти правила lab5 +сохранены; telemetry не участвует в принятии бизнес-решений. + +### Соответствие `.env.example` конфигурации + +| Переменные | Реальное применение | +| --- | --- | +| `POSTGRES_USER`, `POSTGRES_PASSWORD`, `POSTGRES_DB` | Bootstrap PostgreSQL; `secrets/database_url` должен содержать согласованный connection string. Генератор создаёт согласованные значения. | +| `DATABASE_URL_FILE`, `CACHE_URL_FILE`, `BROKER_URL_FILE`, S3 `*_FILE` | Compose монтирует file secrets в `/run/secrets`; entrypoint переносит их в `/tmp/app-secrets` для uid 10001. Worker и API используют один Redis/Valkey endpoint. | +| `SESSION_STORE`, `SESSION_TTL_SECONDS`, `IDEMPOTENCY_TTL_SECONDS` | Выбор хранилища/TTL сессий и идемпотентности API. | +| `API_REPLICAS`, `API_PORT` | Число API-реплик и внешний порт lb; `APP_HOST`/`APP_PORT` внутри Compose фиксированы как `0.0.0.0:8080`. | +| `S3_ENDPOINT`, `S3_REGION`, `S3_BUCKET`, MinIO credentials | Endpoint/bucket приложения и идемпотентный S3 bootstrap; приложения используют отдельного ограниченного пользователя. | +| `MAX_UPLOAD_BYTES`, `MAX_IMAGE_PIXELS`, `MAX_CONCURRENT_UPLOADS`, `DIRECT_UPLOAD_TTL_SECONDS` | Ограничения upload/image/direct-upload из lab5. | +| `JOB_MAX_ATTEMPTS`, `JOB_RECLAIM_IDLE_MS`, `JOB_RETRY_BASE_MS`, `JOB_RETRY_MAX_MS`, `JOB_TIMEOUT_SECONDS` | Retry/reclaim/backoff и watchdog Worker. | +| `STAGING_RETENTION_SECONDS`, `STAGING_CLEANUP_INTERVAL_SECONDS` | Очистка staging. | +| `WORKER_CONCURRENCY=1` | Описывает реализованный последовательный Worker; изменение этой переменной не включает дополнительные потоки. Метрика capacity равна 1. | +| `OTEL_SDK_DISABLED` | Runtime on/off SDK в обоих приложениях. | +| `OTEL_COLLECTOR_CONFIG` | Путь к Collector profile: по умолчанию 100%; для Track 1 используется отдельный 10% traces profile. | +| `GRAFANA_ADMIN_USER`, `GRAFANA_PORT`, `PROMETHEUS_PORT` | Учётная запись Grafana и loopback-порты UI. Пароль Grafana читается из отдельного file secret. | +| `APP_ENV` | В этом стенде окружение фиксировано как `deployment.environment.name=lab`; переменная не переключает ресурсные атрибуты. | + +OTLP endpoint задаётся Compose как `http://otel-collector:4318`; service.name и +service.version — кодом инициализации SDK. Настройки HTTP/DB pool и CPU/RAM имеют +дополнительные defaults в Compose; проверенные лимиты приведены в экспериментах. + +### Сквозная передача контекста + +1. После разбора заголовков API извлекает только W3C `traceparent`/`tracestate` + через `HttpTraceContext::Extract`, создаёт SERVER span, активирует Scope. + Невалидный traceparent не становится родителем. Baggage не переносится. +2. `enqueue_attachment_job()` создаёт PRODUCER span `attachment.enqueue` и + в той же транзакции, что и job, записывает текущие W3C поля в JSON outbox. + Это существенно: позднее publisher работает в другом потоке и не имеет HTTP Scope. +3. Publisher извлекает durable контекст из JSON, создаёт PRODUCER span + `jobs:attachments publish`, подставляет **его** traceparent в публикуемый Redis JSON. + Исходный durable payload остаётся неизменным, повторная публикация получает + новый producer span с прежним причинным родителем. +4. Worker извлекает контекст из полученного JSON и создаёт CONSUMER span + `attachment.process` с родителем Redis producer. S3 операции и DB публикация + ready — дочерние CLIENT spans. В спаны не записываются object keys и SQL-параметры. +5. Если JobRepo планирует retry, `enqueue_attachment_job()` вызывается под текущим + consumer Scope. Следующая попытка продолжает тот же trace через новый outbox + producer; исходные правила retry/ACK не меняются. + +Root sampling — always on, дочерние spans используют ParentBasedSampler и +уважают sampled flag родителя. API и worker ведут реальные spans операций, +а не фиксированные демонстрационные traces. Логи завершения HTTP и job получают +тот же trace_id/span_id; HTTP `request_id` сохраняется отдельно и соответствует +`X-Request-Id`, уникальность между репликами задаёт `service.instance.id`. + +### Сигналы и имена в Prometheus + +| SDK instrument | Prometheus | Единицы / смысл | +|---|---|---| +| http.server.requests | http_server_requests_total | бизнес-запросы; method, route template, status class | +| http.server.request.duration | http_server_request_duration_seconds_bucket/count/sum | секунды, включая чтение запроса | +| worker.jobs | worker_jobs_total | доставки; job.type, outcome | +| worker.job.duration | worker_job_duration_seconds_bucket/count/sum | секунды от consume до завершения обработки/ACK | +| attachment.ready.duration | attachment_ready_duration_seconds_bucket/count/sum | durable job creation → транзакция публикации ready | +| queue.depth | queue_depth | незавершённые durable jobs | +| queue.oldest.age | queue_oldest_age | возраст старейшей незавершённой job, секунды | +| queue.observation.timestamp | queue_observation_timestamp | Unix seconds последнего успешного наблюдения | +| db.pool.used/waiting/capacity | db_pool_used/waiting/capacity | занятые, ожидающие и все соединения PgPool процесса | +| worker.busy/capacity | worker_busy/capacity | активные задачи / 1 последовательный worker | +| process.cpu.time | process_cpu_time | user+system CPU seconds; rate = использованные ядра | +| process.memory.usage | process_memory_usage | текущий RSS bytes из /proc/self/statm | +| telemetry.sdk.errors | telemetry_sdk_errors | накопленные внутренние SDK warning/error diagnostics | +| telemetry.sdk.dropped.spans | telemetry_sdk_dropped_spans | накопленные предупреждения переполнения span batch queue | + +Health endpoints исключены из RPS/errors/duration и логов завершения запроса. +Duration записывается и на ранних HTTP-ошибках; неподдержанные/неизвестные маршруты +получают `unmatched`, неизвестные методы `_OTHER`. Идентификаторы и query strings +не попадают в metric labels. Границы histogram в секундах: +`0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10, 30, 60, 120`. + +Worker outcomes: `success`, `failed`, `retry`, `busy`, `superseded`. +Это счётчик **попыток доставки**, а не unique jobs: повторное чтение ready job +учитывается как ещё одна успешная доставка. `retry` означает неудачную попытку +с durable перепланированием, `failed` — terminal failure/невалидная ссылка либо +исключение, оставившее доставку pending. Не смешивайте эти категории с числом +уникально опубликованных attachments. + +Queue observer раз в 5 секунд читает `jobs WHERE status IN ('queued','processing')` +по отдельному соединению PostgreSQL, только в API. `max` объединяет одинаковое +наблюдение от двух реплик. Метрика включает отложенные retry и непубликованный +outbox, не включает terminal jobs и историю ACKed stream entries. Это **логический +backlog**, а не XLEN и не время обработки. При недоступной БД последнее значение +может устареть — для этого есть timestamp, панель возраста наблюдения и alert. +Соединение observer не входит в PgPool; фоновые outbox/cleaner PgPool входят. + +Dashboard `Messenger — Observability`, UID `messenger-observability`, импортируется +автоматически из `infra/grafana/dashboards/messenger.json`. Есть RPS, p50/p95/p99 +HTTP/worker/time-to-ready, error ratio, queue depth/age, worker saturation, +DB pools, CPU/RSS, диагностика Collector и связанные логи. + +Пример percentile всех реплик: + +```promql +histogram_quantile(0.95, + sum by(le)(rate(http_server_request_duration_seconds_bucket[5m]))) +``` + +Error ratio: `5xx / все бизнес-запросы`. Ответы 4xx в numerator не входят. +При отсутствии серии 5xx numerator равен нулю (`or vector(0)`). +Worker saturation: `sum(worker_busy) / clamp_min(sum(worker_capacity), 1)`. +Histogram quantiles при отсутствии наблюдений дают NaN; dashboard не подменяет +его средним или выдуманным percentile. OTLP Prometheus exporter может ещё хранить +последние серии остановленного процесса до истечения настроенного expiration interval +20s (затем требуется ещё один scrape Prometheus). + +### SLI/SLO и alerts + +Учебный availability SLI = `1 - 5xx / все бизнес-запросы`, health исключён. +Цель: ≥99% за скользящие 30 минут при ненулевом трафике. Практический сигнал +быстрой диагностики: error ratio >5% за 1 минуту, `for: 30s` (`ApiHighErrorRate`). +Это локальный диагностический alert, а не burn-rate модель production SLO. + +`QueueLagGrowing`: oldest age >30s, depth >0, delta(age[1m]) >0, `for: 30s`. +`QueueObservationStale`: наблюдение старше 30s или отсутствует, `for: 30s`. +Все правила, пороги, окна и пояснения сохранены в `infra/prometheus/alerts.yaml`. +Локальное состояние доступно в Prometheus `/alerts`; внешних уведомлений нет. + +### Отказоустойчивость и безопасность + +SDK batch queues: максимум 1024 span records и 1024 log records на процесс, +пачка 128, интервал 500ms, timeout HTTP 500ms, одна попытка экспорта. +Экспорт выполняется в фоновых потоках SDK; периодический reader метрик — 5s, +export timeout 1s. При недоступном Collector приложения продолжают работу, +возможна потеря telemetry. Graceful shutdown ограничивает ожидание каждой +из трёх providers двумя секундами. + +Collector: memory_limiter первым процессором (192 MiB, spike 32 MiB, 1s), +batch 256, max 512, timeout 1s. Очередь каждого backend exporter ограничена +256 batches, 2 consumers, HTTP timeout 2s, retry с backoff 1–5s, общий лимит +15s. Docker memory limit 256 MiB и GOMEMLIMIT 200MiB ограничивают процесс. +API/worker не зависят через depends_on от Collector/Loki/Tempo/Grafana. +При отказе backend сохраняются работа API/worker и экспорт метрик в Prometheus; +Collector регистрирует ошибки/потери и после восстановления возобновляет экспорт. + +Диагностика потерь: `otelcol_exporter_send_failed_spans`, +`otelcol_exporter_send_failed_log_records`, `otelcol_exporter_enqueue_failed_spans`, +`otelcol_processor_refused_spans`, `telemetry_sdk_errors`, +`telemetry_sdk_dropped_spans`. Не складывайте эти значения как точное количество +уникально потерянных spans: неуспешный экспорт может повторяться при retry. +SDK 1.21 не сообщает отдельный точный счётчик переполнения log batch queue; +он может терять логи молча. Точный аудит всех потерь потребовал бы отдельного +processor/exporter wrapper. Падение/kill процесса до flush также теряет буферы. + +Телеметрия строится по allowlist: статические имена событий/операций, route +шаблоны, метод, status class/code, job.type/outcome и resource attributes. +Не экспортируются Authorization/Basic/Bearer, пароли, session tokens, тела +сообщений/запросов, filename, binary image, SQL-параметры, object keys, +signed URL и тексты исключений. SDK diagnostics считаются без вывода текста. +Отдельный privacy test ищет canary сообщения, пароль, token и base64 картинки +в свежих логах и upload trace; это проверка выбранного сценария, не доказательство +отсутствия утечек для всех возможных входов. + +Пароли генерирует bootstrap, `.env` и `secrets/` исключены из Git и Docker context. +Bootstrap сохраняет существующие credentials, а не перезаписывает их. +Secret directory 0700, app secrets 0600; entrypoint копирует их в 0400 файлы +для uid 10001 и сбрасывает root. Grafana secret 0444 внутри защищённого 0700 +каталога нужен для bind mount в Grafana uid 472. Telemetry backends и OTLP +доступны только в Compose network; Grafana/Prometheus/API опубликованы на loopback. + +### Ключевые файлы + +- `src/telemetry.hpp`, `src/telemetry.cpp`: SDK lifecycle, RAII spans, propagator, + HTTP/jobs metrics и структурные логи. +- `src/main.cpp`, `src/worker_main.cpp`: инициализация SDK и границы операций. +- `src/outbox.cpp`: durable W3C context, producer publication и retry propagation. +- `src/db.cpp`, `src/s3_client.cpp`, `src/job_repo.cpp`: pool и dependency spans, + публикация ready и end-to-end histogram. +- `src/observability_monitor.*`: отдельное наблюдение очереди, process CPU/RSS. +- `CMakeLists.txt`, `Dockerfile`, `docker-entrypoint.sh`: SDK, зависимости, + сборка и безопасное чтение Compose secrets непривилегированными процессами. +- `compose.yaml`, `infra/{otel,prometheus,loki,tempo,grafana}`: весь telemetry stack, + persistent volumes, provisioning, dashboard и alert rules. +- `scripts/bootstrap-local.py`, `student-tests/*`, `Makefile`: bootstrap и проверки. + +Первичные справочные материалы: +[OTel C++ exporters](https://opentelemetry.io/docs/languages/cpp/exporters/), +[Loki native OTLP](https://grafana.com/docs/loki/latest/send-data/otel/), +[W3C Trace Context](https://www.w3.org/TR/trace-context/). ## Доказательства критериев +Проверки реализации выполнены 16.11.2026. Таблица связывает отдельные заявленные +критерии с воспроизводимыми командами, наблюдениями и сохранёнными файлами. +Офлайн `make check` проверяет структуру, но не доказывает работу приложения. + | Критерий README | Команда/сценарий | Наблюдаемый результат | Файл доказательства | | --- | --- | --- | --- | -| Публичный smoke | make test | TODO | TODO | -| Остальные пункты уровня 3 | TODO | TODO | TODO | -| Все пункты уровня 4, если заявлен | TODO | TODO | TODO | -| Выбранный трек 5, если заявлен | TODO | TODO | TODO | +| Публичный smoke; сохранение бизнес-API lab5 | `make test` | PASS: пользователи/сессии, чат, сообщения, идемпотентность, upload → ready, original/thumbnail и доступы | [evidence/verification.md](evidence/verification.md), публичный `tests/smoke.py` | +| Уровень 3: API-реплики, БД, S3, broker и Worker | `docker compose up -d --build`; `docker compose ps` | Две API-реплики, Worker и бизнес-хранилища запущены; API readiness healthy; upload обрабатывается | `compose.yaml`, [evidence/verification.md](evidence/verification.md) | +| Уровень 3: Collector и хранилища трёх сигналов в общем стенде | `docker compose config --quiet`; Collector `validate`; запуск Compose | OTLP HTTP receiver и три pipelines; Prometheus/Loki/Tempo/Grafana работают, конфиги и named volumes заданы | `compose.yaml`, `infra/otel/collector.yaml`, `infra/{prometheus,loki,tempo,grafana}`, [evidence/verification.md](evidence/verification.md) | +| Уровень 3: SDK API/Worker, HTTP/job counters и histogram | `make test-observability` | Реальные метрики обоих приложений; проверены имена и запросы dashboard | [evidence/observability.json](evidence/observability.json), `src/telemetry.cpp` | +| Уровень 3: реальные traces и структурные логи с корреляцией | `make test-observability` | Upload trace содержит API/Worker и S3/DB spans; Loki events обоих service.name найдены по trace ID | [evidence/observability.json](evidence/observability.json) | +| Уровень 3: низкая кардинальность и отсутствие приватных payloads в проверенном сценарии | Privacy checks внутри `make test-observability` | Нет raw chat ID/запрещённых labels, canary сообщения, пароля, token и base64 изображения в проверенных logs/trace | [evidence/observability.json](evidence/observability.json), allowlist в `src/telemetry.cpp` | +| Уровень 3: импортируемые dashboard/datasources | `make test-observability` | Provisioned dashboard найден; 25 PromQL queries проверены | `infra/grafana/dashboards/messenger.json`, `infra/grafana/provisioning`, [evidence/observability.json](evidence/observability.json) | +| Уровень 4: W3C API → outbox → Redis → Worker | `make test-observability`; `/app/telemetry_test` | Consumer parent — producer, producer продолжает durable outbox context; invalid context и route privacy self-test PASS | [evidence/observability.json](evidence/observability.json), `student-tests/telemetry_test.cpp` | +| Уровень 4: цепочка до S3/DB, включая retry | `make test-incidents`, ограниченный отказ S3 | Retry сохранил trace ID, следующая попытка дошла до ready; parent-child цепочка проверена | [evidence/incidents.json](evidence/incidents.json), событие `retry_same_trace_ready_verified` | +| Уровень 4: p50/p95/p99 из histogram всех реплик | `make test-observability` | Запросы с `histogram_quantile` и `sum by(le)` выполняются; единицы seconds документированы | `infra/grafana/dashboards/messenger.json`, [evidence/observability.json](evidence/observability.json) | +| Уровень 4: queue depth/age, DB pool, Worker saturation, process CPU/RAM и time-to-ready | `make test-observability`; остановка Worker | Метрики присутствуют; при остановке Worker depth=1, oldest age=61.10s, после запуска backlog=0 | [evidence/observability.json](evidence/observability.json), [evidence/incidents.json](evidence/incidents.json) | +| Уровень 4: проверяемый SLI/SLO и alert rules | `promtool check config /etc/prometheus/prometheus.yaml`; `promtool check rules /etc/prometheus/alerts.yaml` в контейнере Prometheus | Конфиг и 3 правила валидны; задан availability ≥99% / 30min; достижение SLO за полное окно отдельно не доказывалось | `infra/prometheus/alerts.yaml`, [evidence/verification.md](evidence/verification.md), подраздел SLI/SLO | +| Уровень 4: alerts при росте queue lag и DB outage | `make test-incidents` | `QueueLagGrowing` и `ApiHighErrorRate` прошли firing → resolved | [evidence/incidents.json](evidence/incidents.json), [evidence/verification.md](evidence/verification.md) | +| Уровень 4: ограниченные очереди и отказ telemetry backend | `make test-incidents`, остановка Tempo/Loki | Upload дошёл до ready, сообщения записывались; +46 failed span export attempts, RSS Collector 179634176 bytes; сервисы восстановлены | [evidence/incidents.json](evidence/incidents.json), `infra/otel/collector.yaml`, `src/telemetry.cpp` | +| Уровень 4: локальные runbooks двух инцидентов | Диагностика Worker stopped / DB unavailable по подразделу ниже | Описаны сигналы, различение причин, команды восстановления и проверка resolved | Подраздел «Диагностика контролируемых инцидентов», [evidence/verification.md](evidence/verification.md) | +| Уровень 5, Track 1: одинаковая нагрузка Off / On 100% / Collector 10% | `python3 scripts/benchmark_telemetry.py --requests 1000 --concurrency 4 --repetitions 3` | 9 прогонов ×1000 uploads, concurrency 4; все 9000 HTTP 202/jobs ready, docker stats и ingest counters сохранены | [evidence/track1-benchmark.md](evidence/track1-benchmark.md), [evidence/track1-benchmark.json](evidence/track1-benchmark.json) | +| Уровень 5, Track 1: цена сигналов, потери редких ошибок, выбор конфигурации | Тот же benchmark и отдельный ERROR probe | API CPU +22.5% по медианам средних; C сохранил 10.92% spans; в Tempo найдены 9 из 100 synthetic ERROR traces; компромиссы объяснены | Подраздел «Track 1: Цена наблюдаемости», [evidence/track1-benchmark.md](evidence/track1-benchmark.md) | +| Восстановление после эксперимента и проверки инструмента | `python3 scripts/benchmark_telemetry.py --self-test`; затем `make test`, `make test-observability` | Парсеры/trace-only config self-test PASS; SDK on и Collector 100% восстановлены; повторные smoke PASS | [evidence/track1-benchmark.json](evidence/track1-benchmark.json), скрипт benchmark, [evidence/observability.json](evidence/observability.json) | -TODO: добавить отдельную строку для каждого заявленного критерия. PASS без команды и наблюдения не является доказательством. Проверка инфраструктурного hook требует подтверждения, какие реальные процессы/хранилища перезапущены. +### Сохранённые результаты проверок + +Track 1: методика и итоговая таблица — [evidence/track1-benchmark.md](evidence/track1-benchmark.md); +исходные latency/Docker stats/counters — [evidence/track1-benchmark.json](evidence/track1-benchmark.json). + +Проверено 16.11.2026 на финальном образе: Docker build, Compose config, +Collector validate, promtool (конфиг и 3 правила), C++ self-test, публичный +`make test` с telemetry on/off — PASS. Сквозная проверка реального upload, +связанных логов, privacy canaries и 25 запросов provisioned dashboard — PASS. +Полный поставляемый сценарий инцидентов на финальном образе — PASS: оба alerts +firing/resolved, retry в том же trace до ready, работа API/worker при остановленных +Loki/Tempo и последующее восстановление сервисов. + +Нагрузка: 10338 успешных POST за 30.026s, 0 ошибок, +344.305 successful RPS, клиентские p50/p95/p99 = +5.666/52.505/61.702 ms. +Это closed-loop тест, concurrency 4, percentile только успешных запросов; +он не доказывает предельную производительность или соблюдение 30-минутного SLO. + +Даты/времена инцидентов и итоговые проверки: `evidence/verification.md`. +Длительный memory soak и исчерпывающий privacy-аудит не проводились. +Автоматические evidence файлы не содержат токены, пароли или тела сообщений: +`evidence/observability.json` — реальный trace ID, имена spans, проверенные метрики, +связь producer/consumer и query checks; `evidence/incidents.json` — времена +firing/resolved, агрегированные response codes и RSS Collector. ## Эксперименты и отказы -TODO: гипотеза, hardware/лимиты, версии, объём данных, профиль нагрузки, concurrency/arrival rate, длительность/прогрев, повторы, успешные RPS, ошибки, p50/p95/p99, CPU/RAM. Сохранить raw summary без tokens и объяснить ограничения измерения. +### Нагрузочный smoke + +Хост: Intel Core i5-12450H, 12 logical CPU, 14.85 GiB RAM. Лимиты API — +2 ×0.5 CPU/256 MiB, Worker — 0.5 CPU/512 MiB; образы и SDK закреплены выше. +Сценарий `python3 tests/load.py --duration 30 --concurrency 4 --output evidence/load.json`: +closed-loop POST сообщений без автоматических retry. Получено 10338 успешных +запросов за 30.026s, ошибок 0, 344.305 RPS, p50/p95/p99 успешных запросов +5.666/52.505/61.702ms. Это один smoke-прогон, не измерение предельной мощности; +CPU/RAM этим генератором не снимались. Полный сравнительный эксперимент вложений, +включая CPU/RAM и прогрев/повторы, приведён в Track 1. + +### Контролируемые отказы + +Команда `make test-incidents` останавливает/восстанавливает реальные Compose-сервисы +`worker`, `db`, `minio`, `tempo`, `loki`; volumes не удаляет. Для S3 retry применяется +pause/unpause уже запущенного Worker. Это прямые действия скрипта, а не +проверка restart/failover hook; отдельные hooks в этой работе не заявляются. +Времена ниже рассчитаны по `evidence/incidents.json`, дата — 16.11.2026. | Воздействие | Что ожидаем | Что наблюдали | Время восстановления / потеря данных | | --- | --- | --- | --- | -| TODO | TODO | TODO | TODO | +| Остановка `worker`, затем upload | HTTP 202/queued, рост backlog/age, alert; после запуска job ready | `QueueLagGrowing` firing через 74.1s после принятия upload; depth=1, oldest age=61.10s; затем backlog=0 и resolved | От firing до drained/resolved 20.6s; та же attachment дошла до ready | +| Остановка `db`, валидные reads | 5xx, ошибки DB dependency, `ApiHighErrorRate` firing | Зафиксированы 1×503 и 87×502 на внешнем API; alert firing через 44.0s, после запуска БД чтение восстановлено | Firing → resolved за 60.1s, включая вымывание ошибок из минутного окна; отдельный аудит всех COMMIT не проводился | +| Остановка `minio` при существующем Worker | Неудачная попытка → durable retry → ready в прежнем trace | `s3_failure_scheduled_retry` → `retry_same_trace_ready_verified`, trace `997e005d6cc34eaa869fc3ced3e479ee` | Между этими событиями 1.23s; job дошёл до ready без смены trace | +| Остановка `tempo` и `loki` | API/Worker работают, экспорт ошибается, память/очереди ограничены | Во время outage upload ready, сообщения сохранялись; +46 failed span export attempts, RSS Collector 171.31 MiB при Docker limit 256 MiB | Работа приложения подтверждена через 21.3s намеренного outage; backends запущены, последующие smoke PASS. Потеря части telemetry допустима; failed attempts не равны уникальным потерям spans | + +Точное время команд restart/start не измерялось отдельно: указанные интервалы +связаны с сохранёнными событиями наблюдения, а не обещанием recovery SLA. + +### Диагностика контролируемых инцидентов + +`make test-incidents` создаёт только синтетические данные. Скрипт временно +останавливает worker, БД и затем Loki/Tempo по очереди; каждый остановленный +сервис запускается обратно в `finally`. Volumes не удаляются. +Не запускайте сценарий на общем/боевом стенде с реальными пользователями. + +1. **Worker stopped.** Upload остаётся 202/queued, depth и oldest age растут, + API продолжает отвечать, нет свежих consumer spans после producer. + Проверить QueueLagGrowing firing в Prometheus, worker container state и logs. + `docker compose start worker`; та же attachment становится ready, backlog + уменьшается до 0, alert resolved. Низкий busy сам по себе не доказывает + отсутствие очереди: проверять также age и свежесть наблюдения. +2. **DB unavailable.** Валидные аутентифицированные reads возвращают 5xx, + ApiHighErrorRate firing. В Tempo SERVER span error, задержка/ошибка + `postgresql.pool.acquire`; `db_pool_waiting` позволяет отличить ожидание + соединения от медленного S3. Queue observation становится stale; это не + означает нулевой backlog. После `docker compose start db` pool переподключается, + запросы снова успешны, alert resolved после вымывания ошибок из минутного окна. +3. **Tempo/Loki unavailable.** Upload проходит до ready, сообщения сохраняются. + Collector exporter failures растут; очередь ограничена, RSS доступен в + `otelcol_process_memory_rss`. После возврата backend exporter восстанавливается; + пакеты, истёкшие по retry/queue limit, не восстанавливаются из application data. + +### Track 1: Цена наблюдаемости + +**Гипотеза.** Telemetry 100% увеличивает CPU/RAM API и Worker. Sampling 10% в +Collector уменьшает экспорт в Tempo примерно на 90%, но не стоимость SDK и не +входящий OTLP ingest. Ожидание «CPU +20–40%» проверяется, а не подставляется в результаты. + +**Методика.** 16.11.2026, Intel Core i5-12450H, 12 logical CPU, 14.85 GiB RAM. +Две API-реплики по 0.5 CPU/256 MiB, Worker 0.5 CPU/512 MiB; одинаковый binary +и бизнес-зависимости. По три прогона каждого варианта, порядок ABC / BCA / CAB. +Перед каждым — 20 warm-up uploads, затем **1000 POST вложений, concurrency 4**: +PNG 320×200, 111817 bytes. Все 9000 измеренных uploads вернули 202 и дошли до ready; +очередь между прогонами полностью обработана, volumes не удаляются. + +A: SDK disabled; B: SDK ParentBased(AlwaysOn), Collector 100%; C: SDK остаётся +100%, только traces pipeline получает `probabilistic_sampler/track1` +(`sampling_percentage: 10`, `hash_seed: 22`) после memory_limiter и перед batch. +Внешний traceparent не задаётся. Логи и метрики в C сохраняются на 100%. +Off оставляет no-op обёртки и background observer: это runtime SDK on/off, +а не сравнение со сборкой без инструментации. + +Latency/mean/RPS измерены клиентом до HTTP 202, не до ready; p50/p99 — nearest rank. +CPU/RAM — средние `docker stats` за POST + полный drain Worker; API = сумма двух +реплик, 100% CPU = одно logical core, RAM = Docker working set в MiB, не peak RSS. +Spans/s = delta `otelcol_receiver_accepted_spans` / окно POST + drain + финальный flush. +Collector пересоздаётся перед прогоном; delta берётся внутри одного его запуска. +Ниже медианы трёх прогонов, включая медиану индивидуальных p50/p99, не pooled percentile. + +| Настройка | RPS | p50 latency, ms | p99 latency, ms | CPU API | RAM API, MiB | CPU Worker | RAM Worker, MiB | Spans/sec (ingest) | +|---|---:|---:|---:|---:|---:|---:|---:|---:| +| A: Off | 84.37 | 27.30 | 202.70 | 10.32% | 14.22 | 34.79% | 6.88 | 0.00 | +| B: On, SDK 100% / Collector 100% | 75.44 | 30.46 | 288.30 | 12.64% | 17.05 | 38.48% | 7.81 | 391.01 | +| C: On, SDK 100% / Collector 10% | 75.28 | 30.48 | 204.05 | 13.31% | 16.58 | 39.12% | 7.88 | 412.19 | + +Медианное **среднее HTTP-время** A/B/C: **46.89 / 52.56 / 52.82 ms**. +Отдельные прогоны, дополнительные counters и длительности — +[evidence/track1-benchmark.md](evidence/track1-benchmark.md); +исходные latency samples, Docker stats, SHA256 конфигов и hardware/limits — +[evidence/track1-benchmark.json](evidence/track1-benchmark.json). + +**Цена CPU/RAM.** B против A: средний CPU API **+22.5%**, Worker **+10.6%**; +RAM API **+19.9%** (+2.83 MiB на две реплики), Worker **+13.5%** (+0.93 MiB). +Но CPU% усредняется за окна разной длины. Для одинакового объёма работы оценка +CPU·мс/job = (CPU% / 100) × pipeline_seconds × 1000 / jobs_count; медиана её +парного прироста по повторам — **+9.9% API, +2.2% Worker**. +Диапазон +20–40% наблюдался у среднего CPU API, но не является универсальной +надбавкой SDK и не подтвердился для нормированного CPU Worker. + +**Ingest и экспорт.** В B и C принято примерно 28.2 тыс. spans на 1000 uploads. +Медианные accepted/sent: B **28231 / 28230**, C **28218 / 3083**. +C сохраняет медианно **10.92%** spans, отбрасывая около **89.08%** перед Tempo. +Это вероятностный отбор по trace ID, а не точная квота. Исходящий поток в Tempo +снизился с **391.00 до 44.78 spans/s**. Входящий ingest не уменьшился: SDK всё +создаёт и отправляет; разница его rate связана с длительностью окна. +Это количества spans, **не bytes**. В каждом on-прогоне принято 3000 log records: +экономия относится к traces, а не ко всем трём сигналам. Разгрузка CPU/RAM +приложений вариантом C не доказана. + +**Какие редкие ошибки теряются.** Отдельно от замеров API отправлены 100 +синтетических ERROR-traces со status 503: в Tempo найдены **9**, отсутствуют **91**. +Это проверка sampler, не 100 реальных отказов API. Чистый probabilistic sampler +не учитывает тяжесть ошибки: единичный 5xx, неудачный Worker/S3 retry или редкий +медленный запрос теряет подробный trace примерно с вероятностью 90%. +Вероятность потерять все пять независимых редких error traces — 0.9⁵ ≈ 59%. +Ошибки в метриках Prometheus и ERROR logs Loki остаются; ссылка из сохранённого +лога может не найти trace в Tempo. Поведение соответствует +[probabilistic sampler 0.119.0](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.119.0/processor/probabilisticsamplerprocessor/README.md). + +**Выбор для production.** Из A/B/C — **C при ограниченном бюджете хранения**: +полные метрики/логи и около десятой части traces. A лишает систему наблюдаемости; +B полезен при малом трафике и диагностике, но сохраняет все traces. Для критичных +потоков чистого C недостаточно: предпочтительнее error/slow-aware tail sampling, +сохраняющий ERROR и медленные traces плюс 10% обычных. Это рекомендация, не +дополнительная реализованная политика. Для async Worker decision window должен +учитывать очередь/retry и иметь ограниченную память. Для снижения именно CPU SDK +или OTLP ingress sampling потребуется в SDK, с риском потерять ошибки ещё до Collector. + +**Качество и ограничения.** Во всех прогонах HTTP errors, refused spans и failed +span exports = 0; внутри on-окон delta SDK diagnostics = 0, максимум счётчика +переполнения span batch queue = 0. До начала некоторых окон SDK diagnostics уже +равнялся 4: startup/reconfiguration исключены из steady-state замеров. Разница +accepted/sent в B до нескольких spans объяснима асинхронными границами и фоновыми +health/outbox spans; counters не являются строгим аудитом всех возможных потерь SDK. + +Closed-loop, один хост, три повтора, без CPU pinning и изоляции фоновой нагрузки. +БД/S3 растут; порядок вариантов ротируется. В третьем повторе pipeline A/B занял +140.02/137.77s вместо примерно 64–80s в других прогонах; причина отдельно не +профилировалась, результаты не удалялись. p99 отдельных прогонов: +A 201.98–413.17ms, B 200.24–437.94ms, C 202.22–212.64ms. По медианному p99 нельзя +доказывать, что C быстрее B; весь рост CPU% нельзя приписать SDK. Startup cost, +точные OTLP bytes и backend CPU/RAM не измерялись. После завершения восстановлены +SDK on и Collector 100%; API/observability smoke повторно прошли. + +Воспроизведение: + +```sh +python3 scripts/benchmark_telemetry.py --self-test +python3 scripts/benchmark_telemetry.py --requests 1000 --concurrency 4 --repetitions 3 +``` + +Для Docker Snap при необходимости передать `--compose /path/to/docker-compose` +и `--docker /path/to/docker`. Скрипт восстанавливает baseline в `finally`. ## Ограничения и следующие шаги -TODO: какие отказы выдерживаются и какие нет; что не реализовано; где учебное упрощение; какое улучшение подтверждено, а какое пока гипотеза. +- API/Worker выдержали ограниченные остановки Worker, БД, S3 и telemetry backends + с описанным восстановлением; это не HA-гарантия для БД, lb, MinIO или всего хоста. + Persistent volumes заданы, но отдельный полный persistence/failover hook в lab6 + не проверялся. Достижение availability SLO ≥99% за 30 минут отдельно не измерялось. +- Временные ошибки экспорта, переполнение bounded buffers и аварийный kill могут + терять telemetry. SDK 1.21 не даёт точного счётчика потерь log batch queue; + export failures/SDK diagnostics не являются строгим аудитом уникальных потерь. +- Queue depth — логические незавершённые jobs из PostgreSQL, не Redis XLEN. + При отказе БД значения устаревают, что отмечается отдельным alert. PgPool metrics + не включают dedicated connection observer. Worker последовательный, capacity=1. +- Low-cardinality allowlist и privacy canaries проверены для синтетического сценария; + исчерпывающий privacy/security audit и длительный memory soak не проводились. + Наблюдение RSS за 21.3s outage не заменяет длительный тест ограниченности памяти. +- Track 1 — closed-loop, один хост, 3 повтора без CPU pinning/изоляции фоновой нагрузки, + с растущей БД/S3. Все результаты, включая медленные третьи прогоны, сохранены. + Выводы относятся к этим лимитам/PNG/нагрузке, не к произвольному production. +- Подтверждено: Collector sampling уменьшает число отправленных в Tempo spans + примерно на 89%, сохраняя metrics/logs; не подтверждено снижение CPU SDK, + OTLP bytes или backend CPU/стоимости хранения в деньгах. Сохранение только 9 из + 100 synthetic ERROR traces показывает отсутствие error-aware гарантии. +- Следующие шаги: отдельный хост/CPU pinning и более длинные повторы для устойчивой + оценки overhead; измерение OTLP bytes и ingest/storage CPU; эксперимент с SDK + sampling, если нужна экономия приложения. Error/slow-aware tail sampling с bounded + memory и окном, учитывающим async queue/retry, остаётся рекомендацией и требует + отдельной проверки. Также нужны длительный memory soak и полный аудит потерь. diff --git a/cmake/ImportMinioDeps.cmake b/cmake/ImportMinioDeps.cmake new file mode 100644 index 0000000..7128a48 --- /dev/null +++ b/cmake/ImportMinioDeps.cmake @@ -0,0 +1,55 @@ +# Provide the imported target names expected by minio-cpp's CMakeLists +# (unofficial-curlpp / unofficial-inih) using system packages from apt. + +find_package(OpenSSL REQUIRED) +find_package(ZLIB REQUIRED) +find_package(CURL REQUIRED) + +# nlohmann_json (header-only; Ubuntu ships /usr/include/nlohmann/json.hpp) +if(NOT TARGET nlohmann_json::nlohmann_json) + find_package(nlohmann_json QUIET CONFIG) +endif() +if(NOT TARGET nlohmann_json::nlohmann_json) + add_library(nlohmann_json INTERFACE) + add_library(nlohmann_json::nlohmann_json ALIAS nlohmann_json) + find_path(NLOHMANN_JSON_INCLUDE_DIR nlohmann/json.hpp) + if(NOT NLOHMANN_JSON_INCLUDE_DIR) + message(FATAL_ERROR "nlohmann/json.hpp not found (install nlohmann-json3-dev)") + endif() + target_include_directories(nlohmann_json INTERFACE "${NLOHMANN_JSON_INCLUDE_DIR}") +endif() + +# pugixml +if(NOT TARGET pugixml) + find_package(pugixml QUIET CONFIG) +endif() +if(NOT TARGET pugixml AND NOT TARGET pugixml::pugixml) + pkg_check_modules(PUGIXML REQUIRED IMPORTED_TARGET pugixml) + add_library(pugixml INTERFACE) + target_link_libraries(pugixml INTERFACE PkgConfig::PUGIXML) +endif() +if(TARGET pugixml::pugixml AND NOT TARGET pugixml) + add_library(pugixml ALIAS pugixml::pugixml) +endif() + +# curlpp → unofficial::curlpp::curlpp +if(NOT TARGET unofficial::curlpp::curlpp) + find_library(CURLPP_LIBRARY NAMES curlpp REQUIRED) + find_path(CURLPP_INCLUDE_DIR curlpp/cURLpp.hpp REQUIRED) + add_library(unofficial_curlpp INTERFACE) + target_include_directories(unofficial_curlpp INTERFACE "${CURLPP_INCLUDE_DIR}") + target_link_libraries(unofficial_curlpp INTERFACE "${CURLPP_LIBRARY}" CURL::libcurl) + add_library(unofficial::curlpp::curlpp ALIAS unofficial_curlpp) +endif() + +# inih INIReader → unofficial::inih::inireader +if(NOT TARGET unofficial::inih::inireader) + find_library(INIREADER_LIBRARY NAMES INIReader REQUIRED) + find_library(INIH_LIBRARY NAMES inih REQUIRED) + find_path(INIREADER_INCLUDE_DIR INIReader.h REQUIRED) + add_library(unofficial_inih_inireader INTERFACE) + target_include_directories(unofficial_inih_inireader INTERFACE "${INIREADER_INCLUDE_DIR}") + target_link_libraries(unofficial_inih_inireader INTERFACE + "${INIREADER_LIBRARY}" "${INIH_LIBRARY}") + add_library(unofficial::inih::inireader ALIAS unofficial_inih_inireader) +endif() diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..83adf23 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,340 @@ +services: + db: + image: postgres:16.15-alpine + command: postgres -c max_connections=200 -c shared_buffers=256MB + environment: + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + POSTGRES_DB: ${POSTGRES_DB} + volumes: + - pgdata:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] + interval: 5s + timeout: 3s + retries: 20 + start_period: 10s + cpus: ${DB_CPU_LIMIT:-1.0} + mem_limit: 512m + stop_grace_period: 20s + + cache: + image: valkey/valkey:8.1.10-alpine + command: ["valkey-server", "--appendonly", "yes", "--appendfsync", "always"] + volumes: + - valkeydata:/data + healthcheck: + test: ["CMD", "valkey-cli", "ping"] + interval: 5s + timeout: 3s + retries: 20 + start_period: 5s + cpus: "0.50" + mem_limit: 256m + stop_grace_period: 15s + + api: &api + build: . + image: mtusi2026lab6-api:local + depends_on: + db: + condition: service_healthy + cache: + condition: service_healthy + minio: + condition: service_healthy + minio-user-init: + condition: service_completed_successfully + environment: + OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318 + OTEL_SDK_DISABLED: ${OTEL_SDK_DISABLED:-false} + APP_HOST: 0.0.0.0 + APP_PORT: "8080" + SESSION_TTL_SECONDS: ${SESSION_TTL_SECONDS:-3600} + SESSION_STORE: ${SESSION_STORE:-redis} + DATABASE_URL_FILE: /run/secrets/database_url + CACHE_URL_FILE: /run/secrets/cache_url + BROKER_URL_FILE: /run/secrets/cache_url + IDEMPOTENCY_TTL_SECONDS: ${IDEMPOTENCY_TTL_SECONDS:-86400} + DRAIN_SECONDS: ${DRAIN_SECONDS:-2} + HTTP_WORKERS: ${HTTP_WORKERS:-8} + DB_POOL_SIZE: ${DB_POOL_SIZE:-8} + S3_ENDPOINT: ${S3_ENDPOINT:-http://minio:9000} + S3_REGION: ${S3_REGION:-us-east-1} + S3_BUCKET: ${S3_BUCKET} + S3_ACCESS_KEY_ID_FILE: /run/secrets/s3_access_key_id + S3_SECRET_ACCESS_KEY_FILE: /run/secrets/s3_secret_access_key + MAX_UPLOAD_BYTES: ${MAX_UPLOAD_BYTES:-10485760} + MAX_IMAGE_PIXELS: ${MAX_IMAGE_PIXELS:-40000000} + MAX_CONCURRENT_UPLOADS: ${MAX_CONCURRENT_UPLOADS:-3} + DIRECT_UPLOAD_TTL_SECONDS: ${DIRECT_UPLOAD_TTL_SECONDS:-300} + # Optional: sign URLs for a host-reachable MinIO (compose.presign.yaml). + S3_PRESIGN_ENDPOINT: ${S3_PRESIGN_ENDPOINT:-} + secrets: + - database_url + - cache_url + - s3_access_key_id + - s3_secret_access_key + healthcheck: + test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8080/health/ready"] + interval: 5s + timeout: 3s + retries: 12 + start_period: 20s + deploy: + replicas: ${API_REPLICAS:-2} + resources: + limits: + cpus: ${API_CPU_LIMIT:-0.50} + memory: ${API_MEM_LIMIT:-256m} + cpus: ${API_CPU_LIMIT:-0.50} # для совместимости с docker compose up + mem_limit: ${API_MEM_LIMIT:-256m} + stop_grace_period: 15s + + worker: + <<: *api + # Keep the shared entrypoint: it stages secrets and drops root privileges. + entrypoint: ["/docker-entrypoint.sh", "/app/worker"] + command: [] + restart: unless-stopped + environment: + OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318 + OTEL_SDK_DISABLED: ${OTEL_SDK_DISABLED:-false} + DATABASE_URL_FILE: /run/secrets/database_url + BROKER_URL_FILE: /run/secrets/cache_url + S3_ENDPOINT: ${S3_ENDPOINT:-http://minio:9000} + S3_REGION: ${S3_REGION:-us-east-1} + S3_BUCKET: ${S3_BUCKET} + S3_ACCESS_KEY_ID_FILE: /run/secrets/s3_access_key_id + S3_SECRET_ACCESS_KEY_FILE: /run/secrets/s3_secret_access_key + JOB_MAX_ATTEMPTS: ${JOB_MAX_ATTEMPTS:-6} + JOB_RECLAIM_IDLE_MS: ${JOB_RECLAIM_IDLE_MS:-5000} + JOB_RETRY_BASE_MS: ${JOB_RETRY_BASE_MS:-1000} + JOB_RETRY_MAX_MS: ${JOB_RETRY_MAX_MS:-60000} + JOB_TIMEOUT_SECONDS: ${JOB_TIMEOUT_SECONDS:-60} + STAGING_RETENTION_SECONDS: ${STAGING_RETENTION_SECONDS:-86400} + STAGING_CLEANUP_INTERVAL_SECONDS: ${STAGING_CLEANUP_INTERVAL_SECONDS:-60} + healthcheck: + disable: true + deploy: + replicas: 1 + resources: + limits: + cpus: "0.50" + memory: 512m + cpus: "0.50" + mem_limit: 512m + + lb: + image: nginx:1.28.0-alpine + depends_on: + api: + condition: service_healthy + ports: + - "127.0.0.1:${API_PORT:-8080}:8080" + environment: + NGINX_WORKERS: ${NGINX_WORKERS:-1} + NGINX_ENVSUBST_TEMPLATE_DIR: /etc/nginx/templates + NGINX_ENVSUBST_OUTPUT_DIR: /etc/nginx + NGINX_ENVSUBST_FILTER: "^NGINX_" + volumes: + - ./lb/nginx.conf.template:/etc/nginx/templates/nginx.conf.template:ro + healthcheck: + test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/health/ready"] + interval: 5s + timeout: 3s + retries: 12 + start_period: 10s + cpus: ${LB_CPU_LIMIT:-0.25} + mem_limit: 128m + stop_grace_period: 10s + + # Private S3-compatible store. Ports 9000/9001 are NOT published to the host. + # Image: pinned MinIO RELEASE.2025-04-22T22-12-26Z via local Dockerfile + # (official binary from GitHub; docker.io hub may be unreachable). + minio: + build: + context: ./infra/minio + args: + MINIO_VERSION: RELEASE.2025-04-22T22-12-26Z + image: mtusi2026lab5-minio:RELEASE.2025-04-22T22-12-26Z + command: ["server", "/data", "--console-address", ":9001"] + environment: + MINIO_ROOT_USER: ${MINIO_ROOT_USER} + MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD} + volumes: + - miniodata:/data + healthcheck: + test: ["CMD", "curl", "-f", "http://127.0.0.1:9000/minio/health/live"] + interval: 5s + timeout: 5s + retries: 20 + start_period: 15s + cpus: ${MINIO_CPU_LIMIT:-0.50} + mem_limit: ${MINIO_MEM_LIMIT:-512m} + stop_grace_period: 15s + + # Idempotent bucket bootstrap: create if missing, force private ACL. + minio-init: + build: + context: ./infra/mc + args: + MC_VERSION: RELEASE.2025-04-16T18-13-26Z + image: mtusi2026lab5-mc:RELEASE.2025-04-16T18-13-26Z + depends_on: + minio: + condition: service_healthy + environment: + MINIO_ROOT_USER: ${MINIO_ROOT_USER} + MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD} + S3_BUCKET: ${S3_BUCKET} + S3_ENDPOINT: ${S3_ENDPOINT:-http://minio:9000} + entrypoint: ["/bin/sh", "-c"] + command: + - | + set -eu + echo "minio-init: waiting for endpoint $$S3_ENDPOINT" + i=0 + until mc alias set local "$$S3_ENDPOINT" "$$MINIO_ROOT_USER" "$$MINIO_ROOT_PASSWORD" >/dev/null 2>&1; do + i=$$((i + 1)) + if [ "$$i" -ge 30 ]; then + echo "minio-init: cannot reach MinIO" >&2 + exit 1 + fi + sleep 1 + done + mc mb --ignore-existing "local/$$S3_BUCKET" + mc anonymous set none "local/$$S3_BUCKET" + echo "minio-init: bucket listing:" + mc ls "local/$$S3_BUCKET" || true + echo "minio-init: bucket $$S3_BUCKET ready (anonymous=none)" + restart: "no" + + # Idempotent limited S3 user for the API (not MinIO root). + minio-user-init: + image: mtusi2026lab5-mc:RELEASE.2025-04-16T18-13-26Z + depends_on: + minio: + condition: service_healthy + minio-init: + condition: service_completed_successfully + environment: + MINIO_ROOT_USER: ${MINIO_ROOT_USER} + MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD} + MINIO_USER_ACCESS_KEY: ${MINIO_USER_ACCESS_KEY} + MINIO_USER_SECRET_KEY: ${MINIO_USER_SECRET_KEY} + S3_BUCKET: ${S3_BUCKET} + S3_ENDPOINT: ${S3_ENDPOINT:-http://minio:9000} + POLICY_NAME: messenger-attachments-rw + volumes: + - ./infra/minio/policy-attachments.json:/policy.template.json:ro + entrypoint: ["/bin/sh", "-c"] + command: + - | + set -eu + echo "minio-user-init: alias $$S3_ENDPOINT" + i=0 + until mc alias set local "$$S3_ENDPOINT" "$$MINIO_ROOT_USER" "$$MINIO_ROOT_PASSWORD" >/dev/null 2>&1; do + i=$$((i + 1)) + if [ "$$i" -ge 30 ]; then + echo "minio-user-init: cannot reach MinIO" >&2 + exit 1 + fi + sleep 1 + done + + sed "s/__S3_BUCKET__/$$S3_BUCKET/g" /policy.template.json > /tmp/policy.json + + if mc admin policy info local "$$POLICY_NAME" >/dev/null 2>&1; then + mc admin policy remove local "$$POLICY_NAME" >/dev/null 2>&1 || true + fi + mc admin policy create local "$$POLICY_NAME" /tmp/policy.json + + if mc admin user info local "$$MINIO_USER_ACCESS_KEY" >/dev/null 2>&1; then + echo "minio-user-init: user $$MINIO_USER_ACCESS_KEY already exists" + else + mc admin user add local "$$MINIO_USER_ACCESS_KEY" "$$MINIO_USER_SECRET_KEY" + echo "minio-user-init: user $$MINIO_USER_ACCESS_KEY created" + fi + + mc admin policy attach local "$$POLICY_NAME" --user "$$MINIO_USER_ACCESS_KEY" >/dev/null 2>&1 || true + echo "minio-user-init: policy $$POLICY_NAME attached to $$MINIO_USER_ACCESS_KEY" + restart: "no" + + otel-collector: + image: otel/opentelemetry-collector-contrib:0.119.0 + command: [--config=/etc/otelcol/config.yaml] + restart: unless-stopped + mem_limit: 256m + environment: + GOMEMLIMIT: 200MiB + volumes: + - ${OTEL_COLLECTOR_CONFIG:-./infra/otel/collector.yaml}:/etc/otelcol/config.yaml:ro + + prometheus: + image: prom/prometheus:v3.2.1 + command: [--config.file=/etc/prometheus/prometheus.yaml, --storage.tsdb.retention.time=7d] + restart: unless-stopped + mem_limit: 512m + ports: ["127.0.0.1:${PROMETHEUS_PORT:-9090}:9090"] + volumes: + - ./infra/prometheus:/etc/prometheus:ro + - prometheusdata:/prometheus + + loki: + image: grafana/loki:3.4.2 + command: [-config.file=/etc/loki/config.yaml] + restart: unless-stopped + mem_limit: 512m + volumes: + - ./infra/loki/loki.yaml:/etc/loki/config.yaml:ro + - lokidata:/loki + + tempo: + image: grafana/tempo:2.7.2 + user: "0:0" + command: [-config.file=/etc/tempo/config.yaml] + restart: unless-stopped + mem_limit: 512m + volumes: + - ./infra/tempo/tempo.yaml:/etc/tempo/config.yaml:ro + - tempodata:/var/tempo + + grafana: + image: grafana/grafana:11.6.0 + restart: unless-stopped + mem_limit: 256m + ports: ["127.0.0.1:${GRAFANA_PORT:-3000}:3000"] + environment: + GF_SECURITY_ADMIN_USER: ${GRAFANA_ADMIN_USER:-admin} + GF_SECURITY_ADMIN_PASSWORD__FILE: /run/secrets/grafana_admin_password + GF_USERS_ALLOW_SIGN_UP: "false" + GF_PLUGINS_PREINSTALL_DISABLED: "true" + GF_ANALYTICS_REPORTING_ENABLED: "false" + GF_ANALYTICS_CHECK_FOR_UPDATES: "false" + secrets: [grafana_admin_password] + volumes: + - grafanadata:/var/lib/grafana + - ./infra/grafana/provisioning:/etc/grafana/provisioning:ro + - ./infra/grafana/dashboards:/var/lib/grafana/dashboards:ro + +secrets: + grafana_admin_password: + file: ./secrets/grafana_admin_password + database_url: + file: ./secrets/database_url + cache_url: + file: ./secrets/cache_url + s3_access_key_id: + file: ./secrets/s3_access_key_id + s3_secret_access_key: + file: ./secrets/s3_secret_access_key + +volumes: + pgdata: {} + valkeydata: {} + miniodata: {} + prometheusdata: {} + lokidata: {} + tempodata: {} + grafanadata: {} diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh new file mode 100644 index 0000000..1f90ad6 --- /dev/null +++ b/docker-entrypoint.sh @@ -0,0 +1,22 @@ +#!/bin/sh +set -eu +# Compose bind-backed secrets retain host permissions. Stage for application uid. +if [ "$(id -u)" = "0" ]; then + mkdir -p /tmp/app-secrets + chmod 0700 /tmp/app-secrets + for name in database_url cache_url s3_access_key_id s3_secret_access_key; do + if [ -r "/run/secrets/$name" ]; then + cp "/run/secrets/$name" "/tmp/app-secrets/$name" + chown 10001:10001 "/tmp/app-secrets/$name" + chmod 0400 "/tmp/app-secrets/$name" + fi + done + chown 10001:10001 /tmp/app-secrets + export DATABASE_URL_FILE=/tmp/app-secrets/database_url + export CACHE_URL_FILE=/tmp/app-secrets/cache_url + export BROKER_URL_FILE=/tmp/app-secrets/cache_url + export S3_ACCESS_KEY_ID_FILE=/tmp/app-secrets/s3_access_key_id + export S3_SECRET_ACCESS_KEY_FILE=/tmp/app-secrets/s3_secret_access_key + exec setpriv --reuid=10001 --regid=10001 --clear-groups -- "$@" +fi +exec "$@" diff --git a/evidence/README.md b/evidence/README.md index 8df7001..0004ead 100644 --- a/evidence/README.md +++ b/evidence/README.md @@ -3,3 +3,16 @@ Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки. Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно. + +Результаты реализации lab6: + +- `verification.md` — итоговые проверки и время инцидентов (Москва). +- `observability.json` — реальный trace, parent-child связь, проверенные метрики/PromQL. +- `incidents.json` — firing/resolved, retry trace и ограниченный отказ telemetry backend. +- `load.json` — 30-секундный closed-loop прогон синтетических POST сообщений. + +Запросы Grafana находятся в `infra/grafana/dashboards/messenger.json`, методика — в `REPORT.md`. + +Track 1: `track1-benchmark.md` содержит сравнение A/B/C, `track1-benchmark.json` — +все отдельные прогоны, latency samples, Docker stats, counters Collector и параметры хоста. +Методика: `python3 scripts/benchmark_telemetry.py --requests 1000 --concurrency 4 --repetitions 3`. diff --git a/evidence/incidents.json b/evidence/incidents.json new file mode 100644 index 0000000..2b4d524 --- /dev/null +++ b/evidence/incidents.json @@ -0,0 +1,56 @@ +[ + { + "event": "worker_stopped_upload_accepted", + "timestamp": "2026-11-16T07:30:35.969738+00:00" + }, + { + "event": "QueueLagGrowing_firing", + "timestamp": "2026-11-16T07:31:50.091878+00:00", + "depth": 1.0, + "oldest_seconds": 61.100729 + }, + { + "event": "QueueLagGrowing_resolved_backlog_drained", + "timestamp": "2026-11-16T07:32:10.680368+00:00" + }, + { + "event": "database_stopped", + "timestamp": "2026-11-16T07:32:10.928124+00:00" + }, + { + "event": "ApiHighErrorRate_firing", + "timestamp": "2026-11-16T07:32:54.959429+00:00", + "response_counts": { + "503": 1, + "502": 87 + } + }, + { + "event": "ApiHighErrorRate_resolved_database_recovered", + "timestamp": "2026-11-16T07:33:55.054932+00:00" + }, + { + "event": "s3_failure_scheduled_retry", + "timestamp": "2026-11-16T07:33:57.449574+00:00", + "trace_id": "997e005d6cc34eaa869fc3ced3e479ee" + }, + { + "event": "retry_same_trace_ready_verified", + "timestamp": "2026-11-16T07:33:58.678216+00:00", + "trace_id": "997e005d6cc34eaa869fc3ced3e479ee" + }, + { + "event": "tempo_loki_stopped", + "timestamp": "2026-11-16T07:34:08.938180+00:00" + }, + { + "event": "telemetry_outage_api_worker_healthy", + "timestamp": "2026-11-16T07:34:30.248711+00:00", + "failed_span_exports": 46.0, + "collector_rss_bytes": 179634176.0 + }, + { + "event": "tempo_loki_restarted", + "timestamp": "2026-11-16T07:34:30.765794+00:00" + } +] diff --git a/evidence/load.json b/evidence/load.json new file mode 100644 index 0000000..76fe2ad --- /dev/null +++ b/evidence/load.json @@ -0,0 +1,17 @@ +{ + "lab": 6, + "workload": "closed-loop POST messages; no automatic retries", + "requested_duration_seconds": 30.0, + "elapsed_seconds": 30.026, + "concurrency": 4, + "successful_requests": 10338, + "failed_requests": 0, + "error_ratio": 0.0, + "successful_rps": 344.305, + "successful_latency_ms": { + "p50": 5.666, + "p95": 52.505, + "p99": 61.702 + }, + "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." +} diff --git a/evidence/observability.json b/evidence/observability.json new file mode 100644 index 0000000..5d3bb84 --- /dev/null +++ b/evidence/observability.json @@ -0,0 +1,39 @@ +{ + "timestamp": "2026-11-16T15:21:12.712973+00:00", + "result": "PASS", + "trace_id": "c3280a5a6f0d494f8f62834603b982a0", + "span_names": [ + "POST /api/v1/chats/{chat_id}/attachments", + "attachment.enqueue", + "attachment.process", + "jobs:attachments publish", + "postgresql.pool.acquire", + "postgresql.publish_ready", + "s3.delete_object", + "s3.get_object", + "s3.put_object", + "s3.stat_object" + ], + "consumer_parent_is_producer": true, + "log_services": [ + "messenger-api", + "messenger-worker" + ], + "metric_names_checked": [ + "http_server_requests_total", + "http_server_request_duration_seconds_bucket", + "worker_jobs_total", + "worker_job_duration_seconds_bucket", + "attachment_ready_duration_seconds_bucket", + "queue_depth", + "queue_oldest_age", + "db_pool_used", + "db_pool_waiting", + "worker_busy", + "worker_capacity", + "process_memory_usage", + "process_cpu_time" + ], + "dashboard_queries_checked": 25, + "privacy_canaries": "absent in recent logs and upload trace" +} diff --git a/evidence/track1-benchmark.json b/evidence/track1-benchmark.json new file mode 100644 index 0000000..82c4928 --- /dev/null +++ b/evidence/track1-benchmark.json @@ -0,0 +1,41317 @@ +{ + "started_utc": "2026-11-16T14:52:30.645168+00:00", + "method": { + "requests": 1000, + "concurrency": 4, + "repetitions": 3, + "warmup": 20, + "fixture_bytes": 111817, + "fixture_sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", + "stats_source": "docker stats stream; 100% CPU = one logical core", + "cpu_ram_window": "uploads plus complete worker drain, excluding final export wait", + "percentile": "nearest rank; HTTP upload acceptance, client wall clock", + "config_sha256": { + "collector.yaml": "b9e44e8b20cd7a2eee8d81d405a6a6294d97764d387bca529f7c9ef1bc5a27cb", + "collector-sampling10.yaml": "67b14a6989fbed76b8fd0c51254a27b8624d1d0529853fe789780c70c94f8a89" + }, + "order": "ABC / BCA / CAB (rotated each repetition)" + }, + "host": { + "machine": "x86_64", + "logical_cpus": 12, + "cpu_model": "12th Gen Intel(R) Core(TM) i5-12450H", + "memory_kib": 15566204 + }, + "trials": [ + { + "variant": "A", + "repetition": 1, + "completed_utc": "2026-11-16T14:54:13.336903+00:00", + "successful_uploads": 1000, + "http_errors": 0, + "http_seconds": 12.653201398999954, + "pipeline_seconds": 79.94935347799765, + "collector_window_seconds": 83.02678417000061, + "rps": 79.03138253051398, + "latency_mean_ms": 50.13368328896104, + "latency_p50_ms": 27.300728997943224, + "latency_p99_ms": 201.9818650005618, + "latencies_ms": [ + 14.90422399729141, + 12.056976000167197, + 10.851361003005877, + 9.467987998505123, + 8.713504001207184, + 9.31090599988238, + 9.066857001016615, + 9.045932998560602, + 8.936851998441853, + 14.691173997562146, + 17.83399600026314, + 17.425173999072285, + 11.01938300053007, + 9.089298997423612, + 10.070647000247845, + 10.066271999676246, + 8.780527998169418, + 32.28466899963678, + 16.805020000902005, + 11.461538000730798, + 9.730639998451807, + 10.361920001741964, + 10.505737998755649, + 10.028570999566, + 8.871767000528052, + 9.54331100001582, + 35.14262300086557, + 9.201164997648448, + 14.821053999185096, + 9.329641001386335, + 9.326610001153313, + 47.05555200052913, + 13.958259998616995, + 9.909385000355542, + 11.05152699892642, + 10.89070600210107, + 10.801286000059918, + 46.39609700097935, + 11.560236998775508, + 9.476489998633042, + 271.8139690005046, + 97.50039899881813, + 24.253006999060744, + 79.68254699881072, + 27.517136000824394, + 73.58029700117186, + 16.506760999618564, + 11.650184998870827, + 69.70800800263532, + 25.91467999809538, + 72.07907399788382, + 23.455818998627365, + 15.067453001393005, + 65.50621799760847, + 22.780041999794776, + 74.51070100069046, + 23.140712997701485, + 14.535563001118135, + 65.76418899931014, + 20.32490199781023, + 76.38095099900966, + 28.10900899930857, + 14.472861999820452, + 79.76732499810169, + 100.41751500102691, + 14.55284199982998, + 77.45500700184493, + 15.244705002260162, + 85.13672499975655, + 25.236629000573885, + 11.776668998209061, + 43.98522300107288, + 30.572079002013197, + 87.5849730000482, + 85.25595399987651, + 23.055541001667734, + 77.02432799851522, + 98.49890400073491, + 23.680344002059428, + 77.46852499985835, + 19.60083000085433, + 80.54146699942066, + 99.83206800097832, + 104.98306999943452, + 95.41516399985994, + 19.905458997527603, + 10.526339003263274, + 70.37625199882314, + 95.57149600004777, + 103.46323599878815, + 101.90992899879348, + 101.806241000304, + 93.51868199883029, + 22.345987003063783, + 16.82035199701204, + 65.82238000191865, + 77.6719490022515, + 96.55466599724605, + 20.871919998171506, + 92.90868199968827, + 15.683729001466418, + 12.444994998077163, + 11.481148001621477, + 15.515050999965752, + 55.149396997876465, + 19.381859001441626, + 82.82814199992572, + 95.70544400048675, + 21.93815799910226, + 82.65041200138512, + 22.50768899830291, + 75.73122299800161, + 20.784361000551144, + 81.27187100035371, + 24.00415300144232, + 71.27450999905705, + 23.67178600252373, + 77.80867600013153, + 20.530219000647776, + 83.7392749999708, + 95.91757700036396, + 24.80348899916862, + 75.8952939977462, + 24.132108002959285, + 74.19941899934202, + 20.988705997297075, + 12.57479700143449, + 66.84627499998896, + 22.84446100020432, + 276.9179819988494, + 104.07508700154722, + 93.19209900058922, + 30.703996002557687, + 74.89335299760569, + 35.22678000081214, + 65.86311499995645, + 25.282129001425346, + 74.07000899911509, + 22.35073300107615, + 77.6964520009642, + 25.549286998284515, + 67.53295299859019, + 22.202326999831712, + 15.527194998867344, + 60.78030100252363, + 12.88415800081566, + 10.99151900052675, + 11.56642700152588, + 11.719944999640575, + 59.25934200058691, + 22.094388001278276, + 77.47405100235483, + 19.14762900196365, + 13.441133000014815, + 66.57039399942732, + 101.26713699719403, + 23.04090399775305, + 19.249493998358957, + 61.58482000319054, + 100.93280499859247, + 98.37603999767452, + 21.894505000091158, + 74.9418900013552, + 21.32079100192641, + 77.71867499832297, + 102.45354699873133, + 23.412817001371877, + 77.52482299838448, + 20.0268539992976, + 72.56812599734985, + 24.364369997783797, + 80.41978999972343, + 98.58856899882085, + 99.29001599812182, + 199.01652200132958, + 102.28734600241296, + 102.20765499980189, + 100.21472400330822, + 94.78782299993327, + 102.10715900029754, + 21.835643998201704, + 81.3066019982216, + 23.871351000707364, + 73.77515999905881, + 23.494035998737672, + 81.99684899955173, + 92.1513169996615, + 94.76484499828075, + 15.025942000647774, + 15.376590999949258, + 13.248362000013003, + 9.996975000831299, + 54.23880799935432, + 20.51426100297249, + 81.05590299965115, + 93.88738900088356, + 21.307110000634566, + 14.046976997633465, + 9.253017000446562, + 60.10763899757876, + 22.543897001014557, + 79.47564899950521, + 20.259445998817682, + 79.22819899977185, + 23.71431600113283, + 72.6885259973642, + 98.66890600096667, + 25.515848999930313, + 17.10531299977447, + 63.5486770006537, + 28.28554100051406, + 73.19142999767791, + 97.40263800267712, + 95.84054600054515, + 99.17447000043467, + 23.230304999742657, + 18.600311999762198, + 156.77064599731239, + 102.09051399942837, + 104.46344799856888, + 94.98030900067533, + 28.738316003000364, + 74.7247100007371, + 24.593606998678297, + 79.52780800042092, + 21.16213599947514, + 11.24212099966826, + 64.88987899865606, + 24.89450099892565, + 70.9258429997135, + 24.07159499853151, + 73.09864100170671, + 26.559508998616366, + 77.90620000014314, + 27.11903199815424, + 70.0124639988644, + 25.910819000273477, + 73.48576899676118, + 14.747665001777932, + 92.61651999986498, + 93.41784400021425, + 28.983934000279987, + 77.14047899935395, + 21.35357400038629, + 78.66463999744155, + 25.614502003008965, + 75.8754249982303, + 24.323527002707124, + 9.901511999487411, + 84.10734599965508, + 15.064112998516066, + 11.281128998234635, + 10.877901997446315, + 10.943891000351869, + 10.09439100016607, + 9.902239999064477, + 10.251630999846384, + 9.687829999165842, + 10.222172997600865, + 27.48463199895923, + 10.774284000945045, + 13.703791999432724, + 11.233025998080848, + 10.763670998130692, + 9.346443999675103, + 9.045018003234873, + 46.27595899728476, + 8.42161299806321, + 10.384240002167644, + 9.743998001795262, + 9.953613000106998, + 9.324004000518471, + 8.49718099925667, + 46.41891600113013, + 8.230015999288298, + 20.664388001023326, + 10.336208997614449, + 10.629903001245111, + 12.090813001123024, + 43.925315996602876, + 11.093701999925543, + 10.690408002119511, + 9.194684000249254, + 9.50539400218986, + 9.616192000976298, + 7.629171999724349, + 38.123121001262916, + 13.260282998089679, + 13.825768997776322, + 264.47216300221044, + 92.54844400129514, + 24.59151799848769, + 84.3954299998586, + 27.052326000557514, + 71.43998299943632, + 19.775861997914035, + 77.35645700086025, + 24.695414998859633, + 81.55250499839894, + 19.911385999876074, + 13.837589998729527, + 65.01634999949601, + 95.72838900203351, + 23.147189000155777, + 16.99640899823862, + 60.22909199964488, + 23.17175300049712, + 75.92022899916628, + 28.574431002198253, + 71.65288999749464, + 30.34322100211284, + 95.8504369991715, + 12.813990000722697, + 74.95530500091263, + 14.60565100205713, + 10.649573003320256, + 9.856870001385687, + 9.560370002873242, + 65.70632600050885, + 18.13051699718926, + 84.09508600016125, + 79.05072100038524, + 30.005796998011647, + 66.64902299962705, + 22.419294000428636, + 77.22669400027371, + 21.114332997967722, + 75.20868900246569, + 23.907607999717584, + 77.43066499824636, + 19.302732001960976, + 16.10478200018406, + 70.41781500083744, + 93.82703899973421, + 103.69407400139607, + 98.50043500046013, + 99.22492499754298, + 297.5060470016615, + 105.15519800173934, + 95.81637299925205, + 23.106985998310847, + 78.29993999985163, + 23.532789000455523, + 75.54249399981927, + 100.14114000296104, + 95.75047500038636, + 14.583186999516329, + 11.314986000797944, + 10.837862999323988, + 13.337101001525298, + 54.75232599928859, + 16.770793998148292, + 15.947398998832796, + 69.32407600106671, + 21.497736997844186, + 73.74320999952033, + 22.475361998658627, + 83.0587429991283, + 21.651881997968303, + 74.93364300171379, + 99.00719099823618, + 20.19186500183423, + 20.339425002021017, + 60.315473998343805, + 22.543327999301255, + 77.8878179989988, + 20.1882100009243, + 83.79747599974507, + 24.294087001180742, + 73.8805590008269, + 21.54519900068408, + 16.266868999082362, + 61.12254300023778, + 22.519897000165656, + 74.41173600091133, + 23.749344996758737, + 15.525588998571038, + 66.25422399883973, + 17.717261998768663, + 78.33648700034246, + 201.9818650005618, + 100.61277500062715, + 99.44030399856274, + 26.997474997187965, + 75.55478900030721, + 32.92076499928953, + 68.33997899957467, + 98.75135200127261, + 97.88519699941389, + 25.59151999957976, + 12.19657600086066, + 61.9406700025138, + 19.709135998709826, + 72.0088520029094, + 11.118426999018993, + 13.260204999824055, + 12.277814999833936, + 69.2320709968044, + 22.519794998515863, + 77.86335999844596, + 22.278026001004037, + 76.92485799998394, + 20.407071999215987, + 83.46114699816098, + 24.875750998035073, + 74.69304700134671, + 99.13765899909777, + 27.573037998081418, + 83.17915000225184, + 18.29711699974723, + 72.9104419988289, + 19.94837600068422, + 79.31634499982465, + 20.147832001384813, + 13.74692800163757, + 64.98033800016856, + 25.643940000009025, + 76.05985899863299, + 22.331948999635642, + 75.51011699979426, + 24.031091001234017, + 77.4668929989275, + 25.771076001547044, + 72.04610299959313, + 195.12264199875062, + 103.76915099914186, + 200.0600650026172, + 101.74600200116402, + 98.72142199674272, + 101.65474599853042, + 96.67018699838081, + 22.71757400012575, + 18.336147000809433, + 62.56640299761784, + 23.366446999716572, + 82.73367599758785, + 86.74530999996932, + 83.36943599715596, + 16.13648299826309, + 14.428341000893852, + 17.20001400099136, + 12.44631499866955, + 60.51850000221748, + 19.569934000173816, + 83.51412399861147, + 21.05377000043518, + 77.37635099692852, + 21.87453799706418, + 16.399654999986524, + 63.140796999505255, + 20.430439999472583, + 79.24785899740527, + 19.528176002495456, + 75.41011799912667, + 27.560497997910716, + 80.16731399766286, + 27.206424001633422, + 73.07552999918698, + 25.93672299917671, + 72.7045530002215, + 26.93709800223587, + 74.00934099860024, + 102.88296699945931, + 97.12774000217905, + 97.42144900155836, + 25.390016002347693, + 170.48990400144248, + 104.95537600218086, + 102.01878699808731, + 92.67851099866675, + 27.536703000805574, + 78.54053099799785, + 23.861295001552207, + 76.79839399861521, + 94.09224800037919, + 21.102843998960452, + 78.59370300138835, + 22.36237499892013, + 16.123920999234542, + 62.23760300053982, + 24.854940002114745, + 81.88148499903036, + 95.0447350005561, + 21.98294200206874, + 74.17357799931779, + 16.18845600023633, + 90.55197799898451, + 23.89941399815143, + 75.03860999713652, + 28.147799999715062, + 74.70178500079783, + 23.99723399867071, + 70.70707499951823, + 26.234321001538774, + 78.45379099671845, + 21.186985999520402, + 12.463484999898355, + 62.31527500131051, + 25.12043200113112, + 14.626575000875164, + 14.334855000925018, + 9.474208000028739, + 13.551369000197155, + 10.225717000139412, + 10.776167997391894, + 11.714241001755, + 10.37060099770315, + 10.504936002689647, + 8.542005001800135, + 38.88394699970377, + 12.383442001009826, + 9.829479997279122, + 11.125904999062186, + 9.134259998972993, + 9.05112799955532, + 10.115823002706748, + 40.094872001645854, + 9.401850002177525, + 11.819426999863936, + 10.315023999282857, + 9.79415300025721, + 8.410206999542424, + 47.71709000124247, + 12.866273998952238, + 10.506837999855634, + 11.62942700102576, + 10.528636998060392, + 9.998403002100531, + 47.04809300164925, + 14.33661700139055, + 8.879670000169426, + 10.441589998663403, + 9.692127001471817, + 9.429375000763685, + 31.317863998992834, + 12.860986000305275, + 11.119606002466753, + 13.37814399812487, + 272.34274500005995, + 96.93948200219893, + 23.894638998172013, + 79.02121599909151, + 26.435355001012795, + 73.71637700271094, + 17.190184000355657, + 12.777085998095572, + 68.85771999805002, + 23.484393997932784, + 75.26229100039927, + 24.826837998261908, + 77.05785800135345, + 96.63669199653668, + 21.535652998863952, + 16.48283599934075, + 65.57713000074727, + 21.00031699956162, + 78.29231399955461, + 27.12627499931841, + 71.49469299838529, + 100.98305599967716, + 26.098391001141863, + 89.188820002164, + 11.58779700199375, + 88.2614369984367, + 87.725525998394, + 29.66185600234894, + 72.76146200092626, + 91.80268500131206, + 21.27889400071581, + 78.42089699988719, + 105.48511399974814, + 23.791463998350082, + 74.14829800109146, + 21.463855999172665, + 79.8241219999909, + 94.10288499930175, + 103.82778200073517, + 100.50848899845732, + 19.138907999149524, + 78.78636800160166, + 201.18130200353335, + 195.45722499969997, + 21.69539500027895, + 81.88832800078671, + 23.010179997072555, + 77.97536500220303, + 78.5936229985964, + 98.0165949986258, + 18.922077000752324, + 92.01081300125225, + 15.046846998302499, + 12.20758799900068, + 12.432912000804208, + 17.413190002116608, + 52.57825900116586, + 21.153921999939485, + 85.8462310025061, + 19.88571900074021, + 76.35966599991661, + 22.464829999080393, + 78.12786499926005, + 98.82509399903938, + 20.386489002703456, + 76.24498899895116, + 23.12231199903181, + 19.7719040006632, + 58.37086199971964, + 24.168541000108235, + 13.039446999755455, + 65.9322709980188, + 24.085195000225212, + 78.26139499957208, + 23.30476700080908, + 74.88686099895858, + 23.903789999167202, + 75.63520700205117, + 22.891185002663406, + 76.01837900074315, + 20.302671000536066, + 12.787620002200129, + 68.60900199899334, + 194.27603499934776, + 104.93542500262265, + 101.40230099932523, + 96.07034000146086, + 97.62386799775413, + 26.120204998733243, + 78.20649499990395, + 28.488916999776848, + 74.7435530029179, + 96.47949400095968, + 28.112519001297187, + 71.3927290016727, + 22.571728000912117, + 70.79494799836539, + 12.022258000797592, + 12.55731000128435, + 11.721464001311688, + 10.890397999901325, + 61.95502200353076, + 22.487418998935027, + 76.54266999816173, + 24.072404001344694, + 73.50579800186097, + 100.80212200045935, + 22.401759000786114, + 77.30676499704714, + 31.232690998876933, + 73.89134299955913, + 96.63574899968808, + 25.03992600031779, + 14.779319997614948, + 58.48758300271584, + 21.229538000625325, + 76.39143699998385, + 23.95885499936412, + 11.668578001263086, + 70.13882599858334, + 94.74592200058396, + 22.343896998791024, + 79.74583099712618, + 24.002493999432772, + 75.70387400119216, + 22.637280002527405, + 73.76239500081283, + 101.952771001379, + 198.970516998088, + 203.32614200015087, + 98.32923700014362, + 100.10617599982652, + 102.89093299797969, + 21.839146000274923, + 77.64570399740478, + 26.89505699891015, + 69.65150700125378, + 21.182246000535088, + 80.67065800059936, + 29.209526001068298, + 8.979043999715941, + 56.00205000155256, + 83.35061500110896, + 16.171429000678472, + 14.570663002814399, + 13.683993001905037, + 14.167582001391565, + 11.939102998439921, + 53.94076499942457, + 20.5012260012154, + 76.23931199850631, + 21.704529997805366, + 80.71666899923002, + 21.05022600153461, + 14.158507001411635, + 63.33731600170722, + 24.60462599992752, + 74.73406200006139, + 22.106241001893068, + 79.78783799990197, + 28.35711100124172, + 72.35239099827595, + 102.16287799994461, + 24.745623999478994, + 72.37431600151467, + 26.47718300067936, + 75.54686400180799, + 101.45995000129915, + 92.83447499910835, + 22.595362999709323, + 83.10699499998009, + 25.757611998415086, + 70.49400499818148, + 197.38269799927366, + 106.76821599918185, + 96.52416599783464, + 99.05945799982874, + 23.115804000553908, + 82.63576899844338, + 99.29873899818631, + 24.94291599941789, + 71.88440299796639, + 23.15263499986031, + 13.260961000923999, + 62.25482599984389, + 24.566151998442365, + 78.30324699898483, + 29.563792999397265, + 66.26338699788903, + 24.45633800016367, + 75.34134199886466, + 21.849862998351455, + 83.44105099968147, + 96.4937259996077, + 29.13529999932507, + 76.74302099985653, + 24.41188900047564, + 72.44665699909092, + 24.370061000809073, + 75.89288800227223, + 23.371283001324628, + 88.45580699926359, + 11.103552002168726, + 14.395419002539711, + 59.884469003009144, + 15.808301002834924, + 9.472573998209555, + 9.46175999706611, + 10.581695998553187, + 9.212947999913013, + 45.26136799904634, + 13.613958999485476, + 13.72544699916034, + 10.24539799982449, + 14.38909100033925, + 10.534393997659208, + 8.528641003067605, + 9.898640000756131, + 9.925426002155291, + 11.504606998641975, + 7.716399999480927, + 38.82657799840672, + 15.046262000396382, + 9.114759999647504, + 10.763819002022501, + 8.748808002565056, + 9.53392099836492, + 43.36584700286039, + 10.307968001143308, + 11.390786999982083, + 8.931829997891327, + 10.762087997136405, + 8.313254998938646, + 9.303878003265709, + 9.046338996995473, + 42.18611800024519, + 11.898344000655925, + 20.108865999645786, + 10.485211001650896, + 11.133978001453215, + 10.530914001719793, + 9.902922000037506, + 38.55962099987664, + 9.522756001388188, + 10.59169799918891, + 9.931914999469882, + 8.444072998827323, + 42.323830999521306, + 10.18052699873806, + 10.241238000162411, + 74.3146210006671, + 204.7032609989401, + 96.42146899932413, + 25.41325600031996, + 74.80113500059815, + 29.16576999996323, + 72.4258580012247, + 19.658268000057433, + 77.74938600050518, + 22.626091998972697, + 78.67684400116559, + 23.505559998739045, + 76.3357720024942, + 96.73554999972112, + 20.160613999905763, + 19.841566998366034, + 65.639327000099, + 97.93137200176716, + 27.636830000119517, + 12.792262998118531, + 61.390996001136955, + 27.063753997936146, + 67.02692199905869, + 27.52418599993689, + 89.26222200170741, + 16.948052998486673, + 9.699652997369412, + 96.06702699966263, + 82.50020800187485, + 81.69988599911449, + 32.738156001869356, + 67.24602499889443, + 19.51085700056865, + 78.88657999865245, + 21.09060100337956, + 10.754917999292957, + 72.02085699827876, + 20.4955279987189, + 77.49934299863526, + 19.444500998361036, + 81.04958900003112, + 31.534811001620255, + 67.98282000090694, + 102.77583800052525, + 95.27780999997049, + 102.36239200094133, + 98.74417500031996, + 99.39732700149762, + 200.30621600017184, + 18.929826001112815, + 83.04511299866135, + 22.663088999252068, + 78.51129499977105, + 77.75858599779895, + 96.83612400112906, + 20.884272002149373, + 90.40004000053159, + 14.8904070010758, + 12.15883500117343, + 10.616880001180107, + 17.833474001236027, + 54.606255998805864, + 18.437142000038875, + 16.608715999609558, + 69.97515699913492, + 97.48663699792814, + 21.058926999103278, + 77.67051600239938, + 22.978211996814935, + 78.70468299734057, + 20.581952998327324, + 79.79014700322296, + 23.97162699708133, + 70.48537000082433, + 23.92071800204576, + 15.125715999602107, + 66.20623799972236, + 20.579291998728877, + 79.02918800027692, + 98.0203020008048, + 25.64247800182784, + 69.90356499954942, + 24.1531230021792, + 78.98885900067398, + 22.98496599905775, + 14.282379001087975, + 65.81348200052162, + 19.507852997776354, + 277.87773000090965, + 103.06692400263273, + 27.219168001465732, + 74.02139899932081, + 97.35793700019713, + 31.03594099957263, + 71.36690900006215, + 101.69391699673724, + 21.10697999887634, + 79.08283500000834, + 23.0655300001672, + 69.15190599829657, + 23.085470998921664, + 72.38629299899912, + 11.968230002821656, + 13.246800001070369, + 11.421561001043301, + 10.700105001888005, + 61.71499799893354, + 20.111631998588564, + 75.44223800141481, + 21.394749001046875, + 81.4345590006269, + 18.24802500050282, + 84.58292200157302, + 24.873820002540015, + 75.75113200073247, + 100.5896370006667, + 98.46218500024406, + 25.816008001129376, + 74.10489399990183, + 21.164624999073567, + 77.50283099812805, + 20.768573998793727, + 76.02339900040533, + 24.150977998942835, + 79.17372799784061, + 20.124274997215252, + 77.41863700357499, + 22.48120399963227, + 81.58901000206242, + 21.650004000548506, + 73.48204099980649, + 197.95492499906686, + 202.49392700134194, + 110.4930500005139, + 92.391244997998, + 95.21811499871546, + 103.88296999735758, + 20.946853001078125, + 81.72636800009059, + 22.609735999139957, + 73.14757899803226, + 21.67926400215947, + 86.03793499787571, + 90.64346800005296, + 95.62881400051992, + 13.516147999325767, + 14.882239000144182, + 14.017901001352584, + 12.5828599993838, + 54.825536000862485, + 20.02028500282904, + 76.94775100026163, + 21.78800499677891, + 77.51594100045622, + 21.967124001093907, + 16.798102999018738, + 64.18259499696433, + 21.684624000045005, + 79.67297600043821, + 19.280668002465973, + 71.79187799920328, + 27.300728997943224, + 78.97858300202643, + 28.847516001405893, + 72.10179899993818, + 24.881861001631478, + 13.78487400143058, + 64.07577100253548, + 26.667045000067446, + 73.21792900256696, + 24.402298000495648, + 77.05883599919616, + 96.74750900012441, + 99.1260129994771, + 24.12490099959541, + 171.44190599719877, + 203.87353300247923, + 97.90476099806256, + 100.308943001437, + 21.529117999307346, + 81.83759600069607, + 23.074649001500802, + 11.139966001792345, + 66.23397200019099, + 22.117084001365583, + 74.01520100029302, + 20.832799000345403, + 76.96887899874127, + 23.28302900059498, + 82.55976800137432, + 29.41766000003554, + 26.44120200056932, + 42.90288199990755, + 22.253933999309083, + 73.01004100008868, + 16.515786002855748, + 87.48692899825983, + 23.69360800003051, + 75.57537599859643, + 101.98353400119231, + 21.4942130005511, + 16.807239000627305, + 59.519177997572115, + 24.001502999453805, + 77.75865099756629, + 26.52279700123472, + 96.70951099906233, + 15.085883002029732, + 63.2183099987742, + 11.912427999050124, + 10.199074000411201, + 9.491472999798134 + ], + "resources": { + "api": { + "cpu_percent_mean": 10.316625, + "ram_mib_mean": 14.1360375, + "ram_mib_max": 24.86, + "samples": 320, + "cpu_seconds_per_job_estimate": 0.008248074988249475 + }, + "worker": { + "cpu_percent_mean": 34.790625, + "ram_mib_mean": 7.039275, + "ram_mib_max": 9.219, + "samples": 160, + "cpu_seconds_per_job_estimate": 0.027814879758454616 + } + }, + "collector_deltas": { + "otelcol_receiver_accepted_spans": 0, + "otelcol_exporter_sent_spans": 0, + "otelcol_receiver_refused_spans": 0, + "otelcol_exporter_send_failed_spans": 0, + "otelcol_receiver_accepted_log_records": 0, + "otelcol_receiver_accepted_metric_points": 0 + }, + "ingest_spans_per_second": 0.0, + "tempo_spans_per_second": 0.0, + "trace_retention": 0.0, + "stats_samples": [ + { + "t": 0.4390734539992991, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.117 + }, + { + "t": 0.4392101179983001, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.113 + }, + { + "t": 0.43927850799809676, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 0.21, + "ram_mib": 4.012 + }, + { + "t": 0.9385590269994282, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.117 + }, + { + "t": 0.9386133480002172, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.113 + }, + { + "t": 0.9387422279978637, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 0.21, + "ram_mib": 4.012 + }, + { + "t": 1.4392662569989625, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 38.61, + "ram_mib": 9.156 + }, + { + "t": 1.4393234759991174, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 33.55, + "ram_mib": 9.078 + }, + { + "t": 1.4393453189986758, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 3.7, + "ram_mib": 5.195 + }, + { + "t": 1.9389826439983153, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 38.61, + "ram_mib": 9.156 + }, + { + "t": 1.9390312989999074, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 33.55, + "ram_mib": 9.078 + }, + { + "t": 1.9390511189994868, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 3.7, + "ram_mib": 5.195 + }, + { + "t": 2.439579762998619, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 38.94, + "ram_mib": 12.68 + }, + { + "t": 2.4396582989975286, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 34.34, + "ram_mib": 12.18 + }, + { + "t": 2.4396812909981236, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 22.85, + "ram_mib": 5.293 + }, + { + "t": 2.9392449730003136, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 38.94, + "ram_mib": 12.68 + }, + { + "t": 2.939309213998058, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 34.34, + "ram_mib": 12.18 + }, + { + "t": 2.939349256997957, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 22.85, + "ram_mib": 5.293 + }, + { + "t": 3.438819295999565, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 35.3, + "ram_mib": 8.984 + }, + { + "t": 3.4388597149991256, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 30.93, + "ram_mib": 8.961 + }, + { + "t": 3.43888050500027, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 24.51, + "ram_mib": 4.574 + }, + { + "t": 3.939121414998226, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 35.3, + "ram_mib": 8.984 + }, + { + "t": 3.939175905998127, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 30.93, + "ram_mib": 8.961 + }, + { + "t": 3.9391976349979814, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 24.51, + "ram_mib": 4.574 + }, + { + "t": 4.439146730997891, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 17.91, + "ram_mib": 7.449 + }, + { + "t": 4.4391965590002656, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 17.8, + "ram_mib": 7.391 + }, + { + "t": 4.439220214997476, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 11.81, + "ram_mib": 5.098 + }, + { + "t": 4.939578203997371, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 17.91, + "ram_mib": 7.449 + }, + { + "t": 4.939648723000573, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 17.8, + "ram_mib": 7.391 + }, + { + "t": 4.939671849999286, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 11.81, + "ram_mib": 5.098 + }, + { + "t": 5.4401558009994915, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 32.74, + "ram_mib": 9.168 + }, + { + "t": 5.440213534999202, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 32.81, + "ram_mib": 9.164 + }, + { + "t": 5.440234450998105, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 27.55, + "ram_mib": 5.586 + }, + { + "t": 5.939198633997876, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 32.74, + "ram_mib": 9.168 + }, + { + "t": 5.9392824139977165, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 32.81, + "ram_mib": 9.164 + }, + { + "t": 5.939329954999266, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 27.55, + "ram_mib": 5.586 + }, + { + "t": 6.438885947998642, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 23.31, + "ram_mib": 7.574 + }, + { + "t": 6.438929211999493, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 23.1, + "ram_mib": 9.102 + }, + { + "t": 6.438947504997486, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 14.36, + "ram_mib": 4.965 + }, + { + "t": 6.940322843998729, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 23.31, + "ram_mib": 7.574 + }, + { + "t": 6.940401595998992, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 23.1, + "ram_mib": 9.102 + }, + { + "t": 6.940446606997284, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 14.36, + "ram_mib": 4.965 + }, + { + "t": 7.439346723000199, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 32.59, + "ram_mib": 9.969 + }, + { + "t": 7.4394168779981555, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 33.11, + "ram_mib": 8.758 + }, + { + "t": 7.439456091997272, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 23.08, + "ram_mib": 5.047 + }, + { + "t": 7.9395411719997355, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 32.59, + "ram_mib": 9.969 + }, + { + "t": 7.939585985997837, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 33.11, + "ram_mib": 8.758 + }, + { + "t": 7.939633619000233, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 23.08, + "ram_mib": 5.047 + }, + { + "t": 8.43927591299871, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 36.82, + "ram_mib": 9.297 + }, + { + "t": 8.439325041999837, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 34.95, + "ram_mib": 8.73 + }, + { + "t": 8.439346684997872, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 18.55, + "ram_mib": 5.16 + }, + { + "t": 8.939134256997932, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 36.82, + "ram_mib": 9.297 + }, + { + "t": 8.939188844997261, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 34.95, + "ram_mib": 8.73 + }, + { + "t": 8.939219331998174, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 18.55, + "ram_mib": 5.16 + }, + { + "t": 9.440009363999707, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 18.29, + "ram_mib": 9.18 + }, + { + "t": 9.440064878999692, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 18.52, + "ram_mib": 9.09 + }, + { + "t": 9.440098437000415, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 10.88, + "ram_mib": 4.992 + }, + { + "t": 9.93962836299761, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 18.29, + "ram_mib": 9.18 + }, + { + "t": 9.939691497998865, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 18.52, + "ram_mib": 9.09 + }, + { + "t": 9.939725205000286, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 10.88, + "ram_mib": 4.992 + }, + { + "t": 10.439225100999465, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 31.95, + "ram_mib": 9.949 + }, + { + "t": 10.43927237599928, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 31.13, + "ram_mib": 7.941 + }, + { + "t": 10.439293550000002, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 23.41, + "ram_mib": 5.199 + }, + { + "t": 10.938942344997486, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 31.95, + "ram_mib": 9.949 + }, + { + "t": 10.939018490997114, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 31.13, + "ram_mib": 7.941 + }, + { + "t": 10.939061302000482, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 23.41, + "ram_mib": 5.199 + }, + { + "t": 11.439519551000558, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 21.76, + "ram_mib": 9.645 + }, + { + "t": 11.439577801997075, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 21.26, + "ram_mib": 8.414 + }, + { + "t": 11.43963250899833, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 14.23, + "ram_mib": 5.395 + }, + { + "t": 11.939247111997247, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 21.76, + "ram_mib": 9.645 + }, + { + "t": 11.939329839999118, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 21.26, + "ram_mib": 8.414 + }, + { + "t": 11.93937062599798, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 14.23, + "ram_mib": 5.395 + }, + { + "t": 12.439049323998915, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 32.43, + "ram_mib": 8.023 + }, + { + "t": 12.439095254998392, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 30.29, + "ram_mib": 7.805 + }, + { + "t": 12.439114753997274, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 19.63, + "ram_mib": 4.941 + }, + { + "t": 12.938024290000612, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 32.43, + "ram_mib": 8.023 + }, + { + "t": 12.938053882997337, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 30.29, + "ram_mib": 7.805 + }, + { + "t": 12.93806786999994, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 19.63, + "ram_mib": 4.941 + }, + { + "t": 13.439213189998554, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 20.82, + "ram_mib": 6.621 + }, + { + "t": 13.439259949998814, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 24.57, + "ram_mib": 6.543 + }, + { + "t": 13.439280425998732, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.96, + "ram_mib": 5.449 + }, + { + "t": 13.93884037099997, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 20.82, + "ram_mib": 6.621 + }, + { + "t": 13.938871860998916, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 24.57, + "ram_mib": 6.543 + }, + { + "t": 13.93888378399788, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.96, + "ram_mib": 5.449 + }, + { + "t": 14.438589260997105, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.43, + "ram_mib": 6.602 + }, + { + "t": 14.438633920999564, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.41, + "ram_mib": 6.535 + }, + { + "t": 14.438649071998952, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 34.76, + "ram_mib": 5.801 + }, + { + "t": 14.93896063200009, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.43, + "ram_mib": 6.602 + }, + { + "t": 14.938985893997597, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.41, + "ram_mib": 6.535 + }, + { + "t": 14.938995943997725, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 34.76, + "ram_mib": 5.801 + }, + { + "t": 15.43889247399784, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.48, + "ram_mib": 6.582 + }, + { + "t": 15.438924672998837, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.48, + "ram_mib": 6.781 + }, + { + "t": 15.438941543998226, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.01, + "ram_mib": 5.391 + }, + { + "t": 15.93895455999882, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.48, + "ram_mib": 6.582 + }, + { + "t": 15.938982751998992, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.48, + "ram_mib": 6.781 + }, + { + "t": 15.93899732600039, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.01, + "ram_mib": 5.391 + }, + { + "t": 16.438976022000134, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.44, + "ram_mib": 6.578 + }, + { + "t": 16.43901211299817, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.4, + "ram_mib": 6.816 + }, + { + "t": 16.439024969000457, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.08, + "ram_mib": 5.352 + }, + { + "t": 16.938557640998624, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.44, + "ram_mib": 6.578 + }, + { + "t": 16.93862352999713, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.4, + "ram_mib": 6.816 + }, + { + "t": 16.93865028899745, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.08, + "ram_mib": 5.352 + }, + { + "t": 17.438434422998398, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.4, + "ram_mib": 6.578 + }, + { + "t": 17.43850220799868, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 6.758 + }, + { + "t": 17.438529725997796, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.36, + "ram_mib": 6.316 + }, + { + "t": 17.938875386997097, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.4, + "ram_mib": 6.578 + }, + { + "t": 17.938916434999555, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 6.758 + }, + { + "t": 17.93893795599797, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.36, + "ram_mib": 6.316 + }, + { + "t": 18.438494428999547, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.62, + "ram_mib": 7.051 + }, + { + "t": 18.438519774997985, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.29, + "ram_mib": 6.762 + }, + { + "t": 18.43852847999733, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.51, + "ram_mib": 5.91 + }, + { + "t": 18.93906994899953, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.62, + "ram_mib": 7.051 + }, + { + "t": 18.939114683998923, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.29, + "ram_mib": 6.762 + }, + { + "t": 18.93914126600066, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.51, + "ram_mib": 5.91 + }, + { + "t": 19.43809694599986, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.82 + }, + { + "t": 19.438115963999735, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.781 + }, + { + "t": 19.438122325998847, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.66, + "ram_mib": 5.949 + }, + { + "t": 19.93884870799957, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.82 + }, + { + "t": 19.938898707998305, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.781 + }, + { + "t": 19.938929263997125, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.66, + "ram_mib": 5.949 + }, + { + "t": 20.438915931998054, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.574 + }, + { + "t": 20.438962123000238, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.754 + }, + { + "t": 20.438987343997724, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.23, + "ram_mib": 5.727 + }, + { + "t": 20.938419750997127, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.574 + }, + { + "t": 20.93845816099929, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.754 + }, + { + "t": 20.938472947000264, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.23, + "ram_mib": 5.727 + }, + { + "t": 21.439100657997187, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.598 + }, + { + "t": 21.439150905000133, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.73 + }, + { + "t": 21.439180600998952, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.33, + "ram_mib": 6.047 + }, + { + "t": 21.938678790997074, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.598 + }, + { + "t": 21.9387102039982, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.73 + }, + { + "t": 21.93872528599968, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.33, + "ram_mib": 6.047 + }, + { + "t": 22.438235634999728, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.82 + }, + { + "t": 22.43826507799895, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.535 + }, + { + "t": 22.43828044199836, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.06, + "ram_mib": 6.586 + }, + { + "t": 22.93877859499844, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.82 + }, + { + "t": 22.9388073730006, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.535 + }, + { + "t": 22.938823307998973, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.06, + "ram_mib": 6.586 + }, + { + "t": 23.438967889000196, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 3.35, + "ram_mib": 6.824 + }, + { + "t": 23.4390072219976, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.38, + "ram_mib": 6.738 + }, + { + "t": 23.439024985997094, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 36.34, + "ram_mib": 5.961 + }, + { + "t": 23.93865624799946, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 3.35, + "ram_mib": 6.824 + }, + { + "t": 23.938706541997817, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.38, + "ram_mib": 6.738 + }, + { + "t": 23.938736378000613, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 36.34, + "ram_mib": 5.961 + }, + { + "t": 24.43918254199889, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.824 + }, + { + "t": 24.439234940997267, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.832 + }, + { + "t": 24.43926297899816, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.17, + "ram_mib": 6.988 + }, + { + "t": 24.938672033997136, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.824 + }, + { + "t": 24.93869556199934, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.832 + }, + { + "t": 24.938704716998473, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.17, + "ram_mib": 6.988 + }, + { + "t": 25.438697040997795, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.82 + }, + { + "t": 25.438748082997336, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.047 + }, + { + "t": 25.43882032399779, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.96, + "ram_mib": 6.398 + }, + { + "t": 25.938961299998482, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.82 + }, + { + "t": 25.93898362300024, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.047 + }, + { + "t": 25.938990440998168, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.96, + "ram_mib": 6.398 + }, + { + "t": 26.43822476599962, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.594 + }, + { + "t": 26.43824419199882, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.531 + }, + { + "t": 26.438250519997382, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 46.7, + "ram_mib": 6.52 + }, + { + "t": 26.938678127000458, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.594 + }, + { + "t": 26.938706124998134, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.531 + }, + { + "t": 26.93871830399803, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 46.7, + "ram_mib": 6.52 + }, + { + "t": 27.438972816999012, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.82 + }, + { + "t": 27.43899415299893, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.562 + }, + { + "t": 27.43900200599819, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 39.12, + "ram_mib": 7.227 + }, + { + "t": 27.938784180998482, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.82 + }, + { + "t": 27.938804391000303, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.562 + }, + { + "t": 27.938811599000474, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 39.12, + "ram_mib": 7.227 + }, + { + "t": 28.438969962000556, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.35, + "ram_mib": 6.84 + }, + { + "t": 28.438992143997893, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.61, + "ram_mib": 6.82 + }, + { + "t": 28.438999930000136, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.27, + "ram_mib": 6.957 + }, + { + "t": 28.938540978000674, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.35, + "ram_mib": 6.84 + }, + { + "t": 28.938559370999428, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.61, + "ram_mib": 6.82 + }, + { + "t": 28.938566229997377, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.27, + "ram_mib": 6.957 + }, + { + "t": 29.439038519998576, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.801 + }, + { + "t": 29.439065403999848, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 7.043 + }, + { + "t": 29.439077254999575, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.44, + "ram_mib": 6.859 + }, + { + "t": 29.938673475997348, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.801 + }, + { + "t": 29.938713961997564, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 7.043 + }, + { + "t": 29.938734662999195, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.44, + "ram_mib": 6.859 + }, + { + "t": 30.438729937999597, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.574 + }, + { + "t": 30.438751415000297, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.797 + }, + { + "t": 30.438758164997125, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.93, + "ram_mib": 7.191 + }, + { + "t": 30.938927905997843, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.574 + }, + { + "t": 30.93895996900028, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.797 + }, + { + "t": 30.938975750999816, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.93, + "ram_mib": 7.191 + }, + { + "t": 31.43891914899723, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.82 + }, + { + "t": 31.43894444599937, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.777 + }, + { + "t": 31.43895397400047, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 41.42, + "ram_mib": 5.801 + }, + { + "t": 31.938595889998396, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.82 + }, + { + "t": 31.938621856999816, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.777 + }, + { + "t": 31.93862845699914, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 41.42, + "ram_mib": 5.801 + }, + { + "t": 32.438839241000096, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.594 + }, + { + "t": 32.43885691499963, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.551 + }, + { + "t": 32.43886277099955, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 45.98, + "ram_mib": 6.562 + }, + { + "t": 32.938580853999156, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.594 + }, + { + "t": 32.93869487600023, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.551 + }, + { + "t": 32.938755470000615, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 45.98, + "ram_mib": 6.562 + }, + { + "t": 33.438383038999746, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.32, + "ram_mib": 6.637 + }, + { + "t": 33.43840617499882, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.4, + "ram_mib": 7.0 + }, + { + "t": 33.43841514199812, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.6, + "ram_mib": 6.492 + }, + { + "t": 33.93915434799783, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.32, + "ram_mib": 6.637 + }, + { + "t": 33.939203373000055, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.4, + "ram_mib": 7.0 + }, + { + "t": 33.93923163799991, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.6, + "ram_mib": 6.492 + }, + { + "t": 34.43862480399912, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 7.051 + }, + { + "t": 34.438657250997494, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.75 + }, + { + "t": 34.43867491600031, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.29, + "ram_mib": 6.781 + }, + { + "t": 34.93895112899918, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 7.051 + }, + { + "t": 34.938977104000514, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.75 + }, + { + "t": 34.93899134399908, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.29, + "ram_mib": 6.781 + }, + { + "t": 35.43815634099883, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.824 + }, + { + "t": 35.43818474199725, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 7.281 + }, + { + "t": 35.43819917499786, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 40.36, + "ram_mib": 6.453 + }, + { + "t": 35.93882896899959, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.824 + }, + { + "t": 35.938848695997876, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 7.281 + }, + { + "t": 35.938854796997475, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 40.36, + "ram_mib": 6.453 + }, + { + "t": 36.43895530199734, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.82 + }, + { + "t": 36.43898434699804, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.777 + }, + { + "t": 36.438999201000115, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 41.3, + "ram_mib": 6.707 + }, + { + "t": 36.93887090499993, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.82 + }, + { + "t": 36.93890663699858, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.777 + }, + { + "t": 36.93892119899829, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 41.3, + "ram_mib": 6.707 + }, + { + "t": 37.438670944997284, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.824 + }, + { + "t": 37.4386903529994, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.531 + }, + { + "t": 37.4386964410005, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 40.45, + "ram_mib": 7.188 + }, + { + "t": 37.938999580997915, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.824 + }, + { + "t": 37.93902882799739, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.531 + }, + { + "t": 37.93904026999735, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 40.45, + "ram_mib": 7.188 + }, + { + "t": 38.43868369899792, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.23, + "ram_mib": 6.594 + }, + { + "t": 38.43870666799921, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.5, + "ram_mib": 6.848 + }, + { + "t": 38.4387151239971, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 46.61, + "ram_mib": 7.113 + }, + { + "t": 38.938524859997415, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.23, + "ram_mib": 6.594 + }, + { + "t": 38.93856495, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.5, + "ram_mib": 6.848 + }, + { + "t": 38.938580853999156, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 46.61, + "ram_mib": 7.113 + }, + { + "t": 39.43862362299842, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 7.07 + }, + { + "t": 39.43865177399857, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.852 + }, + { + "t": 39.43866282399904, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 46.89, + "ram_mib": 7.344 + }, + { + "t": 39.93900064499758, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 7.07 + }, + { + "t": 39.93903288000001, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.852 + }, + { + "t": 39.939046702998894, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 46.89, + "ram_mib": 7.344 + }, + { + "t": 40.4389409409996, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.824 + }, + { + "t": 40.4389720170002, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.555 + }, + { + "t": 40.43898444200022, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.05, + "ram_mib": 7.305 + }, + { + "t": 40.938490157997876, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.824 + }, + { + "t": 40.93852801100002, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.555 + }, + { + "t": 40.93855006299782, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 48.05, + "ram_mib": 7.305 + }, + { + "t": 41.438487138999335, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 7.047 + }, + { + "t": 41.43850837900027, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.777 + }, + { + "t": 41.43851574300061, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 43.19, + "ram_mib": 7.5 + }, + { + "t": 41.938979685997765, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 7.047 + }, + { + "t": 41.939010393998615, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.777 + }, + { + "t": 41.93902467400039, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 43.19, + "ram_mib": 7.5 + }, + { + "t": 42.439129466998565, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.594 + }, + { + "t": 42.43917656099802, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 6.781 + }, + { + "t": 42.439204648999294, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 41.27, + "ram_mib": 7.535 + }, + { + "t": 42.93854963799822, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.594 + }, + { + "t": 42.938578332999896, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 6.781 + }, + { + "t": 42.93859483699998, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 41.27, + "ram_mib": 7.535 + }, + { + "t": 43.4383446469983, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.55, + "ram_mib": 6.598 + }, + { + "t": 43.438382121999894, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.11, + "ram_mib": 6.641 + }, + { + "t": 43.438396467998245, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.69, + "ram_mib": 7.648 + }, + { + "t": 43.93899305699961, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.55, + "ram_mib": 6.598 + }, + { + "t": 43.93903045799743, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.11, + "ram_mib": 6.641 + }, + { + "t": 43.939045736999105, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 47.69, + "ram_mib": 7.648 + }, + { + "t": 44.43896630299787, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.582 + }, + { + "t": 44.43899601399971, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.551 + }, + { + "t": 44.43900868199853, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 46.97, + "ram_mib": 7.824 + }, + { + "t": 44.938396407000255, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.582 + }, + { + "t": 44.93844533899755, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.551 + }, + { + "t": 44.93847361799999, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 46.97, + "ram_mib": 7.824 + }, + { + "t": 45.43885903199771, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.574 + }, + { + "t": 45.43891297799928, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.531 + }, + { + "t": 45.43894541899863, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 49.42, + "ram_mib": 8.047 + }, + { + "t": 45.9396576729996, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.574 + }, + { + "t": 45.93974783699741, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.531 + }, + { + "t": 45.93979789799778, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 49.42, + "ram_mib": 8.047 + }, + { + "t": 46.43918012999711, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.574 + }, + { + "t": 46.43922883999767, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 6.758 + }, + { + "t": 46.43925793299786, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 37.91, + "ram_mib": 7.664 + }, + { + "t": 46.93873779899877, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.574 + }, + { + "t": 46.93875749899962, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 6.758 + }, + { + "t": 46.938770155000384, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 37.91, + "ram_mib": 7.664 + }, + { + "t": 47.43909283299945, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.824 + }, + { + "t": 47.439151816997764, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.027 + }, + { + "t": 47.43918350199965, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 34.53, + "ram_mib": 7.855 + }, + { + "t": 47.93881921399952, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.824 + }, + { + "t": 47.93885676900027, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.027 + }, + { + "t": 47.938870897000015, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 34.53, + "ram_mib": 7.855 + }, + { + "t": 48.43902533099754, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.7, + "ram_mib": 6.652 + }, + { + "t": 48.43905254699712, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.58, + "ram_mib": 7.031 + }, + { + "t": 48.43906760800019, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 31.62, + "ram_mib": 7.941 + }, + { + "t": 48.938380234998476, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.7, + "ram_mib": 6.652 + }, + { + "t": 48.938407278998056, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.58, + "ram_mib": 7.031 + }, + { + "t": 48.938422529998206, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 31.62, + "ram_mib": 7.941 + }, + { + "t": 49.43836696300059, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.789 + }, + { + "t": 49.43839194999964, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.266 + }, + { + "t": 49.43840319999799, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.2, + "ram_mib": 7.965 + }, + { + "t": 49.9393024389974, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.789 + }, + { + "t": 49.93936822199976, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.266 + }, + { + "t": 49.93940697399739, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.2, + "ram_mib": 7.965 + }, + { + "t": 50.439112132000446, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.07 + }, + { + "t": 50.4391582520002, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.773 + }, + { + "t": 50.43918551199749, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.01, + "ram_mib": 7.613 + }, + { + "t": 50.93829637399904, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.07 + }, + { + "t": 50.93834907799828, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.773 + }, + { + "t": 50.93837887399786, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.01, + "ram_mib": 7.613 + }, + { + "t": 51.43879910099713, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.84 + }, + { + "t": 51.43882271899929, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.551 + }, + { + "t": 51.43883108400041, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.58, + "ram_mib": 8.445 + }, + { + "t": 51.939483109999856, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.84 + }, + { + "t": 51.93952824799999, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.551 + }, + { + "t": 51.939553423999314, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.58, + "ram_mib": 8.445 + }, + { + "t": 52.439052419998916, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.57 + }, + { + "t": 52.43910134199905, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.527 + }, + { + "t": 52.43912895599715, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 31.81, + "ram_mib": 7.441 + }, + { + "t": 52.938445318999584, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.57 + }, + { + "t": 52.938475614999334, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.527 + }, + { + "t": 52.938492678997136, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 31.81, + "ram_mib": 7.441 + }, + { + "t": 53.43834164399959, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.8, + "ram_mib": 6.602 + }, + { + "t": 53.438384818000486, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.81, + "ram_mib": 6.699 + }, + { + "t": 53.43840243699742, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.77, + "ram_mib": 8.004 + }, + { + "t": 53.93880187399918, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.8, + "ram_mib": 6.602 + }, + { + "t": 53.938832179999736, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.81, + "ram_mib": 6.699 + }, + { + "t": 53.9388542409979, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.77, + "ram_mib": 8.004 + }, + { + "t": 54.43906005399913, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.57 + }, + { + "t": 54.439106747999176, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.555 + }, + { + "t": 54.43912813299903, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 31.19, + "ram_mib": 8.516 + }, + { + "t": 54.93891228099892, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.57 + }, + { + "t": 54.93894058799924, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.555 + }, + { + "t": 54.93895551499736, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 31.19, + "ram_mib": 8.516 + }, + { + "t": 55.439178903998254, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.82 + }, + { + "t": 55.439225150999846, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.0 + }, + { + "t": 55.43925257799856, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 27.05, + "ram_mib": 7.605 + }, + { + "t": 55.93920869499925, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.82 + }, + { + "t": 55.93928582799708, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.0 + }, + { + "t": 55.93932852799844, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 27.05, + "ram_mib": 7.605 + }, + { + "t": 56.438464686998486, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.793 + }, + { + "t": 56.438520498999424, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.551 + }, + { + "t": 56.438554782998835, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 28.55, + "ram_mib": 7.473 + }, + { + "t": 56.9389164949971, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.793 + }, + { + "t": 56.938949464998586, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.551 + }, + { + "t": 56.93896866599971, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 28.55, + "ram_mib": 7.473 + }, + { + "t": 57.43900090999887, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.82 + }, + { + "t": 57.439045749997604, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.527 + }, + { + "t": 57.439070906999405, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.11, + "ram_mib": 8.07 + }, + { + "t": 57.93889031599974, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.82 + }, + { + "t": 57.938952381999115, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.527 + }, + { + "t": 57.938989310998295, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.11, + "ram_mib": 8.07 + }, + { + "t": 58.43881477099785, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.7, + "ram_mib": 6.57 + }, + { + "t": 58.438858432000416, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.43, + "ram_mib": 6.582 + }, + { + "t": 58.43887095899845, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.71, + "ram_mib": 8.652 + }, + { + "t": 58.93914922299882, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.7, + "ram_mib": 6.57 + }, + { + "t": 58.939191891997325, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.43, + "ram_mib": 6.582 + }, + { + "t": 58.939208957999654, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.71, + "ram_mib": 8.652 + }, + { + "t": 59.43886902899976, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.816 + }, + { + "t": 59.43889515199771, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.75 + }, + { + "t": 59.43890906199886, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.45, + "ram_mib": 8.207 + }, + { + "t": 59.93867871399925, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.816 + }, + { + "t": 59.93873641800019, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.75 + }, + { + "t": 59.93876838899814, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.45, + "ram_mib": 8.207 + }, + { + "t": 60.43813790099739, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.816 + }, + { + "t": 60.43816851500014, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.527 + }, + { + "t": 60.4381807389982, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.24, + "ram_mib": 7.727 + }, + { + "t": 60.938922992998414, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.816 + }, + { + "t": 60.9389570759995, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.527 + }, + { + "t": 60.938985594999394, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.24, + "ram_mib": 7.727 + }, + { + "t": 61.43824011799734, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.805 + }, + { + "t": 61.43826897599865, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.734 + }, + { + "t": 61.438283529998444, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.24, + "ram_mib": 7.391 + }, + { + "t": 61.938860207999824, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.805 + }, + { + "t": 61.938881832000334, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.734 + }, + { + "t": 61.93888860899824, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.24, + "ram_mib": 7.391 + }, + { + "t": 62.43872788099907, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.551 + }, + { + "t": 62.43875613399723, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.75 + }, + { + "t": 62.438771719000215, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.75, + "ram_mib": 8.66 + }, + { + "t": 62.93927564099795, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.551 + }, + { + "t": 62.9393453019984, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.75 + }, + { + "t": 62.939385686000605, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.75, + "ram_mib": 8.66 + }, + { + "t": 63.43925076599771, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.66, + "ram_mib": 6.801 + }, + { + "t": 63.43931133899969, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.47, + "ram_mib": 6.594 + }, + { + "t": 63.43933660399853, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.5, + "ram_mib": 8.445 + }, + { + "t": 63.938784457997826, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.66, + "ram_mib": 6.801 + }, + { + "t": 63.93881086399779, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.47, + "ram_mib": 6.594 + }, + { + "t": 63.93882473899794, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.5, + "ram_mib": 8.445 + }, + { + "t": 64.43857872999797, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.793 + }, + { + "t": 64.43863350899846, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.539 + }, + { + "t": 64.43866099200022, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.24, + "ram_mib": 7.883 + }, + { + "t": 64.93875179699899, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.793 + }, + { + "t": 64.93884214599893, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.539 + }, + { + "t": 64.93889614399814, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.24, + "ram_mib": 7.883 + }, + { + "t": 65.43838959399727, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.762 + }, + { + "t": 65.43840940399969, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.543 + }, + { + "t": 65.43841657099983, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 28.55, + "ram_mib": 8.695 + }, + { + "t": 65.9381423019986, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.762 + }, + { + "t": 65.93816357999822, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.543 + }, + { + "t": 65.9381701429993, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 28.55, + "ram_mib": 8.695 + }, + { + "t": 66.43860703899918, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.527 + }, + { + "t": 66.43864482299978, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.941 + }, + { + "t": 66.43866023599912, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.05, + "ram_mib": 8.172 + }, + { + "t": 66.93809603099726, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.527 + }, + { + "t": 66.93813641399902, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.941 + }, + { + "t": 66.93815410299794, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.05, + "ram_mib": 8.172 + }, + { + "t": 67.4389496570002, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.977 + }, + { + "t": 67.43898534899927, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.715 + }, + { + "t": 67.43900046999988, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.55, + "ram_mib": 8.18 + }, + { + "t": 67.93843766399732, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.977 + }, + { + "t": 67.93845604599846, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.715 + }, + { + "t": 67.93846893599766, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.55, + "ram_mib": 8.18 + }, + { + "t": 68.43917691999741, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.42, + "ram_mib": 6.59 + }, + { + "t": 68.43920984899887, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.61, + "ram_mib": 6.465 + }, + { + "t": 68.43922352799927, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.99, + "ram_mib": 8.52 + }, + { + "t": 68.93882900499739, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.42, + "ram_mib": 6.59 + }, + { + "t": 68.93885856899942, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.61, + "ram_mib": 6.465 + }, + { + "t": 68.9388701429998, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.99, + "ram_mib": 8.52 + }, + { + "t": 69.43896300199776, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.773 + }, + { + "t": 69.43899521099956, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.465 + }, + { + "t": 69.43901010199988, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.37, + "ram_mib": 8.422 + }, + { + "t": 69.93878415599829, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.773 + }, + { + "t": 69.93881985699772, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.465 + }, + { + "t": 69.93883743799961, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.37, + "ram_mib": 8.422 + }, + { + "t": 70.43912980999812, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.473 + }, + { + "t": 70.43917941499967, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.43 + }, + { + "t": 70.43920752999838, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.66, + "ram_mib": 8.281 + }, + { + "t": 70.93862197899944, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.473 + }, + { + "t": 70.9386529809999, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.43 + }, + { + "t": 70.93866935500046, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.66, + "ram_mib": 8.281 + }, + { + "t": 71.43855502499719, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.473 + }, + { + "t": 71.43858113899842, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.426 + }, + { + "t": 71.43859389799763, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.66, + "ram_mib": 9.137 + }, + { + "t": 71.93919362700035, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.473 + }, + { + "t": 71.93926602499778, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.426 + }, + { + "t": 71.93930801199895, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.66, + "ram_mib": 9.137 + }, + { + "t": 72.43887852099942, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.719 + }, + { + "t": 72.43896645699715, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.426 + }, + { + "t": 72.43902175599942, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.52, + "ram_mib": 8.453 + }, + { + "t": 72.93911321999985, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.719 + }, + { + "t": 72.93915224399825, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.426 + }, + { + "t": 72.93917055699785, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.52, + "ram_mib": 8.453 + }, + { + "t": 73.43841902900022, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.47, + "ram_mib": 6.473 + }, + { + "t": 73.43845504799901, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 3.01, + "ram_mib": 6.664 + }, + { + "t": 73.4384710489976, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.71, + "ram_mib": 8.586 + }, + { + "t": 73.9389983229994, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.47, + "ram_mib": 6.473 + }, + { + "t": 73.93902444899868, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 3.01, + "ram_mib": 6.664 + }, + { + "t": 73.93903372699788, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.71, + "ram_mib": 8.586 + }, + { + "t": 74.43792595899868, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.434 + }, + { + "t": 74.43794774900016, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.422 + }, + { + "t": 74.43795506699826, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 27.38, + "ram_mib": 8.109 + }, + { + "t": 74.93871970100008, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.434 + }, + { + "t": 74.9387543749981, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.422 + }, + { + "t": 74.93877276099738, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 27.38, + "ram_mib": 8.109 + }, + { + "t": 75.4385675429985, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.684 + }, + { + "t": 75.43863500400039, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.668 + }, + { + "t": 75.438653625999, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 31.84, + "ram_mib": 9.078 + }, + { + "t": 75.93901532900054, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.684 + }, + { + "t": 75.93904678899708, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.668 + }, + { + "t": 75.93906352599879, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 31.84, + "ram_mib": 9.078 + }, + { + "t": 76.43837892199736, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.68 + }, + { + "t": 76.43841689799956, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.633 + }, + { + "t": 76.4384331379988, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.29, + "ram_mib": 8.672 + }, + { + "t": 76.93907663500067, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.68 + }, + { + "t": 76.93912154300051, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.633 + }, + { + "t": 76.9391408909978, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 33.29, + "ram_mib": 8.672 + }, + { + "t": 77.43902532399807, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.91 + }, + { + "t": 77.43907194900021, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.641 + }, + { + "t": 77.4390930619993, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.18, + "ram_mib": 9.219 + }, + { + "t": 77.938081925, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.91 + }, + { + "t": 77.93811981199906, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.641 + }, + { + "t": 77.93813755299925, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 32.18, + "ram_mib": 9.219 + }, + { + "t": 78.43914761999986, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.24, + "ram_mib": 6.488 + }, + { + "t": 78.43920826999965, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.71, + "ram_mib": 6.91 + }, + { + "t": 78.4392350579983, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 31.51, + "ram_mib": 8.273 + }, + { + "t": 78.93924302999949, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 2.24, + "ram_mib": 6.488 + }, + { + "t": 78.9392947319975, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 2.71, + "ram_mib": 6.91 + }, + { + "t": 78.93931586599865, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 31.51, + "ram_mib": 8.273 + }, + { + "t": 79.43927252299909, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.48 + }, + { + "t": 79.43936055899758, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.414 + }, + { + "t": 79.4394109399982, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 30.38, + "ram_mib": 7.402 + }, + { + "t": 79.93892398499884, + "container": "14dc73ba67554c1f597936fc440d235c3f7c21a301781ea8e9dd7362e3171a22", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.48 + }, + { + "t": 79.93895175199941, + "container": "50e483a9d3337f9ea1ffcb20b878b3af2c9b90805d0ee9c69461a53dd3f6d19b", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.414 + }, + { + "t": 79.93896637599755, + "container": "06a5a4348a8b3c567d274831d37c4b243a8b527cd8a90116bfa61b66637d4eb2", + "service": "worker", + "cpu_percent": 30.38, + "ram_mib": 7.402 + } + ], + "sdk_diagnostic_audit": { + "source": "Prometheus instant queries at trial start/end, restricted to trial container hostnames", + "warning_error_start": null, + "warning_error_end": null, + "warning_error_delta": null + } + }, + { + "variant": "B", + "repetition": 1, + "completed_utc": "2026-11-16T14:55:47.273089+00:00", + "successful_uploads": 1000, + "http_errors": 0, + "http_seconds": 12.668095482000354, + "pipeline_seconds": 69.11530104399935, + "collector_window_seconds": 72.1995818280011, + "rps": 78.9384640667466, + "latency_mean_ms": 50.202114098912716, + "latency_p50_ms": 27.721886999643175, + "latency_p99_ms": 200.2359610014537, + "latencies_ms": [ + 14.488773002085509, + 26.134834999538725, + 24.755926999205258, + 10.678610000468325, + 12.454707000870258, + 54.745081997680245, + 25.552097999025136, + 17.096979998314055, + 15.339367997512454, + 12.325182997301454, + 20.84366599956411, + 25.97889300159295, + 111.04884700034745, + 89.93204699800117, + 20.81539600112592, + 25.092939999012742, + 50.07689299964113, + 17.167668000183767, + 15.407085997139802, + 14.916078001988353, + 62.219463998189894, + 94.61763500075904, + 23.981268997886218, + 18.867709000915056, + 61.06249000004027, + 27.29862300111563, + 73.6669299985806, + 27.039215001423145, + 74.3752799971844, + 30.788631000177702, + 68.9325990024372, + 94.88382999916212, + 26.412712002638727, + 74.71581299978425, + 25.006132000271464, + 71.68707399978302, + 15.434255998115987, + 89.7000510012731, + 17.597549998754403, + 75.62228299866547, + 12.232359000336146, + 15.530468001088593, + 43.00390499702189, + 29.71891999914078, + 12.167925997346174, + 11.841763000120409, + 11.137917001178721, + 13.226639999629697, + 55.5867790026241, + 22.432311001466587, + 71.77406300252187, + 20.0365349992353, + 85.66882499872008, + 19.321897001645993, + 79.61344899740652, + 24.836141998093808, + 76.19654999871273, + 398.79565900264424, + 22.876912997162435, + 75.7750449993182, + 15.847652000957169, + 10.380203999375226, + 14.166782999382121, + 12.239608000527369, + 48.063933001685655, + 18.567942999652587, + 18.959196997457184, + 60.2455469997949, + 11.31460199758294, + 10.865239000850124, + 12.008548001176678, + 11.720499998773448, + 55.68715700064786, + 9.182794998196186, + 9.580991001712391, + 11.044368002330884, + 9.572014001605567, + 60.647484999208245, + 20.860019998508506, + 19.65642000141088, + 66.7278430009901, + 23.32398100043065, + 14.632433001679601, + 59.263481001835316, + 21.468708000611514, + 78.32178600074258, + 29.81882499807398, + 67.74280800163979, + 30.878297999151982, + 73.11427100285073, + 24.484916000801604, + 69.47033799951896, + 33.886205001181224, + 62.0681800028251, + 9.688538997579599, + 12.794686001143418, + 10.356997001508716, + 11.151855000207433, + 69.65724799738382, + 95.66643300058786, + 27.33861999877263, + 71.95906899869442, + 21.727359999204054, + 16.551434000575682, + 59.11699900025269, + 26.871781999943778, + 71.3709369993012, + 17.612625000765547, + 17.780435999156907, + 364.08008499711286, + 107.08116999740014, + 97.8340229994501, + 102.49787500288221, + 93.63222499814583, + 18.542944999353494, + 10.343760997784557, + 74.49431599889067, + 25.639878997026244, + 75.48063899957924, + 24.51189600105863, + 74.70326400289196, + 23.486131998652127, + 76.16548200167017, + 27.18220300084795, + 73.96172600056161, + 23.69101699878229, + 15.824423997401027, + 61.20712800111505, + 96.85212100157514, + 23.645111999940127, + 81.68546599699766, + 91.20015999724274, + 26.451753998117056, + 83.03965300001437, + 93.09155400114832, + 94.20762800073135, + 12.992871001188178, + 13.319756999408128, + 17.57469400035916, + 59.917490998486755, + 26.449864999449346, + 15.618811001331778, + 62.64045299758436, + 92.95114199994714, + 27.50140400166856, + 80.0567010010127, + 31.033246999868425, + 66.36886100022821, + 19.68415999726858, + 16.313115000230027, + 8.25259399789502, + 251.62745199850178, + 201.62935799817205, + 24.65861699965899, + 79.23978100006934, + 21.914135999395512, + 73.87967000249773, + 26.22680399872479, + 76.96231000227272, + 22.625805999268778, + 11.970681000093464, + 67.97812100194278, + 24.8425749996386, + 74.31151800119551, + 23.196322999865515, + 72.70531399990432, + 21.829629000421846, + 82.32215500174789, + 24.707499997020932, + 73.70724700012943, + 22.412068999983603, + 77.21947100071702, + 28.54476100037573, + 71.21258000188391, + 23.13473200047156, + 79.24869999988005, + 26.21803399961209, + 74.16509199902066, + 24.42561199859483, + 70.72011299896985, + 22.688941997330403, + 78.53236499795457, + 24.07098899857374, + 71.48698899982264, + 17.358949000481516, + 17.54730699758511, + 68.91485899905092, + 23.609010997461155, + 73.39820199922542, + 18.983758996910183, + 18.530748999182833, + 67.23429599878727, + 13.776447998679942, + 11.016659998858813, + 19.44837200062466, + 455.20092799779377, + 102.7909920012462, + 27.72166499926243, + 74.76767499974812, + 94.77551699819742, + 26.693209001678042, + 74.54557299934095, + 27.03029600161244, + 14.329768997413339, + 64.30566500057466, + 72.61837999976706, + 26.63485499942908, + 174.11257099956856, + 26.03991800060612, + 102.24305800147704, + 93.7864459992852, + 23.31302099992172, + 75.04731099834316, + 29.107113998179557, + 67.83569500112208, + 20.804196999961277, + 82.30319899666938, + 25.24484300010954, + 77.31809899996733, + 98.72394000194618, + 18.898615999205504, + 78.65618299911148, + 24.424831000942504, + 79.73964000120759, + 23.075207998772385, + 75.04702199730673, + 25.871331999951508, + 75.62227000016719, + 21.50036800230737, + 75.15817199964658, + 25.542293002217775, + 10.696866000216687, + 61.92658899817616, + 12.887023000075715, + 10.16625200281851, + 75.40722400153754, + 12.735281998175196, + 11.092856999312062, + 275.4714780021459, + 22.43929800170008, + 83.10790299947257, + 29.158409000956453, + 70.59171700166189, + 20.21574000173132, + 80.42966900029569, + 22.052296000765637, + 74.81198499954189, + 16.380623001168715, + 10.275407999870367, + 9.582146998582175, + 17.933994000486564, + 46.52380800325773, + 12.646984003367834, + 12.862661998951808, + 73.37391799956094, + 18.28274600120494, + 11.849118000100134, + 13.372788002016023, + 37.85592100030044, + 16.185394997592084, + 110.80708900044556, + 94.0696649995516, + 22.99664199745166, + 67.89677599954302, + 16.34770799864782, + 14.533351000864059, + 14.387825998710468, + 64.45860899839317, + 20.591688000422437, + 73.63765500122099, + 23.075904999132035, + 20.420902998012025, + 63.51005299802637, + 27.721886999643175, + 72.32285200007027, + 97.65335100019001, + 29.237275000923546, + 71.22327500110259, + 27.11648000331479, + 72.14886200017645, + 94.37678599715582, + 25.166852999973344, + 74.373897001351, + 14.882359999319306, + 61.29110700203455, + 28.426174001651816, + 19.09433800028637, + 10.497090999706415, + 46.73547199854511, + 19.747673999518156, + 17.069483001250774, + 11.694654000166338, + 13.516622999304673, + 56.32719899949734, + 13.313111998286331, + 14.368150998052442, + 12.051269000949105, + 60.03919000067981, + 22.318862000247464, + 12.024811003357172, + 71.15095699919038, + 22.57122399896616, + 12.882928000180982, + 8.794929999567103, + 70.33116000093287, + 18.629582998983096, + 63.75377600124921, + 22.620308001933154, + 21.036161997471936, + 157.1574959998543, + 197.80627900036052, + 108.98888200244983, + 89.54774599988014, + 14.81986300132121, + 11.557629000890302, + 15.377472998807207, + 11.399195002013585, + 51.27323600027012, + 20.423000998562202, + 76.69833299951279, + 12.694389999523992, + 13.673640998604242, + 12.750971000059508, + 60.116927001217846, + 11.097343998699216, + 10.622391000651987, + 10.526702000788646, + 9.638409999752184, + 59.07052199836471, + 22.675288000755245, + 86.44692900270456, + 25.453915000980487, + 72.28751800357713, + 21.573041998635745, + 78.1386430026032, + 98.45344000132172, + 28.58940700025414, + 67.56398099969374, + 25.476410002738703, + 79.32441299999482, + 32.52796299784677, + 59.99887099824264, + 11.205416998564033, + 11.699595001118723, + 10.44155999989016, + 10.716339998907642, + 65.48543999815593, + 23.87861600072938, + 73.55225900028017, + 96.0905179999827, + 21.223309999186313, + 18.30217400129186, + 63.436345000809524, + 94.98754399828613, + 20.273145997634856, + 17.114768001192715, + 163.5510449996218, + 105.8698410015495, + 96.17988299942226, + 106.22734699791181, + 98.13666599802673, + 100.58350200051791, + 96.94523600046523, + 99.53103499719873, + 26.33159600009094, + 73.92254700243939, + 21.492130003025522, + 76.22287199774291, + 22.05120500002522, + 79.40829399740323, + 21.475148998433724, + 13.518939998903079, + 66.13063300028443, + 22.794675001932774, + 17.757289999281056, + 60.38598999657552, + 27.14822800044203, + 73.91568299863138, + 21.32050000000163, + 76.99816300009843, + 35.08145399973728, + 65.63077199825784, + 101.66272100104834, + 31.072756999492412, + 70.07180899745435, + 89.96860400293372, + 12.879041998530738, + 15.363814000011189, + 16.422795997641515, + 59.66794599953573, + 27.873117996932706, + 14.656634000857593, + 60.00097499781987, + 24.19087400267017, + 9.725388998049311, + 78.9568229993165, + 90.57047500027693, + 30.03421200264711, + 64.60717599838972, + 18.53512300294824, + 13.862667001376394, + 165.62702999726753, + 101.63108199776616, + 197.11974500023643, + 24.592353001935408, + 80.90324099975987, + 24.35965800032136, + 72.23380999857909, + 25.891185003274586, + 73.46350200168672, + 23.09798399801366, + 13.506014001904987, + 66.46530000216444, + 25.96822800114751, + 77.0596670008672, + 22.962324001127854, + 75.72169499690062, + 23.48905799954082, + 70.69756899727508, + 24.00689199930639, + 78.50965800025733, + 23.10511199902976, + 78.3313480023935, + 29.87712100002682, + 70.40489599967259, + 20.417867999640293, + 17.636528998991707, + 61.63536000167369, + 25.818240999797126, + 74.77523799752817, + 25.05637200010824, + 73.82462600071449, + 27.34571600012714, + 72.00476000070921, + 25.330479998956434, + 71.15510299991001, + 19.26580899817054, + 84.76810100182774, + 23.739741001918446, + 73.82859499921324, + 21.61311899908469, + 24.50414700069814, + 55.38876099672052, + 10.672329997760244, + 9.793435001483886, + 25.221880998287816, + 153.735134001181, + 200.2359610014537, + 105.74011999779032, + 96.16822799944202, + 28.13157600030536, + 73.45820499904221, + 26.017763000709238, + 76.79558499876293, + 23.79642999949283, + 71.57703800112358, + 27.87635099957697, + 70.65192300069612, + 79.33770899762749, + 28.50497399776941, + 171.62189400187344, + 100.27386199726607, + 29.672597000171663, + 95.24357999907807, + 22.439361000579083, + 72.74619999952847, + 26.417439999931958, + 77.19486799760489, + 22.07490299770143, + 74.91925300200819, + 20.49755599728087, + 80.25173799978802, + 25.50981099921046, + 75.08281500122393, + 16.366672000003746, + 12.682569999014959, + 73.2102149995626, + 25.773557001230074, + 75.4062949999934, + 23.44491399708204, + 69.95827200080385, + 25.20604700112017, + 78.08458499857807, + 23.869245997047983, + 13.090397002088139, + 60.39390099977027, + 24.101232000248274, + 14.633219001552789, + 59.839113000634825, + 85.06701100122882, + 15.560919000563445, + 13.089430001855362, + 88.16148999903817, + 103.74778500045068, + 98.62227800113033, + 101.29008600051748, + 93.6042629982694, + 23.2616829998733, + 79.07663800142473, + 21.38201699926867, + 16.767913999501616, + 48.123520999070024, + 11.822063999716192, + 12.150857997767162, + 52.58210400279495, + 25.368922000780003, + 17.344315001537325, + 15.42106499982765, + 14.679411000543041, + 156.58188900124514, + 91.98747499976889, + 24.462121997203212, + 71.55873800002155, + 13.7679740000749, + 16.697974999260623, + 16.02050599831273, + 59.69386899960227, + 20.24765899841441, + 78.46018499913043, + 24.90857700104243, + 79.8868229976506, + 96.12731599918334, + 28.3081339985074, + 73.59034799810615, + 29.21046200208366, + 70.9817290007777, + 101.06462399926386, + 96.46662299928721, + 25.784374000068055, + 68.38531199900899, + 16.6372780004167, + 12.990909999643918, + 9.895044000586495, + 60.64539200087893, + 76.44369999979972, + 24.739360000239685, + 18.06497800134821, + 11.872726001456613, + 13.257485999929486, + 56.55611099791713, + 10.066970000480069, + 9.870212998066563, + 12.537726997834397, + 48.44297100135009, + 21.01354800106492, + 24.161469998944085, + 76.58652899772278, + 20.056372999533778, + 81.42631200098549, + 20.446533999347594, + 78.36359599969, + 23.09933000287856, + 81.14685799955623, + 295.7774789974792, + 103.73634999996284, + 92.99736699904315, + 16.323519001161912, + 11.282884999673115, + 14.817413000855595, + 12.096934999135556, + 50.361367997538764, + 19.502638999256305, + 74.08983600180363, + 13.380504002270754, + 13.16149400008726, + 12.028352000925224, + 61.68758599960711, + 10.665485002391506, + 10.961721996864071, + 11.168525001266971, + 11.22252099958132, + 61.44863000008627, + 22.738095998647623, + 79.90448599957745, + 25.27705000102287, + 14.628796998295002, + 62.34390800091205, + 95.55826400173828, + 30.982320000475738, + 72.9454659995099, + 24.163860998669406, + 15.999911000108114, + 54.886236001038924, + 24.96106999751646, + 80.77268800116144, + 86.04633499999181, + 13.374876998568652, + 11.908514999959152, + 10.265560002153507, + 12.034808001772035, + 66.89309600187698, + 97.35866900155088, + 97.29578100086655, + 19.324935998156434, + 17.873168999358313, + 59.36034600017592, + 26.937683000141988, + 10.379797000496183, + 9.88951700128382, + 55.13643699669046, + 18.789301000651903, + 16.470574999402743, + 161.15396000168403, + 302.53562700090697, + 101.4768519999052, + 101.36364600111847, + 98.5320049985603, + 98.06788199784933, + 99.47701300188783, + 22.792056999605848, + 78.80314299836755, + 22.671896000247216, + 79.9437730020145, + 21.468823997565778, + 12.192213001981145, + 67.73668700043345, + 24.437127001874615, + 15.097806997800944, + 61.16248999751406, + 26.39744399857591, + 74.01136999760638, + 20.776932000444504, + 71.46736700087786, + 29.538204998971196, + 71.16342700101086, + 100.69377599938889, + 35.23500899973442, + 63.72026499957428, + 30.330740999488626, + 65.47735499771079, + 12.721021001198096, + 13.18261199776316, + 16.197810000448953, + 61.300099001528, + 25.482025001110742, + 16.977379000309156, + 61.444945000403095, + 95.31451799921342, + 28.43653799936874, + 76.38632200178108, + 32.56746100305463, + 67.212580001069, + 18.896497000241652, + 56.55789500087849, + 26.586779000354, + 194.53095200151438, + 105.21457600043504, + 98.84456600047997, + 24.76174000184983, + 77.39825899989228, + 20.953641000232892, + 72.28103600209579, + 26.198229999863543, + 77.09058699765592, + 22.339813000144204, + 77.9143590007152, + 27.682978001394076, + 75.46647100025439, + 23.262544000317575, + 77.25229900097474, + 23.340128998825094, + 70.76121100180899, + 22.877439001604216, + 82.30447800087859, + 21.15113799663959, + 78.98113099872717, + 27.78963700257009, + 68.17409999712254, + 24.880162000044947, + 78.11719700112008, + 98.4893729983014, + 24.8533160010993, + 75.88008099992294, + 26.03486399675603, + 74.35971300219535, + 24.060992000158876, + 15.418687002238585, + 54.231804999290034, + 19.256858999142423, + 81.28449800278759, + 22.77252500061877, + 77.92913899902487, + 22.281909001321765, + 24.76803800163907, + 56.669918001716724, + 14.475686999503523, + 28.886544998385943, + 62.32605799959856, + 192.5606320000952, + 108.8631329985219, + 96.20656200058875, + 100.89373700247961, + 26.96705199923599, + 70.30925200160709, + 26.522211002884433, + 78.11939499879372, + 92.17686300326022, + 25.644043998909183, + 72.58072300101048, + 30.280226001195842, + 79.75380900097662, + 175.27666699970723, + 22.61975200235611, + 102.82102000201121, + 95.92285200051265, + 23.936461999255698, + 70.2715069965052, + 25.99362099863356, + 79.81390800341615, + 19.02590400277404, + 16.006923997338163, + 63.962729000195395, + 24.959151000075508, + 74.28925700151012, + 23.190930998680415, + 79.09036199998809, + 18.99475499885739, + 75.25790599902393, + 24.999834997288417, + 79.5520760002546, + 23.670012000366114, + 69.80416700025671, + 23.461598000722006, + 80.23950400092872, + 24.50268699976732, + 76.11567999992985, + 23.918625996884657, + 74.4598719975329, + 11.612903999775881, + 66.45079599911696, + 21.35525500125368, + 12.295533997530583, + 89.32255399849964, + 103.92614599913941, + 96.17210999931558, + 24.19403699968825, + 79.40501799748745, + 95.46155899806763, + 22.652601001027506, + 81.35093199962284, + 19.97818300151266, + 74.69984300041688, + 17.624445998080773, + 9.506283997325227, + 8.321839999553049, + 10.157250999327516, + 7.311086999834515, + 9.821933999774046, + 9.655997000663774, + 22.04912500019418, + 40.47041399826412, + 23.778498001775006, + 13.468981000187341, + 11.985447999904864, + 53.09606000082567, + 26.719366996985627, + 15.60661099938443, + 15.602977997332346, + 38.297250001051, + 128.54424699980882, + 13.909926998167066, + 83.32067700030166, + 18.989763000718085, + 25.284407998697134, + 50.8891070021491, + 15.936028998112306, + 16.934861996560358, + 12.64768300097785, + 63.00792299953173, + 20.67298700058018, + 73.75144799880218, + 24.435237002762733, + 74.55268299963791, + 27.965527999185724, + 78.80217799902312, + 92.1696420009539, + 33.21907200006535, + 71.07386000279803, + 27.627745999780018, + 74.67303199882735, + 23.387103999993997, + 75.17322900093859, + 26.12821600268944, + 67.73824099946069, + 15.16267099941615, + 13.844432000041706, + 73.5550030003651, + 74.17761800024891, + 23.960514001373667, + 17.271652999625076, + 13.832669999828795, + 67.9505030020664, + 11.455820000264794, + 13.618131997645833, + 10.584489999018842, + 49.20556299839518, + 19.935815002099844, + 23.26026599985198, + 73.39453200256685, + 20.251455000106944, + 15.265764999639941, + 68.11365199973807, + 20.9427850022621, + 78.27698099936242, + 27.60152400151128, + 16.419079998740926, + 352.83999199964455, + 106.63043700333219, + 91.45867899860605, + 15.377528998214984, + 14.156305998767493, + 13.363116999244085, + 11.954320001677843, + 50.178357003460405, + 18.00522700068541, + 76.70418799898471, + 13.797665000311099, + 11.853687999973772, + 12.040017998515395, + 62.630173000798095, + 10.442368999065366, + 9.754122998856474, + 8.4179250006855, + 9.08698000057484, + 9.59895900086849, + 57.10471799829975, + 24.495428002410335, + 77.76097199894139, + 27.706602999387542, + 13.714939999772469, + 61.12523100091494, + 94.43052099959459, + 102.94725199855748, + 29.01433799706865, + 68.00473600014811, + 24.409429999650456, + 82.95359000112512, + 87.89450000040233, + 11.136950997752137, + 11.93206999960239, + 11.34316300158389, + 8.653461998619605, + 69.0435280012025, + 90.95142499791109, + 28.265035998629173, + 76.89197700165096, + 18.916191002062988, + 17.545085000165273, + 9.263846000976628, + 53.1512660018052, + 26.604088001477066, + 8.286812000733335, + 62.05554999905871, + 20.87701799973729, + 14.333875999000156, + 168.33002299972577, + 197.62932200319483, + 103.33219799940707, + 99.49146800136077, + 100.03435800172156, + 96.59273099896382, + 20.52825099963229, + 8.761876000789925, + 74.17315799830249, + 96.36244799912674, + 20.40647699686815, + 77.60664300076314, + 24.49198500107741, + 81.22608800113085, + 25.317536001239205, + 73.738360999414, + 23.144292001234135, + 18.64494799883687, + 61.47523199979332, + 97.11077800238854, + 22.844584000267787, + 77.49383199916338, + 29.66851599921938, + 69.29677199877915, + 23.182630000519566, + 82.28039099776652, + 31.16558599867858, + 65.78449299922795, + 89.33386399803567, + 12.939556003402686, + 14.275058998464374, + 17.501828999229474, + 60.03914100074326, + 27.8075149981305, + 14.081146000535227, + 59.32903199936845, + 26.127777000510832, + 70.81923699661274, + 26.721590998931788, + 12.870515001850436, + 68.08506200104603, + 30.678930997964926, + 64.36060000123689, + 18.072615999699337, + 58.16521599990665, + 23.45703399987542, + 102.9846120000002, + 198.27988999895751, + 101.89809700023034, + 25.335474998428253, + 76.25263199952315, + 19.327370999235427, + 14.266763999330578, + 63.50248200033093, + 24.903309997171164, + 76.51077999980771, + 20.252756999980193, + 13.043651000771206, + 66.44674099879921, + 97.99529000156326, + 24.39166299882345, + 77.23489500131109, + 22.3331409979437, + 77.62539399845991, + 23.944533997564577, + 76.77895499728038, + 99.54147200187435, + 28.674672998022288, + 70.4290489993582, + 19.473035998089472, + 18.03071200265549, + 61.6973619980854, + 27.217141003347933, + 74.88221500170766, + 25.763633999304147, + 12.207269999635173, + 59.3769759980205, + 22.859243999846512, + 78.69329599998309, + 27.155872001458192, + 14.829102998191956, + 53.756960998725845, + 18.563858000561595, + 15.911441001662752, + 66.26433099881979, + 22.411796999222133, + 77.48406899918336, + 24.341061001905473, + 22.819415000412846, + 55.39879899879452, + 12.25879400226404, + 11.269246002484579, + 20.747126000060234, + 152.7852620019985, + 304.8565969984338, + 101.2685040004726, + 29.156245000194758, + 72.05541000075755, + 25.454638998780865, + 81.69447299951571, + 88.21461399929831, + 23.60360300008324, + 18.577541002741782, + 64.0669140011596, + 97.95928500170703, + 177.40822099949582, + 23.933455999213038, + 102.94319600143353, + 92.99370700318832, + 21.55748099903576, + 77.14563599802204, + 31.010965001769364, + 67.33295999947586, + 20.796609998797067, + 17.6111660002789, + 65.18987000163179, + 24.84189300230355, + 77.22762399862404, + 22.468959003163036, + 76.20008900266839, + 13.839389001077507, + 14.208922999387141, + 73.81512999927509, + 24.263160998089006, + 76.42537299761898, + 20.118201999139274, + 14.184476000082213, + 62.93967799865641, + 23.753453999233898, + 76.2453830029699, + 23.124418999941554, + 70.11564499771339, + 23.58676899893908, + 79.39328499924159, + 78.1385650006996, + 18.795259999023983, + 14.43341699996381, + 9.99178399797529, + 180.3253340003721, + 101.79896699992241, + 23.540758997114608, + 79.20812999873306, + 95.67270299885422, + 26.84345600209781, + 76.48613899800694 + ], + "resources": { + "api": { + "cpu_percent_mean": 12.642173913043479, + "ram_mib_mean": 17.045028985507244, + "ram_mib_max": 25.04, + "samples": 276, + "cpu_seconds_per_job_estimate": 0.008737676558505953 + }, + "worker": { + "cpu_percent_mean": 38.48391304347826, + "ram_mib_mean": 7.9422173913043475, + "ram_mib_max": 10.53, + "samples": 138, + "cpu_seconds_per_job_estimate": 0.026598272353510935 + } + }, + "collector_deltas": { + "otelcol_receiver_accepted_spans": 28231.0, + "otelcol_exporter_sent_spans": 28230.0, + "otelcol_receiver_refused_spans": 0.0, + "otelcol_exporter_send_failed_spans": 0.0, + "otelcol_receiver_accepted_log_records": 3000.0, + "otelcol_receiver_accepted_metric_points": 735.0 + }, + "ingest_spans_per_second": 391.01334502537514, + "tempo_spans_per_second": 390.9994945296426, + "trace_retention": 0.9999645779462293, + "stats_samples": [ + { + "t": 0.43729661100223893, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.32, + "ram_mib": 8.066 + }, + { + "t": 0.43739195600210223, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.33, + "ram_mib": 8.359 + }, + { + "t": 0.4374329950005631, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 0.31, + "ram_mib": 5.008 + }, + { + "t": 0.9361978109991469, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.32, + "ram_mib": 8.066 + }, + { + "t": 0.9362478139992163, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.33, + "ram_mib": 8.359 + }, + { + "t": 0.9362754780013347, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 0.31, + "ram_mib": 5.008 + }, + { + "t": 1.4372952750018158, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 36.78, + "ram_mib": 9.277 + }, + { + "t": 1.4373820399996475, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 32.83, + "ram_mib": 9.93 + }, + { + "t": 1.4374362669987022, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 10.85, + "ram_mib": 5.336 + }, + { + "t": 1.936333656001807, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 36.78, + "ram_mib": 9.277 + }, + { + "t": 1.9364302819994919, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 32.83, + "ram_mib": 9.93 + }, + { + "t": 1.9364496109992615, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 10.85, + "ram_mib": 5.336 + }, + { + "t": 2.437048011001025, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 37.66, + "ram_mib": 10.21 + }, + { + "t": 2.437149457000487, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 39.89, + "ram_mib": 9.887 + }, + { + "t": 2.4371818770014215, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 25.48, + "ram_mib": 5.652 + }, + { + "t": 2.9362626069996622, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 37.66, + "ram_mib": 10.21 + }, + { + "t": 2.9362807549987338, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 39.89, + "ram_mib": 9.887 + }, + { + "t": 2.936286680000194, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 25.48, + "ram_mib": 5.652 + }, + { + "t": 3.436250201000803, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 23.75, + "ram_mib": 10.02 + }, + { + "t": 3.4362831840007857, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 25.1, + "ram_mib": 9.148 + }, + { + "t": 3.4362954440002795, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 16.09, + "ram_mib": 5.055 + }, + { + "t": 3.936637262999284, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 23.75, + "ram_mib": 10.02 + }, + { + "t": 3.936659752002015, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 25.1, + "ram_mib": 9.148 + }, + { + "t": 3.936666581001191, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 16.09, + "ram_mib": 5.055 + }, + { + "t": 4.4366655129997525, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 35.59, + "ram_mib": 9.535 + }, + { + "t": 4.436698926001554, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 37.15, + "ram_mib": 9.578 + }, + { + "t": 4.43671218199961, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 24.79, + "ram_mib": 5.406 + }, + { + "t": 4.936819236001611, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 35.59, + "ram_mib": 9.535 + }, + { + "t": 4.936900220000098, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 37.15, + "ram_mib": 9.578 + }, + { + "t": 4.936935419002111, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 24.79, + "ram_mib": 5.406 + }, + { + "t": 5.436823325999285, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 23.77, + "ram_mib": 9.586 + }, + { + "t": 5.436865682000644, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 22.64, + "ram_mib": 9.59 + }, + { + "t": 5.436884752001788, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 10.95, + "ram_mib": 6.074 + }, + { + "t": 5.93637399599902, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 23.77, + "ram_mib": 9.586 + }, + { + "t": 5.936428977001924, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 22.64, + "ram_mib": 9.59 + }, + { + "t": 5.936460326000088, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 10.95, + "ram_mib": 6.074 + }, + { + "t": 6.437093100001221, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 32.3, + "ram_mib": 9.969 + }, + { + "t": 6.437125051001203, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 32.16, + "ram_mib": 10.96 + }, + { + "t": 6.437134880001395, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 18.26, + "ram_mib": 6.117 + }, + { + "t": 6.9364255820000835, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 32.3, + "ram_mib": 9.969 + }, + { + "t": 6.936444549999578, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 32.16, + "ram_mib": 10.96 + }, + { + "t": 6.936451526002202, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 18.26, + "ram_mib": 6.117 + }, + { + "t": 7.436721792000753, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 38.33, + "ram_mib": 10.42 + }, + { + "t": 7.436773569999787, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 39.83, + "ram_mib": 8.027 + }, + { + "t": 7.436794917000952, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 26.03, + "ram_mib": 5.445 + }, + { + "t": 7.93628307200197, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 38.33, + "ram_mib": 10.42 + }, + { + "t": 7.936319460000959, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 39.83, + "ram_mib": 8.027 + }, + { + "t": 7.93633890899946, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 26.03, + "ram_mib": 5.445 + }, + { + "t": 8.436570147001476, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 28.39, + "ram_mib": 9.527 + }, + { + "t": 8.436596029001521, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 27.21, + "ram_mib": 9.918 + }, + { + "t": 8.436605380000401, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 15.29, + "ram_mib": 5.836 + }, + { + "t": 8.936206082002172, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 28.39, + "ram_mib": 9.527 + }, + { + "t": 8.936223864999192, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 27.21, + "ram_mib": 9.918 + }, + { + "t": 8.936230109000462, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 15.29, + "ram_mib": 5.836 + }, + { + "t": 9.436693439001829, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 36.03, + "ram_mib": 9.887 + }, + { + "t": 9.436718621000182, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 36.28, + "ram_mib": 9.375 + }, + { + "t": 9.43673042500086, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 23.18, + "ram_mib": 6.43 + }, + { + "t": 9.936773638000886, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 36.03, + "ram_mib": 9.887 + }, + { + "t": 9.936822135001421, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 36.28, + "ram_mib": 9.375 + }, + { + "t": 9.936840615999245, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 23.18, + "ram_mib": 6.43 + }, + { + "t": 10.436812148000172, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 22.58, + "ram_mib": 8.902 + }, + { + "t": 10.436883393002063, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 23.04, + "ram_mib": 10.46 + }, + { + "t": 10.436925158999657, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 14.72, + "ram_mib": 5.977 + }, + { + "t": 10.936230268001964, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 22.58, + "ram_mib": 8.902 + }, + { + "t": 10.936259671001608, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 23.04, + "ram_mib": 10.46 + }, + { + "t": 10.936272163002286, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 14.72, + "ram_mib": 5.977 + }, + { + "t": 11.43646062300104, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 31.63, + "ram_mib": 9.934 + }, + { + "t": 11.436530343002232, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 31.32, + "ram_mib": 10.57 + }, + { + "t": 11.43657168000209, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 18.27, + "ram_mib": 5.898 + }, + { + "t": 11.937188800999138, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 31.63, + "ram_mib": 9.934 + }, + { + "t": 11.937297761000082, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 31.32, + "ram_mib": 10.57 + }, + { + "t": 11.937320987999556, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 18.27, + "ram_mib": 5.898 + }, + { + "t": 12.437258124002255, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 30.92, + "ram_mib": 9.402 + }, + { + "t": 12.437310109999089, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 34.81, + "ram_mib": 10.15 + }, + { + "t": 12.437341646000277, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 18.1, + "ram_mib": 5.508 + }, + { + "t": 12.936542809999082, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 30.92, + "ram_mib": 9.402 + }, + { + "t": 12.936582738999277, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 34.81, + "ram_mib": 10.15 + }, + { + "t": 12.936607528001332, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 18.1, + "ram_mib": 5.508 + }, + { + "t": 13.436167050000222, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 16.48, + "ram_mib": 8.246 + }, + { + "t": 13.436197465001896, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 16.05, + "ram_mib": 8.305 + }, + { + "t": 13.43620971099881, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 30.11, + "ram_mib": 6.785 + }, + { + "t": 13.936466253999242, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 16.48, + "ram_mib": 8.246 + }, + { + "t": 13.9364883010021, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 16.05, + "ram_mib": 8.305 + }, + { + "t": 13.936495335001382, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 30.11, + "ram_mib": 6.785 + }, + { + "t": 14.436521665000328, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.66, + "ram_mib": 8.012 + }, + { + "t": 14.436558793000586, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.72, + "ram_mib": 8.109 + }, + { + "t": 14.436577134001709, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.42, + "ram_mib": 7.262 + }, + { + "t": 14.936006512001768, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.66, + "ram_mib": 8.012 + }, + { + "t": 14.936034906000714, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.72, + "ram_mib": 8.109 + }, + { + "t": 14.936047480001434, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.42, + "ram_mib": 7.262 + }, + { + "t": 15.436548254001536, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.74, + "ram_mib": 8.008 + }, + { + "t": 15.436572386999615, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.64, + "ram_mib": 8.109 + }, + { + "t": 15.436584715000208, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.24, + "ram_mib": 6.387 + }, + { + "t": 15.936105699998734, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.74, + "ram_mib": 8.008 + }, + { + "t": 15.936140813999373, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.64, + "ram_mib": 8.109 + }, + { + "t": 15.936155627001426, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.24, + "ram_mib": 6.387 + }, + { + "t": 16.436517217000073, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.58, + "ram_mib": 8.258 + }, + { + "t": 16.43654850600069, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.56, + "ram_mib": 8.113 + }, + { + "t": 16.436564906001877, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 43.36, + "ram_mib": 6.559 + }, + { + "t": 16.93651979399874, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.58, + "ram_mib": 8.258 + }, + { + "t": 16.936548786001367, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.56, + "ram_mib": 8.113 + }, + { + "t": 16.936563980001665, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 43.36, + "ram_mib": 6.559 + }, + { + "t": 17.436788438000804, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 3.47, + "ram_mib": 8.742 + }, + { + "t": 17.436816507000913, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.93, + "ram_mib": 8.281 + }, + { + "t": 17.43682631900083, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 44.62, + "ram_mib": 7.406 + }, + { + "t": 17.936131573002058, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 3.47, + "ram_mib": 8.742 + }, + { + "t": 17.93615388300168, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.93, + "ram_mib": 8.281 + }, + { + "t": 17.936161320001702, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 44.62, + "ram_mib": 7.406 + }, + { + "t": 18.436676465000346, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.262 + }, + { + "t": 18.436732502999803, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.141 + }, + { + "t": 18.436761543998728, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.46, + "ram_mib": 7.41 + }, + { + "t": 18.93599877499946, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.262 + }, + { + "t": 18.936018069001875, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.141 + }, + { + "t": 18.936025687999063, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.46, + "ram_mib": 7.41 + }, + { + "t": 19.43660529599947, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.266 + }, + { + "t": 19.43663697000011, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.117 + }, + { + "t": 19.436653914999624, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.62, + "ram_mib": 6.941 + }, + { + "t": 19.936078345999704, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.266 + }, + { + "t": 19.9360990210007, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.117 + }, + { + "t": 19.936106907000067, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.62, + "ram_mib": 6.941 + }, + { + "t": 20.437170108001737, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.016 + }, + { + "t": 20.43721982400166, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.121 + }, + { + "t": 20.43724950500109, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.73, + "ram_mib": 6.992 + }, + { + "t": 20.937396435001574, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.016 + }, + { + "t": 20.937504317000275, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.121 + }, + { + "t": 20.9375725409991, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.73, + "ram_mib": 6.992 + }, + { + "t": 21.436225984001794, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.32, + "ram_mib": 8.016 + }, + { + "t": 21.436259835001692, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 8.59 + }, + { + "t": 21.436280197001906, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 35.12, + "ram_mib": 7.238 + }, + { + "t": 21.93642063199877, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.32, + "ram_mib": 8.016 + }, + { + "t": 21.936440623001545, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 8.59 + }, + { + "t": 21.93644802199924, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 35.12, + "ram_mib": 7.238 + }, + { + "t": 22.43681825800013, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.9, + "ram_mib": 8.41 + }, + { + "t": 22.436847957000282, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.63, + "ram_mib": 8.414 + }, + { + "t": 22.436864137998782, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.74, + "ram_mib": 7.223 + }, + { + "t": 22.936456031002308, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.9, + "ram_mib": 8.41 + }, + { + "t": 22.93648134400064, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.63, + "ram_mib": 8.414 + }, + { + "t": 22.93649279300007, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.74, + "ram_mib": 7.223 + }, + { + "t": 23.436026907998894, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.023 + }, + { + "t": 23.436044994999975, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.148 + }, + { + "t": 23.436052005999954, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.79, + "ram_mib": 7.93 + }, + { + "t": 23.93638784599898, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.023 + }, + { + "t": 23.93641164699875, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.148 + }, + { + "t": 23.936422408001818, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.79, + "ram_mib": 7.93 + }, + { + "t": 24.436248654001247, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.043 + }, + { + "t": 24.436291480000364, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.125 + }, + { + "t": 24.43631604300026, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.49, + "ram_mib": 7.25 + }, + { + "t": 24.936694996998995, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.043 + }, + { + "t": 24.936732597001537, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.125 + }, + { + "t": 24.936747902000207, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.49, + "ram_mib": 7.25 + }, + { + "t": 25.436519359998783, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.043 + }, + { + "t": 25.436546223001642, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.125 + }, + { + "t": 25.436557474000438, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.07, + "ram_mib": 7.781 + }, + { + "t": 25.93604717099879, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.043 + }, + { + "t": 25.93607373299892, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.125 + }, + { + "t": 25.93608370199945, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.07, + "ram_mib": 7.781 + }, + { + "t": 26.435996201998933, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.266 + }, + { + "t": 26.436019158001727, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.125 + }, + { + "t": 26.436027821000607, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 41.53, + "ram_mib": 7.414 + }, + { + "t": 26.936654853001528, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.266 + }, + { + "t": 26.93668054000227, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.125 + }, + { + "t": 26.93669387400223, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 41.53, + "ram_mib": 7.414 + }, + { + "t": 27.43617786300092, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 8.367 + }, + { + "t": 27.43620085600196, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.36, + "ram_mib": 8.125 + }, + { + "t": 27.43621018200065, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.04, + "ram_mib": 7.992 + }, + { + "t": 27.936447774001863, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 8.367 + }, + { + "t": 27.936482859000535, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.36, + "ram_mib": 8.125 + }, + { + "t": 27.936499953000748, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.04, + "ram_mib": 7.992 + }, + { + "t": 28.43672045200219, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.27 + }, + { + "t": 28.436751770001138, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.129 + }, + { + "t": 28.436765534999722, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.76, + "ram_mib": 7.523 + }, + { + "t": 28.936284900999453, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.27 + }, + { + "t": 28.936303040001803, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.129 + }, + { + "t": 28.936310312001297, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.76, + "ram_mib": 7.523 + }, + { + "t": 29.436024809001538, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 8.004 + }, + { + "t": 29.43605997100167, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.109 + }, + { + "t": 29.436075233999873, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.69, + "ram_mib": 7.836 + }, + { + "t": 29.936508857001172, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 8.004 + }, + { + "t": 29.936544791002234, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.109 + }, + { + "t": 29.936562188999233, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.69, + "ram_mib": 7.836 + }, + { + "t": 30.436335573998804, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.004 + }, + { + "t": 30.43637175600088, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.109 + }, + { + "t": 30.436386282999592, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 41.92, + "ram_mib": 7.266 + }, + { + "t": 30.93648994099931, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.004 + }, + { + "t": 30.936522455998784, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.109 + }, + { + "t": 30.936540768001578, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 41.92, + "ram_mib": 7.266 + }, + { + "t": 31.43661748100203, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.02 + }, + { + "t": 31.43665283500013, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.133 + }, + { + "t": 31.436668659000134, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 41.98, + "ram_mib": 8.645 + }, + { + "t": 31.93619348500215, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.02 + }, + { + "t": 31.936239438000484, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.133 + }, + { + "t": 31.936266082000657, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 41.98, + "ram_mib": 8.645 + }, + { + "t": 32.436228959999426, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.34, + "ram_mib": 8.699 + }, + { + "t": 32.436256453998794, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.62, + "ram_mib": 8.258 + }, + { + "t": 32.436271925002075, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 49.12, + "ram_mib": 8.48 + }, + { + "t": 32.936411619000864, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.34, + "ram_mib": 8.699 + }, + { + "t": 32.936440032000974, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.62, + "ram_mib": 8.258 + }, + { + "t": 32.93645519799975, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 49.12, + "ram_mib": 8.48 + }, + { + "t": 33.43647103500189, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.047 + }, + { + "t": 33.4364963299995, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.125 + }, + { + "t": 33.43650711400187, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.45, + "ram_mib": 8.09 + }, + { + "t": 33.93609760600157, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.047 + }, + { + "t": 33.93617096299931, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.125 + }, + { + "t": 33.93619128100181, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.45, + "ram_mib": 8.09 + }, + { + "t": 34.43621002900181, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.023 + }, + { + "t": 34.43622698599938, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.125 + }, + { + "t": 34.43623423000099, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.91, + "ram_mib": 8.285 + }, + { + "t": 34.9376125710005, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.023 + }, + { + "t": 34.937709273999644, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.125 + }, + { + "t": 34.937768734998826, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.91, + "ram_mib": 8.285 + }, + { + "t": 35.43649522399937, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 8.023 + }, + { + "t": 35.43652677100181, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.125 + }, + { + "t": 35.43654513799993, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 35.03, + "ram_mib": 7.504 + }, + { + "t": 35.93617316699965, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 8.023 + }, + { + "t": 35.936217476999445, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.125 + }, + { + "t": 35.936245564000274, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 35.03, + "ram_mib": 7.504 + }, + { + "t": 36.43653035800162, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.25 + }, + { + "t": 36.43656245500097, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.125 + }, + { + "t": 36.43657526300012, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 45.93, + "ram_mib": 8.66 + }, + { + "t": 36.936045303002174, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.25 + }, + { + "t": 36.936075522000465, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.125 + }, + { + "t": 36.936091995001334, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 45.93, + "ram_mib": 8.66 + }, + { + "t": 37.43595686499975, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.94, + "ram_mib": 9.016 + }, + { + "t": 37.43597980499908, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.9, + "ram_mib": 8.59 + }, + { + "t": 37.43598924999969, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.34, + "ram_mib": 8.336 + }, + { + "t": 37.93654580400107, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.94, + "ram_mib": 9.016 + }, + { + "t": 37.93656929400095, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.9, + "ram_mib": 8.59 + }, + { + "t": 37.93657779999921, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.34, + "ram_mib": 8.336 + }, + { + "t": 38.436476139999286, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.02 + }, + { + "t": 38.436505137000495, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.336 + }, + { + "t": 38.43652066100185, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.88, + "ram_mib": 8.359 + }, + { + "t": 38.936186311999336, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.02 + }, + { + "t": 38.936240461000125, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.336 + }, + { + "t": 38.936272642000404, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.88, + "ram_mib": 8.359 + }, + { + "t": 39.43631845100026, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.02 + }, + { + "t": 39.43636436399902, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.121 + }, + { + "t": 39.43639149000228, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.62, + "ram_mib": 8.742 + }, + { + "t": 39.93652329100223, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.02 + }, + { + "t": 39.93655197300177, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.121 + }, + { + "t": 39.936567592001666, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.62, + "ram_mib": 8.742 + }, + { + "t": 40.436468736999814, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.27 + }, + { + "t": 40.436492397999245, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.121 + }, + { + "t": 40.4365051019995, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 39.16, + "ram_mib": 8.555 + }, + { + "t": 40.935985497999354, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.27 + }, + { + "t": 40.936019618999126, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.121 + }, + { + "t": 40.93603797900141, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 39.16, + "ram_mib": 8.555 + }, + { + "t": 41.43647453900121, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.047 + }, + { + "t": 41.43650301299931, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.145 + }, + { + "t": 41.43651659399984, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.1, + "ram_mib": 8.293 + }, + { + "t": 41.936400230999425, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.047 + }, + { + "t": 41.93646736099981, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.145 + }, + { + "t": 41.9365049850021, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.1, + "ram_mib": 8.293 + }, + { + "t": 42.43694669799879, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.75, + "ram_mib": 8.512 + }, + { + "t": 42.43698520199905, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 3.24, + "ram_mib": 8.328 + }, + { + "t": 42.43700623100085, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 46.74, + "ram_mib": 9.398 + }, + { + "t": 42.936590371999046, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.75, + "ram_mib": 8.512 + }, + { + "t": 42.936639185001695, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 3.24, + "ram_mib": 8.328 + }, + { + "t": 42.93666980299895, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 46.74, + "ram_mib": 9.398 + }, + { + "t": 43.43658282400065, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.301 + }, + { + "t": 43.43661596899983, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.309 + }, + { + "t": 43.43663273399943, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.33, + "ram_mib": 8.387 + }, + { + "t": 43.9367667660008, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.301 + }, + { + "t": 43.93681198900231, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.309 + }, + { + "t": 43.936838000001444, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.33, + "ram_mib": 8.387 + }, + { + "t": 44.43612952699914, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.301 + }, + { + "t": 44.43615817799946, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.309 + }, + { + "t": 44.436168783999165, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.8, + "ram_mib": 8.918 + }, + { + "t": 44.93643090000114, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.301 + }, + { + "t": 44.93645992900201, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.309 + }, + { + "t": 44.93647592400157, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.8, + "ram_mib": 8.918 + }, + { + "t": 45.43599926499883, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.273 + }, + { + "t": 45.43602487099997, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.309 + }, + { + "t": 45.43603834500027, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 39.8, + "ram_mib": 9.914 + }, + { + "t": 45.936508026999945, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.273 + }, + { + "t": 45.93653839699982, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.309 + }, + { + "t": 45.93655316399963, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 39.8, + "ram_mib": 9.914 + }, + { + "t": 46.436514794000686, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.273 + }, + { + "t": 46.43654569299906, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.121 + }, + { + "t": 46.43656077099877, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 45.97, + "ram_mib": 8.219 + }, + { + "t": 46.93622529999993, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.273 + }, + { + "t": 46.936272820999875, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.121 + }, + { + "t": 46.93630226800087, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 45.97, + "ram_mib": 8.219 + }, + { + "t": 47.43661352900017, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.77, + "ram_mib": 9.266 + }, + { + "t": 47.43664279400036, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.82, + "ram_mib": 8.215 + }, + { + "t": 47.436657851001655, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.96, + "ram_mib": 8.773 + }, + { + "t": 47.93604756399873, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.77, + "ram_mib": 9.266 + }, + { + "t": 47.936082273001375, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.82, + "ram_mib": 8.215 + }, + { + "t": 47.93610259699926, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.96, + "ram_mib": 8.773 + }, + { + "t": 48.43681443300011, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.062 + }, + { + "t": 48.43687431199942, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.18 + }, + { + "t": 48.43690834000154, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 43.57, + "ram_mib": 8.625 + }, + { + "t": 48.93628598199939, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.062 + }, + { + "t": 48.93633448499895, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.18 + }, + { + "t": 48.93636140400122, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 43.57, + "ram_mib": 8.625 + }, + { + "t": 49.43603159900158, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.023 + }, + { + "t": 49.43606099400131, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.184 + }, + { + "t": 49.436077629001375, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 40.86, + "ram_mib": 8.918 + }, + { + "t": 49.93648695600132, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.023 + }, + { + "t": 49.93652132400166, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.184 + }, + { + "t": 49.93654232799963, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 40.86, + "ram_mib": 8.918 + }, + { + "t": 50.437033179001446, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.023 + }, + { + "t": 50.43714869999894, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.121 + }, + { + "t": 50.43718394900134, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.85, + "ram_mib": 8.457 + }, + { + "t": 50.936207196002215, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.023 + }, + { + "t": 50.936236789999384, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.121 + }, + { + "t": 50.93624950600133, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.85, + "ram_mib": 8.457 + }, + { + "t": 51.43712368500201, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.02 + }, + { + "t": 51.43716516399945, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 8.121 + }, + { + "t": 51.43718127900138, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 33.29, + "ram_mib": 9.172 + }, + { + "t": 51.93662530700021, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.02 + }, + { + "t": 51.93667181600176, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 8.121 + }, + { + "t": 51.93669861099988, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 33.29, + "ram_mib": 9.172 + }, + { + "t": 52.436512932999904, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.81, + "ram_mib": 9.242 + }, + { + "t": 52.4365360970005, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 8.219 + }, + { + "t": 52.436544008000055, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.38, + "ram_mib": 8.879 + }, + { + "t": 52.93701443300233, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.81, + "ram_mib": 9.242 + }, + { + "t": 52.93704715900094, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 8.219 + }, + { + "t": 52.9370629240002, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.38, + "ram_mib": 8.879 + }, + { + "t": 53.43610490100036, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.062 + }, + { + "t": 53.436142299000494, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.121 + }, + { + "t": 53.43615511200187, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.41, + "ram_mib": 8.883 + }, + { + "t": 53.936479922002036, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.062 + }, + { + "t": 53.936510177001765, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.121 + }, + { + "t": 53.936524619999545, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.41, + "ram_mib": 8.883 + }, + { + "t": 54.436761272001604, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.02 + }, + { + "t": 54.43680619800216, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 8.117 + }, + { + "t": 54.43683065500227, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.94, + "ram_mib": 9.027 + }, + { + "t": 54.936349473999144, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.02 + }, + { + "t": 54.93639691000135, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 8.117 + }, + { + "t": 54.93642431999979, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 47.94, + "ram_mib": 9.027 + }, + { + "t": 55.43747069700112, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.02 + }, + { + "t": 55.43758269799946, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.117 + }, + { + "t": 55.43765074399926, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 46.75, + "ram_mib": 8.691 + }, + { + "t": 55.93642823200207, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.02 + }, + { + "t": 55.936459237000236, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.117 + }, + { + "t": 55.93647658500049, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 46.75, + "ram_mib": 8.691 + }, + { + "t": 56.43628621799871, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.027 + }, + { + "t": 56.436346680002316, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 8.121 + }, + { + "t": 56.43637789700006, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 37.5, + "ram_mib": 9.516 + }, + { + "t": 56.93658223600141, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.027 + }, + { + "t": 56.936624788999325, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 8.121 + }, + { + "t": 56.93665046499882, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 37.5, + "ram_mib": 9.516 + }, + { + "t": 57.43710267899951, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.41, + "ram_mib": 9.145 + }, + { + "t": 57.437181597000745, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.65, + "ram_mib": 8.418 + }, + { + "t": 57.43721907700092, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.08, + "ram_mib": 9.555 + }, + { + "t": 57.93644226299875, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.41, + "ram_mib": 9.145 + }, + { + "t": 57.93646375499884, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.65, + "ram_mib": 8.418 + }, + { + "t": 57.936470360000385, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.08, + "ram_mib": 9.555 + }, + { + "t": 58.43622188600057, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.059 + }, + { + "t": 58.43625304899979, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.117 + }, + { + "t": 58.43626021399905, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.67, + "ram_mib": 9.527 + }, + { + "t": 58.93643593800152, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.059 + }, + { + "t": 58.936462254001526, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.117 + }, + { + "t": 58.936477011000534, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.67, + "ram_mib": 9.527 + }, + { + "t": 59.436623787001736, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.02 + }, + { + "t": 59.43664529400121, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 8.117 + }, + { + "t": 59.4366523940007, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.59, + "ram_mib": 9.199 + }, + { + "t": 59.93625340200015, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.02 + }, + { + "t": 59.93628721799905, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 8.117 + }, + { + "t": 59.936305584000365, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 48.59, + "ram_mib": 9.199 + }, + { + "t": 60.4364751380017, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.02 + }, + { + "t": 60.43650361899927, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.121 + }, + { + "t": 60.436518949001766, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 38.91, + "ram_mib": 9.648 + }, + { + "t": 60.936712448001344, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.02 + }, + { + "t": 60.93679058500129, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.121 + }, + { + "t": 60.93683741700079, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 38.91, + "ram_mib": 9.648 + }, + { + "t": 61.43631204600024, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.36, + "ram_mib": 8.02 + }, + { + "t": 61.43637958800173, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.117 + }, + { + "t": 61.43642098000055, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 25.58, + "ram_mib": 9.863 + }, + { + "t": 61.93682059600178, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.36, + "ram_mib": 8.02 + }, + { + "t": 61.936872681999375, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.117 + }, + { + "t": 61.93689401600204, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 25.58, + "ram_mib": 9.863 + }, + { + "t": 62.437182707999455, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 3.25, + "ram_mib": 9.438 + }, + { + "t": 62.43725678000192, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.75, + "ram_mib": 8.613 + }, + { + "t": 62.43729944500228, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 33.13, + "ram_mib": 9.957 + }, + { + "t": 62.9364740480014, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 3.25, + "ram_mib": 9.438 + }, + { + "t": 62.93650379099927, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 2.75, + "ram_mib": 8.613 + }, + { + "t": 62.93651800000225, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 33.13, + "ram_mib": 9.957 + }, + { + "t": 63.436626376002096, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 7.992 + }, + { + "t": 63.436658483999054, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 8.094 + }, + { + "t": 63.4366704339991, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 33.1, + "ram_mib": 10.53 + }, + { + "t": 63.93630334900081, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 7.992 + }, + { + "t": 63.93634994199965, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 8.094 + }, + { + "t": 63.93637005799974, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 33.1, + "ram_mib": 10.53 + }, + { + "t": 64.43653215000086, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.988 + }, + { + "t": 64.43656218199976, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.09 + }, + { + "t": 64.43657427799917, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 32.7, + "ram_mib": 10.2 + }, + { + "t": 64.93640772900108, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.988 + }, + { + "t": 64.9364656910002, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.09 + }, + { + "t": 64.93650064800022, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 32.7, + "ram_mib": 10.2 + }, + { + "t": 65.43663498200112, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.988 + }, + { + "t": 65.43669781800054, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.09 + }, + { + "t": 65.43673357300213, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 33.89, + "ram_mib": 10.27 + }, + { + "t": 65.9364246969999, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.988 + }, + { + "t": 65.93649664899931, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.09 + }, + { + "t": 65.93654137200065, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 33.89, + "ram_mib": 10.27 + }, + { + "t": 66.43641276400012, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.988 + }, + { + "t": 66.43645541899969, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.09 + }, + { + "t": 66.4364718700017, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 34.83, + "ram_mib": 9.664 + }, + { + "t": 66.93645864200153, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.988 + }, + { + "t": 66.93647925500045, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.09 + }, + { + "t": 66.93648560400106, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 34.83, + "ram_mib": 9.664 + }, + { + "t": 67.4369375560018, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.81, + "ram_mib": 14.08 + }, + { + "t": 67.43699113999901, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 3.03, + "ram_mib": 8.305 + }, + { + "t": 67.43701049800075, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 34.41, + "ram_mib": 9.246 + }, + { + "t": 67.93654815300033, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 2.81, + "ram_mib": 14.08 + }, + { + "t": 67.93658992500059, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 3.03, + "ram_mib": 8.305 + }, + { + "t": 67.9366074339996, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 34.41, + "ram_mib": 9.246 + }, + { + "t": 68.43729854400226, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.33, + "ram_mib": 7.941 + }, + { + "t": 68.4373810979996, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.062 + }, + { + "t": 68.4374095359999, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 33.8, + "ram_mib": 9.691 + }, + { + "t": 68.93751595200229, + "container": "5f2041f6694f02ce1fdf3e9a86de6ff8f3d06da2e74c033a71a9b51c0135d54a", + "service": "api", + "cpu_percent": 0.33, + "ram_mib": 7.941 + }, + { + "t": 68.93761369899948, + "container": "23ac64edf15563b57fe812162e90e3a08de56430097275945768401614dbe2fa", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.062 + }, + { + "t": 68.93765603499924, + "container": "b2559d5181fd34ad2980d4ab2a82da42d444b64231a6754b0a8cda4361a4bab1", + "service": "worker", + "cpu_percent": 33.8, + "ram_mib": 9.691 + } + ], + "sdk_diagnostic_audit": { + "source": "Prometheus instant queries at trial start/end, restricted to trial container hostnames", + "warning_error_start": 4.0, + "warning_error_end": 4.0, + "warning_error_delta": 0.0 + } + }, + { + "variant": "C", + "repetition": 1, + "completed_utc": "2026-11-16T14:57:18.157469+00:00", + "successful_uploads": 1000, + "http_errors": 0, + "http_seconds": 13.284037879999232, + "pipeline_seconds": 65.36910241000078, + "collector_window_seconds": 68.45341315000042, + "rps": 75.27831590315051, + "latency_mean_ms": 52.817444524021994, + "latency_p50_ms": 30.481837002298562, + "latency_p99_ms": 204.04537200010964, + "latencies_ms": [ + 28.309453999099787, + 22.743604000424966, + 23.369541002466576, + 23.02675299870316, + 23.402613998769084, + 25.60905899736099, + 18.017020000115735, + 24.517507998098154, + 28.797899001801852, + 34.22097099974053, + 26.73125000001164, + 27.526832000148715, + 26.542749001237098, + 27.769688997068442, + 28.7565930011624, + 38.99063299832051, + 25.39106299809646, + 26.71166400250513, + 27.403865999076515, + 32.87073799947393, + 29.06928000084008, + 25.65818500079331, + 25.862966998829506, + 26.07507599896053, + 34.984581001481274, + 38.32532500018715, + 20.268371001293417, + 14.690406998852268, + 11.046723997424124, + 10.610809000354493, + 12.825401998270536, + 48.85186100000283, + 19.198116999177728, + 18.477301997336326, + 65.24454399914248, + 24.17191099812044, + 72.95573600276839, + 22.761969001294347, + 79.28671599802328, + 21.51816100013093, + 75.48632099860697, + 24.4491100020241, + 78.01855500292731, + 23.025518999929773, + 377.67412799803424, + 94.97305900003994, + 22.264971001277445, + 81.45017000060761, + 95.24878400043235, + 104.6484850012348, + 101.25356900243787, + 20.00339400183293, + 79.26446400233544, + 25.197200000548037, + 74.67258099859464, + 21.04918899931363, + 75.00710200110916, + 24.65301100164652, + 81.27103199876728, + 32.31964799851994, + 64.96721899748081, + 20.70350000212784, + 73.38419200095814, + 22.73253099701833, + 15.790239001944428, + 63.035279999894556, + 22.256797998124966, + 82.24935999896843, + 20.110951001697686, + 14.831037999101682, + 64.63968500247574, + 23.090385999239516, + 78.91485999789438, + 22.841419999167556, + 12.347220999799902, + 65.17504000294139, + 20.18033300191746, + 76.91323700055364, + 23.460264997993363, + 78.72556099755457, + 23.58816400010255, + 69.75333800073713, + 12.01965700238361, + 10.108381997270044, + 8.574483999836957, + 9.304556999268243, + 64.145289001317, + 23.846044001402333, + 17.91222999963793, + 61.949432998517295, + 100.71407899886253, + 392.05999999830965, + 108.22551299861516, + 98.01780199995846, + 97.33839999898919, + 26.443634000315797, + 70.41845700223348, + 22.88375799980713, + 17.9216339965933, + 58.767650996742304, + 17.491140999482013, + 14.057699001568835, + 78.32463500017184, + 20.961655001883628, + 77.00169499730691, + 17.810545999964233, + 75.57556699975976, + 19.764861001021927, + 83.10479599822429, + 22.428634998505004, + 76.69124899985036, + 18.300309999176534, + 80.43619900126942, + 21.098983997944742, + 16.37561000097776, + 63.71511500037741, + 19.702904999576276, + 81.01765299943509, + 30.192191999958595, + 70.82855000044219, + 25.77042399934726, + 75.29637300103786, + 18.36177699806285, + 13.782398000330431, + 67.81126600253629, + 22.6470830020844, + 76.26705199800199, + 24.13765900200815, + 78.84603400088963, + 18.683813999814447, + 80.72514000014053, + 19.772789000853663, + 78.39280500047607, + 22.292254001513356, + 14.080540000577457, + 62.38771400239784, + 22.676859000057448, + 73.6833029986883, + 21.970208999846363, + 184.4220769999083, + 295.6122460018378, + 99.27029800019227, + 23.325562997342786, + 77.21104499796638, + 23.83819800161291, + 18.960848003189312, + 56.84942300285911, + 103.60213899912196, + 101.8975099977979, + 102.3378230020171, + 99.09468999831006, + 28.66482100216672, + 69.22768799995538, + 96.11718399901292, + 21.352380001189886, + 18.81393300209311, + 13.743607996730134, + 53.18963899844675, + 25.01837300223997, + 72.81748999957927, + 29.631252997205593, + 74.02638299754472, + 97.84580500127049, + 102.4066150021099, + 95.66346599967801, + 98.10669999933452, + 30.555511999409646, + 68.44262400045409, + 21.21162000184995, + 14.389826999831712, + 64.47768400175846, + 22.019317002559546, + 78.9491290015576, + 20.482347998040495, + 75.10072299919557, + 23.606316000950756, + 76.70917399809696, + 16.11161999971955, + 10.276132001308724, + 13.1254469997657, + 8.128631001454778, + 50.78547900120611, + 72.9051590024028, + 31.44405900093261, + 98.5224139985803, + 198.76081300026271, + 103.90295100296498, + 31.054612001753412, + 65.32813200101373, + 21.550788998865755, + 16.130575000715908, + 66.74578100137296, + 21.314617999451002, + 15.11979600036284, + 8.64037700011977, + 53.200031998130726, + 17.958778000320308, + 80.97976099816151, + 22.845122999569867, + 81.81464999870514, + 93.62787099962588, + 23.72762400045758, + 76.97959399956744, + 17.015110999636818, + 18.714156998612452, + 69.24090900065494, + 98.08815799988224, + 26.626137001585448, + 72.13411300108419, + 98.20884100190597, + 21.572991001448827, + 78.07704000151716, + 22.941598999750568, + 19.72172499881708, + 58.13536200003, + 20.823188999202102, + 76.14577600179473, + 19.861185999616282, + 82.94314900194877, + 25.844487998256227, + 76.67489199957345, + 19.282354001916246, + 75.83388600323815, + 22.674408999591833, + 79.57426799839595, + 23.015282000415027, + 78.5573539978941, + 24.267471002531238, + 172.7856619982049, + 199.21749199784244, + 10.713095998653444, + 10.774324000522029, + 81.86005199968349, + 25.946759997168556, + 77.3954570031492, + 28.001034999761032, + 69.57982099993387, + 25.796506997721735, + 74.01848799781874, + 29.97942799993325, + 75.4893080011243, + 28.997900000831578, + 61.77649600067525, + 30.061009001656203, + 71.15237600010005, + 25.270447000366403, + 80.55376899937983, + 98.43741800068528, + 105.72578999926918, + 94.71387000303366, + 31.042523001815425, + 28.019367000524653, + 20.299982999858912, + 27.979089001746615, + 26.54519800125854, + 25.108744997851318, + 26.35106799789355, + 32.33897699828958, + 28.672944001300493, + 36.76837899911334, + 29.722472001594724, + 33.01287900103489, + 26.824755001143785, + 28.425032000086503, + 32.54146999825025, + 26.87377199981711, + 27.8903070029628, + 33.754865999071626, + 28.12115999768139, + 25.544125001033535, + 26.767218001623405, + 33.28915999736637, + 28.229182000359287, + 32.5985200033756, + 26.63825700074085, + 17.4534309990122, + 15.354665996710537, + 11.274561999016441, + 10.607009000523249, + 13.70135699835373, + 47.884278999845264, + 16.832468998472905, + 19.01696200002334, + 65.95729100081371, + 27.74950099774287, + 70.8960890005983, + 21.495452001545345, + 75.56188499802374, + 22.600551001232816, + 77.52504900054191, + 23.12894899660023, + 18.216027001471957, + 62.74424100047327, + 23.280722998606507, + 171.9688010016398, + 204.20259999809787, + 98.31370699976105, + 22.316054000839358, + 16.5381629994954, + 63.63550600144663, + 94.18481700049597, + 105.24982399874716, + 101.19746000054874, + 96.94085999944946, + 21.62036199661088, + 78.04756899713539, + 21.898736002185615, + 79.58591200076626, + 22.985447001701687, + 80.1296089994139, + 24.679753001692006, + 10.488992997125024, + 63.459067001531366, + 23.380733000522014, + 74.71489900126471, + 22.455297999840695, + 14.101740998739842, + 57.8062129970931, + 19.85319800223806, + 84.09889900212875, + 19.779373000346823, + 20.169783998426283, + 62.04443199749221, + 22.439398999267723, + 79.36037100080284, + 21.035789999586996, + 74.95033599843737, + 22.591935001400998, + 75.49570899936953, + 23.947437999595422, + 17.97301600163337, + 63.49711599978036, + 22.576154999114806, + 71.259705000557, + 11.363671001163311, + 10.260699000355089, + 10.173686998314224, + 10.222125001746463, + 58.99063199831289, + 24.46668799893814, + 17.912065999553306, + 64.70588100273744, + 23.31244900051388, + 75.02373399984208, + 195.5865809977695, + 199.02797999748145, + 110.49450900100055, + 93.8320860004751, + 22.42455899977358, + 76.8672689991945, + 26.29545899981167, + 72.32819400087465, + 24.209776001953287, + 71.61121700119111, + 16.926036001677858, + 13.777353000477888, + 12.040429999615299, + 66.93851800082484, + 21.21323699975619, + 75.53180900140433, + 18.55791100024362, + 80.8521959988866, + 23.87232199907885, + 76.3829799980158, + 23.582816000271123, + 75.83717499801423, + 18.810329998814268, + 81.77286299905973, + 22.31578200007789, + 13.062852998700691, + 62.293466999108205, + 18.540502998803277, + 85.22566600004211, + 31.042121001519263, + 68.14770600249176, + 21.3623199997528, + 77.5857549997454, + 97.54222899937304, + 25.125906002358533, + 75.78775300135021, + 23.178606999863405, + 74.58648100146092, + 19.962217000284, + 83.87558599861222, + 20.957020999048837, + 78.26496400230099, + 20.106326999666635, + 16.8826330009324, + 64.83594599922071, + 23.652201998629607, + 15.230059998430079, + 59.59036299827858, + 19.71982499890146, + 80.7766680009081, + 296.8590709970158, + 105.35586599871749, + 97.78774700316717, + 24.957569999969564, + 73.15981199644739, + 23.80872999856365, + 75.64135100255953, + 105.5922770028701, + 97.55162100191228, + 102.45759000099497, + 99.4077750001452, + 28.906862000440015, + 71.27179300005082, + 92.75798000089708, + 22.87571900160401, + 17.079998000554042, + 13.450118000037037, + 54.30814499777625, + 25.627316001191502, + 74.34340500185499, + 99.6519399996032, + 29.872349001379916, + 78.00645899988012, + 96.46868399795494, + 91.83507499983534, + 27.79110700066667, + 76.09539599798154, + 95.27834999971674, + 21.70933300294564, + 15.32781000059913, + 64.73898900003405, + 23.998071999812964, + 78.88966900281957, + 21.950131998892175, + 73.04565899903537, + 22.989811997831566, + 75.76784800039604, + 16.70819900027709, + 50.003167998511344, + 33.33825799927581, + 67.01121500009322, + 132.31030700262636, + 100.54971099816612, + 107.05347199836979, + 97.66289699837216, + 27.432918999693356, + 68.29398600166314, + 23.63850600158912, + 78.832336999767, + 24.085351997200632, + 14.814719997957582, + 62.246340999990935, + 20.628425998438615, + 77.74974700078019, + 25.370625000505242, + 77.1374249998189, + 20.390509998833295, + 79.05851999748847, + 26.721915000962326, + 68.92482599869254, + 20.23327400092967, + 79.30566299910424, + 24.1957590005768, + 78.17108400195139, + 95.93686099833576, + 23.459906999050872, + 81.52141699974891, + 23.31360899916035, + 78.74940900001093, + 24.823326002660906, + 69.48307100174134, + 21.390927002357785, + 78.23603200085927, + 20.273548001568997, + 79.85614100107341, + 24.83674899849575, + 16.36923600017326, + 64.90997099899687, + 20.526505999441724, + 74.24686300146277, + 23.407226999552222, + 79.28447899757884, + 20.46511099979398, + 78.51570999991964, + 25.25288699689554, + 76.70350400076131, + 198.79610300267814, + 95.84290600105305, + 10.828678001416847, + 9.810102001210907, + 84.92451400161372, + 97.4081969980034, + 31.746995999128558, + 70.94823500301572, + 25.331157001346583, + 77.27507600066019, + 26.500445001147455, + 75.78728899898124, + 28.75007499824278, + 65.3594110008271, + 100.75171900098212, + 95.29725799802691, + 103.30241599876899, + 101.28786700079218, + 101.49950400227681, + 19.92049800173845, + 30.481837002298562, + 30.8247670000128, + 22.718743999575963, + 22.688719000143465, + 27.39519399983692, + 30.281266001111362, + 17.780034999304917, + 26.0817140006111, + 31.136435998632805, + 26.70695900087594, + 26.522549000219442, + 22.459954001533333, + 34.078587999829324, + 36.86837599889259, + 30.010239999683108, + 31.300861002819147, + 25.702922001073603, + 27.928277999308193, + 32.54441600074642, + 29.357272000197554, + 26.767499999550637, + 24.63196499957121, + 28.95911999803502, + 38.87699800179689, + 33.67579200130422, + 25.116182998317527, + 14.524256002914626, + 11.04925600157003, + 12.077816001692554, + 11.23678699877928, + 47.688298000139184, + 20.03898700058926, + 80.91300000160118, + 23.290583998459624, + 76.90105899746413, + 22.539907000464154, + 17.515976000140654, + 64.52483999964898, + 20.56594299938297, + 76.47533699855558, + 25.299675999121973, + 73.74146800066228, + 24.81845099828206, + 79.37363000019104, + 299.14023200035444, + 95.66958199866349, + 22.213988999283174, + 77.68359200053965, + 98.38015400237055, + 105.57777900248766, + 99.46775299977162, + 96.42746399913449, + 25.04702399892267, + 16.85522200205014, + 61.479055002564564, + 93.9950560023135, + 27.051815002778312, + 81.9013910004287, + 23.194492001493927, + 10.499046002223622, + 59.84857200019178, + 26.66105800017249, + 76.40827499926672, + 22.426286999689182, + 72.37379900107044, + 19.883966000634246, + 79.87816099921474, + 22.217983998416457, + 17.906111999764107, + 11.775437000324018, + 53.415102996950736, + 93.77338100239285, + 24.907613998948364, + 14.298426001914777, + 67.17905199911911, + 96.26988200034248, + 25.741972000105307, + 16.794998999102972, + 60.72791699989466, + 21.923999000136973, + 72.1195779988193, + 13.418719001492718, + 11.303015002340544, + 9.634686997742392, + 10.542110001551919, + 56.27518499750295, + 26.323603000491858, + 78.14723500268883, + 25.80594800019753, + 71.24836799994227, + 297.9772319995391, + 204.04537200010964, + 22.214294000150403, + 77.63679699928616, + 22.210606999578886, + 75.28552900112118, + 22.943959000258474, + 77.7001440001186, + 23.411641999700805, + 73.11801700052456, + 20.417286999872886, + 12.531023003248265, + 10.138156998436898, + 61.620279997441685, + 22.337327001878293, + 20.79968399993959, + 57.84856600075727, + 17.82929099863395, + 17.054998003004584, + 66.64504500076873, + 24.308269999892218, + 76.41432099990197, + 23.294597998756217, + 75.47268800044549, + 17.976581999391783, + 80.36124300269876, + 22.894288998941192, + 74.294344001828, + 19.09477200024412, + 14.198527998814825, + 71.04856099977042, + 27.547960002266336, + 74.45017700229073, + 23.88184200026444, + 75.14299100148492, + 21.63079200181528, + 73.4888820006745, + 24.68725500148139, + 79.7813569988648, + 22.118082000815775, + 77.8392360007274, + 19.726524002180668, + 80.71065600233851, + 21.035208999819588, + 76.60984999893117, + 21.52974999989965, + 14.694993999000872, + 8.874967999872752, + 58.08542399972794, + 20.65789200059953, + 75.10860699767363, + 22.320985997794196, + 16.38265799920191, + 64.34419599827379, + 96.93690399944899, + 200.58865899773082, + 102.44591800073977, + 100.06812999927206, + 23.225656001159223, + 75.39298099800362, + 25.399097001354676, + 74.9867880003876, + 102.79317900130991, + 96.92548999737483, + 102.00479400009499, + 104.10314799810294, + 27.413155999965966, + 65.33882900112076, + 31.691623000369873, + 66.89342000026954, + 21.018087001721142, + 18.26702800099156, + 69.53692699971725, + 95.57668200068292, + 31.441020997590385, + 71.95337799930712, + 104.08499199911603, + 92.9569839972828, + 100.76214400032768, + 26.99817000029725, + 72.76318200092646, + 95.38887399685336, + 20.562705001793802, + 15.789861001394456, + 63.762206002138555, + 25.751266999577638, + 78.6398590025783, + 19.317936999868834, + 77.39978300014627, + 25.19026299705729, + 71.06250300057582, + 17.7752599993255, + 37.75635900092311, + 46.66692799946759, + 11.477432999527082, + 54.202428000280634, + 231.88956399826566, + 107.12969900123426, + 100.15671200017096, + 24.619684998469893, + 69.27482199898805, + 25.08113500152831, + 76.27518700246583, + 24.310929999046493, + 15.082336998602841, + 59.768302002339624, + 18.753665997792268, + 17.396250997990137, + 67.36749500123551, + 23.661334002099466, + 78.32820700059528, + 23.133833001338644, + 73.74383899878012, + 24.39291900009266, + 75.97186299972236, + 19.153265999193536, + 81.32755099722999, + 96.38814299978549, + 27.974005999567453, + 75.78189699779614, + 20.827920001465827, + 79.92093899883912, + 23.339538001891924, + 76.42594099888811, + 26.462564997927984, + 71.0101240001677, + 21.56940400163876, + 80.16920699810726, + 19.09515800070949, + 79.62249599950155, + 25.16984799876809, + 76.85005500025, + 20.70806099800393, + 76.87008200082346, + 21.32174500002293, + 79.27780099998927, + 21.197982001467608, + 81.30015200003982, + 22.582247998798266, + 172.73361800107523, + 199.07751599748735, + 9.540405997540802, + 11.10453200089978, + 10.34146800157032, + 75.44218699695193, + 97.48801299792831, + 96.61222899740096, + 25.819718997809105, + 78.98071500312653, + 102.03490599815268, + 35.5402920031338, + 9.673084001406096, + 52.37338699953398, + 101.93596300086938, + 98.00464900035877, + 101.62065399708808, + 99.38231300111511, + 99.37014699971769, + 18.937064000056125, + 77.69659200130263, + 25.920580999809317, + 30.301376998977503, + 25.72932899784064, + 21.95613699950627, + 21.288652998919133, + 27.123376999952598, + 25.11393299937481, + 25.88136200211011, + 28.2005399967602, + 28.509829000540776, + 28.789852000045357, + 25.870819001283962, + 34.53892899779021, + 29.51692700298736, + 27.502298999024788, + 33.73214300154359, + 26.973856998665724, + 27.98754200193798, + 31.5080170003057, + 29.226509999716654, + 26.604383001540555, + 25.9867890017631, + 32.3152860000846, + 29.503026999009307, + 32.42448799937847, + 24.370855000597658, + 15.527294999628793, + 15.144826997129712, + 11.618004999036202, + 11.583805000555003, + 15.858416998526081, + 41.75179899903014, + 19.30341999832308, + 18.19416600119439, + 64.0034790012578, + 97.32467199864914, + 22.341903000778984, + 82.78544499989948, + 22.46564500092063, + 74.16385200122022, + 22.255201001826208, + 77.15361099690199, + 195.91732200206025, + 105.27603000082308, + 103.4895900011179, + 94.4658080006775, + 21.969441000692314, + 18.52866300032474, + 62.47007600177312, + 94.21650500007672, + 102.11428199909278, + 102.58395200071391, + 96.82652099945699, + 25.14429700022447, + 76.01839200287941, + 22.41592800055514, + 80.91573099954985, + 21.357333000196377, + 78.0940449985792, + 28.134806001617108, + 68.60973999937414, + 24.473880999721587, + 80.0933040009113, + 22.52732800116064, + 73.01749500038568, + 21.916885001701303, + 17.22447700012708, + 64.53329299984034, + 19.570911998016527, + 16.588374001003103, + 59.54975100030424, + 22.94462999998359, + 76.56481500089285, + 23.936317997140577, + 80.01390699791955, + 95.14774800118175, + 23.855800998717314, + 79.95712800038746, + 23.145957999076927, + 72.91298599739093, + 13.285946999531006, + 10.498423001990886, + 10.547980000410462, + 9.580750000168337, + 58.691408001323, + 21.959435998724075, + 18.800668000039877, + 64.53663399952347, + 26.076062000356615, + 70.10893500046222, + 196.3693309990049, + 301.79950300225755, + 103.15718999845558, + 21.24379200176918, + 10.435123000206659, + 66.98898399918107, + 28.96515600150451, + 71.29249799982063, + 22.234510000998853, + 74.2083229997661, + 19.044100001337938, + 14.713773001858499, + 73.3563400026469, + 23.47308900061762, + 75.60749100230169, + 20.268513999326387, + 76.86417800141498, + 22.359007998602465, + 78.42419200096629, + 22.039283998310566, + 77.12797099884483, + 19.042793999688, + 81.25658000062685, + 20.145001999480883, + 77.62031700258376, + 19.40792599998531, + 14.315436998003861, + 71.81709799988312, + 28.497224000602728, + 70.69778900040546, + 22.87603199874866, + 73.89572900137864, + 23.80044800156611, + 11.111471001640894, + 65.50189599875011, + 23.519204998592613, + 74.68285800132435, + 25.30483699956676, + 79.41530999960378, + 94.83815099883941, + 20.381911999720614, + 80.25933599856216, + 25.521799001580803, + 77.26036600070074, + 20.415364000655245, + 76.1900979996426, + 19.477887002722127, + 19.32696299991221, + 163.84802699758438, + 196.5010460007761, + 107.22200000236626, + 94.8975849969429, + 23.40091799851507, + 73.94684000246343, + 23.639659000764368, + 79.93546500074444, + 102.10608999841497, + 100.39441800108762, + 98.79083699706825, + 104.17379399950732, + 26.09120399938547, + 73.49087299735402, + 24.90895400114823, + 69.28977600182407, + 22.373169998900266, + 19.764299999224022, + 65.16898500194657, + 95.29874999861931, + 31.759034001879627, + 77.1198500005994, + 97.54423800040968, + 98.08886900282232, + 29.157178996683797, + 68.76332499814453, + 97.9346029998851, + 95.58264699808205, + 22.448661999078467, + 15.535511000052793, + 65.05263200233458, + 20.423399000719655, + 81.2263219995657, + 21.452703997056233, + 74.57783499921788, + 24.083412001346005, + 72.83204100167495, + 17.394180998962838, + 12.144715998147149, + 68.59860199983814, + 13.766548003331991, + 7.98202399892034, + 11.81462399836164, + 72.04517799982568, + 196.57902299877605, + 106.49433599974145, + 100.83080600088579, + 26.404155996715417, + 66.6860560013447, + 21.33507700273185, + 80.09633199981181, + 25.070496998523595, + 15.030836999358144, + 61.21627500033355, + 22.25755399922491, + 76.17773100355407, + 22.717169998941245, + 81.92579300157377, + 21.67255600215867, + 77.92531199811492, + 24.216477999289054, + 73.24352100113174, + 19.727759001398226, + 83.84385200042743, + 22.375131000444526, + 18.20675199996913, + 57.483896998746786, + 96.23419000126887, + 22.748727998987306, + 77.6296160001948, + 21.94724799846881, + 84.19091700125136, + 23.279871998965973, + 73.35931600027834, + 23.072846001014113, + 76.64890199885122, + 19.458619997749338, + 78.76562499950523, + 25.667816000350285, + 75.9143649993348, + 22.4485970029491, + 76.3130289997207, + 21.174986999540124, + 15.055627998663113, + 66.92136299898266, + 20.332571999460924, + 11.925335998967057, + 67.14042699968559, + 99.87673899740912, + 293.23135100275977, + 9.203233999869553, + 9.092963999137282, + 9.319459000835195, + 76.56904199757264, + 27.718012999685016, + 78.26515999840922, + 95.37174599972786, + 98.33424699900206, + 99.21057099927566, + 31.871515999227995, + 70.6002439983422, + 27.533244003279833, + 75.75812700088136, + 99.88816899931408, + 97.98839599898201, + 105.87137000038638, + 94.16550199966878, + 94.14703899892629, + 14.891823000652948, + 10.409662001620745, + 7.778296003380092, + 9.342007997474866 + ], + "resources": { + "api": { + "cpu_percent_mean": 13.306923076923077, + "ram_mib_mean": 16.336476923076923, + "ram_mib_max": 21.08, + "samples": 260, + "cpu_seconds_per_job_estimate": 0.008698616173773873 + }, + "worker": { + "cpu_percent_mean": 39.12169230769231, + "ram_mib_mean": 7.877784615384615, + "ram_mib_max": 10.28, + "samples": 130, + "cpu_seconds_per_job_estimate": 0.02557349910914078 + } + }, + "collector_deltas": { + "otelcol_receiver_accepted_spans": 28216.0, + "otelcol_exporter_sent_spans": 3127.0, + "otelcol_receiver_refused_spans": 0.0, + "otelcol_exporter_send_failed_spans": 0.0, + "otelcol_receiver_accepted_log_records": 3000.0, + "otelcol_receiver_accepted_metric_points": 637.0 + }, + "ingest_spans_per_second": 412.1927410423045, + "tempo_spans_per_second": 45.680702482254254, + "trace_retention": 0.11082364615820811, + "stats_samples": [ + { + "t": 0.44623908799985657, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 3.43, + "ram_mib": 8.02 + }, + { + "t": 0.4462686709994159, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 3.29, + "ram_mib": 7.938 + }, + { + "t": 0.4462838500003272, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 0.41, + "ram_mib": 4.977 + }, + { + "t": 0.9459633990009024, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 3.43, + "ram_mib": 8.02 + }, + { + "t": 0.9460072129986656, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 3.29, + "ram_mib": 7.938 + }, + { + "t": 0.9460279019986046, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 0.41, + "ram_mib": 4.977 + }, + { + "t": 1.4464803349983413, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 34.66, + "ram_mib": 9.945 + }, + { + "t": 1.4465447869988566, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 32.1, + "ram_mib": 9.535 + }, + { + "t": 1.4465755589990295, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 14.06, + "ram_mib": 5.758 + }, + { + "t": 1.9462650919995212, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 34.66, + "ram_mib": 9.945 + }, + { + "t": 1.9463130840013037, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 32.1, + "ram_mib": 9.535 + }, + { + "t": 1.9463358469984087, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 14.06, + "ram_mib": 5.758 + }, + { + "t": 2.4467194759999984, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 24.53, + "ram_mib": 9.703 + }, + { + "t": 2.4469408369986922, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 25.16, + "ram_mib": 9.633 + }, + { + "t": 2.4469981769980222, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 13.98, + "ram_mib": 5.742 + }, + { + "t": 2.945978265001031, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 24.53, + "ram_mib": 9.703 + }, + { + "t": 2.946021871000994, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 25.16, + "ram_mib": 9.633 + }, + { + "t": 2.94604556899867, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 13.98, + "ram_mib": 5.742 + }, + { + "t": 3.4464230470002803, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 30.41, + "ram_mib": 9.887 + }, + { + "t": 3.4464880529994844, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 30.18, + "ram_mib": 9.496 + }, + { + "t": 3.4465288940009486, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 19.29, + "ram_mib": 6.828 + }, + { + "t": 3.9468824840005254, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 30.41, + "ram_mib": 9.887 + }, + { + "t": 3.946969712000282, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 30.18, + "ram_mib": 9.496 + }, + { + "t": 3.9470106179978757, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 19.29, + "ram_mib": 6.828 + }, + { + "t": 4.446951334000914, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 37.48, + "ram_mib": 9.348 + }, + { + "t": 4.447030278999591, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 37.05, + "ram_mib": 10.21 + }, + { + "t": 4.44707250799911, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 21.98, + "ram_mib": 6.039 + }, + { + "t": 4.946206223001354, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 37.48, + "ram_mib": 9.348 + }, + { + "t": 4.946248509000725, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 37.05, + "ram_mib": 10.21 + }, + { + "t": 4.946267749997787, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 21.98, + "ram_mib": 6.039 + }, + { + "t": 5.446909983998921, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 24.56, + "ram_mib": 10.07 + }, + { + "t": 5.446967536998272, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 24.11, + "ram_mib": 9.602 + }, + { + "t": 5.4469964140007505, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 14.0, + "ram_mib": 6.375 + }, + { + "t": 5.946688993000862, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 24.56, + "ram_mib": 10.07 + }, + { + "t": 5.946733372999006, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 24.11, + "ram_mib": 9.602 + }, + { + "t": 5.946757400000934, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 14.0, + "ram_mib": 6.375 + }, + { + "t": 6.447051017999911, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 32.77, + "ram_mib": 10.46 + }, + { + "t": 6.447095286999684, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 33.7, + "ram_mib": 9.422 + }, + { + "t": 6.447120068998629, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 21.01, + "ram_mib": 5.863 + }, + { + "t": 6.946554114998435, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 32.77, + "ram_mib": 10.46 + }, + { + "t": 6.946599265000259, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 33.7, + "ram_mib": 9.422 + }, + { + "t": 6.946623223000643, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 21.01, + "ram_mib": 5.863 + }, + { + "t": 7.446576971000468, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 24.14, + "ram_mib": 9.633 + }, + { + "t": 7.446644634997938, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 23.35, + "ram_mib": 10.29 + }, + { + "t": 7.446671632998914, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 12.89, + "ram_mib": 5.832 + }, + { + "t": 7.946060554000724, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 24.14, + "ram_mib": 9.633 + }, + { + "t": 7.946105538998381, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 23.35, + "ram_mib": 10.29 + }, + { + "t": 7.946135768001113, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 12.89, + "ram_mib": 5.832 + }, + { + "t": 8.446991794000496, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 28.97, + "ram_mib": 9.098 + }, + { + "t": 8.447121733999666, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 29.43, + "ram_mib": 10.41 + }, + { + "t": 8.447195706001366, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 17.88, + "ram_mib": 5.59 + }, + { + "t": 8.94630971299921, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 28.97, + "ram_mib": 9.098 + }, + { + "t": 8.946400877000997, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 29.43, + "ram_mib": 10.41 + }, + { + "t": 8.946455065000919, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 17.88, + "ram_mib": 5.59 + }, + { + "t": 9.446181066999998, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 32.02, + "ram_mib": 9.824 + }, + { + "t": 9.446209022000403, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 32.58, + "ram_mib": 10.62 + }, + { + "t": 9.446226005999051, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 21.35, + "ram_mib": 6.164 + }, + { + "t": 9.946457031997852, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 32.02, + "ram_mib": 9.824 + }, + { + "t": 9.946514307001053, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 32.58, + "ram_mib": 10.62 + }, + { + "t": 9.94654371499928, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 21.35, + "ram_mib": 6.164 + }, + { + "t": 10.446551942000951, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 28.8, + "ram_mib": 9.695 + }, + { + "t": 10.446603614000196, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 33.03, + "ram_mib": 10.16 + }, + { + "t": 10.446624658001383, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 16.93, + "ram_mib": 5.387 + }, + { + "t": 10.946444090001023, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 28.8, + "ram_mib": 9.695 + }, + { + "t": 10.946488915000373, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 33.03, + "ram_mib": 10.16 + }, + { + "t": 10.94651198000065, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 16.93, + "ram_mib": 5.387 + }, + { + "t": 11.446209535999515, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 33.34, + "ram_mib": 9.828 + }, + { + "t": 11.446260764998442, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 32.95, + "ram_mib": 9.574 + }, + { + "t": 11.446281823999016, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 21.49, + "ram_mib": 6.059 + }, + { + "t": 11.947140631000366, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 33.34, + "ram_mib": 9.828 + }, + { + "t": 11.94719651199921, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 32.95, + "ram_mib": 9.574 + }, + { + "t": 11.947219543999381, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 21.49, + "ram_mib": 6.059 + }, + { + "t": 12.447248952998052, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 24.69, + "ram_mib": 8.664 + }, + { + "t": 12.447316791000048, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 26.6, + "ram_mib": 9.949 + }, + { + "t": 12.447350151000137, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 13.82, + "ram_mib": 5.656 + }, + { + "t": 12.947524551000242, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 24.69, + "ram_mib": 8.664 + }, + { + "t": 12.947586883998156, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 26.6, + "ram_mib": 9.949 + }, + { + "t": 12.947633887000848, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 13.82, + "ram_mib": 5.656 + }, + { + "t": 13.446372836999217, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 29.76, + "ram_mib": 10.06 + }, + { + "t": 13.446411967997847, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 29.87, + "ram_mib": 10.61 + }, + { + "t": 13.446427052000217, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 18.37, + "ram_mib": 6.152 + }, + { + "t": 13.945723886998167, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 29.76, + "ram_mib": 10.06 + }, + { + "t": 13.94574356999874, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 29.87, + "ram_mib": 10.61 + }, + { + "t": 13.945750288999989, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 18.37, + "ram_mib": 6.152 + }, + { + "t": 14.446275543999946, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 4.59, + "ram_mib": 7.957 + }, + { + "t": 14.446313993998046, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 5.17, + "ram_mib": 8.43 + }, + { + "t": 14.446334391999699, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 41.11, + "ram_mib": 7.137 + }, + { + "t": 14.945554361998802, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 4.59, + "ram_mib": 7.957 + }, + { + "t": 14.945597541998723, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 5.17, + "ram_mib": 8.43 + }, + { + "t": 14.945621963001031, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 41.11, + "ram_mib": 7.137 + }, + { + "t": 15.446281247997831, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 3.03, + "ram_mib": 7.5 + }, + { + "t": 15.44631415999902, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.74, + "ram_mib": 8.191 + }, + { + "t": 15.44633249799881, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.57, + "ram_mib": 7.141 + }, + { + "t": 15.945915838001383, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 3.03, + "ram_mib": 7.5 + }, + { + "t": 15.945968913998513, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.74, + "ram_mib": 8.191 + }, + { + "t": 15.945998865998263, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.57, + "ram_mib": 7.141 + }, + { + "t": 16.446209623998584, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 1.24, + "ram_mib": 7.496 + }, + { + "t": 16.446243300000788, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 1.13, + "ram_mib": 7.699 + }, + { + "t": 16.446262442997977, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 42.29, + "ram_mib": 7.246 + }, + { + "t": 16.945763256000646, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 1.24, + "ram_mib": 7.496 + }, + { + "t": 16.94579326299936, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 1.13, + "ram_mib": 7.699 + }, + { + "t": 16.945807717998832, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 42.29, + "ram_mib": 7.246 + }, + { + "t": 17.44614280099995, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.72, + "ram_mib": 7.496 + }, + { + "t": 17.44616172899987, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.66, + "ram_mib": 7.922 + }, + { + "t": 17.446168062000652, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.27, + "ram_mib": 6.062 + }, + { + "t": 17.94572048899863, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.72, + "ram_mib": 7.496 + }, + { + "t": 17.945753662999778, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.66, + "ram_mib": 7.922 + }, + { + "t": 17.945771992999653, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.27, + "ram_mib": 6.062 + }, + { + "t": 18.44555557900094, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.496 + }, + { + "t": 18.445584954999504, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.945 + }, + { + "t": 18.445596547000605, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.28, + "ram_mib": 7.156 + }, + { + "t": 18.94575797899961, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.496 + }, + { + "t": 18.94579584299936, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.945 + }, + { + "t": 18.945813170998008, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.28, + "ram_mib": 7.156 + }, + { + "t": 19.44633629099917, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.496 + }, + { + "t": 19.446380288998625, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 8.219 + }, + { + "t": 19.446403695998015, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.29, + "ram_mib": 7.223 + }, + { + "t": 19.94581860800099, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.496 + }, + { + "t": 19.945840715001395, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 8.219 + }, + { + "t": 19.94585879599981, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.29, + "ram_mib": 7.223 + }, + { + "t": 20.44555648199821, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 2.7, + "ram_mib": 7.5 + }, + { + "t": 20.44558875900111, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 7.695 + }, + { + "t": 20.445603440999548, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.16, + "ram_mib": 6.719 + }, + { + "t": 20.945859588999156, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 2.7, + "ram_mib": 7.5 + }, + { + "t": 20.945888309997827, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 7.695 + }, + { + "t": 20.945897961999435, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.16, + "ram_mib": 6.719 + }, + { + "t": 21.445774657000584, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.5 + }, + { + "t": 21.445796332998725, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.699 + }, + { + "t": 21.44580398299877, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 34.86, + "ram_mib": 6.922 + }, + { + "t": 21.946216374999494, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.5 + }, + { + "t": 21.946247774998483, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.699 + }, + { + "t": 21.94626308700026, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 34.86, + "ram_mib": 6.922 + }, + { + "t": 22.44630949400016, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.746 + }, + { + "t": 22.446351411999785, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.695 + }, + { + "t": 22.44637225399856, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.63, + "ram_mib": 6.809 + }, + { + "t": 22.94578024099974, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.746 + }, + { + "t": 22.945801172998472, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.695 + }, + { + "t": 22.945808116997796, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.63, + "ram_mib": 6.809 + }, + { + "t": 23.446296589998383, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.5 + }, + { + "t": 23.446330112998112, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.695 + }, + { + "t": 23.446347168999637, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.71, + "ram_mib": 6.695 + }, + { + "t": 23.94576272300037, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.5 + }, + { + "t": 23.945811345998663, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.695 + }, + { + "t": 23.945835301001352, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.71, + "ram_mib": 6.695 + }, + { + "t": 24.44629620699925, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.5 + }, + { + "t": 24.446329633999994, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.941 + }, + { + "t": 24.446343888997944, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 46.47, + "ram_mib": 7.387 + }, + { + "t": 24.94641743000102, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.5 + }, + { + "t": 24.946448448998126, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.941 + }, + { + "t": 24.94646327299779, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 46.47, + "ram_mib": 7.387 + }, + { + "t": 25.446208353998372, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 3.54, + "ram_mib": 7.582 + }, + { + "t": 25.44623941199825, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.58, + "ram_mib": 7.949 + }, + { + "t": 25.446251355999266, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 41.9, + "ram_mib": 7.562 + }, + { + "t": 25.946223448998353, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 3.54, + "ram_mib": 7.582 + }, + { + "t": 25.946244744998694, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.58, + "ram_mib": 7.949 + }, + { + "t": 25.94625118299882, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 41.9, + "ram_mib": 7.562 + }, + { + "t": 26.446043261999876, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.504 + }, + { + "t": 26.44607158600047, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.945 + }, + { + "t": 26.446082692000346, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.74, + "ram_mib": 7.996 + }, + { + "t": 26.945748408001236, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.504 + }, + { + "t": 26.945782669998152, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.945 + }, + { + "t": 26.94579871699898, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.74, + "ram_mib": 7.996 + }, + { + "t": 27.44620371899873, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.504 + }, + { + "t": 27.44623202100047, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.383 + }, + { + "t": 27.446246605999477, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.9, + "ram_mib": 7.668 + }, + { + "t": 27.94549918499979, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.504 + }, + { + "t": 27.94552928000121, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.383 + }, + { + "t": 27.94554246700136, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.9, + "ram_mib": 7.668 + }, + { + "t": 28.446241261000978, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.75 + }, + { + "t": 28.446272182998655, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.93 + }, + { + "t": 28.44628888999796, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 49.02, + "ram_mib": 7.164 + }, + { + "t": 28.9454853870011, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.75 + }, + { + "t": 28.94554430900098, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.93 + }, + { + "t": 28.945578378999926, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 49.02, + "ram_mib": 7.164 + }, + { + "t": 29.446244538001338, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.73 + }, + { + "t": 29.446279499999946, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.31, + "ram_mib": 7.945 + }, + { + "t": 29.44629785500001, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 42.31, + "ram_mib": 8.109 + }, + { + "t": 29.94627385199783, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.73 + }, + { + "t": 29.94629724799961, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.31, + "ram_mib": 7.945 + }, + { + "t": 29.946304847999272, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 42.31, + "ram_mib": 8.109 + }, + { + "t": 30.44574146100058, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 3.24, + "ram_mib": 7.734 + }, + { + "t": 30.44578571400052, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.54, + "ram_mib": 7.695 + }, + { + "t": 30.44581189499877, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.94, + "ram_mib": 7.895 + }, + { + "t": 30.94621662300051, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 3.24, + "ram_mib": 7.734 + }, + { + "t": 30.94624071599901, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.54, + "ram_mib": 7.695 + }, + { + "t": 30.94624934699823, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.94, + "ram_mib": 7.895 + }, + { + "t": 31.44620711799871, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.527 + }, + { + "t": 31.44623233799939, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.707 + }, + { + "t": 31.446242815000005, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 49.15, + "ram_mib": 8.062 + }, + { + "t": 31.945816770999954, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.527 + }, + { + "t": 31.945856308000657, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.707 + }, + { + "t": 31.94586917899869, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 49.15, + "ram_mib": 8.062 + }, + { + "t": 32.446247383999435, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.531 + }, + { + "t": 32.446273145000305, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.695 + }, + { + "t": 32.44628324199948, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.22, + "ram_mib": 7.883 + }, + { + "t": 32.94543969499864, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.531 + }, + { + "t": 32.94546562799951, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.695 + }, + { + "t": 32.94547949700063, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.22, + "ram_mib": 7.883 + }, + { + "t": 33.44608638600039, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.504 + }, + { + "t": 33.446109720000095, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.695 + }, + { + "t": 33.44611795899982, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 49.03, + "ram_mib": 8.188 + }, + { + "t": 33.94625942700077, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.504 + }, + { + "t": 33.946294838999165, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.695 + }, + { + "t": 33.94631021099849, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 49.03, + "ram_mib": 8.188 + }, + { + "t": 34.44620468799985, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.219 + }, + { + "t": 34.446227854001336, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.203 + }, + { + "t": 34.44623650300127, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 32.74, + "ram_mib": 8.422 + }, + { + "t": 34.94564556499972, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.219 + }, + { + "t": 34.94569020600102, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.203 + }, + { + "t": 34.9457160239981, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 32.74, + "ram_mib": 8.422 + }, + { + "t": 35.446263857000304, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 2.39, + "ram_mib": 7.75 + }, + { + "t": 35.44629499999792, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.56, + "ram_mib": 7.754 + }, + { + "t": 35.446308653001324, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.06, + "ram_mib": 8.062 + }, + { + "t": 35.94600520200038, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 2.39, + "ram_mib": 7.75 + }, + { + "t": 35.94606296799975, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.56, + "ram_mib": 7.754 + }, + { + "t": 35.9460969569991, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.06, + "ram_mib": 8.062 + }, + { + "t": 36.44631742599813, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.508 + }, + { + "t": 36.44635980499879, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.703 + }, + { + "t": 36.44637748999958, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.99, + "ram_mib": 8.715 + }, + { + "t": 36.945944506998785, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.508 + }, + { + "t": 36.94603107600051, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.703 + }, + { + "t": 36.94611393299783, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.99, + "ram_mib": 8.715 + }, + { + "t": 37.446448837999924, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.527 + }, + { + "t": 37.44648826299817, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.934 + }, + { + "t": 37.4465091029997, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.5, + "ram_mib": 7.695 + }, + { + "t": 37.94591893899997, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.527 + }, + { + "t": 37.94595457499963, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.934 + }, + { + "t": 37.94596919600008, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.5, + "ram_mib": 7.695 + }, + { + "t": 38.44592442999783, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.754 + }, + { + "t": 38.44597289599915, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.93 + }, + { + "t": 38.44598438100002, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.23, + "ram_mib": 8.617 + }, + { + "t": 38.946233783000935, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.754 + }, + { + "t": 38.94625411800007, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.93 + }, + { + "t": 38.94626196600075, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.23, + "ram_mib": 8.617 + }, + { + "t": 39.44607260399789, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 7.758 + }, + { + "t": 39.44609483599925, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.36, + "ram_mib": 7.703 + }, + { + "t": 39.44610318799823, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 37.25, + "ram_mib": 8.203 + }, + { + "t": 39.94561945899841, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 7.758 + }, + { + "t": 39.94564536400139, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.36, + "ram_mib": 7.703 + }, + { + "t": 39.945654578998074, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 37.25, + "ram_mib": 8.203 + }, + { + "t": 40.44535442599954, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 2.54, + "ram_mib": 7.512 + }, + { + "t": 40.445372273999965, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.48, + "ram_mib": 7.707 + }, + { + "t": 40.44537924500037, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 45.45, + "ram_mib": 8.0 + }, + { + "t": 40.946172701998876, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 2.54, + "ram_mib": 7.512 + }, + { + "t": 40.94620928299992, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.48, + "ram_mib": 7.707 + }, + { + "t": 40.946223330000066, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 45.45, + "ram_mib": 8.0 + }, + { + "t": 41.446171265000885, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.73 + }, + { + "t": 41.44619139099814, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.961 + }, + { + "t": 41.44619844399858, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 43.82, + "ram_mib": 8.426 + }, + { + "t": 41.94569919800051, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.73 + }, + { + "t": 41.94572149400119, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.961 + }, + { + "t": 41.94572802900075, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 43.82, + "ram_mib": 8.426 + }, + { + "t": 42.445970767999825, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.727 + }, + { + "t": 42.44599046800067, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.703 + }, + { + "t": 42.4459978599989, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 41.85, + "ram_mib": 8.477 + }, + { + "t": 42.94624994499827, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.727 + }, + { + "t": 42.94628390800062, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.703 + }, + { + "t": 42.94629881600122, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 41.85, + "ram_mib": 8.477 + }, + { + "t": 43.44647825100037, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.73 + }, + { + "t": 43.4465344550008, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.703 + }, + { + "t": 43.4465661840004, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 42.87, + "ram_mib": 8.969 + }, + { + "t": 43.94544466699881, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.73 + }, + { + "t": 43.94547421400057, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.703 + }, + { + "t": 43.94548907799981, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 42.87, + "ram_mib": 8.969 + }, + { + "t": 44.44571256699783, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.984 + }, + { + "t": 44.44574053999895, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.703 + }, + { + "t": 44.4457553430002, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 39.71, + "ram_mib": 9.773 + }, + { + "t": 44.94618487700063, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.984 + }, + { + "t": 44.94621111699962, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.703 + }, + { + "t": 44.94622142300068, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 39.71, + "ram_mib": 9.773 + }, + { + "t": 45.44553640600134, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 3.35, + "ram_mib": 7.59 + }, + { + "t": 45.44555821099857, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 3.34, + "ram_mib": 7.703 + }, + { + "t": 45.44556457499857, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 34.68, + "ram_mib": 8.762 + }, + { + "t": 45.94622224399791, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 3.35, + "ram_mib": 7.59 + }, + { + "t": 45.9462528619988, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 3.34, + "ram_mib": 7.703 + }, + { + "t": 45.946264801001234, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 34.68, + "ram_mib": 8.762 + }, + { + "t": 46.446060758000385, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.727 + }, + { + "t": 46.44609937099813, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.703 + }, + { + "t": 46.446119898999314, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.26, + "ram_mib": 9.418 + }, + { + "t": 46.94614868899953, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.727 + }, + { + "t": 46.94616714899894, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.703 + }, + { + "t": 46.94617344799917, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.26, + "ram_mib": 9.418 + }, + { + "t": 47.44585940599791, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.5 + }, + { + "t": 47.44587947900072, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.199 + }, + { + "t": 47.44588664799812, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.5, + "ram_mib": 8.746 + }, + { + "t": 47.94543402999989, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.5 + }, + { + "t": 47.945452839998325, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.199 + }, + { + "t": 47.945459755999764, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.5, + "ram_mib": 8.746 + }, + { + "t": 48.44627602299806, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.727 + }, + { + "t": 48.4463143139983, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.945 + }, + { + "t": 48.44632979599919, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.39, + "ram_mib": 8.988 + }, + { + "t": 48.94568482400064, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.727 + }, + { + "t": 48.945704671001295, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.945 + }, + { + "t": 48.94571227199776, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.39, + "ram_mib": 8.988 + }, + { + "t": 49.44626390800113, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.504 + }, + { + "t": 49.4462908179994, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.699 + }, + { + "t": 49.446300173000054, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 46.03, + "ram_mib": 9.008 + }, + { + "t": 49.94559131300048, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.504 + }, + { + "t": 49.945619676000206, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.699 + }, + { + "t": 49.945629736997944, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 46.03, + "ram_mib": 9.008 + }, + { + "t": 50.44555369099908, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 3.78, + "ram_mib": 7.5 + }, + { + "t": 50.44558151000092, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 3.1, + "ram_mib": 7.699 + }, + { + "t": 50.44559650700103, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 37.89, + "ram_mib": 9.121 + }, + { + "t": 50.94628361499781, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 3.78, + "ram_mib": 7.5 + }, + { + "t": 50.94633359300133, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 3.1, + "ram_mib": 7.699 + }, + { + "t": 50.94636333900053, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 37.89, + "ram_mib": 9.121 + }, + { + "t": 51.445359550998546, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.727 + }, + { + "t": 51.44539247699868, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.723 + }, + { + "t": 51.445407567000075, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 46.94, + "ram_mib": 9.141 + }, + { + "t": 51.94605668100121, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.727 + }, + { + "t": 51.946084574999986, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.723 + }, + { + "t": 51.946096157000284, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 46.94, + "ram_mib": 9.141 + }, + { + "t": 52.44545975499932, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.75 + }, + { + "t": 52.445487978999154, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.949 + }, + { + "t": 52.445502679998754, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.44, + "ram_mib": 9.406 + }, + { + "t": 52.94612494000103, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.75 + }, + { + "t": 52.946146614998725, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.949 + }, + { + "t": 52.94615282800078, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.44, + "ram_mib": 9.406 + }, + { + "t": 53.4461338680012, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.723 + }, + { + "t": 53.44615415699809, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.949 + }, + { + "t": 53.44616080799824, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.5, + "ram_mib": 9.16 + }, + { + "t": 53.945846988000994, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.723 + }, + { + "t": 53.94599867099896, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.949 + }, + { + "t": 53.94602120899799, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.5, + "ram_mib": 9.16 + }, + { + "t": 54.44608328100003, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.734 + }, + { + "t": 54.446143896999274, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.699 + }, + { + "t": 54.446176885998284, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 43.2, + "ram_mib": 9.102 + }, + { + "t": 54.94648870899982, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.734 + }, + { + "t": 54.94651964899822, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.699 + }, + { + "t": 54.946531883000716, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 43.2, + "ram_mib": 9.102 + }, + { + "t": 55.44631694299824, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 2.74, + "ram_mib": 7.77 + }, + { + "t": 55.44635361299879, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.34, + "ram_mib": 7.984 + }, + { + "t": 55.44637250099913, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 37.57, + "ram_mib": 9.32 + }, + { + "t": 55.945531171000766, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 2.74, + "ram_mib": 7.77 + }, + { + "t": 55.94556806399851, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.34, + "ram_mib": 7.984 + }, + { + "t": 55.94558561799931, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 37.57, + "ram_mib": 9.32 + }, + { + "t": 56.44570609400034, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.727 + }, + { + "t": 56.44575310499931, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.949 + }, + { + "t": 56.44578097599879, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.9, + "ram_mib": 9.469 + }, + { + "t": 56.94626766800138, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.727 + }, + { + "t": 56.94629599399923, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.949 + }, + { + "t": 56.94631115499942, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.9, + "ram_mib": 9.469 + }, + { + "t": 57.445776264001324, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.504 + }, + { + "t": 57.445805897001264, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.699 + }, + { + "t": 57.44581620499957, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.37, + "ram_mib": 9.578 + }, + { + "t": 57.946218285000214, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.504 + }, + { + "t": 57.94624506800028, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.699 + }, + { + "t": 57.946256098999584, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.37, + "ram_mib": 9.578 + }, + { + "t": 58.44619041799888, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.73 + }, + { + "t": 58.44621647399981, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.699 + }, + { + "t": 58.446230018998904, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.65, + "ram_mib": 9.676 + }, + { + "t": 58.94580339000095, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.73 + }, + { + "t": 58.9458299479993, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.699 + }, + { + "t": 58.945839765998244, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.65, + "ram_mib": 9.676 + }, + { + "t": 59.44558057099857, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.242 + }, + { + "t": 59.445612204999634, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.699 + }, + { + "t": 59.44562894200135, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.45, + "ram_mib": 10.26 + }, + { + "t": 59.946131216998765, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.242 + }, + { + "t": 59.946163388998684, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.699 + }, + { + "t": 59.94617888499852, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 48.45, + "ram_mib": 10.26 + }, + { + "t": 60.446335766999255, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 2.5, + "ram_mib": 7.727 + }, + { + "t": 60.446384553000826, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.52, + "ram_mib": 7.926 + }, + { + "t": 60.44641416800005, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 36.74, + "ram_mib": 10.28 + }, + { + "t": 60.945784202998766, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 2.5, + "ram_mib": 7.727 + }, + { + "t": 60.945804382998176, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 2.52, + "ram_mib": 7.926 + }, + { + "t": 60.94581135599947, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 36.74, + "ram_mib": 10.28 + }, + { + "t": 61.4458898619996, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.75 + }, + { + "t": 61.44590931199855, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.699 + }, + { + "t": 61.44591654299802, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 49.69, + "ram_mib": 9.828 + }, + { + "t": 61.94633954899837, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.75 + }, + { + "t": 61.94638763599869, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.699 + }, + { + "t": 61.94641654500083, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 49.69, + "ram_mib": 9.828 + }, + { + "t": 62.445902652998484, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.5 + }, + { + "t": 62.44593402800092, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.699 + }, + { + "t": 62.44594822399813, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 49.16, + "ram_mib": 10.07 + }, + { + "t": 62.94614423799794, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.5 + }, + { + "t": 62.94616269499966, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.699 + }, + { + "t": 62.94616989000133, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 49.16, + "ram_mib": 10.07 + }, + { + "t": 63.446086072999606, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.473 + }, + { + "t": 63.44611190900105, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.68 + }, + { + "t": 63.44612181800039, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 49.19, + "ram_mib": 9.758 + }, + { + "t": 63.946238075997826, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.473 + }, + { + "t": 63.946265145001234, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.68 + }, + { + "t": 63.94627633399796, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 49.19, + "ram_mib": 9.758 + }, + { + "t": 64.44598123600008, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.473 + }, + { + "t": 64.44600848299888, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.676 + }, + { + "t": 64.44602354000017, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.58, + "ram_mib": 10.16 + }, + { + "t": 64.94630758899802, + "container": "f54086b78f97ae2f468ba9f021fe5407d0ec48c35d77d4a51764e257507e30c2", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.473 + }, + { + "t": 64.94633610099845, + "container": "96929af72d095337cac46cfe1eaa013fd98de405f34215a75cc4c9b733cf8c2e", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.676 + }, + { + "t": 64.94634965200021, + "container": "e9c1b6fca67129801fb354d69774ea66822a46121ed5ef7cf3cd3c607d7f215f", + "service": "worker", + "cpu_percent": 47.58, + "ram_mib": 10.16 + } + ], + "sdk_diagnostic_audit": { + "source": "Prometheus instant queries at trial start/end, restricted to trial container hostnames", + "warning_error_start": 4.0, + "warning_error_end": 4.0, + "warning_error_delta": 0.0 + } + }, + { + "variant": "B", + "repetition": 2, + "completed_utc": "2026-11-16T14:58:48.046719+00:00", + "successful_uploads": 1000, + "http_errors": 0, + "http_seconds": 13.256423490001907, + "pipeline_seconds": 65.35996290999901, + "collector_window_seconds": 68.4582210539993, + "rps": 75.43512778949822, + "latency_mean_ms": 52.560866223011544, + "latency_p50_ms": 30.799271997238975, + "latency_p99_ms": 288.30229899904225, + "latencies_ms": [ + 14.958470001147361, + 11.462384998594644, + 9.818742997595109, + 10.069047999422764, + 11.401054998714244, + 13.269187002151739, + 10.513068998989183, + 10.645752998243552, + 9.247911999409553, + 36.863265002466505, + 10.318553999240976, + 9.278678000555374, + 9.511526997812325, + 10.74029600204085, + 9.197119001328247, + 49.967188002483454, + 16.762024999479763, + 13.683310000487836, + 8.291524998639943, + 8.770379001362016, + 65.64527200316661, + 95.87157900023158, + 25.045053000212647, + 77.92433600116055, + 15.961929002514808, + 17.874036999273812, + 9.198865998769179, + 61.20755700248992, + 19.414475998928538, + 279.7827549984504, + 102.93274400100927, + 102.81542200027616, + 23.456750001059845, + 76.90417499907198, + 26.05204999781563, + 70.52121200104011, + 21.071921997645404, + 82.71374999822001, + 34.356111002125544, + 62.55830499867443, + 32.80855199773214, + 70.87809000222478, + 96.22861699972418, + 26.627657000062754, + 94.73740300018108, + 26.911896999081364, + 50.287137000850635, + 24.514893000741722, + 78.37173400184838, + 30.854169999656733, + 67.55441800123663, + 100.10569200312602, + 96.29497000059928, + 22.820752001280198, + 73.87071599805495, + 81.93439599926933, + 22.55411800069851, + 14.599309000914218, + 14.94799600186525, + 69.72341700020479, + 23.104838997824118, + 16.936404001171468, + 63.6575009993976, + 29.011071001150412, + 63.71895600022981, + 12.669419997109799, + 10.44424200154026, + 9.455235998757416, + 10.16385099865147, + 57.55263399987598, + 10.235982001177035, + 8.77676899835933, + 10.575612002867274, + 11.819769999419805, + 55.20642700139433, + 9.288258999731624, + 9.212157998263137, + 10.757451997051248, + 374.8296650010161, + 201.56276899797376, + 105.5298959981883, + 97.65771900129039, + 26.580182999168755, + 70.00547499774257, + 106.54904700277257, + 94.36005899988231, + 102.24012900289381, + 98.78407900032471, + 22.13589600069099, + 72.55353199798265, + 19.915761997253867, + 36.02128499915125, + 57.97630699817091, + 23.163734000263503, + 68.5808670023107, + 14.762965998670552, + 11.707411002134904, + 9.30300999971223, + 59.38936800157535, + 10.982589999912307, + 38.44727099931333, + 24.678467998455744, + 31.531391003227327, + 49.1771199995128, + 51.64146699826233, + 24.312462002853863, + 10.852594001335092, + 63.6092090026068, + 23.092494000593433, + 79.11306800087914, + 22.744895999494474, + 16.056069998739986, + 60.21885700101848, + 25.972244002332445, + 75.67471699803718, + 29.005821997998282, + 63.240130999474786, + 90.9978140007297, + 13.721122002607444, + 199.28262800021912, + 105.7299519998196, + 93.99427699827356, + 24.066410998784704, + 14.946218001568923, + 66.15375900219078, + 95.31680399959441, + 27.659709001454758, + 75.49593400108279, + 27.561086000787327, + 69.70837399785523, + 19.69511000061175, + 83.23114900122164, + 18.6840630012739, + 78.31342099962058, + 24.907088998588733, + 75.65419599995948, + 23.76005900077871, + 74.7564479970606, + 30.623431997810258, + 69.97044399759034, + 23.797462999937125, + 77.35149399741204, + 26.239639999403153, + 75.48883900017245, + 18.405041002552025, + 78.57259400043404, + 23.463268000341486, + 13.53740099875722, + 63.19472900213441, + 22.469841998827178, + 80.38331100033247, + 19.60089199928916, + 81.39788300104556, + 22.63263500208268, + 74.77005900000222, + 24.27710000119987, + 152.0134689999395, + 21.797446999698877, + 19.635182001366047, + 80.9785129968077, + 120.14679300045827, + 182.74362200099858, + 28.65078899776563, + 72.55944300050032, + 100.00998000032268, + 20.981136000045808, + 72.7299159989343, + 22.711522000463447, + 83.49395600089338, + 21.581460001470987, + 78.99181000175304, + 23.50120200208039, + 77.03863400092814, + 96.16404800181044, + 28.185113002109574, + 74.72014800077886, + 26.588931999867782, + 74.91637099883519, + 94.72478799943929, + 25.63547400131938, + 75.51028899979428, + 23.877448998973705, + 75.61102800173103, + 103.99349499857635, + 99.7724750013731, + 98.05563000190887, + 97.04642699944088, + 18.363419996603625, + 14.270862000557827, + 68.25322199802031, + 25.75838700067834, + 11.913263002497843, + 63.332001998787746, + 25.111038001341512, + 78.83154799856129, + 101.83076400062419, + 36.1325140002009, + 57.09079799999017, + 22.737662002327852, + 17.121504999522585, + 61.88462199861533, + 32.06877699994948, + 161.9627740001306, + 301.9485029981297, + 22.399641002266435, + 79.31291700151633, + 23.19322500261478, + 75.5096360007883, + 21.89536399964709, + 81.98137900035363, + 20.943072999216383, + 79.65947600314394, + 18.529367000155617, + 9.626789000321878, + 70.25237200286938, + 21.472487002029084, + 79.88079300048412, + 19.91627000097651, + 76.47484799963422, + 23.13521900214255, + 74.67916099994909, + 21.89268399888533, + 17.78591500260518, + 65.10646300012013, + 24.727691001316998, + 11.391455998818856, + 61.41406200185884, + 23.81752799919923, + 77.20777199938311, + 18.40336299937917, + 11.93507099742419, + 72.9042830025719, + 21.155661001103, + 73.21620099901338, + 24.051881999184843, + 81.61171399842715, + 27.988543999526883, + 16.211088001000462, + 46.986793997348286, + 12.328081000305247, + 9.198215000651544, + 10.051219000160927, + 10.145676002139226, + 60.93914300072356, + 23.99616600087029, + 177.41807299898937, + 198.1499649991747, + 107.17486100111273, + 97.39039999840315, + 21.035765999840805, + 14.725975997862406, + 11.565622000489384, + 10.826093999639852, + 9.888811997370794, + 11.583048999455059, + 10.763029000372626, + 11.128988000564277, + 9.941686999809463, + 41.47222699975828, + 15.60149599754368, + 9.499724001216237, + 10.114063999935752, + 9.460647001105826, + 10.002279999753227, + 8.472887999232626, + 7.694359999732114, + 43.448819997138344, + 15.89806599804433, + 10.09401400006027, + 171.07733500233735, + 20.120150002185255, + 18.590309999126475, + 69.74726699991152, + 15.721774001576705, + 16.648840999550885, + 67.97288999950979, + 20.57147799860104, + 177.54434800008312, + 105.2075670013437, + 99.65590700085158, + 23.539900001196656, + 79.1775530015002, + 23.471270000300137, + 78.48635899790679, + 93.85018500324804, + 23.546692998934304, + 82.8804240009049, + 25.803068001550855, + 70.96591099980287, + 98.19847000107984, + 31.062883001141017, + 68.00513900088845, + 28.623432997846976, + 97.64819400152192, + 72.95689499733271, + 23.151086003053933, + 81.99211600003764, + 31.283940999855986, + 68.80423400070868, + 100.60300700206426, + 95.33966399976634, + 30.436926001129905, + 65.52705000285641, + 81.6211450000992, + 20.7254480010306, + 17.981830998905934, + 81.26799499950721, + 22.78211999873747, + 80.37235099982354, + 30.078522002440877, + 63.65182800072944, + 12.267879999853903, + 11.01808100065682, + 10.214527999778511, + 8.180982997146202, + 58.861065001110546, + 9.60293800017098, + 9.312311001849594, + 9.346884999104077, + 9.613330999854952, + 9.058207997441059, + 52.43451699789148, + 10.424531003081938, + 9.376648002216825, + 383.24111299880315, + 204.37042499906966, + 105.1273900011438, + 88.775149997673, + 22.352708998369053, + 83.09960900078295, + 101.76014200260397, + 95.58042000207934, + 103.14858099809499, + 96.02721700139227, + 22.489694001706084, + 75.11255799909122, + 20.43010399938794, + 16.287382000882644, + 76.72540000203298, + 21.108762997755548, + 70.49424199794885, + 15.750791000755271, + 12.533049000921892, + 15.58388099874719, + 51.30234100215603, + 12.644870999793056, + 37.70659400106524, + 50.02390400113654, + 21.134898001037072, + 85.84524700199836, + 20.629286002076697, + 78.48205000118469, + 101.00455900101224, + 20.061434999661287, + 17.15761200102861, + 60.5910539998149, + 19.70774399887887, + 81.87893699869164, + 30.686096000863472, + 67.66340799731552, + 14.672939003503416, + 9.242377000191482, + 73.14958999995724, + 98.61074699801975, + 106.55658199902973, + 104.71222200067132, + 93.18594199794461, + 26.030148001154885, + 76.81484100248781, + 26.244481003232067, + 71.50033699872438, + 98.53067100266344, + 28.836759000114398, + 72.00746200032881, + 24.942983000073582, + 78.76506400134531, + 18.567806997452863, + 75.70710000072722, + 26.19530400261283, + 74.18409700039774, + 21.983555998303927, + 76.50435499817831, + 30.45736800049781, + 73.37546000053408, + 18.754628999886336, + 82.26710999952047, + 93.24303100220277, + 21.373198000219418, + 80.72855100181187, + 23.7727649982844, + 13.98803499978385, + 60.12007299796096, + 24.815972999931546, + 76.75168299829238, + 24.133290000463603, + 80.80215599693474, + 24.18774800025858, + 72.36784700216958, + 24.950950999482302, + 72.87033800093923, + 101.60126999835484, + 79.54799499930232, + 226.27300200110767, + 96.79693599900929, + 20.74293999976362, + 78.3231799978239, + 22.978747998422477, + 81.31758099989383, + 21.23077599753742, + 70.1749319996452, + 23.01605100001325, + 81.88612800222472, + 22.14988499690662, + 15.484375999221811, + 65.25877500098431, + 25.271544000133872, + 73.36806000239449, + 97.27801100234501, + 23.66242900097859, + 78.69252300224616, + 25.26869400026044, + 77.46699099880061, + 20.557694999297382, + 76.12599899948691, + 25.69772499919054, + 75.72923900079331, + 23.09620899904985, + 77.22097299847519, + 100.53254400190781, + 103.60713800037047, + 93.64518800066435, + 99.59307000099216, + 21.377597000537207, + 80.56099999885191, + 22.27578000020003, + 74.83457399939653, + 28.458665001380723, + 73.96665899796062, + 97.96703699976206, + 36.194992000673665, + 62.41799599956721, + 26.679927999794018, + 75.83380099822534, + 24.625060003018007, + 473.0594620014017, + 20.5135460018937, + 77.84332299706875, + 22.999364999122918, + 16.354089999367716, + 66.14000100307749, + 24.380213999393163, + 74.02766499944846, + 21.99297100014519, + 80.72608100337675, + 15.119259998755297, + 11.590211001021089, + 68.78003599922522, + 21.90977899954305, + 79.55062800101587, + 21.18157899894868, + 13.245372003439115, + 66.23420499818167, + 22.2122169980139, + 78.3936209991225, + 25.949412000045413, + 75.37087499804329, + 95.60520400191308, + 22.76147399970796, + 79.3826339977386, + 18.504363997635664, + 12.999326001590816, + 65.19501399816363, + 24.991671001771465, + 15.1457419997314, + 58.54543500026921, + 23.868876000051387, + 84.43422200070927, + 27.219469000556273, + 61.8502309989708, + 9.359519001009176, + 9.942867000063416, + 10.155075000511715, + 9.654127999965567, + 9.673062999354443, + 60.96003999846289, + 21.79070199781563, + 172.8907260003325, + 100.65675999794621, + 104.6581390000938, + 193.735327997274, + 20.920128998113796, + 11.895706000359496, + 72.1510869989288, + 13.271003997942898, + 9.445501000300283, + 9.07634000031976, + 8.664475997647969, + 9.578110999427736, + 8.206020000216085, + 34.283115001016995, + 13.73823399990215, + 9.718892000819324, + 11.141611001221463, + 8.795879999524914, + 11.205899998458335, + 10.701915998652112, + 9.255646997189615, + 13.957029997982318, + 8.605770002759527, + 9.219357998517808, + 8.985022002889309, + 25.612870002078125, + 9.025115999975242, + 9.587207998265512, + 10.351185999752488, + 9.745512998051709, + 60.37442600063514, + 16.76196600237745, + 99.42506800143747, + 8.470838998619001, + 9.285272997658467, + 78.96803299809108, + 23.728890999336727, + 13.410227998974733, + 43.150606001290726, + 30.89508300035959, + 16.56885300326394, + 11.22203900013119, + 63.22141500277212, + 18.61712199752219, + 79.65362499817275, + 297.3030100001779, + 22.137813997687772, + 83.52165800170042, + 22.827520999271655, + 78.18497699918225, + 22.725611997884698, + 77.85247400170192, + 98.45452199806459, + 35.3168369983905, + 65.96805499793845, + 95.8398609982396, + 32.47554499830585, + 70.77958499939996, + 119.44557899914798, + 28.900420998979826, + 49.828253002488054, + 25.662930001999484, + 78.1594270010828, + 31.384633999550715, + 68.6780190007994, + 95.45553600037238, + 30.95325799949933, + 69.36147200030973, + 30.959188003180316, + 64.03576299999258, + 82.7709170007438, + 21.591521999653196, + 15.206088002742035, + 88.49755100163748, + 19.138308001856785, + 79.05252400087193, + 32.03985299842316, + 60.15011899944511, + 10.724515002948465, + 10.095572997670388, + 9.748059997946257, + 9.076293001271551, + 58.7224420014536, + 10.055937000288395, + 9.881123998638941, + 9.993511001084698, + 8.575650997954654, + 10.322137000912335, + 53.07053599972278, + 10.916381001152331, + 9.611761000996921, + 483.1849840011273, + 199.63523799742688, + 101.63209600068512, + 22.589519001485314, + 78.5163869986718, + 100.83734299769276, + 96.44846599985613, + 16.6218000013032, + 88.84291999856941, + 97.67031800220138, + 21.84785699864733, + 75.48865300122998, + 21.66540699909092, + 83.00750499984133, + 21.75385699956678, + 75.5045589976362, + 17.261390999919968, + 11.973412001680117, + 63.15280000126222, + 9.443887996894773, + 10.408827001811005, + 35.68631900270702, + 22.365387001627823, + 31.73354300088249, + 48.85308899974916, + 52.613152998674195, + 21.433401998365298, + 72.2811539999384, + 22.299923999526072, + 81.3366690017574, + 20.271041001251433, + 14.659946999017848, + 61.61156199959805, + 20.632854000723455, + 15.10122200124897, + 68.02352399972733, + 29.745510997599922, + 66.63299600040773, + 17.325447999610333, + 80.06045000001905, + 101.97876799793448, + 202.25779699831037, + 101.28394799903617, + 26.94340900052339, + 74.80922000104329, + 28.358874002151424, + 71.91891200272948, + 29.982588999700965, + 69.52565800020238, + 27.457078998850193, + 69.30821199784987, + 22.749929001292912, + 82.44428700345452, + 16.26144400142948, + 80.42704699983005, + 21.8841429996246, + 16.241925997746876, + 63.68361100248876, + 98.14547600035439, + 26.367271999333752, + 71.54407499911031, + 23.118725999665912, + 80.33298300142633, + 25.96041799915838, + 73.84985499811592, + 21.16951299831271, + 78.29907600171282, + 21.813333998579765, + 14.006076999066863, + 61.47915900146472, + 24.163721998775145, + 78.21559700096259, + 20.8081239979947, + 18.237682998005766, + 62.865637002687436, + 24.050780997640686, + 73.25607599705108, + 24.61195000068983, + 72.88424100261182, + 101.48796700013918, + 16.65058499929728, + 80.41185899855918, + 123.06599200019264, + 85.60341200063704, + 98.8409670026158, + 18.583781999041094, + 80.59023299938417, + 22.863897000206634, + 75.55763100026525, + 21.99721299984958, + 76.0112610005308, + 22.92478100207518, + 80.63480700002401, + 18.819451001036214, + 80.87265499852947, + 25.968899000872625, + 76.88210099877324, + 24.747324001509696, + 10.575488999165827, + 62.12536599923624, + 95.04218799702358, + 22.513986001285957, + 82.72101699913037, + 19.62515899867867, + 72.93716200001654, + 24.47486100209062, + 79.71319599892013, + 25.434667000808986, + 77.00253599978168, + 97.54869799871813, + 103.55981400061864, + 95.63913700185367, + 99.21168399887392, + 19.810248999419855, + 83.31533499949728, + 97.51100799985579, + 104.77204100243398, + 104.42295000029844, + 32.24232899810886, + 58.859808999841334, + 24.558713001169963, + 17.28315899890731, + 61.41737999860197, + 22.75728899985552, + 83.13160599936964, + 92.02400199865224, + 297.10006400273414, + 24.153259000740945, + 76.90705799905118, + 20.822896000026958, + 81.40317399738706, + 23.611587999766925, + 79.69053400302073, + 94.36307899886742, + 17.16917299927445, + 14.170741000270937, + 70.65817300099297, + 21.324814999388764, + 79.90034500107868, + 21.58989200324868, + 73.78583099853131, + 23.277568998310016, + 79.79354599956423, + 22.690049998345785, + 15.974900998116937, + 63.398271002370166, + 95.44402400206309, + 20.148548999713967, + 80.01853799942182, + 21.12506800040137, + 12.665509999351343, + 67.02988499819185, + 24.662936997629004, + 75.97152899688808, + 24.28738699745736, + 81.9211100024404, + 25.380866001796676, + 15.629380002792459, + 50.11454799750936, + 11.098282000602921, + 10.644707999745151, + 9.943846001988277, + 11.050248001993168, + 63.36631899830536, + 197.94904299851623, + 97.6343620022817, + 105.70691299653845, + 100.85504800008493, + 98.691538998537, + 18.172391999542015, + 76.09451600001194, + 15.726726000139024, + 9.520971001620637, + 14.223974998458289, + 9.939879000739893, + 11.688242000673199, + 9.675755998614477, + 10.155012998438906, + 9.10332599960384, + 10.243992001051083, + 9.687488000054145, + 8.250331000454025, + 47.48645500148996, + 9.331230001407675, + 8.569079996959772, + 8.851009002682986, + 9.625530998164322, + 55.20110500219744, + 19.009872998140054, + 14.026393997482955, + 84.476216998155, + 13.931918998423498, + 95.2633999986574, + 92.40653800225118, + 17.864528999780305, + 17.73609799784026, + 67.84789899757016, + 18.815415998687968, + 79.45519100030651, + 299.43844500303385, + 21.411510999314487, + 82.10523500019917, + 22.637095000391128, + 79.86353800151846, + 22.5200759996369, + 75.90860499840346, + 100.9146869982942, + 35.415600999840535, + 57.57431999882101, + 35.28709300007904, + 71.12748999861651, + 100.54224999839789, + 24.495445999491494, + 97.04784600035055, + 27.17014700101572, + 48.080870998091996, + 27.62013599931379, + 73.45469000210869, + 35.017837002669694, + 66.335651998088, + 29.122858999471646, + 74.40423499792814, + 26.346432998252567, + 68.65659300092375, + 27.30798400079948, + 67.95146899821702, + 96.55648699845187, + 16.191457001696108, + 13.499266002327204, + 79.88061200012453, + 20.630297000025166, + 76.01647599949501, + 30.475884999759728, + 65.04863699956331, + 11.301635997369885, + 9.309467001003213, + 9.457609998207772, + 10.414676999062067, + 57.94567100019776, + 10.930376000032993, + 10.769845001050271, + 9.79128499966464, + 10.686354002245935, + 57.13368600117974, + 9.955120000086026, + 8.639547999337083, + 288.30229899904225, + 199.7471360009513, + 197.2329370000807, + 25.050315998669248, + 80.70623200183036, + 23.41013099794509, + 76.93901000311598, + 99.99179699661909, + 96.4217689979705, + 104.84891700252774, + 19.334723001520615, + 79.94892100032303, + 20.88424700195901, + 72.00487999944016, + 21.185178000450833, + 33.31911600253079, + 53.21954400278628, + 23.094779000530252, + 72.68069999918225, + 15.780476001964416, + 11.45999800064601, + 9.894006998365512, + 58.85124699852895, + 12.515596998127876, + 42.02127600001404, + 52.87859099917114, + 47.60004999843659, + 51.59179299880634, + 21.0731039987877, + 13.12277499891934, + 65.16455599921755, + 25.209729999914998, + 72.3474320002424, + 21.087638000608422, + 17.44673699795385, + 62.30099299864378, + 20.262774000002537, + 83.63175699923886, + 26.171835001150612, + 19.261821002146462, + 50.3953530023864, + 95.91147899845964, + 13.060426997981267, + 89.24027600005502, + 108.35660300290328, + 100.7890140026575, + 94.88672299994505, + 26.261607999913394, + 75.0307000016619, + 27.735286003007786, + 70.22363400028553, + 29.8842539996258, + 72.53763400149182, + 29.646146998857148, + 67.26831199921435, + 21.987715001159813, + 81.03013800064218, + 16.46980999794323, + 81.43980999739142, + 22.790437000367092, + 16.34783700137632, + 61.06642200029455, + 22.924528002477018, + 75.43665499906638, + 26.294725998013746, + 18.515621002734406, + 56.328193000808824, + 21.6479779992369, + 76.91122300093411, + 27.99508500174852, + 72.11562199881882, + 19.772766001551645, + 80.52168399808579, + 22.283338999841362, + 13.94127700041281, + 60.8505639975192, + 21.37161899736384, + 80.96236500205123, + 20.84001700131921, + 81.55777999854763, + 22.919595998246223, + 77.38460900145583, + 22.188711001945194, + 70.44523700096761, + 82.98032200036687, + 22.177680002641864, + 17.38981200105627, + 201.83997999993153, + 83.38332099810941, + 100.77478299717768, + 17.445700003008824, + 11.96765900022001, + 68.530930999259, + 23.830314999941038, + 77.70071599952644, + 27.774300000601215, + 69.8856999988493, + 23.42164999936358, + 78.06408599935821, + 23.823471001378493, + 75.23435199982487, + 21.82856599756633, + 14.74975299788639, + 65.27613599973847, + 99.11809699769947, + 26.22277699992992, + 75.01802199840313, + 23.393491999740945, + 74.70303899754072, + 22.05460200275411, + 75.89956399897346, + 29.13364399864804, + 75.04686800166382, + 22.770023002522066, + 77.82782600042992, + 97.5546800000302, + 103.74917999797617, + 97.63468399978592, + 97.66601999945124, + 18.673468999622855, + 13.598474997706944, + 69.86660199981998, + 24.135499999829335, + 70.60674899912556, + 30.799271997238975, + 76.32758100226056, + 100.41398199973628, + 34.32059099941398, + 61.21964300109539, + 20.1571099969442, + 79.62791900354205, + 24.55271799772163, + 81.54912700047134, + 389.2849819967523, + 22.60981899962644, + 79.22783000321942, + 23.659876998863183, + 78.66596800158732, + 24.207059002947062, + 78.90865499939537, + 21.004365000408143, + 77.57678399866563, + 19.290051997813862, + 76.27967899679788, + 22.590781998587772, + 78.47164700069698, + 23.14808200026164, + 77.14114999907906, + 26.800850999279646, + 77.1576629995252, + 24.53275200241478, + 73.38352000078885, + 26.535971999692265, + 70.0871190019825, + 23.55317600085982, + 78.28175499889767, + 22.66264100035187, + 12.918365999212256, + 10.471187000803184, + 16.8088539976452, + 40.68805300266831, + 21.299858002748806, + 76.64895199923194, + 24.57712799878209, + 81.18327700140071, + 23.73461900060647, + 16.10807399993064, + 48.5847689997172, + 10.539080001763068, + 9.57151500188047, + 10.265888999128947, + 10.45944300130941, + 63.11696600096184, + 22.10703899982036, + 179.01786700167577, + 299.57721199752996, + 105.10750499815913 + ], + "resources": { + "api": { + "cpu_percent_mean": 13.113076923076923, + "ram_mib_mean": 17.355753846153846, + "ram_mib_max": 21.07, + "samples": 260, + "cpu_seconds_per_job_estimate": 0.008570702213282717 + }, + "worker": { + "cpu_percent_mean": 39.69984615384615, + "ram_mib_mean": 7.807538461538462, + "ram_mib_max": 10.05, + "samples": 130, + "cpu_seconds_per_job_estimate": 0.025947804721480516 + } + }, + "collector_deltas": { + "otelcol_receiver_accepted_spans": 28220.0, + "otelcol_exporter_sent_spans": 28219.0, + "otelcol_receiver_refused_spans": 0.0, + "otelcol_exporter_send_failed_spans": 0.0, + "otelcol_receiver_accepted_log_records": 3000.0, + "otelcol_receiver_accepted_metric_points": 686.0 + }, + "ingest_spans_per_second": 412.22222204313914, + "tempo_spans_per_second": 412.20761459374, + "trace_retention": 0.9999645641389086, + "stats_samples": [ + { + "t": 0.41505978200075333, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.38, + "ram_mib": 7.949 + }, + { + "t": 0.4151169500000833, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.36, + "ram_mib": 7.551 + }, + { + "t": 0.41515021300074295, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 0.28, + "ram_mib": 5.004 + }, + { + "t": 0.9163147149993165, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.38, + "ram_mib": 7.949 + }, + { + "t": 0.9166738649983017, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.36, + "ram_mib": 7.551 + }, + { + "t": 0.9167408879984578, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 0.28, + "ram_mib": 5.004 + }, + { + "t": 1.4156530979998934, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 36.78, + "ram_mib": 8.969 + }, + { + "t": 1.4157561319989327, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 37.64, + "ram_mib": 9.508 + }, + { + "t": 1.4158132419979665, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 17.46, + "ram_mib": 6.293 + }, + { + "t": 1.91569365399846, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 36.78, + "ram_mib": 8.969 + }, + { + "t": 1.9157634000002872, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 37.64, + "ram_mib": 9.508 + }, + { + "t": 1.9158039419999113, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 17.46, + "ram_mib": 6.293 + }, + { + "t": 2.415651210998476, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 30.27, + "ram_mib": 9.59 + }, + { + "t": 2.4156942289992003, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 30.53, + "ram_mib": 9.352 + }, + { + "t": 2.415717070998653, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 20.07, + "ram_mib": 6.02 + }, + { + "t": 2.915125162999175, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 30.27, + "ram_mib": 9.59 + }, + { + "t": 2.9151532600008068, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 30.53, + "ram_mib": 9.352 + }, + { + "t": 2.9151682009978686, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 20.07, + "ram_mib": 6.02 + }, + { + "t": 3.4156471280002734, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 35.02, + "ram_mib": 9.445 + }, + { + "t": 3.4157468720004545, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 34.26, + "ram_mib": 8.555 + }, + { + "t": 3.415776501999062, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 25.49, + "ram_mib": 5.988 + }, + { + "t": 3.9148109999987355, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 35.02, + "ram_mib": 9.445 + }, + { + "t": 3.914849240998592, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 34.26, + "ram_mib": 8.555 + }, + { + "t": 3.9148706989981292, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 25.49, + "ram_mib": 5.988 + }, + { + "t": 4.4162883770004555, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 16.51, + "ram_mib": 9.953 + }, + { + "t": 4.41637155799981, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 16.87, + "ram_mib": 8.93 + }, + { + "t": 4.416423614999076, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 9.95, + "ram_mib": 5.758 + }, + { + "t": 4.91579531699972, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 16.51, + "ram_mib": 9.953 + }, + { + "t": 4.915845441999409, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 16.87, + "ram_mib": 8.93 + }, + { + "t": 4.915869092998037, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 9.95, + "ram_mib": 5.758 + }, + { + "t": 5.415077931000269, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 29.67, + "ram_mib": 9.383 + }, + { + "t": 5.415096214997902, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 29.59, + "ram_mib": 9.637 + }, + { + "t": 5.415102365997882, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 17.06, + "ram_mib": 5.84 + }, + { + "t": 5.916008776999661, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 29.67, + "ram_mib": 9.383 + }, + { + "t": 5.91608600499967, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 29.59, + "ram_mib": 9.637 + }, + { + "t": 5.916130816000077, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 17.06, + "ram_mib": 5.84 + }, + { + "t": 6.415854366998246, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 29.48, + "ram_mib": 9.793 + }, + { + "t": 6.415898612998717, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 35.27, + "ram_mib": 10.09 + }, + { + "t": 6.415915287998359, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 20.36, + "ram_mib": 5.871 + }, + { + "t": 6.915709484997933, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 29.48, + "ram_mib": 9.793 + }, + { + "t": 6.915788944999804, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 35.27, + "ram_mib": 10.09 + }, + { + "t": 6.915836627998942, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 20.36, + "ram_mib": 5.871 + }, + { + "t": 7.41564262799875, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 36.3, + "ram_mib": 9.961 + }, + { + "t": 7.415671623999515, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 35.89, + "ram_mib": 10.11 + }, + { + "t": 7.41568289299903, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 23.36, + "ram_mib": 5.219 + }, + { + "t": 7.915769970000838, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 36.3, + "ram_mib": 9.961 + }, + { + "t": 7.9158402729990485, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 35.89, + "ram_mib": 10.11 + }, + { + "t": 7.915878511998017, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 23.36, + "ram_mib": 5.219 + }, + { + "t": 8.415791879000608, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 28.99, + "ram_mib": 10.59 + }, + { + "t": 8.415841924997949, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 29.38, + "ram_mib": 10.19 + }, + { + "t": 8.415870449000067, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 21.2, + "ram_mib": 6.43 + }, + { + "t": 8.915949901998829, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 28.99, + "ram_mib": 10.59 + }, + { + "t": 8.916006204999576, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 29.38, + "ram_mib": 10.19 + }, + { + "t": 8.916040030999284, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 21.2, + "ram_mib": 6.43 + }, + { + "t": 9.415316851998796, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 28.5, + "ram_mib": 9.945 + }, + { + "t": 9.415400689998933, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 29.18, + "ram_mib": 9.328 + }, + { + "t": 9.415447950999805, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 17.88, + "ram_mib": 6.152 + }, + { + "t": 9.915679232999537, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 28.5, + "ram_mib": 9.945 + }, + { + "t": 9.915714234997722, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 29.18, + "ram_mib": 9.328 + }, + { + "t": 9.915730832999543, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 17.88, + "ram_mib": 6.152 + }, + { + "t": 10.415561955000157, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 30.37, + "ram_mib": 10.1 + }, + { + "t": 10.415604392001114, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 30.09, + "ram_mib": 10.4 + }, + { + "t": 10.415624450997711, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 17.31, + "ram_mib": 5.992 + }, + { + "t": 10.916430319997744, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 30.37, + "ram_mib": 10.1 + }, + { + "t": 10.91652905400042, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 30.09, + "ram_mib": 10.4 + }, + { + "t": 10.916590816999815, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 17.31, + "ram_mib": 5.992 + }, + { + "t": 11.416239106998546, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 26.37, + "ram_mib": 10.67 + }, + { + "t": 11.41650493799898, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 25.39, + "ram_mib": 9.539 + }, + { + "t": 11.416535339998518, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 16.32, + "ram_mib": 5.957 + }, + { + "t": 11.916093968000496, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 26.37, + "ram_mib": 10.67 + }, + { + "t": 11.916171369997755, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 25.39, + "ram_mib": 9.539 + }, + { + "t": 11.91623681800047, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 16.32, + "ram_mib": 5.957 + }, + { + "t": 12.415142547997675, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 32.31, + "ram_mib": 10.03 + }, + { + "t": 12.41517304000081, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 31.87, + "ram_mib": 9.668 + }, + { + "t": 12.415187853999669, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 20.35, + "ram_mib": 6.516 + }, + { + "t": 12.915288862001034, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 32.31, + "ram_mib": 10.03 + }, + { + "t": 12.915373660998739, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 31.87, + "ram_mib": 9.668 + }, + { + "t": 12.915410318997601, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 20.35, + "ram_mib": 6.516 + }, + { + "t": 13.415029824998783, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 23.69, + "ram_mib": 9.242 + }, + { + "t": 13.415050654999504, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 22.63, + "ram_mib": 10.18 + }, + { + "t": 13.415058607999526, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 13.28, + "ram_mib": 5.219 + }, + { + "t": 13.91566582499945, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 23.69, + "ram_mib": 9.242 + }, + { + "t": 13.91568783999901, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 22.63, + "ram_mib": 10.18 + }, + { + "t": 13.915694210998481, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 13.28, + "ram_mib": 5.219 + }, + { + "t": 14.414957379998668, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 5.37, + "ram_mib": 8.613 + }, + { + "t": 14.414978246997634, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 4.77, + "ram_mib": 8.34 + }, + { + "t": 14.414985667997826, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 40.37, + "ram_mib": 6.859 + }, + { + "t": 14.915560237997852, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 5.37, + "ram_mib": 8.613 + }, + { + "t": 14.915584853999462, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 4.77, + "ram_mib": 8.34 + }, + { + "t": 14.915595522998046, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 40.37, + "ram_mib": 6.859 + }, + { + "t": 15.415150988999812, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.71, + "ram_mib": 8.395 + }, + { + "t": 15.415219512000476, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.72, + "ram_mib": 8.367 + }, + { + "t": 15.415255427000375, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.23, + "ram_mib": 6.906 + }, + { + "t": 15.915591330998723, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.71, + "ram_mib": 8.395 + }, + { + "t": 15.915626426998642, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.72, + "ram_mib": 8.367 + }, + { + "t": 15.915642388998094, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.23, + "ram_mib": 6.906 + }, + { + "t": 16.41555723199781, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 3.05, + "ram_mib": 8.398 + }, + { + "t": 16.415586334998807, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 3.05, + "ram_mib": 8.391 + }, + { + "t": 16.415601628999866, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 46.91, + "ram_mib": 6.48 + }, + { + "t": 16.91564119100076, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 3.05, + "ram_mib": 8.398 + }, + { + "t": 16.915715151997574, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 3.05, + "ram_mib": 8.391 + }, + { + "t": 16.91576233500018, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 46.91, + "ram_mib": 6.48 + }, + { + "t": 17.415589618998638, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.91, + "ram_mib": 8.398 + }, + { + "t": 17.4156208050008, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 8.355 + }, + { + "t": 17.415637944999617, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 34.81, + "ram_mib": 6.473 + }, + { + "t": 17.915765886998997, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.91, + "ram_mib": 8.398 + }, + { + "t": 17.91579265600012, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 8.355 + }, + { + "t": 17.915806821998558, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 34.81, + "ram_mib": 6.473 + }, + { + "t": 18.415446668001096, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.398 + }, + { + "t": 18.415494589000446, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.848 + }, + { + "t": 18.415523137999116, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.48, + "ram_mib": 6.797 + }, + { + "t": 18.915600409000035, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.398 + }, + { + "t": 18.915634072000103, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.848 + }, + { + "t": 18.915647572001035, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.48, + "ram_mib": 6.797 + }, + { + "t": 19.41558714200073, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.398 + }, + { + "t": 19.415621077998367, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.359 + }, + { + "t": 19.41564047800057, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.5, + "ram_mib": 7.008 + }, + { + "t": 19.915185885998653, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.398 + }, + { + "t": 19.91522188199815, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.359 + }, + { + "t": 19.91523519399925, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.5, + "ram_mib": 7.008 + }, + { + "t": 20.415143731999706, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.398 + }, + { + "t": 20.415171556000132, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.359 + }, + { + "t": 20.41518083000119, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.42, + "ram_mib": 7.145 + }, + { + "t": 20.91550604599979, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.398 + }, + { + "t": 20.91552594499808, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.359 + }, + { + "t": 20.91553317999933, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.42, + "ram_mib": 7.145 + }, + { + "t": 21.41570266599956, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 2.58, + "ram_mib": 8.688 + }, + { + "t": 21.415734489997703, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.69, + "ram_mib": 8.156 + }, + { + "t": 21.415747537001153, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.07, + "ram_mib": 6.727 + }, + { + "t": 21.915146704999643, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 2.58, + "ram_mib": 8.688 + }, + { + "t": 21.91517781999937, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.69, + "ram_mib": 8.156 + }, + { + "t": 21.915194542998506, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.07, + "ram_mib": 6.727 + }, + { + "t": 22.415639088998432, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.543 + }, + { + "t": 22.415669898000488, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 8.113 + }, + { + "t": 22.415684998999495, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 36.81, + "ram_mib": 7.707 + }, + { + "t": 22.91547358200114, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.543 + }, + { + "t": 22.915521564998926, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 8.113 + }, + { + "t": 22.91554405399802, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 36.81, + "ram_mib": 7.707 + }, + { + "t": 23.41514415599886, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.402 + }, + { + "t": 23.41518202899897, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.109 + }, + { + "t": 23.415202444000897, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.87, + "ram_mib": 7.117 + }, + { + "t": 23.915739670999756, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.402 + }, + { + "t": 23.915788448997773, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.109 + }, + { + "t": 23.915811507999024, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.87, + "ram_mib": 7.117 + }, + { + "t": 24.415595743997983, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.402 + }, + { + "t": 24.415622086999065, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.109 + }, + { + "t": 24.415634768000018, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.71, + "ram_mib": 7.516 + }, + { + "t": 24.914820968999265, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.402 + }, + { + "t": 24.914841410998633, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.109 + }, + { + "t": 24.91484744799891, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.71, + "ram_mib": 7.516 + }, + { + "t": 25.415418374999717, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.406 + }, + { + "t": 25.415471357999195, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.605 + }, + { + "t": 25.415502595998987, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.94, + "ram_mib": 6.984 + }, + { + "t": 25.915803652998875, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.406 + }, + { + "t": 25.915862633999495, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.605 + }, + { + "t": 25.91589839199878, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.94, + "ram_mib": 6.984 + }, + { + "t": 26.415174833000492, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 2.45, + "ram_mib": 8.789 + }, + { + "t": 26.415233894000266, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.36, + "ram_mib": 8.266 + }, + { + "t": 26.415260465000756, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 42.06, + "ram_mib": 7.684 + }, + { + "t": 26.91509922899786, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 2.45, + "ram_mib": 8.789 + }, + { + "t": 26.915147024999897, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.36, + "ram_mib": 8.266 + }, + { + "t": 26.915176174999942, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 42.06, + "ram_mib": 7.684 + }, + { + "t": 27.41482704900045, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.41 + }, + { + "t": 27.41485404299965, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.363 + }, + { + "t": 27.41486941399853, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 46.23, + "ram_mib": 7.879 + }, + { + "t": 27.91554039499897, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.41 + }, + { + "t": 27.91557931299758, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.363 + }, + { + "t": 27.915597824998258, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 46.23, + "ram_mib": 7.879 + }, + { + "t": 28.414815254000132, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.41 + }, + { + "t": 28.41483708099986, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.117 + }, + { + "t": 28.414844402999734, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.0, + "ram_mib": 7.57 + }, + { + "t": 28.915589846998046, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.41 + }, + { + "t": 28.915643633998116, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.117 + }, + { + "t": 28.91567490399757, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.0, + "ram_mib": 7.57 + }, + { + "t": 29.415427698000713, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.41 + }, + { + "t": 29.415457530998538, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.113 + }, + { + "t": 29.415471223997883, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.8, + "ram_mib": 7.664 + }, + { + "t": 29.915083240997774, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.41 + }, + { + "t": 29.91510972999822, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.113 + }, + { + "t": 29.91512096799852, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.8, + "ram_mib": 7.664 + }, + { + "t": 30.4153337860007, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 8.41 + }, + { + "t": 30.4153625359977, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.359 + }, + { + "t": 30.415375419001066, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.64, + "ram_mib": 7.57 + }, + { + "t": 30.91564191499856, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 8.41 + }, + { + "t": 30.91567859299903, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.359 + }, + { + "t": 30.91569421999884, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.64, + "ram_mib": 7.57 + }, + { + "t": 31.41556180399857, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 8.441 + }, + { + "t": 31.415592744000605, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.43, + "ram_mib": 8.395 + }, + { + "t": 31.415609928997583, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 36.94, + "ram_mib": 8.141 + }, + { + "t": 31.915057989997877, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 8.441 + }, + { + "t": 31.91508004500065, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.43, + "ram_mib": 8.395 + }, + { + "t": 31.91508760400029, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 36.94, + "ram_mib": 8.141 + }, + { + "t": 32.415803290998156, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.422 + }, + { + "t": 32.41584191400034, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.145 + }, + { + "t": 32.41585899900019, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.26, + "ram_mib": 8.578 + }, + { + "t": 32.91518427199844, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.422 + }, + { + "t": 32.91524338599993, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.145 + }, + { + "t": 32.9152613849983, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.26, + "ram_mib": 8.578 + }, + { + "t": 33.41582598500099, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.41 + }, + { + "t": 33.415859331998945, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.109 + }, + { + "t": 33.41587308199814, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.0, + "ram_mib": 7.664 + }, + { + "t": 33.915435848000925, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.41 + }, + { + "t": 33.915455067999574, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.109 + }, + { + "t": 33.91546247699807, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.0, + "ram_mib": 7.664 + }, + { + "t": 34.41536767700018, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 8.41 + }, + { + "t": 34.415399024997896, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 8.109 + }, + { + "t": 34.415412358997855, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.58, + "ram_mib": 7.785 + }, + { + "t": 34.91602691499793, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 8.41 + }, + { + "t": 34.91609792899908, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 8.109 + }, + { + "t": 34.916130674999295, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.58, + "ram_mib": 7.785 + }, + { + "t": 35.41540313799851, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.41 + }, + { + "t": 35.415425810999295, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 8.359 + }, + { + "t": 35.415435145998345, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 39.23, + "ram_mib": 8.164 + }, + { + "t": 35.91558606399849, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.41 + }, + { + "t": 35.91562314299881, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 8.359 + }, + { + "t": 35.915639770999405, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 39.23, + "ram_mib": 8.164 + }, + { + "t": 36.415545996998844, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 8.668 + }, + { + "t": 36.41557707099855, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.3, + "ram_mib": 8.359 + }, + { + "t": 36.41559294399849, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.15, + "ram_mib": 7.723 + }, + { + "t": 36.915041511998425, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 8.668 + }, + { + "t": 36.91506334400037, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.3, + "ram_mib": 8.359 + }, + { + "t": 36.91507120999813, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.15, + "ram_mib": 7.723 + }, + { + "t": 37.41482133599857, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.633 + }, + { + "t": 37.41484177299935, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.109 + }, + { + "t": 37.41485059899787, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.28, + "ram_mib": 8.008 + }, + { + "t": 37.91540371299925, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.633 + }, + { + "t": 37.91542130599919, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.109 + }, + { + "t": 37.915428521999274, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.28, + "ram_mib": 8.008 + }, + { + "t": 38.41507168099997, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.449 + }, + { + "t": 38.41511303899824, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.336 + }, + { + "t": 38.41513070899964, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.75, + "ram_mib": 8.344 + }, + { + "t": 38.91573808699832, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.449 + }, + { + "t": 38.915777108999464, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.336 + }, + { + "t": 38.915794689000904, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.75, + "ram_mib": 8.344 + }, + { + "t": 39.415338898998016, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.469 + }, + { + "t": 39.415378477999184, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.359 + }, + { + "t": 39.41540125499887, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.28, + "ram_mib": 8.93 + }, + { + "t": 39.91548030500053, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.469 + }, + { + "t": 39.915499021997675, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.359 + }, + { + "t": 39.91550597400055, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.28, + "ram_mib": 8.93 + }, + { + "t": 40.41550867899787, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.43 + }, + { + "t": 40.415539175999584, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 9.105 + }, + { + "t": 40.4155547320006, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 43.25, + "ram_mib": 7.918 + }, + { + "t": 40.91507756599822, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.43 + }, + { + "t": 40.91511574499964, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 9.105 + }, + { + "t": 40.91514113899757, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 43.25, + "ram_mib": 7.918 + }, + { + "t": 41.41523967499961, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 3.15, + "ram_mib": 8.805 + }, + { + "t": 41.41526338699987, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.89, + "ram_mib": 8.562 + }, + { + "t": 41.41527297799985, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 35.44, + "ram_mib": 8.672 + }, + { + "t": 41.91574819000016, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 3.15, + "ram_mib": 8.805 + }, + { + "t": 41.915796600998874, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.89, + "ram_mib": 8.562 + }, + { + "t": 41.915823986997566, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 35.44, + "ram_mib": 8.672 + }, + { + "t": 42.415224193999165, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.914 + }, + { + "t": 42.4152583110008, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.562 + }, + { + "t": 42.41527711500021, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.09, + "ram_mib": 8.5 + }, + { + "t": 42.91500099000041, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.914 + }, + { + "t": 42.915049257000646, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.562 + }, + { + "t": 42.91508012199847, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.09, + "ram_mib": 8.5 + }, + { + "t": 43.41593326200018, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.633 + }, + { + "t": 43.415983530998346, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.359 + }, + { + "t": 43.41601346199968, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.65, + "ram_mib": 8.344 + }, + { + "t": 43.91546787200059, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.633 + }, + { + "t": 43.91549008099901, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.359 + }, + { + "t": 43.9154977420003, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.65, + "ram_mib": 8.344 + }, + { + "t": 44.41489603900118, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.41 + }, + { + "t": 44.41491845500059, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.113 + }, + { + "t": 44.414925349999976, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.99, + "ram_mib": 8.234 + }, + { + "t": 44.91507260299841, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.41 + }, + { + "t": 44.91510582800038, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.113 + }, + { + "t": 44.915121641999576, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.99, + "ram_mib": 8.234 + }, + { + "t": 45.41618198099968, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.406 + }, + { + "t": 45.41631975600103, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.855 + }, + { + "t": 45.41636454699983, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 45.89, + "ram_mib": 8.758 + }, + { + "t": 45.91563539799972, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.406 + }, + { + "t": 45.91565962700042, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.855 + }, + { + "t": 45.915669213998626, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 45.89, + "ram_mib": 8.758 + }, + { + "t": 46.414859470998636, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 3.31, + "ram_mib": 8.969 + }, + { + "t": 46.41488817500067, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.51, + "ram_mib": 8.195 + }, + { + "t": 46.41490331800014, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 36.66, + "ram_mib": 8.957 + }, + { + "t": 46.9154604289979, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 3.31, + "ram_mib": 8.969 + }, + { + "t": 46.91548012699786, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.51, + "ram_mib": 8.195 + }, + { + "t": 46.915487887999916, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 36.66, + "ram_mib": 8.957 + }, + { + "t": 47.41548776399941, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.641 + }, + { + "t": 47.41553505999764, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.195 + }, + { + "t": 47.41556124199997, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.11, + "ram_mib": 9.109 + }, + { + "t": 47.91559285399853, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.641 + }, + { + "t": 47.915625053999975, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.195 + }, + { + "t": 47.91564182900038, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.11, + "ram_mib": 9.109 + }, + { + "t": 48.41570429199783, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.605 + }, + { + "t": 48.41572373999952, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 8.145 + }, + { + "t": 48.415730261000135, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.43, + "ram_mib": 9.176 + }, + { + "t": 48.9152188879998, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.605 + }, + { + "t": 48.9152444700012, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 8.145 + }, + { + "t": 48.915253086997836, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.43, + "ram_mib": 9.176 + }, + { + "t": 49.41549491399928, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.605 + }, + { + "t": 49.41552340199996, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.141 + }, + { + "t": 49.41553631499846, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.5, + "ram_mib": 9.168 + }, + { + "t": 49.91512956799852, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.605 + }, + { + "t": 49.915155912000046, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.141 + }, + { + "t": 49.91516678699918, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.5, + "ram_mib": 9.168 + }, + { + "t": 50.41585280000072, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.605 + }, + { + "t": 50.415925443998276, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.141 + }, + { + "t": 50.415968506000354, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.59, + "ram_mib": 8.758 + }, + { + "t": 50.91500910399918, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.605 + }, + { + "t": 50.915036161997705, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.141 + }, + { + "t": 50.915051136998954, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.59, + "ram_mib": 8.758 + }, + { + "t": 51.415215281998826, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 2.56, + "ram_mib": 8.91 + }, + { + "t": 51.415242049999506, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.53, + "ram_mib": 8.125 + }, + { + "t": 51.41525285199896, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 38.16, + "ram_mib": 9.461 + }, + { + "t": 51.91571060199931, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 2.56, + "ram_mib": 8.91 + }, + { + "t": 51.91574375399796, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.53, + "ram_mib": 8.125 + }, + { + "t": 51.91575904400088, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 38.16, + "ram_mib": 9.461 + }, + { + "t": 52.41519522199815, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.656 + }, + { + "t": 52.415244416999485, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 8.109 + }, + { + "t": 52.41526096999951, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.79, + "ram_mib": 9.074 + }, + { + "t": 52.915764650999336, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.656 + }, + { + "t": 52.9157882239997, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 8.109 + }, + { + "t": 52.91579605199877, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.79, + "ram_mib": 9.074 + }, + { + "t": 53.41537594900001, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.684 + }, + { + "t": 53.41539501800071, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.109 + }, + { + "t": 53.415401706999546, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.51, + "ram_mib": 9.18 + }, + { + "t": 53.9151137580011, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.684 + }, + { + "t": 53.91516195800068, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.109 + }, + { + "t": 53.91519110000081, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.51, + "ram_mib": 9.18 + }, + { + "t": 54.41526351799985, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.41 + }, + { + "t": 54.41530502200112, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.109 + }, + { + "t": 54.415322183998796, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.82, + "ram_mib": 9.73 + }, + { + "t": 54.915719297998294, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.41 + }, + { + "t": 54.915769856001134, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.109 + }, + { + "t": 54.915799636000884, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.82, + "ram_mib": 9.73 + }, + { + "t": 55.41542891499921, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.41 + }, + { + "t": 55.41547037900091, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.3, + "ram_mib": 8.363 + }, + { + "t": 55.415484629000275, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 40.53, + "ram_mib": 9.242 + }, + { + "t": 55.915586790000816, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.41 + }, + { + "t": 55.91560861099788, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.3, + "ram_mib": 8.363 + }, + { + "t": 55.9156161610008, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 40.53, + "ram_mib": 9.242 + }, + { + "t": 56.4156541989978, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 8.742 + }, + { + "t": 56.4156789439985, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.51, + "ram_mib": 8.297 + }, + { + "t": 56.415687725999305, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 45.17, + "ram_mib": 9.168 + }, + { + "t": 56.91529490099856, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 8.742 + }, + { + "t": 56.91533070799778, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 2.51, + "ram_mib": 8.297 + }, + { + "t": 56.915347068999836, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 45.17, + "ram_mib": 9.168 + }, + { + "t": 57.415792719999445, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.457 + }, + { + "t": 57.41584761500053, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.387 + }, + { + "t": 57.415882985998905, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.32, + "ram_mib": 10.05 + }, + { + "t": 57.9150360929998, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.457 + }, + { + "t": 57.91505583199978, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.387 + }, + { + "t": 57.91506310499972, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.32, + "ram_mib": 10.05 + }, + { + "t": 58.415463580000505, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.43 + }, + { + "t": 58.41548225899896, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.645 + }, + { + "t": 58.41548919399793, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.11, + "ram_mib": 9.855 + }, + { + "t": 58.91535400599969, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.43 + }, + { + "t": 58.91540290099874, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.645 + }, + { + "t": 58.91542838099849, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.11, + "ram_mib": 9.855 + }, + { + "t": 59.41564510199896, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.41 + }, + { + "t": 59.4156786229978, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.113 + }, + { + "t": 59.41569350899954, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.63, + "ram_mib": 9.48 + }, + { + "t": 59.9149036710005, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.41 + }, + { + "t": 59.91493867299869, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.113 + }, + { + "t": 59.914954410000064, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.63, + "ram_mib": 9.48 + }, + { + "t": 60.41549776700049, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.41 + }, + { + "t": 60.41555492000043, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 9.102 + }, + { + "t": 60.415585520000604, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 40.97, + "ram_mib": 9.844 + }, + { + "t": 60.915729476000706, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.41 + }, + { + "t": 60.91576792699925, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 9.102 + }, + { + "t": 60.915783160999126, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 40.97, + "ram_mib": 9.844 + }, + { + "t": 61.415811486000166, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 2.75, + "ram_mib": 9.008 + }, + { + "t": 61.415846619998774, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 3.43, + "ram_mib": 8.379 + }, + { + "t": 61.41586261499833, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 44.5, + "ram_mib": 10.04 + }, + { + "t": 61.915534492000006, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 2.75, + "ram_mib": 9.008 + }, + { + "t": 61.915558632998, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 3.43, + "ram_mib": 8.379 + }, + { + "t": 61.91557106699838, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 44.5, + "ram_mib": 10.04 + }, + { + "t": 62.41547083399928, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.707 + }, + { + "t": 62.41548940899884, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.129 + }, + { + "t": 62.41549673999907, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.93, + "ram_mib": 9.738 + }, + { + "t": 62.915130831999704, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.707 + }, + { + "t": 62.91516100900117, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.129 + }, + { + "t": 62.915173674999096, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 47.93, + "ram_mib": 9.738 + }, + { + "t": 63.415478076, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.629 + }, + { + "t": 63.41553891999865, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.086 + }, + { + "t": 63.4155750409991, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.67, + "ram_mib": 9.391 + }, + { + "t": 63.91564503100017, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.629 + }, + { + "t": 63.91567914500047, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.086 + }, + { + "t": 63.915695349998714, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 49.67, + "ram_mib": 9.391 + }, + { + "t": 64.41504288400029, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 8.383 + }, + { + "t": 64.41507235500103, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.082 + }, + { + "t": 64.4150816959991, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.09, + "ram_mib": 9.961 + }, + { + "t": 64.91587684099795, + "container": "0fb6df9beb5e8aea6def36ef620aa5f4cf48fe8eef09c6524717062797ee26bd", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 8.383 + }, + { + "t": 64.9159183849988, + "container": "45a63c3c0943c9565e9de260fcb7ab03f11516bb642a883b8c1e4faa8bf5b5e0", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.082 + }, + { + "t": 64.91593764600111, + "container": "66ce8c90b0585626676c2542eaa8bdbaeff46737d23c9bc6c0e8e0bab62e89ea", + "service": "worker", + "cpu_percent": 48.09, + "ram_mib": 9.961 + } + ], + "sdk_diagnostic_audit": { + "source": "Prometheus instant queries at trial start/end, restricted to trial container hostnames", + "warning_error_start": 4.0, + "warning_error_end": 4.0, + "warning_error_delta": 0.0 + } + }, + { + "variant": "C", + "repetition": 2, + "completed_utc": "2026-11-16T15:00:18.247334+00:00", + "successful_uploads": 1000, + "http_errors": 0, + "http_seconds": 12.829075872999965, + "pipeline_seconds": 64.9110589410011, + "collector_window_seconds": 67.99643027500133, + "rps": 77.94793716237949, + "latency_mean_ms": 50.86235314404257, + "latency_p50_ms": 28.367999999318272, + "latency_p99_ms": 202.21939100156305, + "latencies_ms": [ + 13.867248999304138, + 10.009689001890365, + 10.101274001499405, + 11.201850000361446, + 12.596567001310177, + 32.53820300233201, + 14.076605999434832, + 9.91989999965881, + 11.96970100136241, + 22.849375000078, + 37.28548399885767, + 16.134570996655384, + 10.305013998731738, + 9.630923002987402, + 45.7742570033588, + 87.79040900117252, + 32.105238002259284, + 12.953377001394983, + 11.768562999350252, + 8.410131002165144, + 9.264309002901427, + 19.829660002869787, + 41.688746001455, + 21.12418099932256, + 82.56302299923846, + 21.041762000095332, + 10.948872997687431, + 65.70375799856265, + 25.9012390015414, + 74.27648099837825, + 22.868378000566736, + 73.12766600080067, + 21.422039997560205, + 85.62748999975156, + 25.761720000446076, + 70.44523700096761, + 99.37617199830129, + 21.976447002089117, + 10.42626400158042, + 70.15377399875433, + 294.32351600189577, + 106.51345899896114, + 97.75404600077309, + 22.600994001550134, + 76.65810699836584, + 22.500159000628628, + 75.87382099882234, + 23.901581000245642, + 77.79710599788814, + 28.07428300002357, + 72.95969800179591, + 29.426668002997758, + 67.76066200109199, + 101.90527099985047, + 26.709442998253508, + 72.88113099639304, + 22.876613998960238, + 78.75510600206326, + 27.994078998744953, + 80.10737899894593, + 86.75035499982187, + 15.471938997507095, + 12.423112999385921, + 53.43659899881459, + 23.28375899742241, + 16.67288200042094, + 18.089132001477992, + 12.807414001144934, + 47.92943299980834, + 21.33694599979208, + 22.12615299868048, + 64.42161499944632, + 26.32441500099958, + 67.90078999983962, + 16.718176997528644, + 13.461964001180604, + 11.495729002490407, + 58.814305000851164, + 27.395583001634805, + 76.41786800013506, + 21.955681000690674, + 95.95584300041082, + 22.69585899921367, + 12.346216997684678, + 45.62239200095064, + 23.627323000255274, + 73.61902100092266, + 19.65434399971855, + 85.19894699929864, + 22.9038550023688, + 374.112851000973, + 103.05179500210215, + 95.86220600249362, + 25.405839001905406, + 73.41887499933364, + 19.021031002921518, + 18.12652300213813, + 62.80901900026947, + 23.811979001038708, + 81.38260300256661, + 98.79898500003037, + 98.40507800254272, + 95.49399299794459, + 22.720643002685392, + 81.97057200231939, + 27.632949000690132, + 71.43865799662308, + 21.37418200072716, + 77.71526999931666, + 19.2096409991791, + 82.33340000151657, + 54.32740600008401, + 46.61391500121681, + 23.78844800114166, + 90.26349999840022, + 16.58269399922574, + 71.12791899999138, + 21.645585002261214, + 75.22314800007734, + 20.935534997988725, + 82.20718400116311, + 94.1404719997081, + 24.48595900204964, + 16.644166000332916, + 61.786964997736504, + 25.633272001869045, + 75.95633799792267, + 28.140845999587327, + 70.49690699932398, + 25.018903997988673, + 71.73687000249629, + 24.42923300259281, + 81.03643499998725, + 24.454722999507794, + 74.86286900166306, + 102.41772300287266, + 193.84102999902098, + 105.40105200198013, + 96.91563100204803, + 95.67048499957309, + 22.80963500015787, + 18.68966000256478, + 63.63774999772431, + 26.837617999262875, + 73.60593699922902, + 22.834546001831768, + 76.33336100116139, + 26.107853998837527, + 70.3720429992245, + 23.128884000470862, + 20.29730999856838, + 61.58628400226007, + 27.6542130013695, + 72.66864299890585, + 74.87848800155916, + 23.47550799822784, + 95.80688399728388, + 14.274978002504213, + 11.244861001614481, + 75.77657000001636, + 21.22533200235921, + 14.704098000947852, + 66.16402599684079, + 23.73429799990845, + 14.116671998635866, + 58.95641099778004, + 20.461326999793528, + 83.18239900108892, + 23.10669099824736, + 75.37210800001048, + 25.941538999177283, + 75.24086999910651, + 23.43640699837124, + 77.3022539979138, + 22.00000900120358, + 74.15253500221297, + 25.30793799815001, + 76.43613400068716, + 26.07040099974256, + 74.53431199974148, + 98.3353099982196, + 99.55371799878776, + 104.9008540030627, + 97.52974699949846, + 22.21190699856379, + 73.96842600064701, + 15.979571999196196, + 82.12212499711313, + 12.307298002269818, + 11.439214998972602, + 11.123611002403777, + 12.00204999986454, + 62.82183899747906, + 19.507909997628303, + 76.86172400281066, + 22.279490000073565, + 73.8846209969779, + 23.378137000690913, + 81.32541599843535, + 35.78262700102641, + 66.60437900063698, + 96.06825399896479, + 101.30858499906026, + 98.48630000124103, + 16.006153000489576, + 12.83168800000567, + 66.37737900018692, + 10.751751000498189, + 51.75255400172318, + 38.46933900058502, + 22.308824998617638, + 17.91585600221879, + 68.38443699962227, + 95.80267199999071, + 29.306000000360655, + 71.06064400068135, + 23.14418899914017, + 16.428471000835998, + 58.90187700060778, + 16.691984001226956, + 79.52467799987062, + 24.14375099760946, + 19.99650899961125, + 61.21050600268063, + 23.52607500142767, + 72.48807399810175, + 22.8474389987241, + 177.21227899892256, + 202.81048900142196, + 103.37571499985643, + 22.51419199819793, + 74.11664199753432, + 21.52397600002587, + 18.4474930028955, + 62.54855600127485, + 24.16150100179948, + 74.656660999608, + 26.118692996533355, + 73.7195179972332, + 22.912963999260683, + 16.971400000329595, + 59.93263200070942, + 28.96221199989668, + 71.67349299925263, + 17.244228001800366, + 16.580397001234815, + 66.23550500080455, + 20.50976600003196, + 17.06507299968507, + 61.625575999642024, + 13.01808799689752, + 10.028688000602415, + 9.326194998720894, + 12.029194997012382, + 11.564075000933371, + 10.194168000452919, + 20.14332999897306, + 14.907896998920478, + 10.806453003169736, + 10.898728000029223, + 63.79140699937125, + 16.171606999705546, + 67.67476100139902, + 15.196083000773797, + 101.03137700207299, + 11.00609000059194, + 12.24872599777882, + 80.99504300116678, + 21.02087699677213, + 82.28559800045332, + 22.617397000431083, + 10.889555000176188, + 63.96200599920121, + 22.43827100028284, + 80.17187999939779, + 22.47524799895473, + 12.775112001691014, + 65.13684200035641, + 20.31404800072778, + 80.57385399661143, + 29.448191002302337, + 69.80954400205519, + 23.496669997257413, + 76.37354100006633, + 20.23754900073982, + 78.28074799908791, + 20.171564996417146, + 82.1386400020856, + 98.17314000247279, + 198.0822999976226, + 18.81176199822221, + 9.628761999920243, + 73.62828500117757, + 23.536173001048155, + 71.63986899831798, + 21.2971920009295, + 20.503531999565894, + 63.316675998066785, + 25.94787399721099, + 73.4348410005623, + 98.76048400110449, + 29.240264997497434, + 68.41578500097967, + 29.489780001313193, + 10.111635998327984, + 62.25534700206481, + 28.838176000135718, + 73.86237700120546, + 28.367999999318272, + 71.37772200076142, + 98.60392900009174, + 31.561537998641143, + 61.68017799791414, + 14.212258996849414, + 12.994348999200156, + 10.408821999590145, + 46.86117399978684, + 21.762980002677068, + 18.210517999250442, + 18.34934300131863, + 61.75348000033409, + 28.05776899913326, + 76.99141200282611, + 27.723285002139164, + 67.54590000127791, + 16.07131199853029, + 13.315056999999797, + 9.304571001848672, + 60.97930700343568, + 26.855434000026435, + 78.79719500124338, + 21.840395998879103, + 95.29065300012007, + 14.540357999067055, + 16.802925001684343, + 47.59719700086862, + 20.3451280031004, + 77.09580799928517, + 101.72067099847482, + 24.16658299989649, + 78.43353900170769, + 196.47918400005437, + 199.33159699940006, + 98.50497000297764, + 19.237651998992078, + 81.09406900257454, + 19.224392002797686, + 15.458518999366788, + 68.35053200120456, + 23.108593999495497, + 75.74090900016017, + 102.61237300073844, + 100.02378599892836, + 97.12882999883732, + 101.14976699696854, + 29.41640100107179, + 73.31317599891918, + 95.30271800031187, + 22.568046999367652, + 8.910696000384632, + 8.725300001970027, + 81.56079500258784, + 82.96659200277645, + 22.190307998243952, + 75.28529599949252, + 25.010589000885375, + 77.2839519995614, + 20.282238998333924, + 76.24447600028361, + 21.76497500113328, + 17.160319999675266, + 62.05397799931234, + 22.41323699854547, + 79.72196000264375, + 99.76034799910849, + 24.91431099770125, + 74.71736700244946, + 28.15918800115469, + 71.04298799822573, + 25.836863998847548, + 13.64978399942629, + 62.786369999230374, + 97.39996599819278, + 20.51479000147083, + 21.156742997845868, + 258.1665810030245, + 202.21939100156305, + 99.37022699887166, + 25.83820200015907, + 74.1402769999695, + 21.8959999983781, + 75.34949299952132, + 27.567709003051277, + 73.58112200017786, + 26.669506001780974, + 15.977884002495557, + 59.74764299753588, + 18.63233300173306, + 78.99047799946857, + 25.19396199932089, + 71.79360200098017, + 23.775938996550394, + 81.77044699914404, + 24.583960002928507, + 73.46926500031259, + 95.87692899731337, + 13.52150299862842, + 13.841965999745298, + 73.82792399948812, + 22.992533002252458, + 78.33052100249915, + 23.33905799969216, + 15.803446000063559, + 61.47851500281831, + 20.70689199899789, + 82.7761360014847, + 21.69224499812117, + 72.72440000087954, + 26.932249002129538, + 74.7701220025192, + 23.033244997350266, + 76.78604000102496, + 26.130596997973043, + 74.58939199932502, + 24.607643001218094, + 73.34625799921923, + 26.33066999987932, + 76.60201000180678, + 96.81434400044964, + 199.23848299731617, + 106.23071699956199, + 21.831685000506695, + 71.64301900047576, + 16.4818480006943, + 17.344979001791216, + 66.25354499919922, + 13.070667002466507, + 12.118861999624642, + 11.30100400041556, + 10.515278998354916, + 60.20538800294162, + 19.252617999882204, + 79.09237000058056, + 21.37451100134058, + 16.462946998217376, + 62.674101998709375, + 22.375645003194222, + 73.83060000211117, + 37.481018000107724, + 67.26860399794532, + 99.24310800124658, + 100.50286100158701, + 91.7200510011753, + 18.16609600064112, + 83.0996460026654, + 59.05832300049951, + 39.68577500199899, + 22.745099999156082, + 16.79677799984347, + 67.40460699802497, + 28.587331999005983, + 65.98523399952683, + 26.93181599897798, + 76.62539000011748, + 24.84403100243071, + 73.07553499776986, + 19.181921998097096, + 83.36349299861467, + 27.899625998543343, + 71.98642699950142, + 21.87087299898849, + 75.58893099849229, + 102.53261099933297, + 301.89750399949844, + 98.9077640006144, + 23.70252699984121, + 76.17223700071918, + 24.58481500070775, + 16.105188999063103, + 59.33086199729587, + 22.085160999267828, + 79.53692100272747, + 98.72334999818122, + 25.161883000691887, + 15.32085399958305, + 59.85743299970636, + 19.121923000056995, + 79.11455700013903, + 16.964911999821197, + 12.783304999175016, + 73.36225800099783, + 20.093307000934146, + 16.36011800292181, + 59.07943499914836, + 21.885428999667056, + 11.569639998924686, + 67.13380400105962, + 18.467882000550162, + 9.524568999040639, + 9.59010299993679, + 13.418557999102632, + 10.657258997525787, + 8.843673000228591, + 10.368365001340862, + 10.268938000081107, + 9.145988999080146, + 25.79947200138122, + 16.012665000744164, + 12.780700999428518, + 10.12932700177771, + 8.031613000639481, + 10.095099998579826, + 41.79466400091769, + 60.916575999726774, + 25.71225799692911, + 13.411597999947844, + 8.689219997904729, + 58.34486899766489, + 33.18881499944837, + 10.8760719995189, + 9.990377999201883, + 9.741458001371939, + 32.95014200193691, + 41.47483299675514, + 21.131096000317484, + 80.06557599946973, + 96.94811800000025, + 21.53305599858868, + 80.62946900099632, + 21.24234700022498, + 13.04736499878345, + 67.1486659994116, + 99.817416001315, + 23.31422000133898, + 18.670563000341645, + 59.80330099919229, + 25.184320998960175, + 71.8773440021323, + 21.773853000922827, + 75.21468599952641, + 21.296856000844855, + 276.4261019983678, + 108.30336400249507, + 92.0692540021264, + 23.72186399952625, + 79.509291001159, + 22.48593800322851, + 81.37201499994262, + 96.79436800070107, + 104.97736199977226, + 25.12471999943955, + 69.25865700031864, + 27.56380599748809, + 71.67981499878806, + 27.098063001176342, + 78.21820900062448, + 24.220096001954516, + 76.05892100036726, + 100.53274199890438, + 28.80410099896835, + 62.55180100197322, + 15.405889000248862, + 15.424268996866886, + 52.52555100014433, + 23.199592000310076, + 17.173666001326637, + 17.239222997886827, + 18.52043800317915, + 44.029115000739694, + 23.66013799837674, + 74.73718999972334, + 27.308909000566928, + 72.92955000229995, + 16.075278999778675, + 13.926757001172518, + 10.591021997242933, + 58.20162999953027, + 27.371105999918655, + 14.72627900147927, + 66.0640690002765, + 22.65697400071076, + 92.63506199931726, + 15.351158999692416, + 14.40908299991861, + 49.4360400007281, + 24.49896500183968, + 74.52664599986747, + 99.45665699706296, + 23.424594997777604, + 180.542851001519, + 199.52476099933847, + 102.97143999923719, + 96.31597299812711, + 22.46685999853071, + 76.77824300117209, + 18.924478001281386, + 18.816659001458902, + 10.619993998261634, + 50.59225500008324, + 25.311691999377217, + 75.7114680018276, + 99.59548299957532, + 100.07736199986539, + 97.8548730017792, + 105.41172800003551, + 27.504167999722995, + 72.65792100224644, + 19.77465199888684, + 76.7306589987129, + 21.991461002471624, + 8.04454199897009, + 71.92253399989568, + 27.26699900085805, + 71.37456000054954, + 23.83266299875686, + 90.89787599805277, + 14.895435000653379, + 73.97842299906188, + 21.9593090005219, + 75.11721799892257, + 21.266519001073902, + 17.213319002621574, + 61.7554550008208, + 21.819837998918956, + 76.69858899680548, + 22.25012899725698, + 78.19106999886571, + 100.44717699929606, + 99.63674900063779, + 26.425697997183306, + 74.02007299970137, + 26.13942699827021, + 75.14278300004662, + 20.371563998196507, + 19.93321299960371, + 157.72625399768003, + 103.72032599843806, + 190.69566699909046, + 108.42802000115626, + 98.03318600097555, + 19.61176999975578, + 80.2364069968462, + 27.262663999863435, + 75.24139599991031, + 25.46516200163751, + 68.97213900083443, + 22.847030999400886, + 81.56103500004974, + 21.67262200237019, + 74.42050199824735, + 23.680587000853848, + 82.0790269972349, + 74.9312270017981, + 97.81885600023088, + 11.922248999326257, + 13.816141999996034, + 14.983378001488745, + 60.97164300081204, + 21.038576000137255, + 24.466943999868818, + 77.62179499695776, + 22.092306000558892, + 14.347727003041655, + 58.47649399947841, + 22.744539000996156, + 79.87513999978546, + 21.767195001302753, + 13.840339001035318, + 63.645690999692306, + 24.46962199974223, + 79.21166300002369, + 21.53398700102116, + 77.40066699989256, + 27.090137999039143, + 72.39367100191885, + 25.514837998343864, + 72.56052700176951, + 28.033416001562728, + 16.311835999658797, + 56.204086999059655, + 97.8729399976146, + 100.5154410013347, + 200.5981790025544, + 23.987442000361625, + 73.22796799780917, + 17.603377000341425, + 17.93553300012718, + 65.48686300084228, + 12.153009000030579, + 11.49416000043857, + 11.21762099865009, + 10.936335998849245, + 61.10250200072187, + 96.41727800044464, + 22.531710001203464, + 76.25411600020016, + 23.535390002507484, + 80.50598699992406, + 34.37341899916646, + 67.78270300128497, + 97.48117100025411, + 98.48513899851241, + 98.9975679985946, + 17.12270500138402, + 76.47316500151646, + 63.21713499710313, + 40.86054499930469, + 22.251324000535533, + 16.674590999173233, + 67.9455350000353, + 26.12758100076462, + 68.70317199718556, + 27.107080997666344, + 76.04410500061931, + 24.64619300008053, + 70.30435300112003, + 17.0078459996148, + 85.01255499868421, + 27.116818997455994, + 73.20177299698116, + 18.07561800160329, + 82.52080799866235, + 101.7953850023332, + 296.08111299967277, + 104.87217500121915, + 22.822177998023108, + 77.16677600183175, + 25.136543001281098, + 15.280373001587577, + 59.8761929977627, + 21.98998899984872, + 78.51377299812157, + 92.41305800242117, + 23.859353001171257, + 18.270591001055436, + 64.19953500153497, + 23.431582001649076, + 77.23622800040175, + 15.432064999913564, + 14.056164000066929, + 71.34280100217438, + 22.109096997155575, + 70.53220200032229, + 21.30453000063426, + 79.7698610003863, + 17.351992999465438, + 12.149604997830465, + 69.39829900147743, + 20.647153000027174, + 13.368619998800568, + 12.629430999368196, + 10.126395998668158, + 9.298909997596638, + 9.765486000105739, + 9.238570997695206, + 10.183490998315392, + 23.51530499799992, + 16.07199399950332, + 12.051564997818787, + 11.955103000218514, + 9.11946699852706, + 54.0631179974298, + 14.61606199882226, + 67.19588199848658, + 83.54431900079362, + 32.61705700060702, + 10.280196001986042, + 9.92586900247261, + 40.918411999882665, + 46.05780999918352, + 99.14311100146733, + 100.13547400012612, + 25.528079000650905, + 77.09691999843926, + 20.335837001766777, + 77.50434999979916, + 21.823775001394097, + 82.36191200194298, + 21.63955599826295, + 71.83260000238079, + 26.86039900072501, + 76.37578700087033, + 98.58185700068134, + 21.66339900213643, + 274.2841399995086, + 105.24380700007896, + 95.39971899721422, + 24.273343002278125, + 80.29907600212027, + 23.38018199952785, + 75.73104300172417, + 26.02893799848971, + 74.36382599917124, + 27.196577000722755, + 75.68049199835514, + 34.372705998976016, + 61.75989500115975, + 28.2290360009938, + 11.916262003069278, + 60.94819899954018, + 26.978286001394736, + 73.95365999764181, + 30.233280998800183, + 71.0671540000476, + 27.339773998392047, + 78.0316810014483, + 87.50282300024992, + 16.86680200145929, + 14.154362001136178, + 52.57464600072126, + 23.188025999843376, + 16.23754799948074, + 17.500934001873247, + 61.19273599688313, + 24.090328999591293, + 76.58799400087446, + 26.949447001243243, + 71.73750500078313, + 16.53010500012897, + 13.020917998801451, + 11.345462000463158, + 59.355975998187205, + 24.720378998608794, + 79.71823800107813, + 21.99436000228161, + 95.746129998588, + 16.920213001867523, + 59.960777001833776, + 23.641895997570828, + 77.21656600187998, + 18.709369000134757, + 11.413964999519521, + 73.2716349994007, + 21.570740998868132, + 174.46597700109123, + 208.4059749977314, + 97.86746499958099, + 97.18106299987994, + 24.09110100052203, + 75.19374000185053, + 21.287863000907237, + 18.064468997181393, + 56.12255799860577, + 20.504700998571934, + 22.28788499996881, + 64.85933899966767, + 95.66209300101036, + 103.9542540020193, + 97.95420899899909, + 101.58378699998138, + 29.144580999854952, + 70.64119700226001, + 21.584835998510243, + 75.34951500201714, + 22.471931999461958, + 78.48829700014903, + 26.881800997216487, + 15.617659999406897, + 71.78759900125442, + 16.870286002813373, + 70.72293699820875, + 18.11259099849849, + 15.499826000450412, + 68.07660100093926, + 18.5001160025422, + 77.67766799952369, + 20.59471500251675, + 17.485393000242766, + 9.396108998771524, + 55.64285999935237, + 21.005315000365954, + 79.08842100005131, + 28.492265002569184, + 68.29921700045816, + 28.02868799699354, + 75.71324499804177, + 26.83153199905064, + 72.7483909977309, + 24.916551999922376, + 74.534126000799, + 24.99504099978367, + 75.3600540010666, + 24.59729200199945, + 174.47408999942127, + 196.4674049995665, + 106.63194299922907, + 94.88322100150981, + 28.238417002285132, + 72.49724899884313, + 21.34907000072417, + 16.96006099882652, + 61.361819000012474, + 23.665751999942586, + 77.10191399746691, + 23.3621570005198, + 17.071435002435464, + 61.787605001882184, + 23.565225001220824, + 74.27843899858999, + 21.691334000934148, + 79.40829200015287, + 23.510760998760816, + 75.37494599819183, + 76.3526560003811, + 22.876335999171715, + 93.61915300178225, + 14.902228998835199, + 13.30805399993551, + 57.81298799774959, + 20.673915001680143, + 22.258555000007618, + 79.69838300050469, + 21.50244400036172, + 13.627784999698633, + 63.08812100178329, + 21.195924000494415, + 78.51260100142099, + 22.777283997129416, + 14.32493700121995, + 59.17789899831405, + 28.915437000250677, + 74.56520899722818, + 97.62336999847321, + 25.493977998849005, + 75.3550310000719, + 27.24491199842305, + 75.74947100147256, + 24.82551199864247, + 70.56330399791477, + 25.54084000075818, + 173.46328799976618, + 203.05172099688207, + 97.34471399860922, + 15.37365300100646, + 22.352422998665133, + 61.14001999958418, + 13.98537299974123, + 14.680147000035504, + 12.505531001806958, + 61.66175899852533, + 22.23742400019546, + 9.862964998319512, + 71.46588799878373, + 22.636920999502763, + 17.30516899988288, + 62.427277996903285, + 20.871633001661394, + 75.39393900151481, + 36.90750500027207, + 64.53901599888923, + 102.14376600197284, + 98.73381999932462, + 98.3907520021603, + 16.02224500311422, + 75.53878099861322, + 12.863162002759054, + 7.927057999040699, + 9.282762999646366, + 42.16882399850874, + 33.0156000018178, + 21.967859000142198, + 15.850949999730801, + 70.17136400099844, + 25.360162002471043, + 70.1817109984404, + 27.670365998346824, + 74.30808599747252, + 22.932667001441587, + 69.93344400325441, + 19.050554001296405, + 84.83414900183561, + 28.971051000553416, + 69.29660300011165, + 20.888371000182815, + 18.221012000140036, + 61.56553199980408, + 197.84187800178188, + 200.3663309988042, + 103.00826499951654, + 23.63115300249774, + 79.71083400116186, + 20.961996997357346, + 73.16290699964156, + 21.747603997937404, + 85.77712300029816, + 94.41098700335715, + 25.65084200250567, + 71.94138900013058, + 20.67316399916308, + 84.63320800001384, + 16.46243400318781, + 13.899500001571141, + 69.91580699832411, + 22.201837000466185, + 72.62592199913342, + 20.823227998334914, + 13.355618000787217, + 67.20384499931242, + 18.499251000321237, + 8.766881997871678 + ], + "resources": { + "api": { + "cpu_percent_mean": 13.478992248062015, + "ram_mib_mean": 16.961798449612402, + "ram_mib_max": 20.73, + "samples": 258, + "cpu_seconds_per_job_estimate": 0.008749356602792505 + }, + "worker": { + "cpu_percent_mean": 39.78294573643411, + "ram_mib_mean": 7.858286821705426, + "ram_mib_max": 10.67, + "samples": 129, + "cpu_seconds_per_job_estimate": 0.025823531355443227 + } + }, + "collector_deltas": { + "otelcol_receiver_accepted_spans": 28218.0, + "otelcol_exporter_sent_spans": 3045.0, + "otelcol_receiver_refused_spans": 0.0, + "otelcol_exporter_send_failed_spans": 0.0, + "otelcol_receiver_accepted_log_records": 3000.0, + "otelcol_receiver_accepted_metric_points": 671.0 + }, + "ingest_spans_per_second": 414.992373656625, + "tempo_spans_per_second": 44.781762626140164, + "trace_retention": 0.10790984477992771, + "stats_samples": [ + { + "t": 0.43710411700158147, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 8.062 + }, + { + "t": 0.4371294520024094, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 7.391 + }, + { + "t": 0.4371444040007191, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 0.41, + "ram_mib": 5.496 + }, + { + "t": 0.9379001810011687, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 8.062 + }, + { + "t": 0.9379325970003265, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 7.391 + }, + { + "t": 0.9379475429996091, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 0.41, + "ram_mib": 5.496 + }, + { + "t": 1.4381139420002, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 38.51, + "ram_mib": 9.293 + }, + { + "t": 1.4381643480010098, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 38.89, + "ram_mib": 9.539 + }, + { + "t": 1.4381863010021334, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 17.66, + "ram_mib": 5.766 + }, + { + "t": 1.9372028870020586, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 38.51, + "ram_mib": 9.293 + }, + { + "t": 1.937230630999693, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 38.89, + "ram_mib": 9.539 + }, + { + "t": 1.9372389720010688, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 17.66, + "ram_mib": 5.766 + }, + { + "t": 2.437822132000292, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 24.75, + "ram_mib": 9.5 + }, + { + "t": 2.437844763000612, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 24.98, + "ram_mib": 9.254 + }, + { + "t": 2.4378547400010575, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 14.78, + "ram_mib": 5.484 + }, + { + "t": 2.9370246860016778, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 24.75, + "ram_mib": 9.5 + }, + { + "t": 2.9370432579999033, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 24.98, + "ram_mib": 9.254 + }, + { + "t": 2.937050847001956, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 14.78, + "ram_mib": 5.484 + }, + { + "t": 3.43702318600117, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 37.15, + "ram_mib": 9.785 + }, + { + "t": 3.437046236002061, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 39.0, + "ram_mib": 9.078 + }, + { + "t": 3.4370552799991856, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 23.19, + "ram_mib": 6.301 + }, + { + "t": 3.9379187859995, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 37.15, + "ram_mib": 9.785 + }, + { + "t": 3.938008765999257, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 39.0, + "ram_mib": 9.078 + }, + { + "t": 3.938060709002457, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 23.19, + "ram_mib": 6.301 + }, + { + "t": 4.437781863001874, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 32.34, + "ram_mib": 8.988 + }, + { + "t": 4.437811354000587, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 30.92, + "ram_mib": 8.703 + }, + { + "t": 4.4378197389996785, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 19.68, + "ram_mib": 5.867 + }, + { + "t": 4.938004161998833, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 32.34, + "ram_mib": 8.988 + }, + { + "t": 4.938117608999164, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 30.92, + "ram_mib": 8.703 + }, + { + "t": 4.938188490999892, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 19.68, + "ram_mib": 5.867 + }, + { + "t": 5.437577159998909, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 20.44, + "ram_mib": 9.648 + }, + { + "t": 5.4375959819990385, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 22.64, + "ram_mib": 9.168 + }, + { + "t": 5.4376039859998855, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 13.54, + "ram_mib": 5.352 + }, + { + "t": 5.9371971340005985, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 20.44, + "ram_mib": 9.648 + }, + { + "t": 5.937248498001281, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 22.64, + "ram_mib": 9.168 + }, + { + "t": 5.937280887999805, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 13.54, + "ram_mib": 5.352 + }, + { + "t": 6.43701826799952, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 36.95, + "ram_mib": 10.04 + }, + { + "t": 6.437048351999692, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 36.66, + "ram_mib": 9.34 + }, + { + "t": 6.437067205999483, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 21.66, + "ram_mib": 5.809 + }, + { + "t": 6.9375319960017805, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 36.95, + "ram_mib": 10.04 + }, + { + "t": 6.9376019520022965, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 36.66, + "ram_mib": 9.34 + }, + { + "t": 6.937643016000948, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 21.66, + "ram_mib": 5.809 + }, + { + "t": 7.43744037000215, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 24.4, + "ram_mib": 9.867 + }, + { + "t": 7.437510110001313, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 24.4, + "ram_mib": 8.738 + }, + { + "t": 7.437551913000789, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 14.18, + "ram_mib": 5.844 + }, + { + "t": 7.937834716001817, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 24.4, + "ram_mib": 9.867 + }, + { + "t": 7.9378580230004445, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 24.4, + "ram_mib": 8.738 + }, + { + "t": 7.937868012999388, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 14.18, + "ram_mib": 5.844 + }, + { + "t": 8.437366508002015, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 33.6, + "ram_mib": 10.46 + }, + { + "t": 8.437391429000854, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 34.3, + "ram_mib": 8.75 + }, + { + "t": 8.437406590001046, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 24.91, + "ram_mib": 6.164 + }, + { + "t": 8.936991649999982, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 33.6, + "ram_mib": 10.46 + }, + { + "t": 8.937010511999688, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 34.3, + "ram_mib": 8.75 + }, + { + "t": 8.937018569002248, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 24.91, + "ram_mib": 6.164 + }, + { + "t": 9.437912457000493, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 37.38, + "ram_mib": 10.05 + }, + { + "t": 9.437931297001342, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 37.23, + "ram_mib": 10.16 + }, + { + "t": 9.437939554001787, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 23.02, + "ram_mib": 6.184 + }, + { + "t": 9.937484451998898, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 37.38, + "ram_mib": 10.05 + }, + { + "t": 9.937519079001504, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 37.23, + "ram_mib": 10.16 + }, + { + "t": 9.937538553000195, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 23.02, + "ram_mib": 6.184 + }, + { + "t": 10.437861835001968, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 26.5, + "ram_mib": 9.82 + }, + { + "t": 10.43788245000178, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 26.88, + "ram_mib": 9.84 + }, + { + "t": 10.43788952199975, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 16.05, + "ram_mib": 6.211 + }, + { + "t": 10.937070358999335, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 26.5, + "ram_mib": 9.82 + }, + { + "t": 10.937099978000333, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 26.88, + "ram_mib": 9.84 + }, + { + "t": 10.937115633001667, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 16.05, + "ram_mib": 6.211 + }, + { + "t": 11.438881661000778, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 33.23, + "ram_mib": 10.57 + }, + { + "t": 11.438981785999204, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 37.98, + "ram_mib": 10.1 + }, + { + "t": 11.439024299001176, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 22.55, + "ram_mib": 6.074 + }, + { + "t": 11.937630899999931, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 33.23, + "ram_mib": 10.57 + }, + { + "t": 11.937660372001119, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 37.98, + "ram_mib": 10.1 + }, + { + "t": 11.93767502099945, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 22.55, + "ram_mib": 6.074 + }, + { + "t": 12.437832068000716, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 24.52, + "ram_mib": 10.13 + }, + { + "t": 12.437864423001884, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 25.02, + "ram_mib": 10.06 + }, + { + "t": 12.43788028400013, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 14.16, + "ram_mib": 5.848 + }, + { + "t": 12.937041479999607, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 24.52, + "ram_mib": 10.13 + }, + { + "t": 12.937073899000097, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 25.02, + "ram_mib": 10.06 + }, + { + "t": 12.9370917870001, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 14.16, + "ram_mib": 5.848 + }, + { + "t": 13.437840398000844, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 24.15, + "ram_mib": 9.316 + }, + { + "t": 13.437881486999686, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 23.35, + "ram_mib": 8.48 + }, + { + "t": 13.437904899001296, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 28.11, + "ram_mib": 6.266 + }, + { + "t": 13.937028836000536, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 24.15, + "ram_mib": 9.316 + }, + { + "t": 13.937060160002147, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 23.35, + "ram_mib": 8.48 + }, + { + "t": 13.937078007998934, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 28.11, + "ram_mib": 6.266 + }, + { + "t": 14.437522285999876, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.79, + "ram_mib": 8.121 + }, + { + "t": 14.437578085002315, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.71, + "ram_mib": 8.203 + }, + { + "t": 14.437608226999146, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.96, + "ram_mib": 6.594 + }, + { + "t": 14.93723977099944, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.79, + "ram_mib": 8.121 + }, + { + "t": 14.93728005400044, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.71, + "ram_mib": 8.203 + }, + { + "t": 14.93729627400171, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.96, + "ram_mib": 6.594 + }, + { + "t": 15.43798454500211, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.78, + "ram_mib": 7.891 + }, + { + "t": 15.438013965002028, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.8, + "ram_mib": 8.457 + }, + { + "t": 15.43802875899928, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 39.33, + "ram_mib": 6.516 + }, + { + "t": 15.937268115001643, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.78, + "ram_mib": 7.891 + }, + { + "t": 15.937305523999385, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.8, + "ram_mib": 8.457 + }, + { + "t": 15.937321154000529, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 39.33, + "ram_mib": 6.516 + }, + { + "t": 16.437967054000183, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 3.0, + "ram_mib": 8.586 + }, + { + "t": 16.43800882600044, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 2.81, + "ram_mib": 8.539 + }, + { + "t": 16.438031435001903, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 46.92, + "ram_mib": 7.016 + }, + { + "t": 16.937144398001692, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 3.0, + "ram_mib": 8.586 + }, + { + "t": 16.937190094999096, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 2.81, + "ram_mib": 8.539 + }, + { + "t": 16.93721143500079, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 46.92, + "ram_mib": 7.016 + }, + { + "t": 17.437196935999964, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.31, + "ram_mib": 7.906 + }, + { + "t": 17.43722450399946, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.63, + "ram_mib": 8.539 + }, + { + "t": 17.437237746999017, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.71, + "ram_mib": 6.762 + }, + { + "t": 17.937712400002056, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.31, + "ram_mib": 7.906 + }, + { + "t": 17.937747768999543, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.63, + "ram_mib": 8.539 + }, + { + "t": 17.937764426002104, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.71, + "ram_mib": 6.762 + }, + { + "t": 18.437931164000474, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.906 + }, + { + "t": 18.437958024002, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 9.465 + }, + { + "t": 18.43797371099936, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.51, + "ram_mib": 6.734 + }, + { + "t": 18.937145611998858, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.906 + }, + { + "t": 18.937173250000342, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 9.465 + }, + { + "t": 18.937188538002374, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.51, + "ram_mib": 6.734 + }, + { + "t": 19.437576153999544, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.906 + }, + { + "t": 19.437636020000355, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.469 + }, + { + "t": 19.43766346800112, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.43, + "ram_mib": 7.465 + }, + { + "t": 19.937254697000753, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.906 + }, + { + "t": 19.93730740400133, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.469 + }, + { + "t": 19.937340297001356, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.43, + "ram_mib": 7.465 + }, + { + "t": 20.437594404000265, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.33, + "ram_mib": 7.906 + }, + { + "t": 20.437626605998958, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.33, + "ram_mib": 8.719 + }, + { + "t": 20.437643149001815, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 40.55, + "ram_mib": 7.012 + }, + { + "t": 20.937195221002185, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.33, + "ram_mib": 7.906 + }, + { + "t": 20.937249579001218, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.33, + "ram_mib": 8.719 + }, + { + "t": 20.93728613699932, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 40.55, + "ram_mib": 7.012 + }, + { + "t": 21.437273775001813, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 8.391 + }, + { + "t": 21.437329668999155, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 2.52, + "ram_mib": 8.219 + }, + { + "t": 21.43736515099954, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.8, + "ram_mib": 6.746 + }, + { + "t": 21.937696380999114, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 8.391 + }, + { + "t": 21.937722610000492, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 2.52, + "ram_mib": 8.219 + }, + { + "t": 21.937742541998887, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.8, + "ram_mib": 6.746 + }, + { + "t": 22.437090750001516, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.91 + }, + { + "t": 22.43711326799894, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 8.219 + }, + { + "t": 22.437120896000124, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.23, + "ram_mib": 7.344 + }, + { + "t": 22.937693480002054, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.91 + }, + { + "t": 22.937723277998884, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 8.219 + }, + { + "t": 22.937767129998974, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.23, + "ram_mib": 7.344 + }, + { + "t": 23.43804991399884, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.656 + }, + { + "t": 23.438101481002377, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.223 + }, + { + "t": 23.43813277600202, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.21, + "ram_mib": 6.918 + }, + { + "t": 23.937157239000953, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.656 + }, + { + "t": 23.93717723000009, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.223 + }, + { + "t": 23.93718428899956, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.21, + "ram_mib": 6.918 + }, + { + "t": 24.43780141499883, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.91 + }, + { + "t": 24.437834550000844, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.219 + }, + { + "t": 24.43785240500074, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 45.64, + "ram_mib": 7.449 + }, + { + "t": 24.937090556999465, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.91 + }, + { + "t": 24.9371336539989, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.219 + }, + { + "t": 24.93716157900053, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 45.64, + "ram_mib": 7.449 + }, + { + "t": 25.43744546200105, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.91 + }, + { + "t": 25.437481279001076, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 8.719 + }, + { + "t": 25.43750172500222, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 40.06, + "ram_mib": 7.598 + }, + { + "t": 25.937044564001553, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.91 + }, + { + "t": 25.93706641300014, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 8.719 + }, + { + "t": 25.937075525002, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 40.06, + "ram_mib": 7.598 + }, + { + "t": 26.437674856999365, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 2.45, + "ram_mib": 7.98 + }, + { + "t": 26.437700448001124, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 2.47, + "ram_mib": 8.465 + }, + { + "t": 26.4377106489992, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.2, + "ram_mib": 7.223 + }, + { + "t": 26.93714894599907, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 2.45, + "ram_mib": 7.98 + }, + { + "t": 26.9371789479992, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 2.47, + "ram_mib": 8.465 + }, + { + "t": 26.937195678001444, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.2, + "ram_mib": 7.223 + }, + { + "t": 27.437105795001116, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.973 + }, + { + "t": 27.43713072399987, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.219 + }, + { + "t": 27.437144381001417, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.62, + "ram_mib": 7.184 + }, + { + "t": 27.937767225001153, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.973 + }, + { + "t": 27.93778673700217, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.219 + }, + { + "t": 27.93779404200177, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.62, + "ram_mib": 7.184 + }, + { + "t": 28.437581228001363, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.91 + }, + { + "t": 28.43760799699885, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.715 + }, + { + "t": 28.437622036999528, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.77, + "ram_mib": 7.879 + }, + { + "t": 28.937610634999146, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.91 + }, + { + "t": 28.937698737001483, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.715 + }, + { + "t": 28.937782267999864, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.77, + "ram_mib": 7.879 + }, + { + "t": 29.437000550999073, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.91 + }, + { + "t": 29.437036875002377, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.219 + }, + { + "t": 29.43705375400168, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 35.06, + "ram_mib": 7.332 + }, + { + "t": 29.937698321002244, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.91 + }, + { + "t": 29.93773499999952, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.219 + }, + { + "t": 29.937759076001385, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 35.06, + "ram_mib": 7.332 + }, + { + "t": 30.43711932899896, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.91 + }, + { + "t": 30.43714559200089, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 8.484 + }, + { + "t": 30.43715627400161, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.61, + "ram_mib": 7.902 + }, + { + "t": 30.937730109999393, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.91 + }, + { + "t": 30.937788672999886, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 8.484 + }, + { + "t": 30.937802856002236, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.61, + "ram_mib": 7.902 + }, + { + "t": 31.43775782100056, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 2.62, + "ram_mib": 7.949 + }, + { + "t": 31.43779400600033, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 2.75, + "ram_mib": 8.461 + }, + { + "t": 31.43780891300048, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 46.8, + "ram_mib": 7.684 + }, + { + "t": 31.937183448000724, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 2.62, + "ram_mib": 7.949 + }, + { + "t": 31.93721722400005, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 2.75, + "ram_mib": 8.461 + }, + { + "t": 31.937231744999735, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 46.8, + "ram_mib": 7.684 + }, + { + "t": 32.43706065100196, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.91 + }, + { + "t": 32.43708274000164, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.219 + }, + { + "t": 32.437092113999825, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 49.1, + "ram_mib": 8.504 + }, + { + "t": 32.93768114799968, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.91 + }, + { + "t": 32.937699004000024, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.219 + }, + { + "t": 32.93770645800032, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 49.1, + "ram_mib": 8.504 + }, + { + "t": 33.437049062998994, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.91 + }, + { + "t": 33.437089589002426, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.215 + }, + { + "t": 33.437098805999995, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 45.17, + "ram_mib": 7.57 + }, + { + "t": 33.93712231899917, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.91 + }, + { + "t": 33.93714076900142, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.215 + }, + { + "t": 33.93714862900015, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 45.17, + "ram_mib": 7.57 + }, + { + "t": 34.43758719499965, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.133 + }, + { + "t": 34.43760526500046, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 8.215 + }, + { + "t": 34.43761276100122, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 43.91, + "ram_mib": 8.379 + }, + { + "t": 34.9370068390017, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.133 + }, + { + "t": 34.93703795699912, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 8.215 + }, + { + "t": 34.93705160600075, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 43.91, + "ram_mib": 8.379 + }, + { + "t": 35.43719835400043, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.91 + }, + { + "t": 35.437230177001766, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.469 + }, + { + "t": 35.437246032000985, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.47, + "ram_mib": 8.258 + }, + { + "t": 35.937823674001265, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.91 + }, + { + "t": 35.93784845100163, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.469 + }, + { + "t": 35.93785854900125, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.47, + "ram_mib": 8.258 + }, + { + "t": 36.43772975600223, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 2.93, + "ram_mib": 7.98 + }, + { + "t": 36.43779437100238, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 3.05, + "ram_mib": 8.258 + }, + { + "t": 36.43782835900129, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 44.12, + "ram_mib": 8.652 + }, + { + "t": 36.93715877200157, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 2.93, + "ram_mib": 7.98 + }, + { + "t": 36.93719727700227, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 3.05, + "ram_mib": 8.258 + }, + { + "t": 36.93721719400128, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 44.12, + "ram_mib": 8.652 + }, + { + "t": 37.437209209001594, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.914 + }, + { + "t": 37.437254347001726, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.219 + }, + { + "t": 37.43728105700211, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.93, + "ram_mib": 9.055 + }, + { + "t": 37.93782705299964, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.914 + }, + { + "t": 37.93788395700176, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.219 + }, + { + "t": 37.93794000900016, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.93, + "ram_mib": 9.055 + }, + { + "t": 38.4379565570016, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.914 + }, + { + "t": 38.437986712000566, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.469 + }, + { + "t": 38.437999718000356, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 45.03, + "ram_mib": 7.961 + }, + { + "t": 38.93722712900126, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.914 + }, + { + "t": 38.937278342000354, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.469 + }, + { + "t": 38.93730992100245, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 45.03, + "ram_mib": 7.961 + }, + { + "t": 39.4371716429996, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.914 + }, + { + "t": 39.43721819500206, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.941 + }, + { + "t": 39.43724751500122, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 38.54, + "ram_mib": 8.48 + }, + { + "t": 39.93728618500245, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.914 + }, + { + "t": 39.937316170002305, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.941 + }, + { + "t": 39.93733166699894, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 38.54, + "ram_mib": 8.48 + }, + { + "t": 40.43803231700076, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.914 + }, + { + "t": 40.43805505600176, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.441 + }, + { + "t": 40.43806298799973, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.87, + "ram_mib": 8.43 + }, + { + "t": 40.93706427500001, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.914 + }, + { + "t": 40.93708466500175, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.441 + }, + { + "t": 40.93709317400135, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.87, + "ram_mib": 8.43 + }, + { + "t": 41.43694865400175, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 2.92, + "ram_mib": 8.34 + }, + { + "t": 41.43697633299962, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 2.64, + "ram_mib": 8.438 + }, + { + "t": 41.43699077400015, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 45.92, + "ram_mib": 8.977 + }, + { + "t": 41.93767130299966, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 2.92, + "ram_mib": 8.34 + }, + { + "t": 41.937696724999114, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 2.64, + "ram_mib": 8.438 + }, + { + "t": 41.93770675700216, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 45.92, + "ram_mib": 8.977 + }, + { + "t": 42.437591257999884, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.914 + }, + { + "t": 42.43764935999934, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.219 + }, + { + "t": 42.4376746300004, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 46.59, + "ram_mib": 8.855 + }, + { + "t": 42.93829909299893, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.914 + }, + { + "t": 42.93833617400014, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.219 + }, + { + "t": 42.93836192299932, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 46.59, + "ram_mib": 8.855 + }, + { + "t": 43.43754349899973, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 7.914 + }, + { + "t": 43.437562791001255, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 8.438 + }, + { + "t": 43.437569637000706, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 38.68, + "ram_mib": 8.668 + }, + { + "t": 43.937124007999955, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 7.914 + }, + { + "t": 43.93716852899888, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 8.438 + }, + { + "t": 43.937196674000006, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 38.68, + "ram_mib": 8.668 + }, + { + "t": 44.43744168700141, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.914 + }, + { + "t": 44.4374765950015, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.215 + }, + { + "t": 44.437495682999725, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 40.19, + "ram_mib": 8.98 + }, + { + "t": 44.937168135998945, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.914 + }, + { + "t": 44.93720403000043, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.215 + }, + { + "t": 44.93721887200081, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 40.19, + "ram_mib": 8.98 + }, + { + "t": 45.43756115400174, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.914 + }, + { + "t": 45.43757962000018, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 8.965 + }, + { + "t": 45.43758566100223, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.52, + "ram_mib": 8.719 + }, + { + "t": 45.93714043500222, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.914 + }, + { + "t": 45.9371976729999, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 8.965 + }, + { + "t": 45.93723808700088, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.52, + "ram_mib": 8.719 + }, + { + "t": 46.437511800999346, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 2.97, + "ram_mib": 8.5 + }, + { + "t": 46.437544856002205, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 3.03, + "ram_mib": 8.223 + }, + { + "t": 46.437560211001255, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.82, + "ram_mib": 9.043 + }, + { + "t": 46.93789760599975, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 2.97, + "ram_mib": 8.5 + }, + { + "t": 46.937927308001235, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 3.03, + "ram_mib": 8.223 + }, + { + "t": 46.93793861300219, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.82, + "ram_mib": 9.043 + }, + { + "t": 47.43793689800077, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.949 + }, + { + "t": 47.43797004700173, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 8.691 + }, + { + "t": 47.437984218002384, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 49.34, + "ram_mib": 9.43 + }, + { + "t": 47.93712335099917, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.949 + }, + { + "t": 47.93715218299985, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 8.691 + }, + { + "t": 47.93716487200072, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 49.34, + "ram_mib": 9.43 + }, + { + "t": 48.437176100000215, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.941 + }, + { + "t": 48.43722747799984, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.473 + }, + { + "t": 48.43725822700071, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.79, + "ram_mib": 8.867 + }, + { + "t": 48.937772720000794, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.941 + }, + { + "t": 48.93785272600144, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.473 + }, + { + "t": 48.93790045900096, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.79, + "ram_mib": 8.867 + }, + { + "t": 49.437600148001366, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.914 + }, + { + "t": 49.437624934998894, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 8.719 + }, + { + "t": 49.437633533001645, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 37.05, + "ram_mib": 8.777 + }, + { + "t": 49.93722085099944, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.914 + }, + { + "t": 49.937265001000924, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 8.719 + }, + { + "t": 49.937289637000504, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 37.05, + "ram_mib": 8.777 + }, + { + "t": 50.436919104999106, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.91 + }, + { + "t": 50.43695818100241, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 8.473 + }, + { + "t": 50.43697708200125, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.9, + "ram_mib": 9.031 + }, + { + "t": 50.9375216490007, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.91 + }, + { + "t": 50.937549320999096, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 8.473 + }, + { + "t": 50.937564489999204, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.9, + "ram_mib": 9.031 + }, + { + "t": 51.437768383999355, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 3.62, + "ram_mib": 8.367 + }, + { + "t": 51.437792749002256, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 2.74, + "ram_mib": 8.219 + }, + { + "t": 51.43780109200088, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.48, + "ram_mib": 9.285 + }, + { + "t": 51.93710170800114, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 3.62, + "ram_mib": 8.367 + }, + { + "t": 51.937140875001205, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 2.74, + "ram_mib": 8.219 + }, + { + "t": 51.93716426800165, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.48, + "ram_mib": 9.285 + }, + { + "t": 52.43751258600241, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.91 + }, + { + "t": 52.43755107499965, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.219 + }, + { + "t": 52.4375718850024, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 49.18, + "ram_mib": 8.949 + }, + { + "t": 52.93699576899962, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.91 + }, + { + "t": 52.93701494199922, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.219 + }, + { + "t": 52.93702278899946, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 49.18, + "ram_mib": 8.949 + }, + { + "t": 53.437941124000645, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.91 + }, + { + "t": 53.43797400200128, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.219 + }, + { + "t": 53.43799249600124, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.96, + "ram_mib": 9.234 + }, + { + "t": 53.937730948000535, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.91 + }, + { + "t": 53.93783560000156, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.219 + }, + { + "t": 53.93788239599962, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.96, + "ram_mib": 9.234 + }, + { + "t": 54.43710300300154, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.91 + }, + { + "t": 54.437149882000085, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.465 + }, + { + "t": 54.43717507800102, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 38.04, + "ram_mib": 9.285 + }, + { + "t": 54.93760377899889, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.91 + }, + { + "t": 54.93762189100016, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.465 + }, + { + "t": 54.937628724001115, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 38.04, + "ram_mib": 9.285 + }, + { + "t": 55.43788991200199, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.91 + }, + { + "t": 55.437921786000516, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.715 + }, + { + "t": 55.437937155002146, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.97, + "ram_mib": 10.22 + }, + { + "t": 55.937241526000435, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.91 + }, + { + "t": 55.93729342300139, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.715 + }, + { + "t": 55.93732172700038, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.97, + "ram_mib": 10.22 + }, + { + "t": 56.437829033002345, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 3.11, + "ram_mib": 7.941 + }, + { + "t": 56.437873374001356, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 2.42, + "ram_mib": 8.227 + }, + { + "t": 56.43789882400233, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.19, + "ram_mib": 9.562 + }, + { + "t": 56.937054250000074, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 3.11, + "ram_mib": 7.941 + }, + { + "t": 56.93708188399978, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 2.42, + "ram_mib": 8.227 + }, + { + "t": 56.93709302800198, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.19, + "ram_mib": 9.562 + }, + { + "t": 57.4376770380004, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.145 + }, + { + "t": 57.437695180000446, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.219 + }, + { + "t": 57.43770206000045, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.43, + "ram_mib": 9.848 + }, + { + "t": 57.93698890399901, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.145 + }, + { + "t": 57.937010926001676, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.219 + }, + { + "t": 57.93701704200066, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.43, + "ram_mib": 9.848 + }, + { + "t": 58.43793496000217, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.91 + }, + { + "t": 58.43795603000035, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.219 + }, + { + "t": 58.437964005999675, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.71, + "ram_mib": 9.633 + }, + { + "t": 58.93722309000077, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.91 + }, + { + "t": 58.93724840499999, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.219 + }, + { + "t": 58.93725870400158, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 47.71, + "ram_mib": 9.633 + }, + { + "t": 59.43750268900112, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.156 + }, + { + "t": 59.43752084600055, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 8.219 + }, + { + "t": 59.437527602000046, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 42.74, + "ram_mib": 10.11 + }, + { + "t": 59.93707501300014, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.156 + }, + { + "t": 59.93710762300179, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 8.219 + }, + { + "t": 59.937121847000526, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 42.74, + "ram_mib": 10.11 + }, + { + "t": 60.43713068800207, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.156 + }, + { + "t": 60.43716391500129, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 8.469 + }, + { + "t": 60.437182395999116, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 42.2, + "ram_mib": 9.074 + }, + { + "t": 60.937907660001656, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 8.156 + }, + { + "t": 60.93793508499948, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 8.469 + }, + { + "t": 60.93794676900143, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 42.2, + "ram_mib": 9.074 + }, + { + "t": 61.4376219040023, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 2.69, + "ram_mib": 7.918 + }, + { + "t": 61.437654204000864, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 3.25, + "ram_mib": 8.918 + }, + { + "t": 61.4376667630022, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.33, + "ram_mib": 10.67 + }, + { + "t": 61.937076706999505, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 2.69, + "ram_mib": 7.918 + }, + { + "t": 61.937106811001286, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 3.25, + "ram_mib": 8.918 + }, + { + "t": 61.93712191799932, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.33, + "ram_mib": 10.67 + }, + { + "t": 62.43776945200079, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.91 + }, + { + "t": 62.43780120000156, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.199 + }, + { + "t": 62.43781594000029, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.02, + "ram_mib": 9.781 + }, + { + "t": 62.93723223000052, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.91 + }, + { + "t": 62.937274824998894, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.199 + }, + { + "t": 62.93730092500118, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.02, + "ram_mib": 9.781 + }, + { + "t": 63.43706858099904, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.898 + }, + { + "t": 63.43711821800025, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.195 + }, + { + "t": 63.43714563699905, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.99, + "ram_mib": 9.574 + }, + { + "t": 63.937126615001034, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.898 + }, + { + "t": 63.93715221399907, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.195 + }, + { + "t": 63.93716522300019, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 48.99, + "ram_mib": 9.574 + }, + { + "t": 64.43750804400042, + "container": "79776f4eb7e4025b4195995a011ba8010814014c3babc3063bf231a562fce006", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.895 + }, + { + "t": 64.43756921699969, + "container": "dd90d22018b890b7266cda36918f1e0cc722e33856b5f4faf1c4c5e8509b2016", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.445 + }, + { + "t": 64.43760508700143, + "container": "58cd5b95ade969973cc74775fcbe028e4d333618c5f1e723790bf4f217fc450b", + "service": "worker", + "cpu_percent": 37.02, + "ram_mib": 9.949 + } + ], + "sdk_diagnostic_audit": { + "source": "Prometheus instant queries at trial start/end, restricted to trial container hostnames", + "warning_error_start": 0.0, + "warning_error_end": 0.0, + "warning_error_delta": 0.0 + } + }, + { + "variant": "A", + "repetition": 2, + "completed_utc": "2026-11-16T15:01:45.158251+00:00", + "successful_uploads": 1000, + "http_errors": 0, + "http_seconds": 11.678841461998672, + "pipeline_seconds": 63.87080619699918, + "collector_window_seconds": 66.9729553449979, + "rps": 85.62493148433096, + "latency_mean_ms": 46.40843432595648, + "latency_p50_ms": 25.725478000822477, + "latency_p99_ms": 202.70121099747485, + "latencies_ms": [ + 14.434173997869948, + 10.073523000755813, + 9.467052997933934, + 11.336458999721799, + 9.328558000561316, + 8.63523400039412, + 8.34002400006284, + 8.608113999798661, + 8.937578000768553, + 8.182580997527111, + 9.013771999889286, + 8.513205000781454, + 8.133585000905441, + 8.866644999216078, + 20.015006000903668, + 13.00597400040715, + 11.903710001206491, + 10.30375999835087, + 9.690961000160314, + 9.780890999536496, + 35.49691599982907, + 12.689808998402441, + 12.217348001286155, + 8.510405001288746, + 10.273062998749083, + 11.536211997736245, + 9.763082998688333, + 9.611199999199016, + 9.96801400106051, + 29.279949998453958, + 9.446652002225164, + 13.137321999238338, + 10.165922001760919, + 49.84060200149543, + 18.803839000611333, + 11.505509999551577, + 188.7110970019421, + 96.71901399997296, + 19.3734439999389, + 61.97857699953602, + 17.81773399852682, + 19.467717000225093, + 85.31719600068755, + 24.00145800129394, + 14.069573997403495, + 66.0005829995498, + 94.9024149995239, + 24.83420600037789, + 12.963482000486692, + 8.500554002239369, + 58.67349899926921, + 25.133273000392364, + 71.24533200112637, + 31.163507999735884, + 68.92687000072328, + 98.99109099933412, + 31.62161699947319, + 20.100902998819947, + 54.28322000079788, + 23.01071300098556, + 71.83464099944104, + 19.239410998125095, + 18.806463998771505, + 81.70209200034151, + 22.46808800191502, + 53.87695600074949, + 28.914090002217563, + 11.906987998372642, + 10.253315998852486, + 48.7349790018925, + 25.136189000477316, + 76.27657400007593, + 17.469241996877827, + 13.83559700116166, + 11.540278999746079, + 62.01790200066171, + 23.667040000873385, + 16.89850099864998, + 58.980860998417484, + 21.009084997785976, + 80.12588700148626, + 94.62683699894114, + 26.19441700153402, + 175.5640379997203, + 200.28584499959834, + 97.54148299907683, + 22.321066000586143, + 20.013200999528635, + 62.35377000120934, + 29.099598999891896, + 72.29760200061719, + 98.73348100154544, + 102.05053499885253, + 97.59706399927381, + 96.32446499745129, + 18.97002199984854, + 18.01366300060181, + 63.19003099997644, + 26.74154999840539, + 76.47962899864069, + 20.67252100096084, + 77.5039910004125, + 23.696762000327, + 76.87956700101495, + 23.212144998979056, + 74.54164400041918, + 28.030034998664632, + 69.96951700057252, + 17.689321997750085, + 19.658488999994006, + 64.989180998964, + 22.801111001172103, + 80.66196099753142, + 21.683584000129486, + 12.90073299969663, + 65.60417999935453, + 25.065195997740375, + 76.51007199820015, + 23.40682599970023, + 72.19008000174654, + 21.397938999143662, + 77.16947399967466, + 23.358738999377238, + 81.77705200068885, + 23.926945999846794, + 74.81045300301048, + 22.497346999443835, + 81.1368639988359, + 96.83577699979651, + 36.07433700017282, + 158.47359600229538, + 305.17476399836596, + 99.01626800274244, + 97.19642299751285, + 21.41128799848957, + 79.1516609970131, + 24.76338599808514, + 77.5658120001026, + 31.412966000061715, + 62.66103500092868, + 12.106768001103774, + 10.370187999797054, + 37.80542000095011, + 40.844037001079414, + 9.81244099966716, + 51.95812899910379, + 38.18635700008599, + 67.88545399831492, + 15.472765000595246, + 13.072396999632474, + 13.632596001116326, + 11.063266996643506, + 38.84178400039673, + 8.63398400178994, + 37.540158999036066, + 20.15659999960917, + 17.191999999340624, + 65.35824700040394, + 22.83723799700965, + 72.85263199810288, + 17.466903998865746, + 9.062151999387424, + 71.98071099992376, + 25.24040999924182, + 72.78299799872912, + 17.514400999061763, + 85.47245600129827, + 24.47540499997558, + 78.08918400041875, + 20.02784599972074, + 77.28702900203643, + 21.46838199769263, + 79.2248350007867, + 23.251212998729898, + 272.9600719976588, + 106.22782299833489, + 100.63783099758439, + 18.751273997622775, + 77.32293700246373, + 20.84185300191166, + 75.79538199934177, + 12.985045999812428, + 10.066175000247313, + 11.7607610009145, + 11.47989400124061, + 58.335663001344074, + 25.725478000822477, + 76.19632199930493, + 99.74826800316805, + 22.8842779979459, + 75.70819099782966, + 22.214549000636907, + 9.600002998922719, + 69.41919500241056, + 97.42201900007785, + 99.47841100074584, + 24.415711999608902, + 13.055411000095773, + 65.67571999767097, + 25.462912999500986, + 73.19043800089275, + 25.03149500262225, + 75.86935899962555, + 98.99502600092092, + 26.849747002415825, + 71.10496299719671, + 27.32642599949031, + 77.89640899864025, + 25.42158999858657, + 73.99106299999403, + 22.33184799843002, + 79.93088099829038, + 26.42392500274582, + 72.90523600022425, + 28.646201000810834, + 68.0431660002796, + 23.56816700194031, + 78.72519900047337, + 26.744910999696003, + 71.5554219968908, + 293.80017800212954, + 106.10336899844697, + 100.32884600150282, + 25.06729800006724, + 74.50306399914552, + 21.24996200291207, + 13.08939500086126, + 63.56248200245318, + 23.304564998397836, + 11.477534997538896, + 64.49334299759357, + 20.204005002597114, + 19.392390000575688, + 57.57064600038575, + 81.91096399968956, + 98.90034699856187, + 21.867488998395856, + 93.82023600119282, + 20.005276001029415, + 15.625994998117676, + 9.743096001329832, + 9.121055001742207, + 53.58009200062952, + 21.229944002698176, + 76.76220299981651, + 26.624082998750964, + 69.91206999737187, + 9.253993001038907, + 10.714777999965008, + 10.045670002000406, + 13.62054499986698, + 9.53515699802665, + 11.35486199927982, + 11.419318998378003, + 9.729068999149604, + 8.33850200069719, + 8.784558001934784, + 9.21307099997648, + 8.164940001734067, + 8.88578400190454, + 8.064116002060473, + 34.62439500071923, + 11.547689999133581, + 12.762671001837589, + 12.024842002574587, + 10.750917997938814, + 12.256892998266267, + 40.05692999999155, + 13.154045002011117, + 11.771243000112008, + 15.150488001381746, + 10.496557999431388, + 12.470235000364482, + 43.121711001731455, + 11.87177500105463, + 11.398411999834934, + 12.284112999623176, + 9.91161699857912, + 56.06545500268112, + 14.620747999288142, + 10.607223000988597, + 181.22548600149457, + 16.44903999840608, + 83.64968200112344, + 15.291388001060113, + 18.580509000457823, + 46.98035799810896, + 19.910336999600986, + 20.90323200172861, + 80.29533399894717, + 24.39944099751301, + 13.58023699867772, + 65.56907199774287, + 100.47199299879139, + 21.475539997481974, + 77.6438219982083, + 95.69794900016859, + 31.96793700044509, + 12.2581209980126, + 60.621095002716174, + 95.14675899845315, + 29.949890998977935, + 70.85185500181979, + 26.06400700096856, + 76.04673900277703, + 23.06908500031568, + 16.669968998030527, + 56.61391700050444, + 37.2231709989137, + 61.34745200324687, + 12.889232002635254, + 17.44031999987783, + 74.05651599765406, + 28.550741000799462, + 70.20660900161602, + 17.83987399903708, + 14.919500001269625, + 10.391946001618635, + 59.941504998278106, + 25.468553001701366, + 70.58716299798107, + 24.06609500030754, + 15.105427999515086, + 65.36457400216023, + 101.71786900173174, + 22.701967998727923, + 171.77024299962795, + 199.57100600004196, + 103.7300719981431, + 24.976038999739103, + 16.045802000007825, + 60.96388100195327, + 96.21280199644389, + 102.5075769975956, + 100.4189920022327, + 99.64285000023665, + 93.65576599884662, + 24.186167000152636, + 17.488821998995263, + 61.565972999233054, + 26.047788000141736, + 76.30990200050292, + 23.2279310002923, + 80.08754300317378, + 24.142604001099244, + 71.93666199964355, + 94.8570770015067, + 30.66820700041717, + 73.46231400151737, + 18.548981999629177, + 17.031281000527088, + 65.01199699778226, + 22.1187090028252, + 77.94063799883588, + 24.613960998976836, + 75.37130099808564, + 23.34488399719703, + 78.64951900046435, + 24.23698699931265, + 70.06288599950494, + 23.78511699862429, + 80.98895799776074, + 19.45634000003338, + 82.8750359978585, + 23.32323199880193, + 71.9758279992675, + 21.916025998507394, + 84.3930500013812, + 96.64523999890662, + 99.82357199987746, + 198.13648499984993, + 99.5638569984294, + 110.15881400089711, + 90.08865899886587, + 95.82348500043736, + 19.911390998458955, + 18.571878998045577, + 67.32842700148467, + 22.62873699874035, + 77.85497100121574, + 41.52339599750121, + 51.448709000396775, + 10.466722000273876, + 12.009457001113333, + 10.225175999948988, + 33.95802900195122, + 33.11586000199895, + 11.05714799996349, + 60.77039200317813, + 29.62007799942512, + 65.20934400032274, + 17.90260699999635, + 15.440309998666635, + 11.873420000483748, + 38.6044970000512, + 52.30615999971633, + 20.83878499979619, + 17.52195299923187, + 69.85334899945883, + 22.568803000467597, + 71.87799000166706, + 96.27164699850255, + 26.38407100312179, + 75.35804500002996, + 18.344987998716533, + 9.442585000215331, + 7.626978996995604, + 66.52751300134696, + 23.543934999906924, + 70.90283800062025, + 19.269429001724347, + 15.939692002575612, + 8.957539997936692, + 56.06495699976222, + 25.178591000440065, + 13.932991001638584, + 63.78330499865115, + 24.6132470019802, + 273.3041460014647, + 107.75992499839049, + 100.38107800210128, + 19.941103000746807, + 72.66054700085078, + 24.84881499913172, + 74.1131700015103, + 12.005291002424201, + 10.636390001309337, + 12.378105999232503, + 66.93100799748208, + 21.547063002799405, + 80.27823000156786, + 23.657535999518586, + 80.02019500054303, + 24.141473997588037, + 74.52079400172806, + 22.22548700228799, + 76.07796900265384, + 98.8597449977533, + 101.14405899730627, + 20.52238200121792, + 15.754452997498447, + 65.59884899979807, + 22.741013002814725, + 74.46270500076935, + 23.161391000030562, + 15.88208699831739, + 65.04957499782904, + 26.066849000926595, + 66.3482469972223, + 27.613531998213148, + 19.190123002772452, + 55.03335100002005, + 25.60604799873545, + 80.23239899921464, + 91.27826599797118, + 21.532243998080958, + 88.1272890001128, + 26.43042899944703, + 72.31931999922381, + 28.19028700105264, + 71.33379899823922, + 29.06024800176965, + 68.82926100297482, + 99.3728050016216, + 33.75384600076359, + 263.07800699942163, + 104.54359899813426, + 99.80804999941029, + 25.279292996856384, + 77.91464700130746, + 19.935061001888243, + 13.93097600157489, + 62.851001999661094, + 25.317545998404967, + 9.889014003420016, + 60.96421899928828, + 23.88502800022252, + 20.95187500162865, + 20.41290899796877, + 37.00906800077064, + 81.73439799793414, + 96.71723399878829, + 20.838725999055896, + 95.23267099939403, + 20.0684880001063, + 15.195446001598611, + 9.650812000472797, + 59.99652399987099, + 21.360577000450576, + 77.57910000145785, + 21.571117998973932, + 12.405781999405008, + 65.04421600038768, + 10.147984998184256, + 11.901934998604702, + 9.526113997708308, + 9.250883998902282, + 8.442870999715524, + 53.55051299920888, + 14.566973997716559, + 14.230018001399003, + 12.650847998884274, + 10.093806999066146, + 11.45759800056112, + 8.970831000624457, + 9.494937999988906, + 8.411978000367526, + 8.450978999462677, + 7.7827409986639395, + 8.789434999926016, + 8.96286399802193, + 8.036500999878626, + 36.82042500076932, + 15.277177000825759, + 11.674186996970093, + 10.232705000817077, + 12.066937000781763, + 9.079993000341346, + 31.49693799787201, + 13.058520002232399, + 22.878564999700757, + 10.048832999018487, + 11.617821000982076, + 9.095186000195099, + 34.972500001458684, + 11.899485001777066, + 9.672872998635285, + 14.358346998051275, + 8.69158800196601, + 8.555426000384614, + 55.77446000097552, + 13.69528299983358, + 13.600311998743564, + 172.80210200260626, + 101.94728699934785, + 16.51810600014869, + 17.429646002710797, + 45.540279999841005, + 19.146004000504036, + 20.038861002831254, + 15.482309998333221, + 68.62245400043321, + 23.18669699889142, + 14.301095001428621, + 64.71564499952365, + 20.265787999960594, + 74.42151999930502, + 26.235675999487285, + 76.98357799745281, + 27.54809000180103, + 73.20955999966827, + 30.18257099756738, + 68.96050999785075, + 99.64247800235171, + 30.775483999605058, + 19.439886000327533, + 52.571739000995876, + 24.55598800224834, + 73.12958099646494, + 29.92166100011673, + 12.958122999407351, + 84.70650900198962, + 21.421653997094836, + 46.919533000618685, + 11.882485003297916, + 12.18701399920974, + 13.06531500085839, + 63.85854499967536, + 26.869811001233757, + 15.30574800199247, + 59.03520799984108, + 16.65051400050288, + 13.499157001206186, + 12.226695998833748, + 58.92975999813643, + 23.48035999966669, + 17.929352001374355, + 59.38470499677351, + 22.17405700139352, + 80.47294399875682, + 94.70403299928876, + 25.989230001869146, + 272.32737799931783, + 104.649019001954, + 97.53188399918145, + 23.37853599965456, + 17.498081000667298, + 65.15871899682679, + 96.17170400088071, + 99.15381700193393, + 99.79107199978898, + 100.38108699882287, + 23.828375000448432, + 75.44895599858137, + 21.961883998301346, + 79.70990600006189, + 24.581226000009337, + 76.46696300071198, + 21.23257399944123, + 16.809581997222267, + 65.15255499834893, + 26.061772001412464, + 67.09292700179503, + 23.695394997048425, + 12.596460001077503, + 63.22884399924078, + 25.970865000999765, + 73.89571599924238, + 17.091083998820977, + 18.13112299714703, + 21.468228002049727, + 47.19047199978377, + 23.796445999323623, + 73.81945000088308, + 23.14609300083248, + 12.851348001277074, + 64.22452600236284, + 25.20820899735554, + 77.11506199848372, + 25.21253200029605, + 68.22510699930717, + 27.277794000838185, + 79.42674000150873, + 95.98302099766443, + 23.50889800072764, + 76.62768999944092, + 21.906313999352278, + 81.0108539990324, + 98.95538300042972, + 33.45688600165886, + 162.8688550008519, + 302.9759590026515, + 96.65417699943646, + 101.01433800082305, + 22.851863999676425, + 81.03581800241955, + 22.17748600014602, + 76.3751640006376, + 31.471495000005234, + 64.48107699907268, + 10.85665800201241, + 10.966548001306364, + 27.601548998063663, + 48.85131300034118, + 9.78845999998157, + 45.646660997590516, + 21.376032000262057, + 26.021081997896545, + 68.98468299914384, + 16.54105499983416, + 13.280229002702981, + 12.184416998934466, + 8.63900799959083, + 29.783837002469227, + 15.721544998086756, + 38.76879500239738, + 19.833857000776334, + 17.182417002914008, + 65.13333800103283, + 24.12479600025108, + 74.17065800109413, + 17.315816003247164, + 79.64004099994781, + 23.50727999873925, + 73.81340099891531, + 84.55848199810134, + 21.422221998363966, + 23.836961001507007, + 9.460615998250432, + 65.48043099974166, + 20.070476002729265, + 75.49069299784605, + 23.41332899959525, + 80.32864000051632, + 21.23963100166293, + 78.79266599775292, + 199.2185810013325, + 106.0439739994763, + 100.13339899887796, + 16.79631500155665, + 76.850478999404, + 20.37204800217296, + 75.96619199830457, + 13.675136000529164, + 10.211386001174105, + 11.457564000011189, + 11.781535002228338, + 60.01086600008421, + 17.46615199954249, + 15.389252002933063, + 70.0231230002828, + 20.175386998744216, + 78.65302299978794, + 95.83835000012186, + 23.09109400084708, + 75.51723399956245, + 101.8727789996774, + 97.82103499674122, + 22.17028200175264, + 15.25490000130958, + 65.13580399769126, + 26.195750000624685, + 74.94151699938811, + 21.371758997702273, + 77.6374119996035, + 25.703767001687083, + 73.95553799869958, + 29.992106999998214, + 69.43677799790748, + 25.924169000063557, + 76.02291199873434, + 98.91990699907183, + 21.11695200073882, + 79.1173309989972, + 101.0002879993408, + 30.69530399807263, + 67.88157199844136, + 26.516510999499587, + 74.66018600098323, + 97.09876299893949, + 35.47681100098998, + 261.18794699868886, + 104.83751200081315, + 101.50454299946432, + 28.310722998867277, + 73.71148799938965, + 21.362580999266356, + 73.65600900084246, + 23.155066002800595, + 76.56338900051196, + 25.380283001140924, + 20.07502899868996, + 54.47482699673856, + 81.73899300163612, + 23.825188996852376, + 96.21069499917212, + 93.27852099886513, + 18.695288003073074, + 13.343033999262843, + 10.412627998448443, + 9.178485001029912, + 55.52363300012075, + 21.170321000681724, + 77.98138900034246, + 22.928169997612713, + 70.57104100022116, + 11.314241000945913, + 11.725434000254609, + 10.63024600080098, + 10.109056998771848, + 14.897986999130808, + 10.39960100024473, + 10.551131999818608, + 11.714758999005426, + 9.518950002529891, + 8.849922000081278, + 8.27328300147201, + 10.7912959974783, + 8.13543600088451, + 9.297314998548245, + 8.404509000683902, + 43.04712500015739, + 13.12616800350952, + 13.349491000553826, + 10.601178000797518, + 10.70665799852577, + 10.376950001955265, + 8.852322000166168, + 7.820339000318199, + 24.806510999042075, + 12.146615001256578, + 8.519619001162937, + 13.674854999408126, + 11.30448300318676, + 53.42602499877103, + 10.060812997835455, + 12.562077998154564, + 10.150981001061155, + 8.865331001288723, + 10.94551400092314, + 8.902801997464849, + 39.71307700339821, + 13.86395299778087, + 92.97698500085971, + 102.34756299905712, + 12.257975002285093, + 81.17366599981324, + 18.55371199781075, + 17.017319998558378, + 62.672054998984095, + 19.569576001231326, + 17.07082699795137, + 69.40290200145682, + 22.624553999776253, + 13.47842699760804, + 66.7328429990448, + 20.031153999298112, + 78.60781699855579, + 21.498653000890044, + 13.320493999344762, + 64.51060400286224, + 95.97245099939755, + 33.77827200165484, + 69.14545700055896, + 98.17434399883496, + 29.405853001662763, + 20.937180997862015, + 54.202223000174854, + 94.53600199776702, + 17.028341000695946, + 19.307857000967488, + 60.472291999758454, + 11.70047999767121, + 13.744604999374133, + 20.11250400028075, + 56.040165000013076, + 29.079975000058766, + 12.798228999599814, + 59.49281100038206, + 29.104354998708004, + 70.24529100090149, + 16.05289399958565, + 15.822433000721503, + 66.11386900112848, + 25.231958999938797, + 20.031587999255862, + 55.805899002734805, + 23.990141999092884, + 77.07072799894377, + 21.14137999888044, + 8.536560999345966, + 76.91625299776206, + 24.515185999916866, + 169.54003200225998, + 201.48864400107414, + 100.72052800023812, + 26.325577997340588, + 14.986367998062633, + 60.65256000147201, + 28.85928500109003, + 70.37289000072633, + 100.78164500009734, + 99.04243900018628, + 97.24744899722282, + 25.455341001361376, + 78.15739600118832, + 20.55795699925511, + 16.85767900198698, + 12.050099998305086, + 48.00799599979655, + 23.759527000947855, + 75.86723799977335, + 22.967883000092115, + 81.14495799964061, + 96.29431899884366, + 25.255911001295317, + 10.149388999707298, + 63.31335800132365, + 26.182557001448004, + 71.39423199987505, + 17.436129000998335, + 18.192235998867545, + 66.6698000022734, + 22.52520000183722, + 77.32850200045505, + 24.940027000411646, + 75.43912099936279, + 20.576689999870723, + 81.0385180011508, + 25.289446999522625, + 71.45043700074893, + 20.94659700014745, + 80.56804199804901, + 23.302680001506815, + 82.50575900092372, + 23.465194000891643, + 72.35380500060273, + 25.351565000164555, + 77.07649800067884, + 95.94445699985954, + 33.402805998775875, + 164.79424899807782, + 200.34786500036716, + 110.7034009983181, + 89.50225199805573, + 99.67148999930941, + 19.141886001307284, + 83.10783699926105, + 24.077554000541568, + 80.57085899781669, + 28.131831000791863, + 62.94930299918633, + 10.902335001446772, + 11.648147999949288, + 37.580852997052716, + 39.91699600010179, + 10.955557001580019, + 55.83889999979874, + 33.94602600019425, + 70.20054500026163, + 13.776879000943154, + 12.56542099872604, + 11.205345999769634, + 43.24327499853098, + 13.797849998809397, + 38.54409699852113, + 18.253231999551645, + 17.963574999157572, + 69.52563099912368, + 94.52796000186936, + 18.272993998834863, + 10.266965000482742, + 72.00732400087873, + 24.715098999877227, + 74.01910000044154, + 18.408537001960212, + 80.81771899742307, + 24.79686599690467, + 78.57851999870036, + 19.969682001828915, + 11.530129999300698, + 67.40990999969654, + 21.390154000982875, + 12.618846998520894, + 66.3294969999697, + 24.897675997635815, + 270.42012499805423, + 202.70121099747485, + 22.327437000058126, + 11.618081000051461, + 67.54125600127736, + 22.107622000476113, + 71.7124340008013, + 14.02066599985119, + 9.416307002538815, + 10.453650000272319, + 11.032066002371721, + 63.42969699835521, + 18.957652999233687, + 14.04129699949408, + 68.5717830019712, + 19.207231998734642, + 77.53505300206598, + 25.02408500004094, + 76.42505799958599, + 22.218091999093303, + 78.33811899763532, + 97.69857600258547, + 99.90987399942242, + 20.51179000045522, + 78.19531499990262, + 22.873005997098517, + 75.89170400024159, + 18.52180999776465, + 10.342901001422433, + 72.45984900146141, + 26.094937002199003, + 73.36609900085023, + 30.80983500331058, + 72.58544100113795, + 24.535672000638442, + 77.92263200099114, + 25.678867001261096, + 72.18638199992711, + 27.140915000927635, + 73.17785899795126, + 26.808276001247577, + 76.4303910000308, + 28.222877997905016, + 62.277663997519994, + 24.342549997527385, + 82.37059800012503, + 27.030507000745274, + 73.18196300184354, + 98.31863300132682, + 294.24338600074407, + 19.91869899939047, + 87.15944899813621, + 27.09314200183144, + 68.6983470004634, + 21.905262998188846, + 14.878909998515155, + 65.71064300078433, + 24.284412000270095, + 74.1745749983238, + 22.16297699851566, + 20.02007899864111, + 55.74051499934285, + 23.798780999641167, + 79.2414009993081, + 96.93100000004051, + 97.33932300150627, + 20.88057299988577, + 14.269473998865578, + 69.50615300229401, + 20.923998999933247, + 77.2936050016142, + 21.661201000824803, + 13.074500999209704, + 64.28023500120617 + ], + "resources": { + "api": { + "cpu_percent_mean": 12.21503937007874, + "ram_mib_mean": 14.330787401574803, + "ram_mib_max": 21.484, + "samples": 254, + "cpu_seconds_per_job_estimate": 0.007801844122950142 + }, + "worker": { + "cpu_percent_mean": 39.75102362204724, + "ram_mib_mean": 6.878204724409449, + "ram_mib_max": 9.406, + "samples": 127, + "cpu_seconds_per_job_estimate": 0.02538929925896116 + } + }, + "collector_deltas": { + "otelcol_receiver_accepted_spans": 0, + "otelcol_exporter_sent_spans": 0, + "otelcol_receiver_refused_spans": 0, + "otelcol_exporter_send_failed_spans": 0, + "otelcol_receiver_accepted_log_records": 0, + "otelcol_receiver_accepted_metric_points": 0 + }, + "ingest_spans_per_second": 0.0, + "tempo_spans_per_second": 0.0, + "trace_retention": 0.0, + "stats_samples": [ + { + "t": 0.455142660997808, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.191 + }, + { + "t": 0.45521138799813343, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 6.254 + }, + { + "t": 0.4552520619981806, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 0.1, + "ram_mib": 4.266 + }, + { + "t": 0.9547844099979557, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.191 + }, + { + "t": 0.9548507399995287, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 6.254 + }, + { + "t": 0.9548798199975863, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 0.1, + "ram_mib": 4.266 + }, + { + "t": 1.4547737590000906, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 40.45, + "ram_mib": 8.219 + }, + { + "t": 1.4548523789999308, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 35.83, + "ram_mib": 6.895 + }, + { + "t": 1.4548857179979677, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 5.81, + "ram_mib": 4.543 + }, + { + "t": 1.9549851689989737, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 40.45, + "ram_mib": 8.219 + }, + { + "t": 1.9550256799993804, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 35.83, + "ram_mib": 6.895 + }, + { + "t": 1.955039095999382, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 5.81, + "ram_mib": 4.543 + }, + { + "t": 2.455004655999801, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 37.01, + "ram_mib": 8.789 + }, + { + "t": 2.455090552997717, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 39.65, + "ram_mib": 7.316 + }, + { + "t": 2.4551319829988643, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 25.34, + "ram_mib": 5.301 + }, + { + "t": 2.9554502659993886, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 37.01, + "ram_mib": 8.789 + }, + { + "t": 2.95551588699891, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 39.65, + "ram_mib": 7.316 + }, + { + "t": 2.95554437499959, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 25.34, + "ram_mib": 5.301 + }, + { + "t": 3.4548945169990475, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 26.21, + "ram_mib": 9.867 + }, + { + "t": 3.454988935998699, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 26.06, + "ram_mib": 9.082 + }, + { + "t": 3.4550374649988953, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 15.39, + "ram_mib": 4.574 + }, + { + "t": 3.9561700289996224, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 26.21, + "ram_mib": 9.867 + }, + { + "t": 3.9562655259978783, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 26.06, + "ram_mib": 9.082 + }, + { + "t": 3.9563024819981365, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 15.39, + "ram_mib": 4.574 + }, + { + "t": 4.455440890997124, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 28.43, + "ram_mib": 8.164 + }, + { + "t": 4.4555042190004315, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 26.67, + "ram_mib": 8.191 + }, + { + "t": 4.455539270998997, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 17.76, + "ram_mib": 5.352 + }, + { + "t": 4.955784720998054, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 28.43, + "ram_mib": 8.164 + }, + { + "t": 4.9559140099991055, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 26.67, + "ram_mib": 8.191 + }, + { + "t": 4.955976458997611, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 17.76, + "ram_mib": 5.352 + }, + { + "t": 5.455409287998918, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 35.3, + "ram_mib": 9.238 + }, + { + "t": 5.455486329999985, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 36.22, + "ram_mib": 8.773 + }, + { + "t": 5.455519106999418, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 22.27, + "ram_mib": 5.574 + }, + { + "t": 5.954165366998495, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 35.3, + "ram_mib": 9.238 + }, + { + "t": 5.954189222997229, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 36.22, + "ram_mib": 8.773 + }, + { + "t": 5.954196285998478, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 22.27, + "ram_mib": 5.574 + }, + { + "t": 6.4548625930001435, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 20.17, + "ram_mib": 8.992 + }, + { + "t": 6.4548870689977775, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 20.51, + "ram_mib": 7.461 + }, + { + "t": 6.454899934997229, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 12.55, + "ram_mib": 4.711 + }, + { + "t": 6.954677682999318, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 20.17, + "ram_mib": 8.992 + }, + { + "t": 6.954734615999769, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 20.51, + "ram_mib": 7.461 + }, + { + "t": 6.954757845000131, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 12.55, + "ram_mib": 4.711 + }, + { + "t": 7.455306357998779, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 36.91, + "ram_mib": 12.23 + }, + { + "t": 7.455382799998915, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 37.72, + "ram_mib": 9.254 + }, + { + "t": 7.455424601997947, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 22.24, + "ram_mib": 4.672 + }, + { + "t": 7.955410750997544, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 36.91, + "ram_mib": 12.23 + }, + { + "t": 7.955511538999417, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 37.72, + "ram_mib": 9.254 + }, + { + "t": 7.955573101000482, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 22.24, + "ram_mib": 4.672 + }, + { + "t": 8.455442809998203, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 30.13, + "ram_mib": 9.551 + }, + { + "t": 8.455552309998893, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 20.72, + "ram_mib": 8.746 + }, + { + "t": 8.455608634998498, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 15.2, + "ram_mib": 4.441 + }, + { + "t": 8.954712573999132, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 30.13, + "ram_mib": 9.551 + }, + { + "t": 8.95479068199711, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 20.72, + "ram_mib": 8.746 + }, + { + "t": 8.954836416000035, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 15.2, + "ram_mib": 4.441 + }, + { + "t": 9.45574473599845, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 29.11, + "ram_mib": 8.695 + }, + { + "t": 9.45586974699836, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 29.07, + "ram_mib": 8.66 + }, + { + "t": 9.45592845399733, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 17.83, + "ram_mib": 5.23 + }, + { + "t": 9.955753981997987, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 29.11, + "ram_mib": 8.695 + }, + { + "t": 9.955843073999858, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 29.07, + "ram_mib": 8.66 + }, + { + "t": 9.955877174998022, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 17.83, + "ram_mib": 5.23 + }, + { + "t": 10.455703037998319, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 33.84, + "ram_mib": 9.207 + }, + { + "t": 10.455775922000612, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 34.32, + "ram_mib": 8.559 + }, + { + "t": 10.45580279999922, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 20.41, + "ram_mib": 4.309 + }, + { + "t": 10.955285669999284, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 33.84, + "ram_mib": 9.207 + }, + { + "t": 10.95533968199743, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 34.32, + "ram_mib": 8.559 + }, + { + "t": 10.955364235000161, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 20.41, + "ram_mib": 4.309 + }, + { + "t": 11.45549417899747, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 22.8, + "ram_mib": 8.949 + }, + { + "t": 11.455576870997902, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 24.67, + "ram_mib": 7.004 + }, + { + "t": 11.455611785997462, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 16.71, + "ram_mib": 5.418 + }, + { + "t": 11.954433783997956, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 22.8, + "ram_mib": 8.949 + }, + { + "t": 11.954492274999211, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 24.67, + "ram_mib": 7.004 + }, + { + "t": 11.954524614000547, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 16.71, + "ram_mib": 5.418 + }, + { + "t": 12.45466952499919, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 18.71, + "ram_mib": 7.004 + }, + { + "t": 12.454704263000167, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 21.44, + "ram_mib": 7.176 + }, + { + "t": 12.454715583997313, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 36.56, + "ram_mib": 4.957 + }, + { + "t": 12.955253546999302, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 18.71, + "ram_mib": 7.004 + }, + { + "t": 12.955286076998163, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 21.44, + "ram_mib": 7.176 + }, + { + "t": 12.955299160999857, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 36.56, + "ram_mib": 4.957 + }, + { + "t": 13.455569539997668, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 3.49, + "ram_mib": 6.754 + }, + { + "t": 13.455660401999921, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.36, + "ram_mib": 6.691 + }, + { + "t": 13.455693710999185, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.28, + "ram_mib": 5.574 + }, + { + "t": 13.954873274997226, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 3.49, + "ram_mib": 6.754 + }, + { + "t": 13.954900545999408, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.36, + "ram_mib": 6.691 + }, + { + "t": 13.954910205997294, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.28, + "ram_mib": 5.574 + }, + { + "t": 14.454921937998733, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.36, + "ram_mib": 6.75 + }, + { + "t": 14.454968285997893, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.64, + "ram_mib": 6.688 + }, + { + "t": 14.454993507999461, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 35.22, + "ram_mib": 6.059 + }, + { + "t": 14.954976315999374, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.36, + "ram_mib": 6.75 + }, + { + "t": 14.955013835999125, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.64, + "ram_mib": 6.688 + }, + { + "t": 14.955030577999423, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 35.22, + "ram_mib": 6.059 + }, + { + "t": 15.454734737999388, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.32, + "ram_mib": 6.988 + }, + { + "t": 15.454773333000048, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.33, + "ram_mib": 6.691 + }, + { + "t": 15.45479517000058, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.43, + "ram_mib": 6.047 + }, + { + "t": 15.955174397000519, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.32, + "ram_mib": 6.988 + }, + { + "t": 15.955220030999044, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.33, + "ram_mib": 6.691 + }, + { + "t": 15.95524709899837, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.43, + "ram_mib": 6.047 + }, + { + "t": 16.45503425700008, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.36, + "ram_mib": 6.988 + }, + { + "t": 16.455055218997586, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 6.691 + }, + { + "t": 16.455062130000442, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.69, + "ram_mib": 6.559 + }, + { + "t": 16.95482373499908, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.36, + "ram_mib": 6.988 + }, + { + "t": 16.954854472998704, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 6.691 + }, + { + "t": 16.954867223998008, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.69, + "ram_mib": 6.559 + }, + { + "t": 17.45504218699716, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.0 + }, + { + "t": 17.45507315500072, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.7, + "ram_mib": 7.223 + }, + { + "t": 17.455088296999747, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.02, + "ram_mib": 6.191 + }, + { + "t": 17.95466497799862, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.0 + }, + { + "t": 17.95470528199803, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.7, + "ram_mib": 7.223 + }, + { + "t": 17.954722058999323, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.02, + "ram_mib": 6.191 + }, + { + "t": 18.455032874997414, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 2.25, + "ram_mib": 7.074 + }, + { + "t": 18.45507673099928, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.688 + }, + { + "t": 18.45510325599753, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.73, + "ram_mib": 5.922 + }, + { + "t": 18.954982245999418, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 2.25, + "ram_mib": 7.074 + }, + { + "t": 18.955027935000544, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.688 + }, + { + "t": 18.95505339399824, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.73, + "ram_mib": 5.922 + }, + { + "t": 19.454596608997235, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.754 + }, + { + "t": 19.45462501200018, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.688 + }, + { + "t": 19.454647552000097, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 43.33, + "ram_mib": 5.941 + }, + { + "t": 19.95490492799945, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.754 + }, + { + "t": 19.95493259000068, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.688 + }, + { + "t": 19.95493922499736, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 43.33, + "ram_mib": 5.941 + }, + { + "t": 20.454323574998853, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 7.008 + }, + { + "t": 20.454342524997628, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.688 + }, + { + "t": 20.4543497880004, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.5, + "ram_mib": 6.211 + }, + { + "t": 20.95494866199806, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 7.008 + }, + { + "t": 20.954971183000453, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.688 + }, + { + "t": 20.95497873899876, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.5, + "ram_mib": 6.211 + }, + { + "t": 21.454971684997872, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.754 + }, + { + "t": 21.455001901998912, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.688 + }, + { + "t": 21.455011105997983, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.5, + "ram_mib": 6.105 + }, + { + "t": 21.954193793997547, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.754 + }, + { + "t": 21.95422487399992, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.688 + }, + { + "t": 21.954239471997425, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.5, + "ram_mib": 6.105 + }, + { + "t": 22.454842351999105, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.754 + }, + { + "t": 22.454874017999828, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.63, + "ram_mib": 7.086 + }, + { + "t": 22.45489006400021, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.72, + "ram_mib": 6.898 + }, + { + "t": 22.955752283000038, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.754 + }, + { + "t": 22.955823460997635, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.63, + "ram_mib": 7.086 + }, + { + "t": 22.955856929998845, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.72, + "ram_mib": 6.898 + }, + { + "t": 23.45475410799918, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 2.86, + "ram_mib": 7.043 + }, + { + "t": 23.45478547699895, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 7.074 + }, + { + "t": 23.45479983000041, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 36.21, + "ram_mib": 6.395 + }, + { + "t": 23.954985772998043, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 2.86, + "ram_mib": 7.043 + }, + { + "t": 23.955017431999295, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 7.074 + }, + { + "t": 23.95503306200044, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 36.21, + "ram_mib": 6.395 + }, + { + "t": 24.45481142800054, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.75 + }, + { + "t": 24.45484196599864, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.688 + }, + { + "t": 24.45485686000029, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.16, + "ram_mib": 6.23 + }, + { + "t": 24.955156134998106, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.75 + }, + { + "t": 24.95520970600046, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.688 + }, + { + "t": 24.955241654999554, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.16, + "ram_mib": 6.23 + }, + { + "t": 25.45503214099881, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.75 + }, + { + "t": 25.455082391999895, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.684 + }, + { + "t": 25.45511160299793, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.31, + "ram_mib": 6.094 + }, + { + "t": 25.955146902000706, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.75 + }, + { + "t": 25.955185029997665, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.684 + }, + { + "t": 25.95520696099993, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.31, + "ram_mib": 6.094 + }, + { + "t": 26.4544520069976, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.75 + }, + { + "t": 26.454495665999275, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.684 + }, + { + "t": 26.45452313900023, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.24, + "ram_mib": 6.941 + }, + { + "t": 26.95505561399841, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.75 + }, + { + "t": 26.95508771099776, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.684 + }, + { + "t": 26.95510386800015, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.24, + "ram_mib": 6.941 + }, + { + "t": 27.455196023998724, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.75 + }, + { + "t": 27.455289907997212, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.41, + "ram_mib": 7.285 + }, + { + "t": 27.455341714998212, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.45, + "ram_mib": 6.461 + }, + { + "t": 27.955056189999596, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.75 + }, + { + "t": 27.955076078000275, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.41, + "ram_mib": 7.285 + }, + { + "t": 27.955083226999704, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.45, + "ram_mib": 6.461 + }, + { + "t": 28.4547551129981, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 3.12, + "ram_mib": 6.75 + }, + { + "t": 28.4548011629995, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.836 + }, + { + "t": 28.454827277997538, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 37.3, + "ram_mib": 7.562 + }, + { + "t": 28.95508805099962, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 3.12, + "ram_mib": 6.75 + }, + { + "t": 28.955130438000197, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.836 + }, + { + "t": 28.95515636900018, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 37.3, + "ram_mib": 7.562 + }, + { + "t": 29.45511333399918, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.75 + }, + { + "t": 29.455156919997535, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.684 + }, + { + "t": 29.455182918998617, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.97, + "ram_mib": 6.969 + }, + { + "t": 29.954851254999085, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.75 + }, + { + "t": 29.954914513000404, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.684 + }, + { + "t": 29.954954954999266, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.97, + "ram_mib": 6.969 + }, + { + "t": 30.454468956999335, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.75 + }, + { + "t": 30.454500929998176, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.684 + }, + { + "t": 30.45451589000004, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.39, + "ram_mib": 7.016 + }, + { + "t": 30.955028690998006, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.75 + }, + { + "t": 30.955062551998708, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.684 + }, + { + "t": 30.95507957600057, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.39, + "ram_mib": 7.016 + }, + { + "t": 31.455052622997755, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.75 + }, + { + "t": 31.455104917000426, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.684 + }, + { + "t": 31.455134619998717, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.28, + "ram_mib": 6.629 + }, + { + "t": 31.95468148999862, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.75 + }, + { + "t": 31.954735372997675, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.684 + }, + { + "t": 31.954765954000322, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.28, + "ram_mib": 6.629 + }, + { + "t": 32.45486956999957, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.75 + }, + { + "t": 32.454973836000136, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.53, + "ram_mib": 7.172 + }, + { + "t": 32.45503360099974, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.21, + "ram_mib": 7.09 + }, + { + "t": 32.95491209299871, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.75 + }, + { + "t": 32.95493578699825, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.53, + "ram_mib": 7.172 + }, + { + "t": 32.95494490899728, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.21, + "ram_mib": 7.09 + }, + { + "t": 33.455010585999844, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 2.82, + "ram_mib": 6.965 + }, + { + "t": 33.455039544998726, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.684 + }, + { + "t": 33.45505493499877, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 41.39, + "ram_mib": 7.016 + }, + { + "t": 33.954680037997605, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 2.82, + "ram_mib": 6.965 + }, + { + "t": 33.95472884300034, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.684 + }, + { + "t": 33.954759857999306, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 41.39, + "ram_mib": 7.016 + }, + { + "t": 34.4546790639979, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.773 + }, + { + "t": 34.454727954998816, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.684 + }, + { + "t": 34.45475718599846, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.42, + "ram_mib": 7.953 + }, + { + "t": 34.95424936899872, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.773 + }, + { + "t": 34.95427985800052, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.684 + }, + { + "t": 34.954296804997284, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.42, + "ram_mib": 7.953 + }, + { + "t": 35.45522979700036, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 7.02 + }, + { + "t": 35.45527975499863, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.934 + }, + { + "t": 35.4553106309977, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.17, + "ram_mib": 6.238 + }, + { + "t": 35.95481649000067, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 7.02 + }, + { + "t": 35.954851960999804, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.934 + }, + { + "t": 35.95487029300057, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.17, + "ram_mib": 6.238 + }, + { + "t": 36.454566683998564, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.75 + }, + { + "t": 36.454605079998146, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.684 + }, + { + "t": 36.45464187499965, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 46.75, + "ram_mib": 7.32 + }, + { + "t": 36.954953390999435, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.75 + }, + { + "t": 36.9549793499973, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.684 + }, + { + "t": 36.954989562000264, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 46.75, + "ram_mib": 7.32 + }, + { + "t": 37.454691097998875, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.008 + }, + { + "t": 37.454715803, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.32, + "ram_mib": 7.402 + }, + { + "t": 37.45472622399757, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.66, + "ram_mib": 7.789 + }, + { + "t": 37.95525784599886, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.008 + }, + { + "t": 37.95529745000022, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.32, + "ram_mib": 7.402 + }, + { + "t": 37.95531396200022, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.66, + "ram_mib": 7.789 + }, + { + "t": 38.45477084099912, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 2.56, + "ram_mib": 6.832 + }, + { + "t": 38.454807843998424, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.152 + }, + { + "t": 38.4548235580005, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 37.97, + "ram_mib": 7.477 + }, + { + "t": 38.95507693199761, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 2.56, + "ram_mib": 6.832 + }, + { + "t": 38.95511294699827, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.152 + }, + { + "t": 38.95513425699755, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 37.97, + "ram_mib": 7.477 + }, + { + "t": 39.45466834599938, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.746 + }, + { + "t": 39.45468959500067, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.688 + }, + { + "t": 39.45469746500021, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.84, + "ram_mib": 7.844 + }, + { + "t": 39.95495904500058, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.746 + }, + { + "t": 39.954992320999736, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.688 + }, + { + "t": 39.95500758599883, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.84, + "ram_mib": 7.844 + }, + { + "t": 40.45505226000023, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.746 + }, + { + "t": 40.45508962099848, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.688 + }, + { + "t": 40.45510554499924, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.93, + "ram_mib": 7.504 + }, + { + "t": 40.95464516100037, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.746 + }, + { + "t": 40.95469320700067, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.688 + }, + { + "t": 40.95473756299907, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.93, + "ram_mib": 7.504 + }, + { + "t": 41.45519106999927, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.992 + }, + { + "t": 41.455220046998875, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.684 + }, + { + "t": 41.455231984997226, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.69, + "ram_mib": 7.652 + }, + { + "t": 41.954797899998084, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.992 + }, + { + "t": 41.954821587998595, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.684 + }, + { + "t": 41.954830875998596, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.69, + "ram_mib": 7.652 + }, + { + "t": 42.45430345299974, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.746 + }, + { + "t": 42.45432276599968, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 3.22, + "ram_mib": 6.953 + }, + { + "t": 42.45432973000061, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.15, + "ram_mib": 7.594 + }, + { + "t": 42.95580231399799, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.746 + }, + { + "t": 42.955900290999125, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 3.22, + "ram_mib": 6.953 + }, + { + "t": 42.95595452999987, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.15, + "ram_mib": 7.594 + }, + { + "t": 43.45507783499852, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 2.37, + "ram_mib": 6.77 + }, + { + "t": 43.455110046998016, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.93 + }, + { + "t": 43.455124034997425, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 37.24, + "ram_mib": 7.609 + }, + { + "t": 43.95472190500004, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 2.37, + "ram_mib": 6.77 + }, + { + "t": 43.9547669709973, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.93 + }, + { + "t": 43.95479155800058, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 37.24, + "ram_mib": 7.609 + }, + { + "t": 44.45452247799767, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.793 + }, + { + "t": 44.45455681399835, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.684 + }, + { + "t": 44.45457764299863, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.68, + "ram_mib": 7.941 + }, + { + "t": 44.954972529998486, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.793 + }, + { + "t": 44.95499516500058, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.684 + }, + { + "t": 44.95500370099762, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.68, + "ram_mib": 7.941 + }, + { + "t": 45.454971972998464, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.969 + }, + { + "t": 45.454998335997516, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.684 + }, + { + "t": 45.455011468999146, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.39, + "ram_mib": 7.828 + }, + { + "t": 45.954674325999804, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.969 + }, + { + "t": 45.95469411299928, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.684 + }, + { + "t": 45.95470116599972, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.39, + "ram_mib": 7.828 + }, + { + "t": 46.454851204998704, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.746 + }, + { + "t": 46.45488335199843, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.684 + }, + { + "t": 46.454900001997885, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 42.93, + "ram_mib": 7.816 + }, + { + "t": 46.95510701799867, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.746 + }, + { + "t": 46.955149019999226, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.684 + }, + { + "t": 46.955167067997536, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 42.93, + "ram_mib": 7.816 + }, + { + "t": 47.45463287600069, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.75 + }, + { + "t": 47.45466474699788, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.32, + "ram_mib": 7.586 + }, + { + "t": 47.45468013899881, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 40.84, + "ram_mib": 8.07 + }, + { + "t": 47.95498749299804, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.75 + }, + { + "t": 47.95501037500071, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.32, + "ram_mib": 7.586 + }, + { + "t": 47.95501783999862, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 40.84, + "ram_mib": 8.07 + }, + { + "t": 48.4577704229996, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 2.71, + "ram_mib": 6.793 + }, + { + "t": 48.45785796599739, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.684 + }, + { + "t": 48.45789023999896, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.25, + "ram_mib": 7.988 + }, + { + "t": 48.954910468997696, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 2.71, + "ram_mib": 6.793 + }, + { + "t": 48.954940870997234, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.684 + }, + { + "t": 48.954953828000725, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.25, + "ram_mib": 7.988 + }, + { + "t": 49.454864907998854, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.746 + }, + { + "t": 49.454893643000105, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.953 + }, + { + "t": 49.4549055949974, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 34.03, + "ram_mib": 7.793 + }, + { + "t": 49.954911697997886, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.746 + }, + { + "t": 49.95493068599899, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.953 + }, + { + "t": 49.95493740399979, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 34.03, + "ram_mib": 7.793 + }, + { + "t": 50.45466576599938, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.773 + }, + { + "t": 50.454718795997906, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.926 + }, + { + "t": 50.45474903200011, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.81, + "ram_mib": 8.828 + }, + { + "t": 50.95506860900059, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.773 + }, + { + "t": 50.955107688998396, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.926 + }, + { + "t": 50.95512847200007, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.81, + "ram_mib": 8.828 + }, + { + "t": 51.45456125099736, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.766 + }, + { + "t": 51.45459049899728, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.926 + }, + { + "t": 51.454605353999796, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.12, + "ram_mib": 8.078 + }, + { + "t": 51.95507820899729, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.766 + }, + { + "t": 51.95510957700026, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.926 + }, + { + "t": 51.95512447299916, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.12, + "ram_mib": 8.078 + }, + { + "t": 52.454624914000306, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.746 + }, + { + "t": 52.45467508299771, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 3.33, + "ram_mib": 7.496 + }, + { + "t": 52.45468984699983, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.44, + "ram_mib": 8.512 + }, + { + "t": 52.95509902000049, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.746 + }, + { + "t": 52.95515528800024, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 3.33, + "ram_mib": 7.496 + }, + { + "t": 52.95518755900048, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.44, + "ram_mib": 8.512 + }, + { + "t": 53.45493865299795, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 3.22, + "ram_mib": 7.0 + }, + { + "t": 53.45496613999785, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.703 + }, + { + "t": 53.45498139399933, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.79, + "ram_mib": 8.688 + }, + { + "t": 53.954125017997285, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 3.22, + "ram_mib": 7.0 + }, + { + "t": 53.95415350999974, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.703 + }, + { + "t": 53.954165221999574, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.79, + "ram_mib": 8.688 + }, + { + "t": 54.454964088999986, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.801 + }, + { + "t": 54.454993614999694, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 6.68 + }, + { + "t": 54.45500782099771, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 35.95, + "ram_mib": 8.852 + }, + { + "t": 54.954518565999024, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.801 + }, + { + "t": 54.954552048999176, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 6.68 + }, + { + "t": 54.95457009799793, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 35.95, + "ram_mib": 8.852 + }, + { + "t": 55.455041257999255, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.746 + }, + { + "t": 55.45506628599833, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.68 + }, + { + "t": 55.455075903999386, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.12, + "ram_mib": 8.129 + }, + { + "t": 55.95415236199915, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.746 + }, + { + "t": 55.95417406499837, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.68 + }, + { + "t": 55.95418077499926, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.12, + "ram_mib": 8.129 + }, + { + "t": 56.45447181199779, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.746 + }, + { + "t": 56.45450648299811, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.68 + }, + { + "t": 56.454520962997776, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.74, + "ram_mib": 8.586 + }, + { + "t": 56.95511791199897, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.746 + }, + { + "t": 56.95516716599741, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.68 + }, + { + "t": 56.95519611399868, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.74, + "ram_mib": 8.586 + }, + { + "t": 57.454729752000276, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.746 + }, + { + "t": 57.454770011998335, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.41, + "ram_mib": 7.238 + }, + { + "t": 57.45478745999935, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.07, + "ram_mib": 7.871 + }, + { + "t": 57.955177305997495, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.746 + }, + { + "t": 57.95523492799839, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.41, + "ram_mib": 7.238 + }, + { + "t": 57.955267923000065, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.07, + "ram_mib": 7.871 + }, + { + "t": 58.45466916999794, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 2.63, + "ram_mib": 6.984 + }, + { + "t": 58.454688248999446, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.953 + }, + { + "t": 58.454695141997945, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.86, + "ram_mib": 8.219 + }, + { + "t": 58.95485398299934, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 2.63, + "ram_mib": 6.984 + }, + { + "t": 58.954930631000025, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.953 + }, + { + "t": 58.954964598000515, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.86, + "ram_mib": 8.219 + }, + { + "t": 59.4549883519976, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.973 + }, + { + "t": 59.45502082299936, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.703 + }, + { + "t": 59.455036126997584, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 32.91, + "ram_mib": 8.195 + }, + { + "t": 59.954658487000415, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.973 + }, + { + "t": 59.95469333199799, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.703 + }, + { + "t": 59.954706639000506, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 32.91, + "ram_mib": 8.195 + }, + { + "t": 60.455083280998224, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.746 + }, + { + "t": 60.455118404999666, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.68 + }, + { + "t": 60.4551331090006, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.24, + "ram_mib": 8.621 + }, + { + "t": 60.95462157200018, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.746 + }, + { + "t": 60.95467819300029, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.68 + }, + { + "t": 60.954700109999976, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.24, + "ram_mib": 8.621 + }, + { + "t": 61.45422454399886, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.738 + }, + { + "t": 61.45425879299728, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.707 + }, + { + "t": 61.454271598999185, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.31, + "ram_mib": 8.484 + }, + { + "t": 61.954964764998294, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.738 + }, + { + "t": 61.95499842599747, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.707 + }, + { + "t": 61.9550127170005, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 48.31, + "ram_mib": 8.484 + }, + { + "t": 62.454210304997105, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.738 + }, + { + "t": 62.454236968998885, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.41, + "ram_mib": 7.84 + }, + { + "t": 62.454244226999435, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.49, + "ram_mib": 9.406 + }, + { + "t": 62.955034169997816, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.738 + }, + { + "t": 62.955087070000445, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 2.41, + "ram_mib": 7.84 + }, + { + "t": 62.95511723799791, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.49, + "ram_mib": 9.406 + }, + { + "t": 63.454973529998824, + "container": "1f2610cde4ddfcc917c18e77e7acf5150fcdb7769bd206e26658caf538473ebc", + "service": "api", + "cpu_percent": 2.8, + "ram_mib": 7.043 + }, + { + "t": 63.454999313999, + "container": "4b5eaf9ce173fc55c33ece9dad93ad70368fd84fa13fa631c1266c5ccbe71bce", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.969 + }, + { + "t": 63.45501231199887, + "container": "d6f6ca8f3282f9c45068f2a115806642ea949dd992a5f2b0ae7f4eeac5a059e4", + "service": "worker", + "cpu_percent": 47.8, + "ram_mib": 9.246 + } + ], + "sdk_diagnostic_audit": { + "source": "Prometheus instant queries at trial start/end, restricted to trial container hostnames", + "warning_error_start": null, + "warning_error_end": null, + "warning_error_delta": null + } + }, + { + "variant": "C", + "repetition": 3, + "completed_utc": "2026-11-16T15:03:25.195724+00:00", + "successful_uploads": 1000, + "http_errors": 0, + "http_seconds": 14.52560822599844, + "pipeline_seconds": 73.27680185099962, + "collector_window_seconds": 76.36585506499978, + "rps": 68.84393303477407, + "latency_mean_ms": 57.60046396098187, + "latency_p50_ms": 56.13461800021469, + "latency_p99_ms": 212.63691099738935, + "latencies_ms": [ + 11.622154001088347, + 10.038340002211044, + 11.16073299999698, + 10.555193999607582, + 30.302418999781366, + 13.190842997573782, + 21.766220997960772, + 10.019856999861076, + 9.633978999772808, + 45.43454699887661, + 9.035669001605129, + 24.528975001885556, + 10.632859000907047, + 10.357300001487602, + 50.722804000542965, + 10.68881299943314, + 20.990889002860058, + 13.8429830003588, + 49.01511799835134, + 11.622440000792267, + 22.299681000731653, + 15.33462400038843, + 89.15164800055209, + 19.9470020015724, + 77.53451200187556, + 24.192704000597587, + 78.19456099969102, + 24.120505000610137, + 77.50495900108945, + 98.73436300040339, + 299.2300299993076, + 107.03343500063056, + 90.54597599970293, + 12.776710002071923, + 10.691703002521535, + 38.72598100133473, + 50.70463699667016, + 85.89985399885336, + 19.636140001239255, + 8.491013002640102, + 9.417399000085425, + 72.63737199900788, + 19.70413900198764, + 8.317805000842782, + 68.74165399858612, + 98.64167100022314, + 24.125922998791793, + 77.49547200000961, + 21.491729999979725, + 77.84481900307583, + 28.90579499944579, + 13.142073999915738, + 56.70428300072672, + 23.046418999001617, + 80.41157199841109, + 99.58247500253492, + 25.34454900160199, + 70.3760840005998, + 106.22728100133827, + 98.45337099977769, + 34.51901999869733, + 61.81695999839576, + 98.75986500264844, + 29.021069000009447, + 76.2692190000962, + 94.66716599854408, + 23.088739999366226, + 81.38105099715176, + 101.81273399939528, + 196.3386259994877, + 199.66858299812884, + 101.18693199910922, + 19.721011998626636, + 78.11045700145769, + 99.24681199845509, + 98.31567600122071, + 21.506001998204738, + 85.07383200048935, + 19.384714996704133, + 77.83352699698298, + 23.106745997210965, + 77.69983899925137, + 96.72780799883185, + 23.834116000216454, + 20.156136000878178, + 59.536541000852594, + 22.227667999686673, + 78.16689999890514, + 24.979801000881707, + 75.00129799882416, + 21.132818001206033, + 74.91141900027287, + 24.634723999042762, + 80.56429299904266, + 19.856373000948224, + 72.99211799909244, + 19.849363998218905, + 81.06565300113289, + 22.69182800228009, + 79.91260500057251, + 100.46417899866356, + 23.97668399862596, + 81.61353700052132, + 93.03662599995732, + 21.884918001887854, + 77.17918799971812, + 23.267738997674314, + 175.40053199991235, + 302.6796000012837, + 24.64200000031269, + 81.23312899988377, + 23.53711899922928, + 72.86636200296925, + 100.59393699702923, + 21.998003001499455, + 73.18273200144176, + 25.32416099711554, + 82.54947699970216, + 24.949470996944, + 65.72542999856523, + 15.49430500017479, + 88.98291700097616, + 20.603330001904396, + 80.00376199925086, + 20.352544001070783, + 83.85288499994203, + 18.788920002407394, + 73.11876700259745, + 23.61639499940793, + 78.74115700178663, + 177.79035099738394, + 19.73315199938952, + 16.6520450002281, + 13.953756999399047, + 71.6125769977225, + 21.11016300113988, + 79.11527200121782, + 100.40922600092017, + 20.981978999770945, + 14.05838299979223, + 67.86959199962439, + 25.5082420007966, + 71.4100299992424, + 21.267526000883663, + 78.86696900095558, + 200.52127999952063, + 200.37452500037034, + 100.23415600153385, + 22.53887900224072, + 9.445668998523615, + 71.68074600122054, + 22.084930998971686, + 78.24146400162135, + 96.11154799858923, + 24.713102000532672, + 76.84739600153989, + 95.7582499977434, + 27.20051500000409, + 79.18127999801072, + 100.00550999757252, + 98.1988649982668, + 101.22979299922008, + 94.97416899830569, + 12.09079199907137, + 18.428898001729976, + 74.21910300035961, + 20.8432850013196, + 74.47344300089753, + 22.020255000825273, + 14.394470999832265, + 67.2219039988704, + 95.1041449989134, + 28.043305999744916, + 76.06238000153098, + 22.912473999895155, + 76.8665579998924, + 30.229751999286236, + 69.59913799801143, + 98.4982879999734, + 29.560549999587238, + 72.75317299718154, + 99.65707499941345, + 294.2551989981439, + 104.7612520014809, + 102.02943500189576, + 23.729712000204017, + 8.805990997643676, + 62.690099999599624, + 21.338843002013164, + 16.43813400005456, + 60.794785000325646, + 23.08583199919667, + 78.56366800115211, + 24.03163999770186, + 72.08380999873043, + 16.100287000881508, + 13.117198999680113, + 80.1723509976, + 20.71444100147346, + 79.2894280020846, + 23.371857998427004, + 72.15291499960585, + 27.89827499873354, + 67.2938259995135, + 12.386235997837503, + 11.916853000002448, + 81.99719500044012, + 25.923247998434817, + 76.28786900022533, + 95.41678800087539, + 25.769146999664372, + 77.81370900192996, + 96.22617499917396, + 23.319691001233878, + 13.821372001984855, + 63.48736900326912, + 80.18342399736866, + 97.50943899780395, + 17.90195799912908, + 103.34230200169259, + 198.6503320003976, + 109.47808399942005, + 96.1641959984263, + 99.61798700169311, + 22.89996599938604, + 74.49923899912392, + 23.084027001459617, + 78.20471900049597, + 25.397417000931455, + 76.63185300043551, + 22.07079599975259, + 78.0233869991207, + 22.103366001829272, + 80.52235100331018, + 96.2272969991318, + 20.741803000419168, + 79.64053400064586, + 97.61126699959277, + 100.15395299706142, + 23.300795000977814, + 80.124986001465, + 19.594686000345973, + 79.19809499799157, + 12.706887999229366, + 10.272161001921631, + 8.881432000634959, + 10.471888999745715, + 11.4380209997762, + 37.50909200243768, + 12.426347999280551, + 9.758144999068463, + 9.406359000422526, + 13.094950001686811, + 33.775744999729795, + 9.424140000191983, + 15.075240000442136, + 17.28627400007099, + 12.010836999252206, + 43.87966200010851, + 11.350461001711665, + 10.63756499934243, + 21.13262100101565, + 9.321720997832017, + 10.826196998095838, + 8.364907000213861, + 9.11546399947838, + 33.79657800178393, + 11.826055000710767, + 19.07700299852877, + 58.65477599945734, + 15.41176599857863, + 11.408897997171152, + 11.568361998797627, + 13.448476001940435, + 10.787829000037163, + 39.658867000980536, + 44.59121599938953, + 20.933507003064733, + 76.98161100051948, + 21.42842099783593, + 20.19708399893716, + 60.12338799700956, + 24.59143299711286, + 77.07108099930338, + 193.6249210011738, + 212.63691099738935, + 92.7635280022514, + 93.50743500181125, + 13.868011999875307, + 11.645047001366038, + 9.75030500194407, + 32.4921120009094, + 43.83278600289486, + 21.149088999663945, + 70.97732199690654, + 73.67086799786193, + 27.674147000652738, + 18.387239997537108, + 84.05116999711026, + 20.20142200126429, + 75.95741600016481, + 24.42783000151394, + 76.61929100140696, + 24.268711000331677, + 75.80165699982899, + 28.128272002504673, + 12.907370000903029, + 59.34949899892672, + 25.06048999930499, + 79.3177880004805, + 98.58149600040633, + 24.996410000312608, + 68.01755099877482, + 99.76884199932101, + 33.67039700242458, + 74.0214739998919, + 94.54280399950221, + 29.35011799854692, + 72.26802500008489, + 28.050757002347382, + 74.44807299907552, + 19.586012997024227, + 80.52115199825494, + 98.93889500017394, + 24.146826002834132, + 77.55155600170838, + 193.24394899740582, + 104.50251599831972, + 100.90243000013288, + 98.59331400002702, + 22.276296997006284, + 74.7670829987328, + 99.22523100249236, + 9.529343002213864, + 95.08041199660511, + 20.97619900087011, + 75.91995199982193, + 23.107742999854963, + 10.092336997331586, + 71.10526299948106, + 22.17776299949037, + 74.66601000123774, + 22.353691998432623, + 78.66252299936605, + 100.60053299821448, + 22.63233000121545, + 73.4322450007312, + 24.220556999352993, + 79.7761910034751, + 21.180779000133043, + 15.004067001427757, + 62.927495000622, + 23.08931899824529, + 80.76206399709918, + 23.34597699882579, + 71.90747700224165, + 21.728110001276946, + 78.08260299862013, + 24.638096998387482, + 79.03847000125097, + 98.59993000281975, + 21.05424199908157, + 81.81026700185612, + 20.9578860012698, + 77.78822599721025, + 99.32867499810527, + 22.916554000403266, + 170.91079999954673, + 107.26546099976986, + 198.09482100026798, + 98.39692499735975, + 29.29997100000037, + 75.32549099778407, + 97.1590869994543, + 23.99367500038352, + 10.109827999258414, + 66.729394999129, + 99.26447199904942, + 93.72870799779776, + 19.812307000393048, + 12.44496000072104, + 74.20090700179571, + 20.54534100170713, + 78.05412100060494, + 20.198784997774055, + 82.39424299972598, + 19.98907999950461, + 11.556540997844422, + 64.23832799919182, + 20.023545999720227, + 79.38783699864871, + 178.48360200150637, + 24.66481100054807, + 15.969534000760177, + 16.54160799807869, + 67.86857499901089, + 19.63136700214818, + 76.43053400170174, + 23.037530001602136, + 80.7057089987211, + 20.130821998463944, + 76.99730700187501, + 27.273667001281865, + 72.59067199993297, + 21.45503599967924, + 76.76772199920379, + 301.5915989999485, + 104.77223999987473, + 100.8167690015398, + 19.544623002730077, + 79.87546799995471, + 22.182890999829397, + 78.39166299891076, + 93.21901200019056, + 27.52352300012717, + 76.95706599770347, + 95.03680399939185, + 25.198974999511847, + 79.75726099903113, + 103.67443699942669, + 94.97468499830575, + 104.50019299969426, + 94.73566800079425, + 12.468247998185689, + 85.44746400002623, + 23.989665998669807, + 76.6618900015601, + 21.771211999293882, + 12.413016000209609, + 68.0255439983739, + 22.30844400037313, + 81.88317799795186, + 21.56927499891026, + 75.0959770011832, + 21.74489699973492, + 80.44106899978942, + 97.40613800022402, + 25.907564999215538, + 76.30628600236378, + 27.156218002346577, + 74.24827499926323, + 98.31787100119982, + 293.32980400067754, + 106.51136100204894, + 103.45542800132534, + 21.391837999544805, + 68.71727100224234, + 23.305949001951376, + 12.930994998896495, + 67.04253600037191, + 25.944480003090575, + 78.43155600130558, + 92.74112600178341, + 14.726386001711944, + 15.65571299943258, + 76.48058900304022, + 20.232226001098752, + 77.71400199999334, + 25.183911999192787, + 9.340437998616835, + 61.66990999918198, + 28.572741997777484, + 70.07267699736985, + 12.818376002542209, + 106.6792780002288, + 88.93978199921548, + 95.1182950011571, + 22.664512998744613, + 24.418596000032267, + 54.47099400043953, + 20.29637899977388, + 79.43127700127661, + 21.498533002159093, + 78.1911369995214, + 79.86978999906569, + 21.38482199734426, + 93.923652999365, + 202.1560089997365, + 206.88677999714855, + 96.34926099897712, + 25.019931999850087, + 74.60706899655634, + 99.04539299895987, + 20.32456300003105, + 13.649418000568403, + 68.61678599670995, + 22.209385002497584, + 79.78871999875992, + 20.61656300065806, + 79.06209900102112, + 20.345469001767924, + 78.40381399728358, + 99.94704100245144, + 21.217485998931807, + 80.10719400044763, + 19.144550002238248, + 79.7793499987165, + 24.688076999154873, + 74.5224540005438, + 94.67578700059676, + 10.934303998510586, + 10.003762999986066, + 11.720398000761634, + 38.496043998748064, + 13.806214999931399, + 23.037068000121508, + 12.18185700054164, + 9.878381999442354, + 46.39627999858931, + 10.526737001782749, + 21.582280001894105, + 9.371690997795667, + 45.72445299709216, + 16.989554998872336, + 11.446316999354167, + 17.532428999402327, + 51.67605799942976, + 15.963321999151958, + 10.423128998809261, + 10.048634001577739, + 10.395243996754289, + 15.535632999672089, + 9.707969998999033, + 9.460320001380751, + 34.492513001168845, + 35.81672499785782, + 19.43196000138414, + 82.4087969995162, + 21.797187000629492, + 75.3869179970934, + 24.78743800020311, + 78.29003000006196, + 21.466709000378614, + 373.07747000159, + 107.03589900003863, + 92.19725000002654, + 11.850820999825373, + 45.731866997812176, + 11.47625799785601, + 40.70076100106235, + 46.466355001030024, + 46.249152001109906, + 99.71174499878543, + 23.144047998357564, + 82.61166200099979, + 19.801129998086253, + 74.13619900034973, + 29.475542000000132, + 75.51544699890655, + 22.26381299988134, + 78.29037299961783, + 92.13701599946944, + 24.65619299982791, + 80.40736800103332, + 29.774381997413002, + 70.23000999834039, + 96.92771199843264, + 32.09767699809163, + 76.48920200153952, + 30.76243099712883, + 68.99691899889149, + 96.77902600014932, + 98.01239499938674, + 100.36064400264877, + 20.70557499973802, + 79.56426400050987, + 22.01854499799083, + 77.12216599975363, + 21.884253997995984, + 176.96973900092416, + 296.62875899884966, + 21.113385999342427, + 81.40091099994606, + 21.423486999992747, + 13.962688000901835, + 66.84315199890989, + 98.43053700024029, + 99.73877299853484, + 20.634643002267694, + 14.463453997450415, + 69.02044500020565, + 98.4133189995191, + 25.56341300078202, + 74.00218900147593, + 22.951117000047816, + 75.93315199846984, + 24.069701998087112, + 76.46218100126134, + 22.646410998277133, + 75.50988300135941, + 29.681021002033958, + 72.27753500046674, + 23.763117998896632, + 71.86963300046045, + 20.760164999956032, + 81.40493499740842, + 22.783435000746977, + 14.904939002008177, + 64.09924599938677, + 20.804618998226942, + 79.66244099952746, + 24.896904000343056, + 76.05241000055685, + 20.96587300184183, + 81.0333770023135, + 21.89022599850432, + 76.79183499931241, + 22.810886999650393, + 76.95837899882463, + 99.988359001145, + 24.22066099825315, + 371.6277009989426, + 107.29493599865236, + 96.83153700098046, + 25.203963999956613, + 73.7019349980983, + 25.81839000049513, + 74.82935700318194, + 24.108222998620477, + 74.44996199774323, + 23.162786001194036, + 81.32644299985259, + 90.53972900073859, + 19.850776003295323, + 87.60707600231399, + 19.280548000097042, + 75.77913400018588, + 21.6666289998102, + 79.66057500016177, + 22.077871002693428, + 13.13201700031641, + 63.87678100145422, + 20.311459000367904, + 79.16461300192168, + 180.18983200090588, + 23.740585002087755, + 14.186150001478381, + 14.606964999984484, + 70.7696350000333, + 21.38464499876136, + 78.20754099884653, + 21.36476799933007, + 83.64441699814051, + 18.119300999387633, + 76.71630299955723, + 31.7233749992738, + 69.15636499979883, + 20.094890001928434, + 78.88480700057698, + 201.4254300011089, + 101.33706600026926, + 101.0706429988204, + 99.44675899896538, + 19.614650998846628, + 80.96417599881534, + 22.201933999895118, + 79.8896460000833, + 18.547726998804137, + 77.48684599937405, + 24.203057000704575, + 74.89004799936083, + 22.734596001100726, + 71.81404700168059, + 28.48040100070648, + 79.2941180006892, + 100.34734999862849, + 99.7713719989406, + 98.30967900052201, + 97.47944600167102, + 9.637642000598134, + 87.84543500223663, + 26.986305001628352, + 73.09969599737087, + 24.046258000453236, + 14.174737996654585, + 66.9212319990038, + 98.49380900050164, + 24.857043998053996, + 77.5323230009235, + 21.462018998136045, + 79.68546700067236, + 99.69360899776802, + 23.62825599993812, + 20.093776001886, + 56.13461800021469, + 27.08409600018058, + 74.21941000211518, + 98.61664900017786, + 293.37949300315813, + 106.27664299681783, + 101.75017499932437, + 21.160881999094272, + 71.42701900011161, + 22.293007001280785, + 15.631649999704678, + 64.393538999866, + 24.585064998973394, + 74.76772800146136, + 22.735647999070352, + 73.67675000205054, + 12.768155000230763, + 14.17423499879078, + 76.75856000059866, + 24.717997999687213, + 79.34575599938398, + 24.429444998531835, + 72.9113410015998, + 26.945212001010077, + 68.70207100291736, + 102.77421100181527, + 18.46808700065594, + 86.30556400021305, + 93.62100200087298, + 23.7416169984499, + 79.12780799961183, + 20.58973800012609, + 81.30578199779848, + 23.802368999895407, + 68.83477299925289, + 23.259277000761358, + 80.92865299840923, + 78.72840200070641, + 98.6122329995851, + 221.43976600273163, + 106.14142800113768, + 95.59321000051568, + 24.11335900251288, + 79.45869300237973, + 23.133509999752278, + 75.71585899859201, + 21.70118800131604, + 78.16973800072446, + 25.30183600174496, + 74.04980299907038, + 97.81406500042067, + 25.033548998180777, + 80.15687300212448, + 99.21635600039735, + 22.519402002217248, + 77.50397600102588, + 98.38525000304799, + 26.13072899839608, + 73.0140890009352, + 24.200695999752497, + 76.3263580010971, + 18.770832997688558, + 12.278012000024319, + 69.66826500138268, + 12.885732001450378, + 8.729811001103371, + 10.504821999347769, + 9.164480998151703, + 13.296934001118643, + 11.362312001438113, + 9.890023000480141, + 17.24121399820433, + 12.90688399967621, + 22.86456799993175, + 10.176735999266384, + 10.239043000183301, + 9.783362998859957, + 10.051484998257365, + 27.188826999918092, + 9.561702001519734, + 9.288991001085378, + 14.885178999975324, + 11.226018999877851, + 53.82069900224451, + 12.628805001440924, + 23.883070000010775, + 14.637436001066817, + 9.340324999357108, + 40.67541300173616, + 10.641192999173654, + 20.08230600040406, + 11.385961002815748, + 50.42598499858286, + 43.52689699953771, + 19.585191999794915, + 85.45113400032278, + 20.651252001698595, + 76.88835299995844, + 24.296420000609942, + 76.64748800016241, + 23.43826400101534, + 172.30100999950082, + 206.90754200040828, + 98.79641600127798, + 92.07039000102668, + 14.938194999558618, + 47.46380999858957, + 51.00637400028063, + 89.72529899983783, + 18.312644999241456, + 83.62505500190309, + 20.132425997871906, + 12.437235000106739, + 71.09751800089725, + 97.48167700308841, + 28.250772000319557, + 71.62514200172154, + 24.682580999069614, + 77.09134600008838, + 26.625800997862825, + 13.428483001916902, + 54.951136000454426, + 24.471666998579167, + 82.4672050002846, + 25.603399000829086, + 71.94567100304994, + 99.04601800008095, + 102.53832299713395, + 103.76476199962781, + 93.18826699745841, + 101.20457399898442, + 24.79096800016123, + 78.0301579980005, + 95.19192299921997, + 22.187696002220036, + 76.47362699935911, + 24.325750000571134, + 175.5884430021979, + 103.23593899738626, + 100.46040700035519, + 99.16313199937576, + 98.82858199853217, + 22.149787997477688, + 73.98979299978237, + 101.35813299712026, + 9.434152001631446, + 95.34668499691179, + 18.12435700048809, + 81.60431599753792, + 19.97174499774701, + 77.58186800128897, + 23.907364997285185, + 74.98284499888541, + 24.088826998195145, + 79.49687500149594, + 97.03840099973604, + 22.898300001543248, + 78.01924299928942, + 25.25268599856645, + 73.87826799822506, + 25.00343000065186, + 75.22260100085987, + 22.99842700085719, + 80.16771199982031, + 22.649173999525374, + 73.29576900156098, + 23.299323998799082, + 79.92126200042549, + 23.596085000463063, + 77.11972300239722, + 20.70709799954784, + 79.84692899844958, + 23.05659400008153, + 77.2893909997947, + 97.95938399838633, + 20.55610999741475, + 78.25177000268013, + 22.326671998598613, + 174.55582700131345, + 105.48627300158842, + 96.97303999928408, + 107.14549299882492, + 96.7963660004898, + 27.106452002044534, + 73.23623100091936, + 96.82594299738412, + 24.70823899784591, + 11.05042100243736, + 66.92310200014617, + 99.52582199912285, + 91.89021500060335, + 14.741450002475176, + 15.781310001329985, + 9.792790999199497, + 61.80681800105958, + 20.550147997710155, + 82.04482700239168, + 20.27491800254211, + 85.10703899810323, + 20.720684999105288, + 70.50310100021306, + 22.0291379991977, + 61.87595399751444, + 21.049187998869456, + 176.27690000153962, + 23.70872500250698, + 13.594901000033133, + 18.21963000111282, + 70.29888400211348, + 20.33867700083647, + 12.877326000307221, + 66.4568659994984, + 19.96750299804262, + 79.8476930031029, + 19.302550001157215, + 79.20723300048849, + 26.39913399980287, + 72.96118999875034, + 20.300475000112783, + 78.70653399731964, + 203.30909800031804, + 99.17986299842596, + 100.31611700105714, + 100.70266099864966, + 26.341190001403447, + 73.53464900006657, + 96.36895799849299, + 100.7568219974928, + 23.837369000830222, + 76.77536299888743, + 24.013764999835985, + 22.564758997759782, + 52.43019900080981, + 24.070448998827487, + 80.73273899935884, + 98.33290499955183, + 99.66777299996465, + 100.59578399886959, + 95.85828100171057, + 9.727600998303387, + 18.25658900270355, + 76.37877000161097, + 95.7557200017618, + 21.948409001197433, + 10.773535999760497, + 71.94743100262713, + 95.17402799974661, + 25.351054999191547, + 75.74551600191626, + 24.25656500054174, + 80.6579009986308, + 24.48739499959629, + 73.9908989999094, + 99.4560779981839, + 99.02932800105191, + 99.02486000282806, + 98.25930000079097, + 101.31435899893404, + 104.94840500177816, + 99.19740599798388, + 101.34289799680118, + 93.85829600068973, + 19.266554001660552, + 14.160849001200404, + 65.21586900271359, + 23.838687000534264, + 80.79025800179807, + 22.35535100044217, + 71.06942999962484, + 11.886672000400722, + 15.308738002204336, + 77.75749299980816, + 21.95736799694714, + 78.99790199735435, + 23.182142998848576, + 73.2999669999117, + 28.284938998694997, + 68.88208799864515, + 14.19329599957564, + 10.758779000752838, + 9.589269000571221, + 70.26104900069186, + 22.71082700099214, + 78.31965500008664, + 22.635584999079583, + 74.96472200000426, + 24.731354002142325, + 78.03554899874143, + 97.80313900046167, + 23.741275999782374, + 13.99284500075737, + 64.09625000014785, + 80.03818500219495, + 95.7362090011884, + 18.15157699820702, + 201.88199899712345, + 201.83210200048052, + 97.50062500097556, + 24.909438001486706, + 82.6228350015299, + 20.164188998023747, + 77.02859100027126, + 23.213767999550328, + 78.791703999741, + 20.484247001149924, + 79.53203900251538, + 96.30135399856954, + 22.156451999762794, + 79.28056599848787, + 98.24206499979482, + 23.33747000011499, + 78.1222780024109, + 100.40166100225179, + 100.37752200150862, + 98.2868459977908, + 20.341466999525437 + ], + "resources": { + "api": { + "cpu_percent_mean": 12.095479452054795, + "ram_mib_mean": 16.578794520547945, + "ram_mib_max": 23.41, + "samples": 292, + "cpu_seconds_per_job_estimate": 0.008863180511010565 + }, + "worker": { + "cpu_percent_mean": 35.285616438356165, + "ram_mib_mean": 7.953986301369863, + "ram_mib_max": 10.82, + "samples": 146, + "cpu_seconds_per_job_estimate": 0.025856171239437994 + } + }, + "collector_deltas": { + "otelcol_receiver_accepted_spans": 28242.0, + "otelcol_exporter_sent_spans": 3083.0, + "otelcol_receiver_refused_spans": 0.0, + "otelcol_exporter_send_failed_spans": 0.0, + "otelcol_receiver_accepted_log_records": 3000.0, + "otelcol_receiver_accepted_metric_points": 813.0 + }, + "ingest_spans_per_second": 369.8249692347641, + "tempo_spans_per_second": 40.371446078563054, + "trace_retention": 0.10916365696480419, + "stats_samples": [ + { + "t": 0.4343066599976737, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 7.949 + }, + { + "t": 0.4343333349970635, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 7.422 + }, + { + "t": 0.434348835999117, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 0.22, + "ram_mib": 5.0 + }, + { + "t": 0.9352682509997976, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 7.949 + }, + { + "t": 0.9353050299978349, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 7.422 + }, + { + "t": 0.9353206719970331, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 0.22, + "ram_mib": 5.0 + }, + { + "t": 1.4351189489971148, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 41.02, + "ram_mib": 9.684 + }, + { + "t": 1.4351383719986188, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 34.56, + "ram_mib": 9.555 + }, + { + "t": 1.4351444049971178, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 11.35, + "ram_mib": 5.457 + }, + { + "t": 1.9350587209992227, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 41.02, + "ram_mib": 9.684 + }, + { + "t": 1.9351319109991891, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 34.56, + "ram_mib": 9.555 + }, + { + "t": 1.9351705019980727, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 11.35, + "ram_mib": 5.457 + }, + { + "t": 2.435282054997515, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 28.02, + "ram_mib": 9.301 + }, + { + "t": 2.4353617419983493, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 28.51, + "ram_mib": 9.156 + }, + { + "t": 2.43540739799937, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 18.38, + "ram_mib": 6.234 + }, + { + "t": 2.935657251997327, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 28.02, + "ram_mib": 9.301 + }, + { + "t": 2.9357647109973186, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 28.51, + "ram_mib": 9.156 + }, + { + "t": 2.93588446299691, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 18.38, + "ram_mib": 6.234 + }, + { + "t": 3.4353315079970344, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 35.17, + "ram_mib": 9.168 + }, + { + "t": 3.435367562000465, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 34.14, + "ram_mib": 9.801 + }, + { + "t": 3.435382263000065, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 21.55, + "ram_mib": 5.812 + }, + { + "t": 3.93493369999851, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 35.17, + "ram_mib": 9.168 + }, + { + "t": 3.9349521459989774, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 34.14, + "ram_mib": 9.801 + }, + { + "t": 3.934958834997815, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 21.55, + "ram_mib": 5.812 + }, + { + "t": 4.435451109999121, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 20.21, + "ram_mib": 10.14 + }, + { + "t": 4.435506950998388, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 19.86, + "ram_mib": 10.34 + }, + { + "t": 4.435530765000294, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 11.6, + "ram_mib": 6.02 + }, + { + "t": 4.935031917997549, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 20.21, + "ram_mib": 10.14 + }, + { + "t": 4.935122137998405, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 19.86, + "ram_mib": 10.34 + }, + { + "t": 4.935154939998029, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 11.6, + "ram_mib": 6.02 + }, + { + "t": 5.435624934998486, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 29.48, + "ram_mib": 9.586 + }, + { + "t": 5.435699656998622, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 29.32, + "ram_mib": 9.48 + }, + { + "t": 5.435732291000022, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 19.17, + "ram_mib": 5.855 + }, + { + "t": 5.935084933000326, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 29.48, + "ram_mib": 9.586 + }, + { + "t": 5.935124611998617, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 29.32, + "ram_mib": 9.48 + }, + { + "t": 5.93514159699771, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 19.17, + "ram_mib": 5.855 + }, + { + "t": 6.435765758000343, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 26.25, + "ram_mib": 9.914 + }, + { + "t": 6.4358794479994685, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 24.11, + "ram_mib": 9.977 + }, + { + "t": 6.435917940998479, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 16.72, + "ram_mib": 5.859 + }, + { + "t": 6.935418463999667, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 26.25, + "ram_mib": 9.914 + }, + { + "t": 6.935505479999847, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 24.11, + "ram_mib": 9.977 + }, + { + "t": 6.935556251999515, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 16.72, + "ram_mib": 5.859 + }, + { + "t": 7.4349433979987225, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 28.68, + "ram_mib": 10.43 + }, + { + "t": 7.434983884999383, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 31.8, + "ram_mib": 10.04 + }, + { + "t": 7.435008671000105, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 17.28, + "ram_mib": 6.281 + }, + { + "t": 7.935501926000143, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 28.68, + "ram_mib": 10.43 + }, + { + "t": 7.935583897997276, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 31.8, + "ram_mib": 10.04 + }, + { + "t": 7.935632133998297, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 17.28, + "ram_mib": 6.281 + }, + { + "t": 8.435184150999703, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 30.02, + "ram_mib": 9.652 + }, + { + "t": 8.435248720998061, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 29.37, + "ram_mib": 10.42 + }, + { + "t": 8.435286935997283, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 27.39, + "ram_mib": 5.754 + }, + { + "t": 8.934755877999123, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 30.02, + "ram_mib": 9.652 + }, + { + "t": 8.934792175998155, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 29.37, + "ram_mib": 10.42 + }, + { + "t": 8.934809631999087, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 27.39, + "ram_mib": 5.754 + }, + { + "t": 9.435257015000388, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 19.71, + "ram_mib": 9.613 + }, + { + "t": 9.435307561998343, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 18.22, + "ram_mib": 9.457 + }, + { + "t": 9.435332135999488, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 11.86, + "ram_mib": 5.988 + }, + { + "t": 9.935569072997168, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 19.71, + "ram_mib": 9.613 + }, + { + "t": 9.935647201997199, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 18.22, + "ram_mib": 9.457 + }, + { + "t": 9.93569009699786, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 11.86, + "ram_mib": 5.988 + }, + { + "t": 10.434858806998818, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 24.31, + "ram_mib": 8.809 + }, + { + "t": 10.43495881600029, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 24.67, + "ram_mib": 8.598 + }, + { + "t": 10.435016799998266, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 16.04, + "ram_mib": 6.148 + }, + { + "t": 10.935123406998173, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 24.31, + "ram_mib": 8.809 + }, + { + "t": 10.935164237998833, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 24.67, + "ram_mib": 8.598 + }, + { + "t": 10.935187103998032, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 16.04, + "ram_mib": 6.148 + }, + { + "t": 11.435627310998825, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 24.96, + "ram_mib": 9.414 + }, + { + "t": 11.435703360999469, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 23.95, + "ram_mib": 9.293 + }, + { + "t": 11.435745615999622, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 13.54, + "ram_mib": 6.41 + }, + { + "t": 11.93488411999715, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 24.96, + "ram_mib": 9.414 + }, + { + "t": 11.934902917997533, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 23.95, + "ram_mib": 9.293 + }, + { + "t": 11.934910370997386, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 13.54, + "ram_mib": 6.41 + }, + { + "t": 12.4354114509988, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 33.53, + "ram_mib": 9.16 + }, + { + "t": 12.435487383998407, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 37.61, + "ram_mib": 9.312 + }, + { + "t": 12.435530878999998, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 21.86, + "ram_mib": 6.484 + }, + { + "t": 12.936108607998904, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 33.53, + "ram_mib": 9.16 + }, + { + "t": 12.936187126997538, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 37.61, + "ram_mib": 9.312 + }, + { + "t": 12.936236957997608, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 21.86, + "ram_mib": 6.484 + }, + { + "t": 13.435310038999887, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 23.08, + "ram_mib": 10.66 + }, + { + "t": 13.43538982699829, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 23.29, + "ram_mib": 9.852 + }, + { + "t": 13.435421791000408, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 19.79, + "ram_mib": 5.355 + }, + { + "t": 13.935426902997278, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 23.08, + "ram_mib": 10.66 + }, + { + "t": 13.935486197999126, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 23.29, + "ram_mib": 9.852 + }, + { + "t": 13.935516559999087, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 19.79, + "ram_mib": 5.355 + }, + { + "t": 14.435100588998466, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 28.08, + "ram_mib": 9.754 + }, + { + "t": 14.435122843999125, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 28.9, + "ram_mib": 10.97 + }, + { + "t": 14.435131714999443, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 18.44, + "ram_mib": 5.871 + }, + { + "t": 14.934393815998192, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 28.08, + "ram_mib": 9.754 + }, + { + "t": 14.934424961997138, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 28.9, + "ram_mib": 10.97 + }, + { + "t": 14.934441777997563, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 18.44, + "ram_mib": 5.871 + }, + { + "t": 15.435179791998962, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 11.41, + "ram_mib": 8.59 + }, + { + "t": 15.435198519997357, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 9.52, + "ram_mib": 8.328 + }, + { + "t": 15.435205313999177, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 33.77, + "ram_mib": 6.148 + }, + { + "t": 15.934653608997905, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 11.41, + "ram_mib": 8.59 + }, + { + "t": 15.934671208997315, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 9.52, + "ram_mib": 8.328 + }, + { + "t": 15.934677854998881, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 33.77, + "ram_mib": 6.148 + }, + { + "t": 16.43461274299989, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.79, + "ram_mib": 8.367 + }, + { + "t": 16.434641779997037, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.54, + "ram_mib": 7.605 + }, + { + "t": 16.43465507699875, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 36.6, + "ram_mib": 6.695 + }, + { + "t": 16.93518577699797, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.79, + "ram_mib": 8.367 + }, + { + "t": 16.935206327998458, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.54, + "ram_mib": 7.605 + }, + { + "t": 16.935212686999876, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 36.6, + "ram_mib": 6.695 + }, + { + "t": 17.435119338999357, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.71, + "ram_mib": 8.051 + }, + { + "t": 17.435138630000438, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 2.82, + "ram_mib": 8.707 + }, + { + "t": 17.435145786999783, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 49.28, + "ram_mib": 6.891 + }, + { + "t": 17.93485883500034, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.71, + "ram_mib": 8.051 + }, + { + "t": 17.93490009499874, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 2.82, + "ram_mib": 8.707 + }, + { + "t": 17.934917946000496, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 49.28, + "ram_mib": 6.891 + }, + { + "t": 18.43518095000036, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.141 + }, + { + "t": 18.435202548000234, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.117 + }, + { + "t": 18.435209850998945, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.36, + "ram_mib": 6.305 + }, + { + "t": 18.93456472300022, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.141 + }, + { + "t": 18.934595233997243, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.117 + }, + { + "t": 18.934609785999783, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.36, + "ram_mib": 6.305 + }, + { + "t": 19.434613858000375, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.891 + }, + { + "t": 19.4346551790004, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.613 + }, + { + "t": 19.434679406000214, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.01, + "ram_mib": 7.102 + }, + { + "t": 19.935190120999323, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.891 + }, + { + "t": 19.935217168997042, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.613 + }, + { + "t": 19.935230455997953, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.01, + "ram_mib": 7.102 + }, + { + "t": 20.43525497599694, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.898 + }, + { + "t": 20.435289392000413, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.613 + }, + { + "t": 20.435307833999104, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 38.0, + "ram_mib": 7.234 + }, + { + "t": 20.934492906999367, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.898 + }, + { + "t": 20.934528730998863, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.613 + }, + { + "t": 20.934548569999606, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 38.0, + "ram_mib": 7.234 + }, + { + "t": 21.43507704500007, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.145 + }, + { + "t": 21.435104819000117, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.859 + }, + { + "t": 21.43512701600048, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.24, + "ram_mib": 6.836 + }, + { + "t": 21.935150753997732, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.145 + }, + { + "t": 21.9351806559971, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.859 + }, + { + "t": 21.935195817997737, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.24, + "ram_mib": 6.836 + }, + { + "t": 22.43489765599952, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.53, + "ram_mib": 7.93 + }, + { + "t": 22.43491902599999, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 3.02, + "ram_mib": 8.238 + }, + { + "t": 22.434925727997324, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 47.61, + "ram_mib": 7.203 + }, + { + "t": 22.935817888999736, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.53, + "ram_mib": 7.93 + }, + { + "t": 22.935861628997372, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 3.02, + "ram_mib": 8.238 + }, + { + "t": 22.935891056997207, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 47.61, + "ram_mib": 7.203 + }, + { + "t": 23.43512081099834, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.895 + }, + { + "t": 23.4351399570005, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.637 + }, + { + "t": 23.435146795000037, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 47.92, + "ram_mib": 6.785 + }, + { + "t": 23.935771635999117, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.895 + }, + { + "t": 23.936032800997054, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.637 + }, + { + "t": 23.936125730997446, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 47.92, + "ram_mib": 6.785 + }, + { + "t": 24.43514673000027, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.895 + }, + { + "t": 24.43517406599858, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.617 + }, + { + "t": 24.43518873799985, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 38.23, + "ram_mib": 6.914 + }, + { + "t": 24.934618944997055, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.895 + }, + { + "t": 24.934668990998034, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.617 + }, + { + "t": 24.93469954199827, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 38.23, + "ram_mib": 6.914 + }, + { + "t": 25.435124222000013, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.141 + }, + { + "t": 25.435156575000292, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.613 + }, + { + "t": 25.435172410998348, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.06, + "ram_mib": 7.305 + }, + { + "t": 25.934657163998054, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 8.141 + }, + { + "t": 25.934682177998184, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.613 + }, + { + "t": 25.934694597999624, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.06, + "ram_mib": 7.305 + }, + { + "t": 26.435352000997227, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.895 + }, + { + "t": 26.435399284997402, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.613 + }, + { + "t": 26.43542910299948, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 47.96, + "ram_mib": 7.312 + }, + { + "t": 26.93496864699773, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.895 + }, + { + "t": 26.934994172999723, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.613 + }, + { + "t": 26.935003791997588, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 47.96, + "ram_mib": 7.312 + }, + { + "t": 27.43467687899829, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 3.0, + "ram_mib": 8.07 + }, + { + "t": 27.434698886998376, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 2.45, + "ram_mib": 8.039 + }, + { + "t": 27.434707906999392, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.06, + "ram_mib": 7.762 + }, + { + "t": 27.93534664099934, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 3.0, + "ram_mib": 8.07 + }, + { + "t": 27.935391405997507, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 2.45, + "ram_mib": 8.039 + }, + { + "t": 27.935419235000154, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.06, + "ram_mib": 7.762 + }, + { + "t": 28.43539954500011, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.895 + }, + { + "t": 28.435441797999374, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.621 + }, + { + "t": 28.43545981299758, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.23, + "ram_mib": 7.523 + }, + { + "t": 28.93438543299999, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.895 + }, + { + "t": 28.934420115998364, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.621 + }, + { + "t": 28.934439788998134, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.23, + "ram_mib": 7.523 + }, + { + "t": 29.43529527300052, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.895 + }, + { + "t": 29.435328413997922, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.84 + }, + { + "t": 29.435341684999003, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 36.81, + "ram_mib": 8.262 + }, + { + "t": 29.93489201799821, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.895 + }, + { + "t": 29.934924528999545, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.84 + }, + { + "t": 29.934938688998955, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 36.81, + "ram_mib": 8.262 + }, + { + "t": 30.434939071998087, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.898 + }, + { + "t": 30.434959550999338, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.617 + }, + { + "t": 30.4349667389979, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 46.83, + "ram_mib": 7.688 + }, + { + "t": 30.935238473997742, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.898 + }, + { + "t": 30.935268616998655, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.617 + }, + { + "t": 30.93528377199982, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 46.83, + "ram_mib": 7.688 + }, + { + "t": 31.4345309249984, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.895 + }, + { + "t": 31.434572095000476, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.617 + }, + { + "t": 31.434596729999612, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 47.73, + "ram_mib": 7.695 + }, + { + "t": 31.9350263899978, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.895 + }, + { + "t": 31.93504586400013, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.617 + }, + { + "t": 31.935052877997805, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 47.73, + "ram_mib": 7.695 + }, + { + "t": 32.43481324299864, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 7.895 + }, + { + "t": 32.43484371099839, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 2.39, + "ram_mib": 8.242 + }, + { + "t": 32.43485065300047, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.67, + "ram_mib": 8.25 + }, + { + "t": 32.93429461999767, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.49, + "ram_mib": 7.895 + }, + { + "t": 32.934327070997824, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 2.39, + "ram_mib": 8.242 + }, + { + "t": 32.934345263998694, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.67, + "ram_mib": 8.25 + }, + { + "t": 33.43529885499811, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.895 + }, + { + "t": 33.43534245299816, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.617 + }, + { + "t": 33.435361032999936, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 37.99, + "ram_mib": 7.559 + }, + { + "t": 33.934918402999756, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.895 + }, + { + "t": 33.93494714799817, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.617 + }, + { + "t": 33.93495849199826, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 37.99, + "ram_mib": 7.559 + }, + { + "t": 34.434590376000415, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.898 + }, + { + "t": 34.43461220499739, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.859 + }, + { + "t": 34.43461918699904, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.27, + "ram_mib": 7.488 + }, + { + "t": 34.9351928679971, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.898 + }, + { + "t": 34.93521536999833, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.859 + }, + { + "t": 34.93522204200053, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.27, + "ram_mib": 7.488 + }, + { + "t": 35.43442975399739, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.895 + }, + { + "t": 35.43444881100004, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.613 + }, + { + "t": 35.43445535099818, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 42.9, + "ram_mib": 8.453 + }, + { + "t": 35.9351822489989, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.895 + }, + { + "t": 35.935231272997044, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.613 + }, + { + "t": 35.9352583079999, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 42.9, + "ram_mib": 8.453 + }, + { + "t": 36.435334074998536, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.895 + }, + { + "t": 36.435374029999366, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.617 + }, + { + "t": 36.43539035199865, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.93, + "ram_mib": 8.297 + }, + { + "t": 36.93478867599697, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.895 + }, + { + "t": 36.934834382998815, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.617 + }, + { + "t": 36.93485880699882, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.93, + "ram_mib": 8.297 + }, + { + "t": 37.43450388499696, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.67, + "ram_mib": 8.277 + }, + { + "t": 37.43453267299992, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 4.3, + "ram_mib": 8.504 + }, + { + "t": 37.43454911899971, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 40.62, + "ram_mib": 7.77 + }, + { + "t": 37.9350990210005, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.67, + "ram_mib": 8.277 + }, + { + "t": 37.93511903899707, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 4.3, + "ram_mib": 8.504 + }, + { + "t": 37.93512566099889, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 40.62, + "ram_mib": 7.77 + }, + { + "t": 38.434957449997455, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.922 + }, + { + "t": 38.434979236997606, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.617 + }, + { + "t": 38.43498663599894, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 41.37, + "ram_mib": 8.402 + }, + { + "t": 38.934620037998684, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.922 + }, + { + "t": 38.93464940400008, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.617 + }, + { + "t": 38.934658611000486, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 41.37, + "ram_mib": 8.402 + }, + { + "t": 39.4350984729972, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.895 + }, + { + "t": 39.43514671799858, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.863 + }, + { + "t": 39.435176042999956, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 47.77, + "ram_mib": 8.371 + }, + { + "t": 39.93540038900028, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.895 + }, + { + "t": 39.935458343999926, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.863 + }, + { + "t": 39.93549208199693, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 47.77, + "ram_mib": 8.371 + }, + { + "t": 40.434662830997695, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.895 + }, + { + "t": 40.434688147997804, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.867 + }, + { + "t": 40.43470117600009, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 46.89, + "ram_mib": 8.473 + }, + { + "t": 40.93527247399834, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.895 + }, + { + "t": 40.93530347199703, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.867 + }, + { + "t": 40.93532064399915, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 46.89, + "ram_mib": 8.473 + }, + { + "t": 41.435224154000025, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.895 + }, + { + "t": 41.43526314399787, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.613 + }, + { + "t": 41.43528360199707, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 49.77, + "ram_mib": 8.406 + }, + { + "t": 41.93481881099797, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.895 + }, + { + "t": 41.93489074899844, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.613 + }, + { + "t": 41.93490218799707, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 49.77, + "ram_mib": 8.406 + }, + { + "t": 42.43480525799896, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.94, + "ram_mib": 8.176 + }, + { + "t": 42.43483245499738, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 2.68, + "ram_mib": 8.68 + }, + { + "t": 42.43484175199774, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 36.0, + "ram_mib": 8.664 + }, + { + "t": 42.93433304199789, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.94, + "ram_mib": 8.176 + }, + { + "t": 42.934355633999076, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 2.68, + "ram_mib": 8.68 + }, + { + "t": 42.93436338599713, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 36.0, + "ram_mib": 8.664 + }, + { + "t": 43.43468730599852, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.895 + }, + { + "t": 43.43471977799709, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.617 + }, + { + "t": 43.43473136600005, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 46.92, + "ram_mib": 8.641 + }, + { + "t": 43.93525717800003, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.895 + }, + { + "t": 43.93529632199716, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.617 + }, + { + "t": 43.93531941299807, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 46.92, + "ram_mib": 8.641 + }, + { + "t": 44.435589156997594, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.895 + }, + { + "t": 44.4356631390001, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.617 + }, + { + "t": 44.435706533000484, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 45.45, + "ram_mib": 8.844 + }, + { + "t": 44.93500700399818, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.895 + }, + { + "t": 44.935035010999854, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.617 + }, + { + "t": 44.93504973099698, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 45.45, + "ram_mib": 8.844 + }, + { + "t": 45.43497906599805, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.895 + }, + { + "t": 45.435063950997574, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 7.617 + }, + { + "t": 45.43509749399891, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 16.11, + "ram_mib": 8.258 + }, + { + "t": 45.93511626899999, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.895 + }, + { + "t": 45.93513619099758, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 7.617 + }, + { + "t": 45.93514255300033, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 16.11, + "ram_mib": 8.258 + }, + { + "t": 46.43488550099937, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.895 + }, + { + "t": 46.43493869200029, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.33, + "ram_mib": 7.621 + }, + { + "t": 46.434961474999, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 17.11, + "ram_mib": 9.113 + }, + { + "t": 46.9354334669988, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.895 + }, + { + "t": 46.93548404899775, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.33, + "ram_mib": 7.621 + }, + { + "t": 46.935504673998366, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 17.11, + "ram_mib": 9.113 + }, + { + "t": 47.43534677599746, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.84, + "ram_mib": 7.93 + }, + { + "t": 47.435373678999895, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 2.92, + "ram_mib": 8.594 + }, + { + "t": 47.43538539599831, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 16.1, + "ram_mib": 8.586 + }, + { + "t": 47.93544777900024, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.84, + "ram_mib": 7.93 + }, + { + "t": 47.935492251999676, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 2.92, + "ram_mib": 8.594 + }, + { + "t": 47.93551203300012, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 16.1, + "ram_mib": 8.586 + }, + { + "t": 48.435873874997924, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.895 + }, + { + "t": 48.435978359997534, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.832 + }, + { + "t": 48.43634344399834, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 35.32, + "ram_mib": 8.969 + }, + { + "t": 48.9350182929993, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.895 + }, + { + "t": 48.935038100000384, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.832 + }, + { + "t": 48.93504501899952, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 35.32, + "ram_mib": 8.969 + }, + { + "t": 49.4348622519974, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 8.141 + }, + { + "t": 49.434911404998275, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.31, + "ram_mib": 7.617 + }, + { + "t": 49.43494209399796, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 35.06, + "ram_mib": 9.281 + }, + { + "t": 49.9352520249995, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 8.141 + }, + { + "t": 49.935291769998, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.31, + "ram_mib": 7.617 + }, + { + "t": 49.93530506099705, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 35.06, + "ram_mib": 9.281 + }, + { + "t": 50.43462641199949, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.895 + }, + { + "t": 50.43465727399962, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.617 + }, + { + "t": 50.434672421997675, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 46.77, + "ram_mib": 9.0 + }, + { + "t": 50.935397599998396, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.895 + }, + { + "t": 50.9354596459998, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.617 + }, + { + "t": 50.93549603799693, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 46.77, + "ram_mib": 9.0 + }, + { + "t": 51.43525391299772, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.895 + }, + { + "t": 51.43531028399957, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.867 + }, + { + "t": 51.435342017997755, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.14, + "ram_mib": 9.141 + }, + { + "t": 51.93474503399921, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.895 + }, + { + "t": 51.93477455699758, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.867 + }, + { + "t": 51.93479103899881, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.14, + "ram_mib": 9.141 + }, + { + "t": 52.43476571499923, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.55, + "ram_mib": 8.09 + }, + { + "t": 52.43484205899949, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 2.39, + "ram_mib": 8.734 + }, + { + "t": 52.43487960699713, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.95, + "ram_mib": 9.219 + }, + { + "t": 52.934800374998304, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.55, + "ram_mib": 8.09 + }, + { + "t": 52.93490156599728, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 2.39, + "ram_mib": 8.734 + }, + { + "t": 52.93493518499963, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.95, + "ram_mib": 9.219 + }, + { + "t": 53.43492674299705, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 7.895 + }, + { + "t": 53.434957088000374, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.617 + }, + { + "t": 53.434971823000524, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 35.53, + "ram_mib": 8.996 + }, + { + "t": 53.93523198699768, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 7.895 + }, + { + "t": 53.93525974599834, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.617 + }, + { + "t": 53.935269236997556, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 35.53, + "ram_mib": 8.996 + }, + { + "t": 54.43491740099853, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.898 + }, + { + "t": 54.43494920000012, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.613 + }, + { + "t": 54.434963668998535, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 47.51, + "ram_mib": 8.77 + }, + { + "t": 54.93520767099835, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.898 + }, + { + "t": 54.93523894199825, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.613 + }, + { + "t": 54.935250321999774, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 47.51, + "ram_mib": 8.77 + }, + { + "t": 55.43503375900036, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.895 + }, + { + "t": 55.435052746997826, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.617 + }, + { + "t": 55.435059415998694, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 44.94, + "ram_mib": 9.332 + }, + { + "t": 55.93470602799789, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.895 + }, + { + "t": 55.934749836000265, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.617 + }, + { + "t": 55.934775144000014, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 44.94, + "ram_mib": 9.332 + }, + { + "t": 56.434680636997655, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.141 + }, + { + "t": 56.43471981299808, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.613 + }, + { + "t": 56.434741769997345, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.5, + "ram_mib": 9.602 + }, + { + "t": 56.93521720900026, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 8.141 + }, + { + "t": 56.935258202000114, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.613 + }, + { + "t": 56.935274355997535, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.5, + "ram_mib": 9.602 + }, + { + "t": 57.43523703099709, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 3.63, + "ram_mib": 7.895 + }, + { + "t": 57.43529222199868, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 2.41, + "ram_mib": 8.469 + }, + { + "t": 57.43532272099765, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 38.81, + "ram_mib": 8.891 + }, + { + "t": 57.93542843199975, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 3.63, + "ram_mib": 7.895 + }, + { + "t": 57.93548757499957, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 2.41, + "ram_mib": 8.469 + }, + { + "t": 57.93552219099729, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 38.81, + "ram_mib": 8.891 + }, + { + "t": 58.4351832579996, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.895 + }, + { + "t": 58.435217205998924, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.672 + }, + { + "t": 58.43523336999715, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 25.98, + "ram_mib": 10.11 + }, + { + "t": 58.93470268699821, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.895 + }, + { + "t": 58.934733862999565, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.672 + }, + { + "t": 58.93474798399984, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 25.98, + "ram_mib": 10.11 + }, + { + "t": 59.43488241399973, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.895 + }, + { + "t": 59.434909524999966, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.672 + }, + { + "t": 59.43492455999876, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.56, + "ram_mib": 9.539 + }, + { + "t": 59.93520978000015, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.895 + }, + { + "t": 59.935244575997785, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.672 + }, + { + "t": 59.93526086499696, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.56, + "ram_mib": 9.539 + }, + { + "t": 60.435782995999034, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.895 + }, + { + "t": 60.435923686000024, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.617 + }, + { + "t": 60.435984506999375, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 41.78, + "ram_mib": 9.305 + }, + { + "t": 60.93561108499853, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.895 + }, + { + "t": 60.935700736998115, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.617 + }, + { + "t": 60.93575103100011, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 41.78, + "ram_mib": 9.305 + }, + { + "t": 61.43488528200032, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.39, + "ram_mib": 8.383 + }, + { + "t": 61.43497928699799, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 7.617 + }, + { + "t": 61.435025358998246, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 7.53, + "ram_mib": 8.844 + }, + { + "t": 61.93550877699818, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.39, + "ram_mib": 8.383 + }, + { + "t": 61.93556020399774, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 7.617 + }, + { + "t": 61.93557883899848, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 7.53, + "ram_mib": 8.844 + }, + { + "t": 62.435939563998545, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.59, + "ram_mib": 8.402 + }, + { + "t": 62.43602452899722, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 3.32, + "ram_mib": 9.508 + }, + { + "t": 62.43606171599822, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 4.45, + "ram_mib": 8.879 + }, + { + "t": 62.93486830499751, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.59, + "ram_mib": 8.402 + }, + { + "t": 62.93517822799913, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 3.32, + "ram_mib": 9.508 + }, + { + "t": 62.935284342998784, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 4.45, + "ram_mib": 8.879 + }, + { + "t": 63.4346154249979, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.5, + "ram_mib": 8.641 + }, + { + "t": 63.43463369999881, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.37, + "ram_mib": 7.66 + }, + { + "t": 63.434639801998856, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 3.04, + "ram_mib": 10.08 + }, + { + "t": 63.93521890199918, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.5, + "ram_mib": 8.641 + }, + { + "t": 63.93523814099899, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.37, + "ram_mib": 7.66 + }, + { + "t": 63.93525001599846, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 3.04, + "ram_mib": 10.08 + }, + { + "t": 64.43509204599832, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 8.113 + }, + { + "t": 64.43512519799697, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.59 + }, + { + "t": 64.43514023500029, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 36.85, + "ram_mib": 9.121 + }, + { + "t": 64.93522067799859, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 8.113 + }, + { + "t": 64.9352577699974, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.59 + }, + { + "t": 64.93527915499726, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 36.85, + "ram_mib": 9.121 + }, + { + "t": 65.4358564619979, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.859 + }, + { + "t": 65.43594339699848, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.582 + }, + { + "t": 65.43598197099709, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 46.33, + "ram_mib": 9.527 + }, + { + "t": 65.93500829099867, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.859 + }, + { + "t": 65.93504588499854, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.582 + }, + { + "t": 65.93506564999916, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 46.33, + "ram_mib": 9.527 + }, + { + "t": 66.43520985299983, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 8.105 + }, + { + "t": 66.43526826599918, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.582 + }, + { + "t": 66.43530126999758, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 29.4, + "ram_mib": 9.953 + }, + { + "t": 66.9345776299997, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 8.105 + }, + { + "t": 66.93459735099896, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.582 + }, + { + "t": 66.93460409699765, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 29.4, + "ram_mib": 9.953 + }, + { + "t": 67.43472587299766, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.61, + "ram_mib": 7.883 + }, + { + "t": 67.43475165499694, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 1.03, + "ram_mib": 12.75 + }, + { + "t": 67.4347651930002, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.87, + "ram_mib": 9.703 + }, + { + "t": 67.93517378499746, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.61, + "ram_mib": 7.883 + }, + { + "t": 67.93519225699856, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 1.03, + "ram_mib": 12.75 + }, + { + "t": 67.93519824099712, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.87, + "ram_mib": 9.703 + }, + { + "t": 68.43446410399702, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.844 + }, + { + "t": 68.43450994699742, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 1.52, + "ram_mib": 8.332 + }, + { + "t": 68.43453479199889, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.36, + "ram_mib": 10.02 + }, + { + "t": 68.93489862099887, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.844 + }, + { + "t": 68.93491735899806, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 1.52, + "ram_mib": 8.332 + }, + { + "t": 68.93492394299756, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.36, + "ram_mib": 10.02 + }, + { + "t": 69.43439240899897, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.816 + }, + { + "t": 69.43442633999803, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.539 + }, + { + "t": 69.43444231099784, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.27, + "ram_mib": 10.39 + }, + { + "t": 69.93524798599901, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.816 + }, + { + "t": 69.93529185199804, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.539 + }, + { + "t": 69.93530786399788, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 48.27, + "ram_mib": 10.39 + }, + { + "t": 70.43519471699983, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 7.816 + }, + { + "t": 70.43523949500013, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.539 + }, + { + "t": 70.43526662599834, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 33.77, + "ram_mib": 10.82 + }, + { + "t": 70.93472980899969, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 7.816 + }, + { + "t": 70.93476162299703, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.539 + }, + { + "t": 70.93477215599705, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 33.77, + "ram_mib": 10.82 + }, + { + "t": 71.43530462499984, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.062 + }, + { + "t": 71.43535369699748, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.535 + }, + { + "t": 71.43538314399848, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 43.68, + "ram_mib": 10.32 + }, + { + "t": 71.93430869499934, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 8.062 + }, + { + "t": 71.9343358019978, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.535 + }, + { + "t": 71.93435017499723, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 43.68, + "ram_mib": 10.32 + }, + { + "t": 72.43535008699837, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.43, + "ram_mib": 7.809 + }, + { + "t": 72.4354289039984, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.504 + }, + { + "t": 72.43546258499919, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 43.69, + "ram_mib": 9.066 + }, + { + "t": 72.93531934199927, + "container": "4990d79525aa21460a36e998e619471d05fea26f8b2a2aabe27b814a0e449d48", + "service": "api", + "cpu_percent": 2.43, + "ram_mib": 7.809 + }, + { + "t": 72.93540703399776, + "container": "fa88b1a3359f97301cae43f4bf4a83fc7e34e586ff846bd601c4297d2f7c173c", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.504 + }, + { + "t": 72.93546136499936, + "container": "a655bf4bdea28b957bc15e07c72d8e96eecb3be0b3305571e0b34c9d7644e74e", + "service": "worker", + "cpu_percent": 43.69, + "ram_mib": 9.066 + } + ], + "sdk_diagnostic_audit": { + "source": "Prometheus instant queries at trial start/end, restricted to trial container hostnames", + "warning_error_start": 0.0, + "warning_error_end": 0.0, + "warning_error_delta": 0.0 + } + }, + { + "variant": "A", + "repetition": 3, + "completed_utc": "2026-11-16T15:06:13.152439+00:00", + "successful_uploads": 1000, + "http_errors": 0, + "http_seconds": 11.852385877002234, + "pipeline_seconds": 140.01866122299907, + "collector_window_seconds": 143.1003067959973, + "rps": 84.37119837115235, + "latency_mean_ms": 46.89251536606025, + "latency_p50_ms": 29.071676002786262, + "latency_p99_ms": 413.16950599866686, + "latencies_ms": [ + 24.7802710000542, + 23.544805000710767, + 23.57978100189939, + 25.833360003161943, + 24.793663000309607, + 23.76293599809287, + 25.79366099962499, + 29.149764999601757, + 25.26498800216359, + 29.94642900011968, + 29.129587001079926, + 32.318997000402305, + 30.60703100345563, + 28.87763999751769, + 35.519926001143176, + 27.925190999667393, + 29.184970997448545, + 26.16491500157281, + 26.374986999144312, + 33.24685300322017, + 28.384919998643454, + 30.374459001905052, + 24.338565999642015, + 25.092148000112502, + 23.811638999177376, + 29.34425500279758, + 22.504122000100324, + 30.186953001248185, + 24.69916799964267, + 122.79489100183127, + 93.4422110003652, + 79.64624200030812, + 58.98512499697972, + 600.8303169983265, + 337.03175600021495, + 263.1674730000668, + 573.1952829992224, + 564.4723389996216, + 317.14374699731707, + 241.91657600022154, + 187.0830450025096, + 65.73922700044932, + 60.02892700053053, + 62.26225499995053, + 71.08204099858995, + 74.6642129997781, + 92.31421900040004, + 74.01726700118161, + 66.35287999961292, + 36.45239599791239, + 22.060169001633767, + 41.85395500098821, + 30.730614002095535, + 32.5088429999596, + 31.044478000694653, + 26.358092000009492, + 41.09733000223059, + 32.79217399904155, + 21.287928000674583, + 28.43732600013027, + 25.617444000090472, + 22.227519999432843, + 28.23155499936547, + 27.41689899994526, + 21.614854002109496, + 26.089941999089206, + 32.589876998827094, + 26.31263100192882, + 23.86556599958567, + 25.023419002536684, + 26.302047997887712, + 30.843108001135988, + 25.950649000151316, + 27.274136002233718, + 25.497835002170177, + 36.52675799821736, + 24.822819999826606, + 36.38003100058995, + 30.293468000309076, + 24.05048299988266, + 24.746930997935124, + 28.563973999553127, + 49.52337999930023, + 202.83463600208052, + 22.599149000598118, + 30.27124100117362, + 49.180621001141844, + 29.421221999655245, + 28.187652002088726, + 29.001839000557084, + 31.66087000136031, + 26.26870099993539, + 31.313550000049872, + 31.35346100316383, + 32.53600599782658, + 25.80001199748949, + 35.50792399983038, + 24.358216000109678, + 26.001633999840124, + 23.710540001047775, + 24.446717001410434, + 23.23806899948977, + 27.744226001232164, + 28.70933799931663, + 34.23332899910747, + 35.867966998921474, + 28.460661000281107, + 30.911982998077292, + 23.416116000589682, + 27.743316000851337, + 28.35813700221479, + 25.827287001447985, + 26.852950002648868, + 23.549665998871205, + 137.17535699834116, + 32.518570998945506, + 68.1492010007787, + 40.21646100227372, + 55.38490500111948, + 26.26562799923704, + 29.233902001578826, + 31.523870999080827, + 33.31497899853275, + 20.918472000630572, + 152.87251500194543, + 198.24727100058226, + 22.727993000444258, + 30.29944300214993, + 30.750885998713784, + 25.7550189999165, + 30.176562002452556, + 31.873257998086046, + 36.543739999615354, + 33.9852629986126, + 26.169698998273816, + 28.44964100222569, + 33.09722199992393, + 37.2314530031872, + 35.753121999732684, + 26.52367900009267, + 30.68885800166754, + 26.138121000258252, + 31.872012998064747, + 32.4842379995971, + 28.217795999808004, + 31.03266300240648, + 33.40589700019336, + 32.11584299788228, + 31.466594999074005, + 27.833221000037156, + 29.2567769974994, + 32.20090799732134, + 35.60407899931306, + 30.947649000154343, + 31.993945998692652, + 29.728539997449843, + 33.48301000005449, + 37.23603799880948, + 29.156322998460382, + 20.787481000297703, + 29.730389000178548, + 32.96555900305975, + 29.812018998200074, + 31.25762399940868, + 26.225393001368502, + 27.154021001479123, + 79.81008699789527, + 111.98442699969746, + 96.50582000176655, + 27.512611999554792, + 31.733325999084627, + 43.79405500003486, + 32.65006999936304, + 30.996508001408074, + 28.033271999447607, + 29.38308300144854, + 31.69053899910068, + 28.84787299990421, + 35.5504130020563, + 26.42499400099041, + 26.053924000734696, + 25.66632500020205, + 33.921068999916315, + 29.1747920018679, + 24.733180001931032, + 26.89952800210449, + 31.353271999250865, + 25.937606998923002, + 28.194739999889862, + 29.440350001095794, + 25.906478997058002, + 28.978454000025522, + 24.611359000118682, + 24.636418998852605, + 29.479871998773888, + 38.05226300028153, + 20.597781000105897, + 71.57304800057318, + 27.784762998635415, + 22.344493001583032, + 59.63052299921401, + 25.926943999365903, + 25.698704001115402, + 22.628873000940075, + 24.27777800039621, + 28.461530000640778, + 24.449090000416618, + 21.8135089999123, + 22.66888699887204, + 29.265297001984436, + 26.7149370010884, + 42.62886200012872, + 99.53682899868, + 24.587641000834992, + 19.904184999177232, + 22.258721000980586, + 28.26672800074448, + 25.074495999433566, + 25.60475499922177, + 23.06054799919366, + 24.639728999318322, + 22.16376000069431, + 24.876586001482792, + 27.68921499955468, + 33.561580999958096, + 26.68406599696027, + 20.091592999960994, + 25.22902200144017, + 25.752157001988962, + 29.080030999466544, + 33.358938999299426, + 33.42671900099958, + 21.92483299950254, + 33.768291999876965, + 29.060477998427814, + 29.83979100099532, + 26.137431999813998, + 30.80406099979882, + 25.1535210009024, + 24.26986099817441, + 28.988384998228867, + 28.32914199825609, + 28.82262200000696, + 27.503758003149414, + 24.576816998887807, + 24.31923499898403, + 37.28252499786322, + 27.873705999809317, + 25.186038998072036, + 26.234690001729177, + 22.562706002645427, + 23.25706899864599, + 19.319272996654036, + 19.371624999621417, + 25.931221000064397, + 17.945882998901652, + 24.69457000188413, + 24.764981997577706, + 28.725543001201004, + 28.12423299837974, + 30.257815000368282, + 27.170669000042835, + 32.23484500267659, + 30.686328002047958, + 35.344642001291504, + 30.262615000538062, + 34.62407500046538, + 28.49231899745064, + 26.553968997177435, + 29.165255997213535, + 37.35950099871843, + 31.02127300007851, + 25.959698999940883, + 24.780755000392674, + 23.900791002233746, + 23.512886997195892, + 44.997248998697614, + 25.22071400017012, + 29.248162998555927, + 77.21051899716258, + 47.904170998663176, + 79.84269599910476, + 80.3850810007134, + 59.114057999977376, + 503.7282340017555, + 272.80986700134235, + 234.1506599987042, + 289.5755540012033, + 592.9028120008297, + 446.1065849973238, + 328.37355800074874, + 287.24441599842976, + 131.17530599993188, + 97.21973799969419, + 98.44311400229344, + 78.02345099844388, + 59.199319999606814, + 90.92769700146164, + 66.53840299986769, + 63.988508001784794, + 40.10629299955326, + 28.084210000088206, + 42.45285199795035, + 24.398129000474, + 35.10963400185574, + 41.31744099868229, + 26.888403001066763, + 34.523377998993965, + 38.78884600271704, + 27.737863001675578, + 28.586374002770754, + 29.01119799935259, + 34.465153999917675, + 33.697642997140065, + 33.10217800026294, + 28.010980997350998, + 21.57536300001084, + 29.041259000223363, + 24.743783000303665, + 26.31997299977229, + 29.427052999380976, + 31.87818900187267, + 28.63895200061961, + 26.34710200072732, + 29.696837002120446, + 29.423183001199504, + 27.855331001774175, + 28.110022998589557, + 25.277800999901956, + 23.488861999794608, + 24.363133998122066, + 26.23081699857721, + 142.60378199833212, + 105.94521899838583, + 22.85312200183398, + 76.20764999956009, + 29.27764199921512, + 37.355417996877804, + 36.70341800170718, + 27.48492699902272, + 35.707996001292486, + 25.756005001312587, + 31.18300200003432, + 26.968151996697998, + 30.37391299949377, + 26.092289001098834, + 22.41491599852452, + 25.815633998718113, + 26.066284997796174, + 28.02209400033462, + 29.312899001524784, + 29.650569998921128, + 28.944393998244777, + 42.06354599955375, + 27.316749998135492, + 26.929321997158695, + 25.200070998835145, + 24.72732500245911, + 32.58136000295053, + 28.15711799848941, + 29.071793000184698, + 31.01705099834362, + 145.02657200137037, + 34.17595399878337, + 66.13706899952376, + 38.847059000545414, + 60.61416499869665, + 25.784092998947017, + 34.81473899955745, + 25.167503001284786, + 31.327824002801208, + 65.711237002688, + 202.51750199895469, + 109.12167000060435, + 27.058704999944894, + 29.39886600142927, + 24.256282002170337, + 28.634607002459234, + 24.885055001504952, + 32.39306399700581, + 31.59131000211346, + 40.17220300011104, + 27.382876000046963, + 29.071676002786262, + 31.060309000167763, + 35.40998400058015, + 40.243297997221816, + 38.58651100017596, + 29.78066099967691, + 30.17926400207216, + 28.80295499926433, + 25.644847999501508, + 33.42461699867272, + 32.27698800037615, + 27.731767997465795, + 29.946348997327732, + 33.46181000233628, + 29.603333001432475, + 32.40073500273866, + 42.18173799745273, + 27.912859000934986, + 34.7970679977152, + 32.88949700072408, + 26.488993000384653, + 34.06200999961584, + 34.51800699986052, + 28.862369999842485, + 26.590900000883266, + 32.18567600197275, + 22.617719001573278, + 28.58974099945044, + 27.771083001425723, + 25.728611999511486, + 28.10523900188855, + 166.21682299955864, + 107.36430000179098, + 28.2140339986654, + 33.93480900194845, + 48.21789499692386, + 32.313730000169016, + 29.27561899923603, + 29.334450999158435, + 29.58168300028774, + 31.70499000043492, + 30.327504999149824, + 32.823646997712785, + 27.564634001464583, + 26.125340998987667, + 25.592866997612873, + 33.108268999058055, + 29.29081100228359, + 32.54557699983707, + 29.189411998231662, + 28.240011000889353, + 32.60100800252985, + 24.66979200107744, + 27.134733001730638, + 28.172962000098778, + 25.721932997839758, + 22.55697700093151, + 30.274674998509, + 36.12456499831751, + 27.977451998594915, + 74.06581100076437, + 24.994396000693087, + 30.160542999510653, + 44.325178998406045, + 22.42448299875832, + 24.79449000020395, + 26.94365299976198, + 40.60951599967666, + 22.476844002085272, + 24.96345100007602, + 32.296590998157626, + 21.483124000951648, + 85.72422400175128, + 110.26043400124763, + 24.748825999267865, + 26.86363300017547, + 24.732303998462157, + 22.627276001003338, + 27.049307002016576, + 28.158083001471823, + 24.481729000399355, + 35.14399300183868, + 17.363871000270592, + 30.63680299965199, + 27.704021998943062, + 20.5635100028303, + 20.97466199847986, + 32.97364299942274, + 33.19687100156443, + 29.112330001225928, + 23.352639000222553, + 28.797647999454057, + 27.46518400090281, + 22.264654999162303, + 27.785911999671953, + 29.162056001950987, + 28.33572199961054, + 26.34629699969082, + 30.462164999335073, + 25.52966000075685, + 24.397601999226026, + 25.303794998762896, + 29.87968899833504, + 41.06978900017566, + 23.146518997236853, + 29.230689000542043, + 29.171569000027375, + 27.652126002067234, + 27.55672100101947, + 27.310722001857357, + 25.871654001093702, + 24.227318001067033, + 27.041689998441143, + 23.300546999962535, + 107.51427200011676, + 19.3473309991532, + 37.14288800256327, + 24.442747002467513, + 24.307434003276285, + 23.2929680023517, + 25.791058000322664, + 18.838498999684816, + 23.803332998795668, + 24.77062300022226, + 25.21719800279243, + 21.53209799871547, + 28.475543000240577, + 30.80009899713332, + 27.28365599978133, + 33.19699699932244, + 30.686142003105488, + 33.960402997763595, + 30.471423000562936, + 32.69807399919955, + 28.672223001194652, + 26.510167997912504, + 33.85396300291177, + 35.2086450002389, + 30.137369001749903, + 27.5472510002146, + 29.097284001181833, + 22.571158999198815, + 25.999034001870314, + 24.79502799906186, + 29.71919699848513, + 31.168680998234777, + 111.86509300023317, + 80.01953100028913, + 81.55914400049369, + 60.304313999949954, + 197.70054499895195, + 413.5479940014193, + 411.1529490000976, + 314.54201900123735, + 522.9766339980415, + 413.16950599866686, + 258.6586469988106, + 145.94661100272788, + 287.28656900057103, + 129.3445970004541, + 100.94765800022287, + 98.48396599772968, + 98.19437999976799, + 76.29318699764553, + 62.81172200033325, + 73.6355189983442, + 72.36201100022299, + 33.14579899961245, + 28.59570899818209, + 28.5396409999521, + 29.46442800021032, + 28.21708699775627, + 32.131583997397684, + 39.69920999952592, + 31.311429000197677, + 35.17985199869145, + 37.52824700131896, + 25.58696900086943, + 33.62082400053623, + 27.16136199887842, + 27.056617000198457, + 21.906321999267675, + 27.453294998849742, + 30.98715799933416, + 26.49718899920117, + 24.811500999931013, + 26.513485998293618, + 32.17120400222484, + 34.03506299946457, + 22.690481000608997, + 27.32747899790411, + 28.879599001811584, + 31.43034599997918, + 26.27988399763126, + 28.59244200226385, + 30.008958998223534, + 31.614462001016364, + 26.174636997893685, + 26.50633399753133, + 141.00068200059468, + 118.96378500023275, + 73.70633800019277, + 30.7508739970217, + 32.012742001825245, + 26.158571999985725, + 27.461825997306732, + 23.838323999370914, + 26.266832999681355, + 24.477756000123918, + 31.26567900108057, + 33.854983998026, + 30.339954002556624, + 26.635027999873273, + 22.00896499925875, + 23.450949000107357, + 23.79469299921766, + 19.174974000634393, + 24.946798002929427, + 28.381036001519533, + 26.670179002394434, + 36.40193599858321, + 33.56674400129123, + 28.310073001193814, + 33.96916500059888, + 23.663404001126764, + 24.07941099954769, + 25.948653998057125, + 29.36888399926829, + 33.389094001904596, + 26.007665997894946, + 123.37703999946825, + 35.26393900028779, + 81.12032699864358, + 87.17267799875117, + 24.673252999491524, + 29.246392001368804, + 31.34464300092077, + 24.623948000225937, + 21.332742002414307, + 67.31941599718994, + 203.68926199807902, + 103.74234600021737, + 27.506370999617502, + 42.175949001830304, + 30.748348999622976, + 27.193301997613162, + 28.36801900048158, + 38.702967001881916, + 26.965450997522566, + 30.168598001182545, + 27.391046001866926, + 32.59873000206426, + 45.39778799880878, + 41.42072299873689, + 27.30789899942465, + 30.744936000701273, + 30.75627499856637, + 28.389290000632172, + 32.395232999988366, + 36.48876900115283, + 28.511956999864196, + 28.085689998988528, + 28.376121998007875, + 47.77575199841522, + 31.021306000184268, + 32.092966001073364, + 27.32202599872835, + 32.16554499886115, + 31.47037600137992, + 30.988784001237946, + 28.636000002734363, + 35.347551998711424, + 33.79900300205918, + 29.328507000172976, + 25.215168003342114, + 26.838625999516807, + 29.475883002305636, + 28.45476899892674, + 33.252199998969445, + 29.381329000898404, + 85.45972799765877, + 113.66343899862841, + 96.80360099810059, + 23.116499000025215, + 34.74636600003578, + 38.85387000264018, + 29.0636399986397, + 26.06854500118061, + 30.104739998932928, + 29.76344600028824, + 35.4526849987451, + 31.924134000291815, + 30.351577999681467, + 25.24318199721165, + 28.31375499954447, + 25.985584998124978, + 24.503812001057668, + 27.163018999999622, + 29.424118998576887, + 25.64469099888811, + 25.644443998317, + 31.70518600018113, + 27.02126299845986, + 31.535489000816597, + 25.793698001507437, + 24.93017999950098, + 23.886225000751438, + 26.466441002412466, + 32.72199300045031, + 25.889687000017148, + 25.863335002213717, + 26.12633000171627, + 70.96569299756084, + 23.847522999858484, + 21.348516002035467, + 53.096442999958526, + 24.887365998438327, + 28.087186998163816, + 22.588279000046896, + 35.37362700080848, + 30.467657998087816, + 27.444588999060215, + 28.305010000622133, + 23.707986001682002, + 22.895740999956615, + 60.60184899979504, + 106.11958800291177, + 24.52970300146262, + 21.81334700071602, + 20.241696998709813, + 27.77043799869716, + 28.709971000353107, + 22.571292000066023, + 23.23007700033486, + 31.303241001296556, + 24.002253001526697, + 21.021412998379674, + 24.00690099966596, + 28.596880001714453, + 28.748071999871172, + 22.15300899842987, + 29.69796500110533, + 19.59160199839971, + 30.180432000634028, + 29.63164399989182, + 22.526377000758657, + 32.92535799846519, + 25.142033002339303, + 32.33487400211743, + 27.64083000147366, + 26.360435000242433, + 25.11501999833854, + 30.90203899773769, + 28.58817000014824, + 27.09530900028767, + 27.173883998329984, + 28.577953999047168, + 26.344437002990162, + 25.489309002296068, + 24.81396599978325, + 32.3774959979346, + 27.559062000364065, + 29.03883399994811, + 27.198222000151873, + 26.56767600274179, + 23.75537699845154, + 25.533935000567, + 24.721925001358613, + 23.088066998752765, + 21.337922000384424, + 19.798994999291608, + 25.501415999315213, + 19.23028700184659, + 24.693346000276506, + 25.96130500023719, + 35.723406999750296, + 31.007942001451738, + 26.185282000369625, + 28.585715001099743, + 36.053031999472296, + 26.647786999092204, + 39.053235999745084, + 26.5532270022959, + 35.31874200052698, + 28.950982999958796, + 33.94131599998218, + 29.29731800031732, + 29.20897900185082, + 24.98532299796352, + 25.139962002867833, + 32.89687799770036, + 25.07678300025873, + 23.606694001500728, + 34.77127899896004, + 22.022123001079308, + 28.28429600049276, + 95.65973099961411, + 67.39411099988502, + 97.81857099733315, + 80.07359100156464, + 601.5513530001044, + 408.73154700238956, + 315.99703099709586, + 566.8829179994646, + 282.0230180004728, + 240.91637799938326, + 252.01734200163628, + 287.3182219991577, + 130.69799299773877, + 99.64371100068092, + 96.27318200000445, + 99.29789200032246, + 94.14314900277532, + 68.75278599909507, + 50.068448999809334, + 72.98116500169272, + 36.98893800174119, + 36.841477998677874, + 29.67948500008788, + 28.233870001713512, + 43.38947700307472, + 22.550873000000138, + 33.49282999988645, + 28.02070100005949, + 26.16287800265127, + 20.92591400287347, + 29.85964999970747, + 28.944402001798153, + 23.165532998973504, + 28.242710999620613, + 25.136668999039102, + 24.262097002065275, + 27.385907000279985, + 26.391187002445804, + 31.50173799804179, + 31.244166999385925, + 26.587415999529185, + 29.293698997207684, + 33.177051998791285, + 34.05873700103257, + 25.39974699902814, + 33.91477299737744, + 27.414905998739414, + 48.23196600045776, + 47.77256699890131, + 31.84583400070551, + 54.52069199964171, + 196.2270029980573, + 30.09956399910152, + 18.55506300125853, + 68.9658289993531, + 30.363796002347954, + 38.609750001342036, + 33.121480999398045, + 24.261436999950092, + 38.90909199981252, + 26.74485700117657, + 28.915593000419904, + 24.54419700006838, + 21.032243999798084, + 24.081838000711286, + 19.877683000231627, + 21.91540900093969, + 16.734762000851333, + 23.770682000758825, + 27.976679000857985, + 23.048805000144057, + 29.59291000297526, + 29.53210000123363, + 33.384843001840636, + 34.6726679999847, + 28.04271099739708, + 31.192284001008375, + 24.672704999829875, + 25.82728000197676, + 28.473174999817275, + 30.356161998497555, + 32.25548000045819, + 61.84164699880057, + 88.07630099909147, + 85.36576000187779, + 43.88172200197005, + 75.60365300014382, + 25.708943998324685, + 34.739359998638975, + 28.444796000258066, + 24.944221000623656, + 24.15397199729341, + 48.00943400186952, + 197.9241369990632, + 101.91510900040157, + 20.77087599900551, + 31.287199002690613, + 29.160866000893293, + 31.190445999527583, + 27.12024799984647, + 50.68702700009453, + 29.479985998477787, + 27.637741000944516, + 28.41441499913344, + 30.08891900026356, + 34.5942659987486, + 26.357868999184575, + 42.70682599963038, + 37.76352400018368, + 35.50060899942764, + 28.912997000588803, + 38.299494997772854, + 26.433437000378035, + 32.12862600048538, + 35.073884999292204, + 28.37756999724661, + 34.60793300109799, + 30.123789998469874, + 34.54312499889056, + 34.833259000151884, + 31.925909002893604, + 30.19854100057273, + 32.42810099982307, + 27.489180996781215, + 28.435812000680016, + 36.28496799865388, + 30.111026000668062, + 28.994358999625547, + 24.323254001501482, + 31.603568997525144, + 24.861681999027496, + 33.4410330033279, + 28.34544600045774, + 26.437030002853135, + 73.48896599796717, + 111.96723500324879, + 90.12066899958882, + 22.866010996949626, + 72.06536499870708, + 28.1497030009632, + 32.52232399972854, + 30.97545399941737, + 29.025417999946512, + 29.452216000208864, + 31.3893120001012, + 29.30341999672237, + 32.79854799984605, + 32.60953599965433, + 28.16633200200158, + 30.71035700122593, + 33.03773600055138, + 23.516496999945957, + 25.58763100023498, + 28.94571800061385, + 29.590198002551915, + 29.306596999958856, + 28.128691999881994, + 25.919889001670526, + 31.336221003584797, + 22.392974999092985, + 25.85713799999212, + 28.462258000217844, + 33.73164100048598, + 27.172523998160614, + 83.24957600052585, + 20.54931499878876, + 21.844424998562317, + 54.60234299971489, + 24.703009003133047, + 25.872469999740133, + 23.724100999970688, + 30.405378001887584, + 29.796355996950297, + 28.104970002459595, + 27.79872600149247, + 24.150877001375193, + 27.786773000116227, + 49.234264999540756, + 112.74319900257979, + 24.419757999567082, + 24.01629099767888, + 24.73497699975269, + 20.632019000913715, + 29.101568001351552, + 28.619572000025073, + 24.45989799889503, + 34.443035001459066, + 22.69852599783917, + 32.859688999451464, + 31.17303399994853, + 28.752080001140712, + 29.222511002444662, + 28.776576000382192, + 22.083408002799843, + 27.67682899866486, + 23.560731999168638, + 26.155757001106394, + 26.51376799985883, + 21.08219800356892, + 29.06183599770884, + 32.390240998211084, + 26.29398299905006, + 25.033243000507355, + 30.654054000478936, + 29.027350999967894, + 19.66564800022752, + 22.963767001783708, + 33.132675998786, + 24.14925400080392, + 27.526155001396546, + 24.49208100006217, + 27.92711800066172, + 31.3422300023376, + 28.88416199857602, + 26.896673000010196, + 27.3543619987322, + 25.468823001574492, + 23.261704001924954, + 25.298913002188783, + 24.818448000587523, + 97.94815699933679 + ], + "resources": { + "api": { + "cpu_percent_mean": 4.465071428571429, + "ram_mib_mean": 14.215242857142858, + "ram_mib_max": 21.994, + "samples": 560, + "cpu_seconds_per_job_estimate": 0.0062519332369363545 + }, + "worker": { + "cpu_percent_mean": 23.35589285714286, + "ram_mib_mean": 6.343742857142857, + "ram_mib_max": 7.504, + "samples": 280, + "cpu_seconds_per_job_estimate": 0.0327026084952495 + } + }, + "collector_deltas": { + "otelcol_receiver_accepted_spans": 0, + "otelcol_exporter_sent_spans": 0, + "otelcol_receiver_refused_spans": 0, + "otelcol_exporter_send_failed_spans": 0, + "otelcol_receiver_accepted_log_records": 0, + "otelcol_receiver_accepted_metric_points": 0 + }, + "ingest_spans_per_second": 0.0, + "tempo_spans_per_second": 0.0, + "trace_retention": 0.0, + "stats_samples": [ + { + "t": 0.43942499599870644, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.26, + "ram_mib": 6.574 + }, + { + "t": 0.4394449249994068, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.17, + "ram_mib": 6.031 + }, + { + "t": 0.4394515499989211, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 0.14, + "ram_mib": 4.027 + }, + { + "t": 0.939719926998805, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.26, + "ram_mib": 6.574 + }, + { + "t": 0.9397446109978773, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.17, + "ram_mib": 6.031 + }, + { + "t": 0.9397559609969903, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 0.14, + "ram_mib": 4.027 + }, + { + "t": 1.4402668179973261, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 26.64, + "ram_mib": 8.586 + }, + { + "t": 1.4403268530004425, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 24.24, + "ram_mib": 7.457 + }, + { + "t": 1.4403528419970826, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 8.85, + "ram_mib": 4.219 + }, + { + "t": 1.9399068069978966, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 26.64, + "ram_mib": 8.586 + }, + { + "t": 1.9399478969971824, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 24.24, + "ram_mib": 7.457 + }, + { + "t": 1.939964675999363, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 8.85, + "ram_mib": 4.219 + }, + { + "t": 2.440086634000181, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 5.79, + "ram_mib": 9.484 + }, + { + "t": 2.4401420049980516, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 6.11, + "ram_mib": 7.469 + }, + { + "t": 2.440164243998879, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 3.96, + "ram_mib": 4.609 + }, + { + "t": 2.9398136130002968, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 5.79, + "ram_mib": 9.484 + }, + { + "t": 2.93986901199969, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 6.11, + "ram_mib": 7.469 + }, + { + "t": 2.9398905229973025, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 3.96, + "ram_mib": 4.609 + }, + { + "t": 3.439968814000167, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 4.22, + "ram_mib": 8.414 + }, + { + "t": 3.440039592998801, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.99, + "ram_mib": 7.754 + }, + { + "t": 3.440082221997727, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 1.84, + "ram_mib": 4.059 + }, + { + "t": 3.9400879029999487, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 4.22, + "ram_mib": 8.414 + }, + { + "t": 3.94015169100021, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.99, + "ram_mib": 7.754 + }, + { + "t": 3.940177913998923, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 1.84, + "ram_mib": 4.059 + }, + { + "t": 4.440763030997914, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 5.99, + "ram_mib": 8.312 + }, + { + "t": 4.440819518997159, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 6.03, + "ram_mib": 7.77 + }, + { + "t": 4.440856481996889, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 2.64, + "ram_mib": 4.539 + }, + { + "t": 4.93970614799764, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 5.99, + "ram_mib": 8.312 + }, + { + "t": 4.939734227998997, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 6.03, + "ram_mib": 7.77 + }, + { + "t": 4.939749822999147, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 2.64, + "ram_mib": 4.539 + }, + { + "t": 5.4398968539971975, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 23.5, + "ram_mib": 8.789 + }, + { + "t": 5.439942445998895, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 22.66, + "ram_mib": 8.711 + }, + { + "t": 5.439972205000231, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 11.74, + "ram_mib": 4.281 + }, + { + "t": 5.939395076999062, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 23.5, + "ram_mib": 8.789 + }, + { + "t": 5.939421303999552, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 22.66, + "ram_mib": 8.711 + }, + { + "t": 5.939434584997798, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 11.74, + "ram_mib": 4.281 + }, + { + "t": 6.439774476999446, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 20.94, + "ram_mib": 7.953 + }, + { + "t": 6.439808166000148, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 21.01, + "ram_mib": 9.219 + }, + { + "t": 6.439823734999663, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 11.0, + "ram_mib": 4.961 + }, + { + "t": 6.939963895998517, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 20.94, + "ram_mib": 7.953 + }, + { + "t": 6.939984524000465, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 21.01, + "ram_mib": 9.219 + }, + { + "t": 6.93999269699998, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 11.0, + "ram_mib": 4.961 + }, + { + "t": 7.440335175997461, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 22.5, + "ram_mib": 7.688 + }, + { + "t": 7.440435504999186, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 22.22, + "ram_mib": 9.172 + }, + { + "t": 7.440483108999615, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.4, + "ram_mib": 4.73 + }, + { + "t": 7.939603910999722, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 22.5, + "ram_mib": 7.688 + }, + { + "t": 7.939625727998646, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 22.22, + "ram_mib": 9.172 + }, + { + "t": 7.9396320749983715, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.4, + "ram_mib": 4.73 + }, + { + "t": 8.4394367399982, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 21.0, + "ram_mib": 7.602 + }, + { + "t": 8.439468505999685, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 19.25, + "ram_mib": 9.109 + }, + { + "t": 8.439483987996937, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 11.11, + "ram_mib": 5.523 + }, + { + "t": 8.9397573440001, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 21.0, + "ram_mib": 7.602 + }, + { + "t": 8.939788514999236, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 19.25, + "ram_mib": 9.109 + }, + { + "t": 8.939804402998561, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 11.11, + "ram_mib": 5.523 + }, + { + "t": 9.439400680999825, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 25.59, + "ram_mib": 8.785 + }, + { + "t": 9.439428976998897, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 24.72, + "ram_mib": 9.227 + }, + { + "t": 9.43944380099856, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.98, + "ram_mib": 4.434 + }, + { + "t": 9.939714729000116, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 25.59, + "ram_mib": 8.785 + }, + { + "t": 9.9397413029983, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 24.72, + "ram_mib": 9.227 + }, + { + "t": 9.939756315998238, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.98, + "ram_mib": 4.434 + }, + { + "t": 10.4396849069999, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 24.68, + "ram_mib": 9.285 + }, + { + "t": 10.439706141998613, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 25.08, + "ram_mib": 8.191 + }, + { + "t": 10.43971324299855, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 14.03, + "ram_mib": 4.016 + }, + { + "t": 10.940168662997166, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 24.68, + "ram_mib": 9.285 + }, + { + "t": 10.940187723997951, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 25.08, + "ram_mib": 8.191 + }, + { + "t": 10.940195496998058, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 14.03, + "ram_mib": 4.016 + }, + { + "t": 11.439614579998306, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 23.66, + "ram_mib": 8.996 + }, + { + "t": 11.439632149998943, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 23.26, + "ram_mib": 9.566 + }, + { + "t": 11.439638808999007, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.65, + "ram_mib": 5.109 + }, + { + "t": 11.940305299998727, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 23.66, + "ram_mib": 8.996 + }, + { + "t": 11.94032517999949, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 23.26, + "ram_mib": 9.566 + }, + { + "t": 11.940343099999154, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.65, + "ram_mib": 5.109 + }, + { + "t": 12.439666737998778, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 17.67, + "ram_mib": 7.348 + }, + { + "t": 12.439691586998379, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 18.11, + "ram_mib": 6.973 + }, + { + "t": 12.439701015999162, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.07, + "ram_mib": 4.844 + }, + { + "t": 12.940644252998027, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 17.67, + "ram_mib": 7.348 + }, + { + "t": 12.940703680997103, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 18.11, + "ram_mib": 6.973 + }, + { + "t": 12.940734439998778, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.07, + "ram_mib": 4.844 + }, + { + "t": 13.439718882997113, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.293 + }, + { + "t": 13.439772136000101, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.449 + }, + { + "t": 13.439795771999343, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 12.35, + "ram_mib": 4.156 + }, + { + "t": 13.940522310000233, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.293 + }, + { + "t": 13.940555997000047, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.449 + }, + { + "t": 13.940569809998124, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 12.35, + "ram_mib": 4.156 + }, + { + "t": 14.440275480999844, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.03, + "ram_mib": 7.242 + }, + { + "t": 14.440358661999198, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.03, + "ram_mib": 6.973 + }, + { + "t": 14.440424188996985, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 0.11, + "ram_mib": 4.273 + }, + { + "t": 14.93936876099906, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.03, + "ram_mib": 7.242 + }, + { + "t": 14.9393966059979, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.03, + "ram_mib": 6.973 + }, + { + "t": 14.939403841999592, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 0.11, + "ram_mib": 4.273 + }, + { + "t": 15.439535006997176, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.58, + "ram_mib": 6.777 + }, + { + "t": 15.43956346699997, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.29, + "ram_mib": 7.004 + }, + { + "t": 15.439575098000205, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 3.51, + "ram_mib": 5.164 + }, + { + "t": 15.94029689799936, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.58, + "ram_mib": 6.777 + }, + { + "t": 15.940409309998358, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.29, + "ram_mib": 7.004 + }, + { + "t": 15.940465851999761, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 3.51, + "ram_mib": 5.164 + }, + { + "t": 16.440112672000396, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 1.06, + "ram_mib": 7.016 + }, + { + "t": 16.440144105999934, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.96, + "ram_mib": 7.223 + }, + { + "t": 16.44016050999926, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.86, + "ram_mib": 5.523 + }, + { + "t": 16.939900501998636, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 1.06, + "ram_mib": 7.016 + }, + { + "t": 16.93996057500044, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.96, + "ram_mib": 7.223 + }, + { + "t": 16.93999382599941, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.86, + "ram_mib": 5.523 + }, + { + "t": 17.439556297998934, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 7.035 + }, + { + "t": 17.4395840090001, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.39, + "ram_mib": 6.996 + }, + { + "t": 17.439599626999552, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.82, + "ram_mib": 5.105 + }, + { + "t": 17.939948956998705, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 7.035 + }, + { + "t": 17.93999656199958, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.39, + "ram_mib": 6.996 + }, + { + "t": 17.940017569999327, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.82, + "ram_mib": 5.105 + }, + { + "t": 18.440036572999816, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.76, + "ram_mib": 6.773 + }, + { + "t": 18.440071555996838, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.76, + "ram_mib": 6.973 + }, + { + "t": 18.44009147599718, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 30.16, + "ram_mib": 5.824 + }, + { + "t": 18.939544531000138, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.76, + "ram_mib": 6.773 + }, + { + "t": 18.939573511997878, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.76, + "ram_mib": 6.973 + }, + { + "t": 18.93958876099714, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 30.16, + "ram_mib": 5.824 + }, + { + "t": 19.440061602999776, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 1.04, + "ram_mib": 6.773 + }, + { + "t": 19.44012637799824, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 1.09, + "ram_mib": 6.973 + }, + { + "t": 19.440155927997694, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 29.99, + "ram_mib": 4.766 + }, + { + "t": 19.940516582999408, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 1.04, + "ram_mib": 6.773 + }, + { + "t": 19.940564616998017, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 1.09, + "ram_mib": 6.973 + }, + { + "t": 19.940589963000093, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 29.99, + "ram_mib": 4.766 + }, + { + "t": 20.43998278700019, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.57, + "ram_mib": 6.773 + }, + { + "t": 20.440032541999244, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.14, + "ram_mib": 7.469 + }, + { + "t": 20.440055810999183, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 26.8, + "ram_mib": 4.938 + }, + { + "t": 20.93983968699831, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.57, + "ram_mib": 6.773 + }, + { + "t": 20.939910665998468, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.14, + "ram_mib": 7.469 + }, + { + "t": 20.93994734199805, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 26.8, + "ram_mib": 4.938 + }, + { + "t": 21.440059906999522, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 6.77 + }, + { + "t": 21.44011865900029, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 6.973 + }, + { + "t": 21.440144841999427, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 29.32, + "ram_mib": 5.5 + }, + { + "t": 21.93935194000005, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 6.77 + }, + { + "t": 21.93939526699978, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 6.973 + }, + { + "t": 21.93941125099809, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 29.32, + "ram_mib": 5.5 + }, + { + "t": 22.440082297998742, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 1.21, + "ram_mib": 6.77 + }, + { + "t": 22.440141202998348, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 1.2, + "ram_mib": 6.973 + }, + { + "t": 22.440175370997167, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 26.38, + "ram_mib": 5.836 + }, + { + "t": 22.939451595997525, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 1.21, + "ram_mib": 6.77 + }, + { + "t": 22.93948269399698, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 1.2, + "ram_mib": 6.973 + }, + { + "t": 22.939498642997933, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 26.38, + "ram_mib": 5.836 + }, + { + "t": 23.440266658999462, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 1.07, + "ram_mib": 6.773 + }, + { + "t": 23.440333832997567, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 1.04, + "ram_mib": 6.977 + }, + { + "t": 23.440362053999706, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 27.88, + "ram_mib": 5.957 + }, + { + "t": 23.93980555899907, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 1.07, + "ram_mib": 6.773 + }, + { + "t": 23.93986232399766, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 1.04, + "ram_mib": 6.977 + }, + { + "t": 23.939887001997704, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 27.88, + "ram_mib": 5.957 + }, + { + "t": 24.44081884299885, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.77 + }, + { + "t": 24.440890891997697, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.973 + }, + { + "t": 24.440925986000366, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 12.51, + "ram_mib": 5.855 + }, + { + "t": 24.94026955299705, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.77 + }, + { + "t": 24.94032074599818, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.973 + }, + { + "t": 24.9403511849996, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 12.51, + "ram_mib": 5.855 + }, + { + "t": 25.44057806699857, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.63, + "ram_mib": 7.031 + }, + { + "t": 25.440681505999237, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 4.48, + "ram_mib": 7.68 + }, + { + "t": 25.44073649499842, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 11.05, + "ram_mib": 6.0 + }, + { + "t": 25.940709209997294, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.63, + "ram_mib": 7.031 + }, + { + "t": 25.940971727999568, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 4.48, + "ram_mib": 7.68 + }, + { + "t": 25.94102766499782, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 11.05, + "ram_mib": 6.0 + }, + { + "t": 26.440046531999542, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.78, + "ram_mib": 7.273 + }, + { + "t": 26.440107354999782, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.73, + "ram_mib": 6.973 + }, + { + "t": 26.44014407499708, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 9.51, + "ram_mib": 5.523 + }, + { + "t": 26.939810405998287, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.78, + "ram_mib": 7.273 + }, + { + "t": 26.93984230299975, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.73, + "ram_mib": 6.973 + }, + { + "t": 26.939856613997108, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 9.51, + "ram_mib": 5.523 + }, + { + "t": 27.440055761999247, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 7.988 + }, + { + "t": 27.440126697998494, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.703 + }, + { + "t": 27.44015943299746, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 12.0, + "ram_mib": 5.82 + }, + { + "t": 27.940008494999347, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 7.988 + }, + { + "t": 27.94006639899817, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.703 + }, + { + "t": 27.94010015599997, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 12.0, + "ram_mib": 5.82 + }, + { + "t": 28.439755343999423, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 1.27, + "ram_mib": 7.016 + }, + { + "t": 28.439783508998516, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 1.26, + "ram_mib": 7.465 + }, + { + "t": 28.439798935, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 17.53, + "ram_mib": 6.184 + }, + { + "t": 28.93966282600013, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 1.27, + "ram_mib": 7.016 + }, + { + "t": 28.93973279799684, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 1.26, + "ram_mib": 7.465 + }, + { + "t": 28.93977262699991, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 17.53, + "ram_mib": 6.184 + }, + { + "t": 29.43999973699829, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.38, + "ram_mib": 7.25 + }, + { + "t": 29.440064614998846, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.38, + "ram_mib": 7.238 + }, + { + "t": 29.440099587998702, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.11, + "ram_mib": 5.543 + }, + { + "t": 29.939548213998933, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.38, + "ram_mib": 7.25 + }, + { + "t": 29.9395983789982, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.38, + "ram_mib": 7.238 + }, + { + "t": 29.939629991997208, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.11, + "ram_mib": 5.543 + }, + { + "t": 30.439373414999864, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.38, + "ram_mib": 7.027 + }, + { + "t": 30.43942857199727, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.45, + "ram_mib": 7.035 + }, + { + "t": 30.439442574999703, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 29.93, + "ram_mib": 6.008 + }, + { + "t": 30.939916971998173, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.38, + "ram_mib": 7.027 + }, + { + "t": 30.939956905000145, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.45, + "ram_mib": 7.035 + }, + { + "t": 30.939973122000083, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 29.93, + "ram_mib": 6.008 + }, + { + "t": 31.43993810699976, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.992 + }, + { + "t": 31.439997610999853, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 6.996 + }, + { + "t": 31.440024165996874, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.28, + "ram_mib": 6.281 + }, + { + "t": 31.93979124699763, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.992 + }, + { + "t": 31.93982024199795, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 6.996 + }, + { + "t": 31.93983609299903, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.28, + "ram_mib": 6.281 + }, + { + "t": 32.43989895199775, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.77 + }, + { + "t": 32.43993825399957, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.973 + }, + { + "t": 32.43996199200046, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.81, + "ram_mib": 6.059 + }, + { + "t": 32.93930970599831, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.77 + }, + { + "t": 32.93933326899787, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.973 + }, + { + "t": 32.93934313099817, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.81, + "ram_mib": 6.059 + }, + { + "t": 33.43958154400025, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.773 + }, + { + "t": 33.439662595999835, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.973 + }, + { + "t": 33.43968512599895, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.92, + "ram_mib": 5.898 + }, + { + "t": 33.94019221099734, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.773 + }, + { + "t": 33.94023523699798, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.973 + }, + { + "t": 33.94025498699921, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.92, + "ram_mib": 5.898 + }, + { + "t": 34.44008070899872, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 6.77 + }, + { + "t": 34.44013267899936, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.973 + }, + { + "t": 34.44015599599879, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.07, + "ram_mib": 6.07 + }, + { + "t": 34.939469157998246, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 6.77 + }, + { + "t": 34.93950043099903, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.973 + }, + { + "t": 34.9395165049973, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.07, + "ram_mib": 6.07 + }, + { + "t": 35.43975705199773, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.13, + "ram_mib": 6.801 + }, + { + "t": 35.43982032900021, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.89, + "ram_mib": 7.309 + }, + { + "t": 35.439846544999455, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 25.4, + "ram_mib": 5.965 + }, + { + "t": 35.94066292199932, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.13, + "ram_mib": 6.801 + }, + { + "t": 35.940762733000156, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.89, + "ram_mib": 7.309 + }, + { + "t": 35.940824272998725, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 25.4, + "ram_mib": 5.965 + }, + { + "t": 36.44011260099796, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.773 + }, + { + "t": 36.44019595200007, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.98 + }, + { + "t": 36.44024394299777, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 27.52, + "ram_mib": 6.352 + }, + { + "t": 36.9406783969971, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.773 + }, + { + "t": 36.94074815499698, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.98 + }, + { + "t": 36.94081863199972, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 27.52, + "ram_mib": 6.352 + }, + { + "t": 37.440210767999815, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.773 + }, + { + "t": 37.44028528099807, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.199 + }, + { + "t": 37.44032800199784, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.48, + "ram_mib": 5.883 + }, + { + "t": 37.94000984899685, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.773 + }, + { + "t": 37.94008117699923, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.199 + }, + { + "t": 37.940110380997794, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.48, + "ram_mib": 5.883 + }, + { + "t": 38.440120150997245, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.77 + }, + { + "t": 38.4401761400004, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 6.969 + }, + { + "t": 38.44020129499768, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 14.15, + "ram_mib": 6.352 + }, + { + "t": 38.94001517399738, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.77 + }, + { + "t": 38.94008327999836, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 6.969 + }, + { + "t": 38.94011093500012, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 14.15, + "ram_mib": 6.352 + }, + { + "t": 39.44092286199884, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 6.77 + }, + { + "t": 39.441009119997034, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.195 + }, + { + "t": 39.44106246699812, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 4.79, + "ram_mib": 5.25 + }, + { + "t": 39.93971503699868, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 6.77 + }, + { + "t": 39.939743511000415, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.195 + }, + { + "t": 39.93975934899936, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 4.79, + "ram_mib": 5.25 + }, + { + "t": 40.43938790899847, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.57, + "ram_mib": 7.016 + }, + { + "t": 40.43942238099771, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.05, + "ram_mib": 7.188 + }, + { + "t": 40.43943833099911, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 19.11, + "ram_mib": 6.203 + }, + { + "t": 40.93992236199847, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.57, + "ram_mib": 7.016 + }, + { + "t": 40.9399760669985, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.05, + "ram_mib": 7.188 + }, + { + "t": 40.94000579400017, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 19.11, + "ram_mib": 6.203 + }, + { + "t": 41.43967125199924, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.773 + }, + { + "t": 41.439739830999315, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.988 + }, + { + "t": 41.43977950000044, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.6, + "ram_mib": 5.801 + }, + { + "t": 41.93998195399763, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.773 + }, + { + "t": 41.94003948699901, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.988 + }, + { + "t": 41.940073054000095, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.6, + "ram_mib": 5.801 + }, + { + "t": 42.4398414319985, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.77 + }, + { + "t": 42.439922514997306, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.969 + }, + { + "t": 42.43997589799983, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.23, + "ram_mib": 5.969 + }, + { + "t": 42.93960677299765, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.77 + }, + { + "t": 42.9396400709993, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.969 + }, + { + "t": 42.939653952998924, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.23, + "ram_mib": 5.969 + }, + { + "t": 43.44016779899903, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.77 + }, + { + "t": 43.440189609998924, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.969 + }, + { + "t": 43.44019684500017, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.05, + "ram_mib": 5.668 + }, + { + "t": 43.93973242499851, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.77 + }, + { + "t": 43.93977123999866, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.969 + }, + { + "t": 43.93979314999888, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.05, + "ram_mib": 5.668 + }, + { + "t": 44.44004573100028, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.77 + }, + { + "t": 44.44007935599802, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.969 + }, + { + "t": 44.44009407499834, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.45, + "ram_mib": 6.641 + }, + { + "t": 44.939873379000346, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.77 + }, + { + "t": 44.93992520899701, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.969 + }, + { + "t": 44.93994736099921, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.45, + "ram_mib": 6.641 + }, + { + "t": 45.440010520000214, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.55, + "ram_mib": 6.77 + }, + { + "t": 45.44003883299956, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.36, + "ram_mib": 7.441 + }, + { + "t": 45.44005418699817, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.19, + "ram_mib": 6.023 + }, + { + "t": 45.94047131299885, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.55, + "ram_mib": 6.77 + }, + { + "t": 45.94086774099924, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.36, + "ram_mib": 7.441 + }, + { + "t": 45.941011871997034, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.19, + "ram_mib": 6.023 + }, + { + "t": 46.439705613000115, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.77 + }, + { + "t": 46.439730499998404, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.969 + }, + { + "t": 46.43974372199955, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 21.92, + "ram_mib": 6.379 + }, + { + "t": 46.94031856499714, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.77 + }, + { + "t": 46.94035007999992, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.969 + }, + { + "t": 46.94036601499829, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 21.92, + "ram_mib": 6.379 + }, + { + "t": 47.44055142700017, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.77 + }, + { + "t": 47.440597143999184, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.969 + }, + { + "t": 47.4406159680002, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.02, + "ram_mib": 6.512 + }, + { + "t": 47.939943029999995, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.77 + }, + { + "t": 47.93999314499888, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.969 + }, + { + "t": 47.94002256599924, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.02, + "ram_mib": 6.512 + }, + { + "t": 48.43972864599709, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.77 + }, + { + "t": 48.43979814100021, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 6.969 + }, + { + "t": 48.439838908998354, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.96, + "ram_mib": 6.418 + }, + { + "t": 48.94042034299855, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.77 + }, + { + "t": 48.94047038200006, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 6.969 + }, + { + "t": 48.94049820199871, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.96, + "ram_mib": 6.418 + }, + { + "t": 49.44037209199814, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.766 + }, + { + "t": 49.44044568099707, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.965 + }, + { + "t": 49.44046742899809, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 26.37, + "ram_mib": 6.227 + }, + { + "t": 49.940604224997514, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.766 + }, + { + "t": 49.94070296299833, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.965 + }, + { + "t": 49.9407640999998, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 26.37, + "ram_mib": 6.227 + }, + { + "t": 50.44036503099778, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.86, + "ram_mib": 7.035 + }, + { + "t": 50.44045566599743, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.19, + "ram_mib": 7.738 + }, + { + "t": 50.440497644998686, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 9.72, + "ram_mib": 6.004 + }, + { + "t": 50.940277460998914, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.86, + "ram_mib": 7.035 + }, + { + "t": 50.94036261599831, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.19, + "ram_mib": 7.738 + }, + { + "t": 50.94042586999785, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 9.72, + "ram_mib": 6.004 + }, + { + "t": 51.440003181000066, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 6.766 + }, + { + "t": 51.44008887999735, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.188 + }, + { + "t": 51.440132047999214, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 10.31, + "ram_mib": 5.863 + }, + { + "t": 51.93985743200028, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 6.766 + }, + { + "t": 51.93990150099853, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.188 + }, + { + "t": 51.93992066499777, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 10.31, + "ram_mib": 5.863 + }, + { + "t": 52.44017087499742, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.766 + }, + { + "t": 52.440204298000026, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 6.965 + }, + { + "t": 52.44021853300001, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.58, + "ram_mib": 6.383 + }, + { + "t": 52.939859848997, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.766 + }, + { + "t": 52.93990310599838, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 6.965 + }, + { + "t": 52.939928321997286, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.58, + "ram_mib": 6.383 + }, + { + "t": 53.440196677998756, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.766 + }, + { + "t": 53.44022529799986, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.965 + }, + { + "t": 53.44024071199965, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 27.79, + "ram_mib": 6.676 + }, + { + "t": 53.94011119899733, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.766 + }, + { + "t": 53.94019320299776, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.965 + }, + { + "t": 53.94024226499823, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 27.79, + "ram_mib": 6.676 + }, + { + "t": 54.44030559999737, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.766 + }, + { + "t": 54.44033328200021, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.996 + }, + { + "t": 54.44034847099829, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.69, + "ram_mib": 7.02 + }, + { + "t": 54.93982446500013, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.766 + }, + { + "t": 54.93984703499882, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.996 + }, + { + "t": 54.93985430799876, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.69, + "ram_mib": 7.02 + }, + { + "t": 55.44015785800002, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.68, + "ram_mib": 6.828 + }, + { + "t": 55.44023569199999, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.65, + "ram_mib": 7.492 + }, + { + "t": 55.440281518996926, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.16, + "ram_mib": 6.156 + }, + { + "t": 55.939688340997236, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.68, + "ram_mib": 6.828 + }, + { + "t": 55.93972809099796, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.65, + "ram_mib": 7.492 + }, + { + "t": 55.93974565999815, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.16, + "ram_mib": 6.156 + }, + { + "t": 56.43980333199943, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.766 + }, + { + "t": 56.439862215000176, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.02 + }, + { + "t": 56.439898387998255, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.61, + "ram_mib": 6.355 + }, + { + "t": 56.9404078309999, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.766 + }, + { + "t": 56.94044821100033, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.02 + }, + { + "t": 56.9404675529986, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.61, + "ram_mib": 6.355 + }, + { + "t": 57.44017112099755, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.766 + }, + { + "t": 57.440194246999454, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.988 + }, + { + "t": 57.44020367799749, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 25.74, + "ram_mib": 6.387 + }, + { + "t": 57.93975546299771, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.766 + }, + { + "t": 57.939790909000294, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.988 + }, + { + "t": 57.93981154199719, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 25.74, + "ram_mib": 6.387 + }, + { + "t": 58.440462217997265, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.766 + }, + { + "t": 58.44050757500008, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.992 + }, + { + "t": 58.44052214099793, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 34.85, + "ram_mib": 6.523 + }, + { + "t": 58.93974455699936, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.766 + }, + { + "t": 58.93976704200031, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.992 + }, + { + "t": 58.9397744300004, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 34.85, + "ram_mib": 6.523 + }, + { + "t": 59.43957175899777, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.766 + }, + { + "t": 59.43960787499964, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.965 + }, + { + "t": 59.43962175199704, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.67, + "ram_mib": 6.902 + }, + { + "t": 59.93967202099884, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.766 + }, + { + "t": 59.93969131599806, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.965 + }, + { + "t": 59.93969801899948, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.67, + "ram_mib": 6.902 + }, + { + "t": 60.43979630499962, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.77, + "ram_mib": 6.766 + }, + { + "t": 60.43985298499683, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.41, + "ram_mib": 7.355 + }, + { + "t": 60.43988606699713, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.59, + "ram_mib": 6.609 + }, + { + "t": 60.93976617299995, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.77, + "ram_mib": 6.766 + }, + { + "t": 60.939790565000294, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.41, + "ram_mib": 7.355 + }, + { + "t": 60.93980316899979, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.59, + "ram_mib": 6.609 + }, + { + "t": 61.439927591000014, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.754 + }, + { + "t": 61.43997614599721, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.953 + }, + { + "t": 61.43999796699791, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 29.86, + "ram_mib": 6.262 + }, + { + "t": 61.940038631997595, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.754 + }, + { + "t": 61.940117594000185, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.953 + }, + { + "t": 61.94016359899979, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 29.86, + "ram_mib": 6.262 + }, + { + "t": 62.44000875100028, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.75 + }, + { + "t": 62.44006785300007, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.949 + }, + { + "t": 62.44009876899872, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 23.45, + "ram_mib": 6.258 + }, + { + "t": 62.93988262499988, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.75 + }, + { + "t": 62.939958103997924, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.949 + }, + { + "t": 62.93999192499905, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 23.45, + "ram_mib": 6.258 + }, + { + "t": 63.44076337399747, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.75 + }, + { + "t": 63.440849777998665, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.949 + }, + { + "t": 63.440901043999474, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 11.59, + "ram_mib": 6.117 + }, + { + "t": 63.941040115998476, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.75 + }, + { + "t": 63.94114199199976, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.949 + }, + { + "t": 63.9412000859993, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 11.59, + "ram_mib": 6.117 + }, + { + "t": 64.44033991699689, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.75 + }, + { + "t": 64.44040113799929, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 6.949 + }, + { + "t": 64.44042251499923, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 10.46, + "ram_mib": 6.895 + }, + { + "t": 64.93989744899955, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.75 + }, + { + "t": 64.9399476189974, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 6.949 + }, + { + "t": 64.93997945099909, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 10.46, + "ram_mib": 6.895 + }, + { + "t": 65.44030820399712, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.16, + "ram_mib": 7.098 + }, + { + "t": 65.4403486989977, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.64, + "ram_mib": 7.363 + }, + { + "t": 65.44037070400009, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 17.84, + "ram_mib": 6.043 + }, + { + "t": 65.93976816400027, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.16, + "ram_mib": 7.098 + }, + { + "t": 65.93978651399811, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.64, + "ram_mib": 7.363 + }, + { + "t": 65.93979294699966, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 17.84, + "ram_mib": 6.043 + }, + { + "t": 66.43953047999821, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.891 + }, + { + "t": 66.4395610419997, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.191 + }, + { + "t": 66.43957420699735, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 28.64, + "ram_mib": 6.543 + }, + { + "t": 66.93986085199867, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.891 + }, + { + "t": 66.93989941499967, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.191 + }, + { + "t": 66.93991855999775, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 28.64, + "ram_mib": 6.543 + }, + { + "t": 67.44006306799929, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.742 + }, + { + "t": 67.44009692599866, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.938 + }, + { + "t": 67.44010949699805, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.52, + "ram_mib": 7.496 + }, + { + "t": 67.9396859749977, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.742 + }, + { + "t": 67.9397365099976, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.04, + "ram_mib": 6.938 + }, + { + "t": 67.9397669760001, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.52, + "ram_mib": 7.496 + }, + { + "t": 68.44084762499915, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.738 + }, + { + "t": 68.44090008499916, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.938 + }, + { + "t": 68.44092238399753, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 26.68, + "ram_mib": 6.961 + }, + { + "t": 68.94019298999774, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.738 + }, + { + "t": 68.94027693499811, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.938 + }, + { + "t": 68.94032656299896, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 26.68, + "ram_mib": 6.961 + }, + { + "t": 69.43974781199722, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.938 + }, + { + "t": 69.43978031099687, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.895 + }, + { + "t": 69.43979957199917, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 34.12, + "ram_mib": 6.824 + }, + { + "t": 69.94024230499781, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.938 + }, + { + "t": 69.94026062599733, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.895 + }, + { + "t": 69.94026705699798, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 34.12, + "ram_mib": 6.824 + }, + { + "t": 70.44048477999968, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.65, + "ram_mib": 6.766 + }, + { + "t": 70.44053925099797, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.31, + "ram_mib": 6.926 + }, + { + "t": 70.44056326699865, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.79, + "ram_mib": 6.57 + }, + { + "t": 70.93977220299712, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.65, + "ram_mib": 6.766 + }, + { + "t": 70.93979671499983, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.31, + "ram_mib": 6.926 + }, + { + "t": 70.93980564899903, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.79, + "ram_mib": 6.57 + }, + { + "t": 71.44046857099966, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.676 + }, + { + "t": 71.44053297599748, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.879 + }, + { + "t": 71.44056947999707, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 30.07, + "ram_mib": 7.012 + }, + { + "t": 71.93969897499846, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.676 + }, + { + "t": 71.939719193997, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.879 + }, + { + "t": 71.9397259949983, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 30.07, + "ram_mib": 7.012 + }, + { + "t": 72.43983881299937, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.676 + }, + { + "t": 72.43986412400045, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.875 + }, + { + "t": 72.43987731000016, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 25.77, + "ram_mib": 6.68 + }, + { + "t": 72.93944659299814, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.676 + }, + { + "t": 72.93948020599782, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.875 + }, + { + "t": 72.93949929999872, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 25.77, + "ram_mib": 6.68 + }, + { + "t": 73.43967025500024, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 6.637 + }, + { + "t": 73.4397088279984, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.844 + }, + { + "t": 73.4397314639973, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.24, + "ram_mib": 6.719 + }, + { + "t": 73.94089828099823, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 6.637 + }, + { + "t": 73.94096961999821, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.844 + }, + { + "t": 73.94100312299997, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.24, + "ram_mib": 6.719 + }, + { + "t": 74.44085973199981, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.887 + }, + { + "t": 74.44096159899709, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.836 + }, + { + "t": 74.44102408199979, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 18.82, + "ram_mib": 6.746 + }, + { + "t": 74.94037474299694, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.887 + }, + { + "t": 74.94049080900004, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.836 + }, + { + "t": 74.94054352899911, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 18.82, + "ram_mib": 6.746 + }, + { + "t": 75.43990028899861, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.63, + "ram_mib": 7.117 + }, + { + "t": 75.43993613699786, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.28, + "ram_mib": 7.234 + }, + { + "t": 75.43994934199873, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 4.82, + "ram_mib": 6.547 + }, + { + "t": 75.93985452199922, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.63, + "ram_mib": 7.117 + }, + { + "t": 75.9399384549979, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.28, + "ram_mib": 7.234 + }, + { + "t": 75.93997742699867, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 4.82, + "ram_mib": 6.547 + }, + { + "t": 76.44011716299792, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.63, + "ram_mib": 7.117 + }, + { + "t": 76.44015623799714, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.844 + }, + { + "t": 76.44017314899975, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 3.99, + "ram_mib": 6.164 + }, + { + "t": 76.94000695499926, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.113 + }, + { + "t": 76.94005814399861, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.844 + }, + { + "t": 76.94008645699796, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 3.99, + "ram_mib": 6.164 + }, + { + "t": 77.43995599499976, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.113 + }, + { + "t": 77.4399962919997, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.844 + }, + { + "t": 77.44001477299753, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 3.99, + "ram_mib": 6.164 + }, + { + "t": 77.94035770299888, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 6.633 + }, + { + "t": 77.94039461699867, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 6.844 + }, + { + "t": 77.94040767999832, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.23, + "ram_mib": 6.77 + }, + { + "t": 78.4401446319971, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 6.633 + }, + { + "t": 78.44019819899768, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 6.844 + }, + { + "t": 78.44022829700043, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.23, + "ram_mib": 6.77 + }, + { + "t": 78.93977506999727, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.629 + }, + { + "t": 78.93982970499928, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.832 + }, + { + "t": 78.93986222300009, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 26.25, + "ram_mib": 6.27 + }, + { + "t": 79.43974273799904, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.629 + }, + { + "t": 79.43977145799727, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.832 + }, + { + "t": 79.4397962419971, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 26.25, + "ram_mib": 6.27 + }, + { + "t": 79.93981932399765, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 6.875 + }, + { + "t": 79.93985904999863, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.832 + }, + { + "t": 79.93988241499756, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.04, + "ram_mib": 6.895 + }, + { + "t": 80.44033385999865, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 6.875 + }, + { + "t": 80.44036230599886, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.832 + }, + { + "t": 80.44037714899969, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.04, + "ram_mib": 6.895 + }, + { + "t": 80.93958865899913, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.61, + "ram_mib": 6.645 + }, + { + "t": 80.93960783099828, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.77, + "ram_mib": 7.625 + }, + { + "t": 80.93961474099706, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 18.4, + "ram_mib": 6.617 + }, + { + "t": 81.44032666599742, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.61, + "ram_mib": 6.645 + }, + { + "t": 81.44035113599966, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.77, + "ram_mib": 7.625 + }, + { + "t": 81.44036384599895, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 18.4, + "ram_mib": 6.617 + }, + { + "t": 81.93971729999976, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.629 + }, + { + "t": 81.93973727399862, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.859 + }, + { + "t": 81.93974439199883, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.79, + "ram_mib": 7.09 + }, + { + "t": 82.43934384399836, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.629 + }, + { + "t": 82.43938998199883, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.859 + }, + { + "t": 82.43940859899885, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.79, + "ram_mib": 7.09 + }, + { + "t": 82.94042434999938, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.625 + }, + { + "t": 82.94045813099729, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.828 + }, + { + "t": 82.9404711419993, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 28.3, + "ram_mib": 6.855 + }, + { + "t": 83.43974939399777, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.625 + }, + { + "t": 83.43977204299881, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.828 + }, + { + "t": 83.43978009799685, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 28.3, + "ram_mib": 6.855 + }, + { + "t": 83.93942812399837, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.625 + }, + { + "t": 83.93944650399862, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.828 + }, + { + "t": 83.9394538710003, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.08, + "ram_mib": 6.926 + }, + { + "t": 84.43971430099919, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.625 + }, + { + "t": 84.43974181799786, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.828 + }, + { + "t": 84.43975720099843, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.08, + "ram_mib": 6.926 + }, + { + "t": 84.93994195899722, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.871 + }, + { + "t": 84.94001626200043, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.828 + }, + { + "t": 84.94005906599705, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 27.66, + "ram_mib": 6.863 + }, + { + "t": 85.4401959939969, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.871 + }, + { + "t": 85.44025192799745, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.828 + }, + { + "t": 85.4402865589982, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 27.66, + "ram_mib": 6.863 + }, + { + "t": 85.94055373399897, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.57, + "ram_mib": 6.672 + }, + { + "t": 85.94058685799973, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.1, + "ram_mib": 8.309 + }, + { + "t": 85.94060074599838, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 34.19, + "ram_mib": 7.141 + }, + { + "t": 86.44006024400005, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.57, + "ram_mib": 6.672 + }, + { + "t": 86.44012341599955, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 3.1, + "ram_mib": 8.309 + }, + { + "t": 86.44016048899721, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 34.19, + "ram_mib": 7.141 + }, + { + "t": 86.93951468299929, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.672 + }, + { + "t": 86.93954533899887, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 7.254 + }, + { + "t": 86.93955618499967, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.39, + "ram_mib": 6.84 + }, + { + "t": 87.43969399299749, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.672 + }, + { + "t": 87.43972341900007, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 7.254 + }, + { + "t": 87.43973931099754, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.39, + "ram_mib": 6.84 + }, + { + "t": 87.93988488999821, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.645 + }, + { + "t": 87.93992576999881, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 7.078 + }, + { + "t": 87.93994467899756, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.25, + "ram_mib": 6.738 + }, + { + "t": 88.4405469939993, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.645 + }, + { + "t": 88.4405835059988, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 7.078 + }, + { + "t": 88.440599147998, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.25, + "ram_mib": 6.738 + }, + { + "t": 88.93975487999705, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.625 + }, + { + "t": 88.93980674999693, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.082 + }, + { + "t": 88.93983595999816, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 15.36, + "ram_mib": 7.316 + }, + { + "t": 89.4407553609999, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.625 + }, + { + "t": 89.4408293009983, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.082 + }, + { + "t": 89.44086360099755, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 15.36, + "ram_mib": 7.316 + }, + { + "t": 89.94026468899756, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 6.875 + }, + { + "t": 89.94036871199933, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.082 + }, + { + "t": 89.94046766199972, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.09, + "ram_mib": 6.977 + }, + { + "t": 90.43934205999903, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 6.875 + }, + { + "t": 90.43937383199955, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.082 + }, + { + "t": 90.43941103299949, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 13.09, + "ram_mib": 6.977 + }, + { + "t": 90.93950100599977, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.16, + "ram_mib": 6.645 + }, + { + "t": 90.93953113399766, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.84, + "ram_mib": 12.51 + }, + { + "t": 90.93954644299811, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 10.7, + "ram_mib": 6.719 + }, + { + "t": 91.44017496699962, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.16, + "ram_mib": 6.645 + }, + { + "t": 91.4402553209984, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.84, + "ram_mib": 12.51 + }, + { + "t": 91.4403030939975, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 10.7, + "ram_mib": 6.719 + }, + { + "t": 91.94031853699926, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.625 + }, + { + "t": 91.94036133499685, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.855 + }, + { + "t": 91.940395136, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 16.77, + "ram_mib": 6.938 + }, + { + "t": 92.43960259899904, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.625 + }, + { + "t": 92.43962247200034, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.855 + }, + { + "t": 92.43963241500023, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 16.77, + "ram_mib": 6.938 + }, + { + "t": 92.93991583399838, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.625 + }, + { + "t": 92.93998096999712, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.832 + }, + { + "t": 92.94001844899685, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 28.41, + "ram_mib": 7.227 + }, + { + "t": 93.44004730399683, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.625 + }, + { + "t": 93.44011196399879, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.832 + }, + { + "t": 93.44015127499733, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 28.41, + "ram_mib": 7.227 + }, + { + "t": 93.94003115599844, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.625 + }, + { + "t": 93.94010005099699, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.832 + }, + { + "t": 93.94014168799913, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.6, + "ram_mib": 7.215 + }, + { + "t": 94.43932309599768, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.625 + }, + { + "t": 94.43934399799764, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.832 + }, + { + "t": 94.43935109700033, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.6, + "ram_mib": 7.215 + }, + { + "t": 94.94012875099725, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.625 + }, + { + "t": 94.9401731830003, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.832 + }, + { + "t": 94.94019720699725, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.2, + "ram_mib": 7.445 + }, + { + "t": 95.43938905599862, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.625 + }, + { + "t": 95.43941278299826, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.832 + }, + { + "t": 95.43942319099733, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.2, + "ram_mib": 7.445 + }, + { + "t": 95.94042359099694, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.41, + "ram_mib": 6.73 + }, + { + "t": 95.94046810999862, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.832 + }, + { + "t": 95.94049222299873, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.98, + "ram_mib": 7.223 + }, + { + "t": 96.43976458999896, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.41, + "ram_mib": 6.73 + }, + { + "t": 96.43980509500034, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 6.832 + }, + { + "t": 96.43982781999875, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.98, + "ram_mib": 7.223 + }, + { + "t": 96.9398503880002, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.93 + }, + { + "t": 96.93988357899798, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.42, + "ram_mib": 6.852 + }, + { + "t": 96.93989965599758, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 30.91, + "ram_mib": 6.422 + }, + { + "t": 97.44018247900021, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.93 + }, + { + "t": 97.44020674399871, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.42, + "ram_mib": 6.852 + }, + { + "t": 97.44021407899709, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 30.91, + "ram_mib": 6.422 + }, + { + "t": 97.94021975299984, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.871 + }, + { + "t": 97.94025360199885, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.828 + }, + { + "t": 97.94026892399779, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.04, + "ram_mib": 6.645 + }, + { + "t": 98.43969304399798, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.871 + }, + { + "t": 98.4397149189972, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.828 + }, + { + "t": 98.43972180799756, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.04, + "ram_mib": 6.645 + }, + { + "t": 98.93970193399946, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 7.375 + }, + { + "t": 98.93973461600035, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.828 + }, + { + "t": 98.93974981399879, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 28.14, + "ram_mib": 6.043 + }, + { + "t": 99.44037471999764, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 7.375 + }, + { + "t": 99.44041468199794, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.828 + }, + { + "t": 99.44042990899834, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 28.14, + "ram_mib": 6.043 + }, + { + "t": 99.93985249599791, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.871 + }, + { + "t": 99.93987397999808, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.828 + }, + { + "t": 99.9398806729987, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 29.2, + "ram_mib": 6.922 + }, + { + "t": 100.43996794999839, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.871 + }, + { + "t": 100.43998982300036, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.828 + }, + { + "t": 100.43999841299956, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 29.2, + "ram_mib": 6.922 + }, + { + "t": 100.94068653399881, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.0, + "ram_mib": 7.168 + }, + { + "t": 100.94074244999865, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.828 + }, + { + "t": 100.9407674469985, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 29.4, + "ram_mib": 6.664 + }, + { + "t": 101.4398650410003, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.0, + "ram_mib": 7.168 + }, + { + "t": 101.43990546900022, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 6.828 + }, + { + "t": 101.4399239839986, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 29.4, + "ram_mib": 6.664 + }, + { + "t": 101.94035436299964, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.871 + }, + { + "t": 101.94045114099936, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.69, + "ram_mib": 6.828 + }, + { + "t": 101.94048031499915, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.33, + "ram_mib": 6.77 + }, + { + "t": 102.44003798099948, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.871 + }, + { + "t": 102.44008999899961, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.69, + "ram_mib": 6.828 + }, + { + "t": 102.44011170599697, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.33, + "ram_mib": 6.77 + }, + { + "t": 102.94026358799965, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.871 + }, + { + "t": 102.94031927899778, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.828 + }, + { + "t": 102.94034351099981, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 19.92, + "ram_mib": 6.852 + }, + { + "t": 103.44002406199797, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.871 + }, + { + "t": 103.44008986599874, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.828 + }, + { + "t": 103.44011690999832, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 19.92, + "ram_mib": 6.852 + }, + { + "t": 103.94007882900041, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 6.871 + }, + { + "t": 103.94010669999989, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.828 + }, + { + "t": 103.94012159799968, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 10.52, + "ram_mib": 6.895 + }, + { + "t": 104.44013937599811, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 6.871 + }, + { + "t": 104.44022994499755, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.828 + }, + { + "t": 104.44028116799745, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 10.52, + "ram_mib": 6.895 + }, + { + "t": 104.94034437200025, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.125 + }, + { + "t": 104.94042075499965, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 6.832 + }, + { + "t": 104.94044355599908, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 12.14, + "ram_mib": 7.492 + }, + { + "t": 105.44042390599861, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.125 + }, + { + "t": 105.44049654099945, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 6.832 + }, + { + "t": 105.44052819999706, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 12.14, + "ram_mib": 7.492 + }, + { + "t": 105.93998012799784, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.71, + "ram_mib": 7.5 + }, + { + "t": 105.94002578299842, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.828 + }, + { + "t": 105.94004753300032, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 17.04, + "ram_mib": 7.402 + }, + { + "t": 106.43967723499736, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.71, + "ram_mib": 7.5 + }, + { + "t": 106.43973026199819, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 6.828 + }, + { + "t": 106.43976208899767, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 17.04, + "ram_mib": 7.402 + }, + { + "t": 106.93984761599859, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.172 + }, + { + "t": 106.93990781299726, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.66, + "ram_mib": 6.828 + }, + { + "t": 106.93994209099765, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 29.93, + "ram_mib": 7.477 + }, + { + "t": 107.44054603199766, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.172 + }, + { + "t": 107.44060371799787, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.66, + "ram_mib": 6.828 + }, + { + "t": 107.44063339700006, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 29.93, + "ram_mib": 7.477 + }, + { + "t": 107.94052451799871, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.648 + }, + { + "t": 107.9406004909979, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.074 + }, + { + "t": 107.9406336409993, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.96, + "ram_mib": 7.195 + }, + { + "t": 108.43999172099939, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.648 + }, + { + "t": 108.440050211997, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.074 + }, + { + "t": 108.44008569699872, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.96, + "ram_mib": 7.195 + }, + { + "t": 108.93998528099837, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.859 + }, + { + "t": 108.94002615600039, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.074 + }, + { + "t": 108.94004284899711, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.01, + "ram_mib": 7.289 + }, + { + "t": 109.43935745499766, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.859 + }, + { + "t": 109.43937682399701, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.074 + }, + { + "t": 109.43939045799925, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.01, + "ram_mib": 7.289 + }, + { + "t": 109.94056460099819, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.129 + }, + { + "t": 109.9406176779994, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.578 + }, + { + "t": 109.94065022999712, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 24.86, + "ram_mib": 7.453 + }, + { + "t": 110.43969631499931, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.129 + }, + { + "t": 110.4397175769991, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.578 + }, + { + "t": 110.43972589199984, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 24.86, + "ram_mib": 7.453 + }, + { + "t": 110.93963635599721, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.67, + "ram_mib": 7.016 + }, + { + "t": 110.93967199799954, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.074 + }, + { + "t": 110.93968533699808, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.38, + "ram_mib": 6.789 + }, + { + "t": 111.43969197499973, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.67, + "ram_mib": 7.016 + }, + { + "t": 111.43971068999963, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.074 + }, + { + "t": 111.43971802899978, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.38, + "ram_mib": 6.789 + }, + { + "t": 111.94033113399928, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 7.016 + }, + { + "t": 111.94037799299986, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.69, + "ram_mib": 7.367 + }, + { + "t": 111.94040720699923, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 30.62, + "ram_mib": 6.844 + }, + { + "t": 112.43985890399927, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 7.016 + }, + { + "t": 112.4399270670001, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.69, + "ram_mib": 7.367 + }, + { + "t": 112.43996670299748, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 30.62, + "ram_mib": 6.844 + }, + { + "t": 112.94054566799969, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.656 + }, + { + "t": 112.94060266099768, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 7.359 + }, + { + "t": 112.9406336409993, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 34.72, + "ram_mib": 7.145 + }, + { + "t": 113.43999407499723, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.656 + }, + { + "t": 113.44003126299867, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 7.359 + }, + { + "t": 113.4400468649983, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 34.72, + "ram_mib": 7.145 + }, + { + "t": 113.93987909399948, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.879 + }, + { + "t": 113.93994858099904, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.855 + }, + { + "t": 113.93998963400009, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.68, + "ram_mib": 6.984 + }, + { + "t": 114.44023602999732, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.879 + }, + { + "t": 114.44027629199991, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.855 + }, + { + "t": 114.44029984000008, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.68, + "ram_mib": 6.984 + }, + { + "t": 114.93984010799977, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 7.121 + }, + { + "t": 114.93989365099696, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 7.074 + }, + { + "t": 114.9399259339989, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.9, + "ram_mib": 6.82 + }, + { + "t": 115.44059947699861, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 7.121 + }, + { + "t": 115.44065455599775, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 7.074 + }, + { + "t": 115.44068728399725, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.9, + "ram_mib": 6.82 + }, + { + "t": 115.94014953299848, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.77, + "ram_mib": 7.148 + }, + { + "t": 115.94017704199723, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 7.074 + }, + { + "t": 115.94019886899696, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.14, + "ram_mib": 6.949 + }, + { + "t": 116.43969733199992, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.77, + "ram_mib": 7.148 + }, + { + "t": 116.43972130600014, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 7.074 + }, + { + "t": 116.4397298349977, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.14, + "ram_mib": 6.949 + }, + { + "t": 116.93996747799974, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 6.629 + }, + { + "t": 116.94001930399827, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.58, + "ram_mib": 7.367 + }, + { + "t": 116.94004091999886, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 19.13, + "ram_mib": 7.504 + }, + { + "t": 117.43979137299903, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 6.629 + }, + { + "t": 117.4398400359969, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.58, + "ram_mib": 7.367 + }, + { + "t": 117.43986003899772, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 19.13, + "ram_mib": 7.504 + }, + { + "t": 117.93980530499903, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 6.871 + }, + { + "t": 117.93987503799872, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.109 + }, + { + "t": 117.93990397000016, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 6.31, + "ram_mib": 6.27 + }, + { + "t": 118.44078550699851, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 6.871 + }, + { + "t": 118.44086981299915, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.109 + }, + { + "t": 118.44092044499848, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 6.31, + "ram_mib": 6.27 + }, + { + "t": 118.94046176799748, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.121 + }, + { + "t": 118.94059702999948, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.324 + }, + { + "t": 118.94068057999903, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 0.49, + "ram_mib": 6.086 + }, + { + "t": 119.43994429699887, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.121 + }, + { + "t": 119.43999243199869, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.324 + }, + { + "t": 119.44001259399738, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 0.49, + "ram_mib": 6.086 + }, + { + "t": 119.94045008399917, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.16 + }, + { + "t": 119.94049622799866, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 7.074 + }, + { + "t": 119.94051676399977, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 14.5, + "ram_mib": 6.508 + }, + { + "t": 120.43991461599944, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.16 + }, + { + "t": 120.43996531299854, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 7.074 + }, + { + "t": 120.43999547799831, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 14.5, + "ram_mib": 6.508 + }, + { + "t": 120.93945551899742, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.83, + "ram_mib": 7.113 + }, + { + "t": 120.93948243100022, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.309 + }, + { + "t": 120.93949571399935, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 23.97, + "ram_mib": 6.699 + }, + { + "t": 121.4398648469978, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.83, + "ram_mib": 7.113 + }, + { + "t": 121.43989588799741, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.309 + }, + { + "t": 121.43991255400033, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 23.97, + "ram_mib": 6.699 + }, + { + "t": 121.93980548099717, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.875 + }, + { + "t": 121.9398506409998, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.46, + "ram_mib": 7.098 + }, + { + "t": 121.93988274099684, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.19, + "ram_mib": 7.219 + }, + { + "t": 122.44060199500018, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 6.875 + }, + { + "t": 122.44063527099934, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.46, + "ram_mib": 7.098 + }, + { + "t": 122.4406489719986, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.19, + "ram_mib": 7.219 + }, + { + "t": 122.93988524399902, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.844 + }, + { + "t": 122.93992670999796, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 7.074 + }, + { + "t": 122.93994339499841, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.35, + "ram_mib": 7.238 + }, + { + "t": 123.44031692699718, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.844 + }, + { + "t": 123.44033516099807, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 7.074 + }, + { + "t": 123.44034178599759, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.35, + "ram_mib": 7.238 + }, + { + "t": 123.94040936399688, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.625 + }, + { + "t": 123.94044378999752, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 7.074 + }, + { + "t": 123.94045750700025, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.68, + "ram_mib": 7.188 + }, + { + "t": 124.43988677000016, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.625 + }, + { + "t": 124.43993596899963, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.06, + "ram_mib": 7.074 + }, + { + "t": 124.43996628899913, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.68, + "ram_mib": 7.188 + }, + { + "t": 124.93980883699987, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.875 + }, + { + "t": 124.93987956300043, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.316 + }, + { + "t": 124.93992279200029, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 34.48, + "ram_mib": 6.793 + }, + { + "t": 125.43987972899777, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.875 + }, + { + "t": 125.43993757899807, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 7.316 + }, + { + "t": 125.43997122899964, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 34.48, + "ram_mib": 6.793 + }, + { + "t": 125.93998277699939, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.9, + "ram_mib": 7.242 + }, + { + "t": 125.94004159099859, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 7.074 + }, + { + "t": 125.94007605599836, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.38, + "ram_mib": 7.074 + }, + { + "t": 126.43952149499819, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.9, + "ram_mib": 7.242 + }, + { + "t": 126.4395774279983, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 7.074 + }, + { + "t": 126.43960974199945, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.38, + "ram_mib": 7.074 + }, + { + "t": 126.9397112259976, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.871 + }, + { + "t": 126.93974198399883, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.75, + "ram_mib": 7.277 + }, + { + "t": 126.93975709900042, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.52, + "ram_mib": 7.105 + }, + { + "t": 127.43944375199862, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.871 + }, + { + "t": 127.43948447299772, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.75, + "ram_mib": 7.277 + }, + { + "t": 127.43950636099908, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.52, + "ram_mib": 7.105 + }, + { + "t": 127.94009307099986, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.871 + }, + { + "t": 127.94011252699784, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.074 + }, + { + "t": 127.94012004099932, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.25, + "ram_mib": 6.832 + }, + { + "t": 128.43969214699973, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.871 + }, + { + "t": 128.4397274490002, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.074 + }, + { + "t": 128.43974782700025, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.25, + "ram_mib": 6.832 + }, + { + "t": 128.94037057099922, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.871 + }, + { + "t": 128.9404604759984, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.305 + }, + { + "t": 128.94050325900025, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.46, + "ram_mib": 7.359 + }, + { + "t": 129.43993611999758, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.871 + }, + { + "t": 129.43999634499778, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 7.305 + }, + { + "t": 129.4400325209972, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.46, + "ram_mib": 7.359 + }, + { + "t": 129.94032012699972, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.898 + }, + { + "t": 129.9403542330001, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.578 + }, + { + "t": 129.9403726419987, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 27.61, + "ram_mib": 6.809 + }, + { + "t": 130.4397541899998, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.898 + }, + { + "t": 130.43978447900008, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.578 + }, + { + "t": 130.43979951599977, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 27.61, + "ram_mib": 6.809 + }, + { + "t": 130.94003993799925, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.16, + "ram_mib": 6.895 + }, + { + "t": 130.94010943299872, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.074 + }, + { + "t": 130.9401482639987, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 17.06, + "ram_mib": 7.059 + }, + { + "t": 131.43943552799828, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 3.16, + "ram_mib": 6.895 + }, + { + "t": 131.43947542499882, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.074 + }, + { + "t": 131.4394938009973, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 17.06, + "ram_mib": 7.059 + }, + { + "t": 131.93988947499747, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.93 + }, + { + "t": 131.93994449399906, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.78, + "ram_mib": 7.078 + }, + { + "t": 131.93996972899913, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 7.75, + "ram_mib": 7.199 + }, + { + "t": 132.43985404499836, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 6.93 + }, + { + "t": 132.43990356599897, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.78, + "ram_mib": 7.078 + }, + { + "t": 132.439929639997, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 7.75, + "ram_mib": 7.199 + }, + { + "t": 132.9402547369973, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 6.875 + }, + { + "t": 132.94033931000013, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.332 + }, + { + "t": 132.94043445699936, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 11.11, + "ram_mib": 7.148 + }, + { + "t": 133.43942195300042, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 6.875 + }, + { + "t": 133.43946283499827, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.332 + }, + { + "t": 133.43948472599732, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 11.11, + "ram_mib": 7.148 + }, + { + "t": 133.94023278299937, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.691 + }, + { + "t": 133.94027807800012, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.074 + }, + { + "t": 133.94030368099993, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 12.47, + "ram_mib": 6.855 + }, + { + "t": 134.43990882599974, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 6.691 + }, + { + "t": 134.43997472999763, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.074 + }, + { + "t": 134.44001245699837, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 12.47, + "ram_mib": 6.855 + }, + { + "t": 134.94004683799722, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.629 + }, + { + "t": 134.94013365099818, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 7.324 + }, + { + "t": 134.94018564900034, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.81, + "ram_mib": 7.406 + }, + { + "t": 135.43952563799758, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 6.629 + }, + { + "t": 135.43957970499832, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 7.324 + }, + { + "t": 135.43961110099917, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.81, + "ram_mib": 7.406 + }, + { + "t": 135.9402468139997, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.98, + "ram_mib": 6.633 + }, + { + "t": 135.94029326300006, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 7.074 + }, + { + "t": 135.94031463699866, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.23, + "ram_mib": 7.492 + }, + { + "t": 136.43976248499894, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 2.98, + "ram_mib": 6.633 + }, + { + "t": 136.43980705599824, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.05, + "ram_mib": 7.074 + }, + { + "t": 136.4398333049976, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 32.23, + "ram_mib": 7.492 + }, + { + "t": 136.94034823199763, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.629 + }, + { + "t": 136.94037502599895, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.36, + "ram_mib": 6.855 + }, + { + "t": 136.94039692399747, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.7, + "ram_mib": 7.422 + }, + { + "t": 137.44001483399916, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.629 + }, + { + "t": 137.44011104899982, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 2.36, + "ram_mib": 6.855 + }, + { + "t": 137.44016837599702, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 33.7, + "ram_mib": 7.422 + }, + { + "t": 137.9405225619994, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.652 + }, + { + "t": 137.94056302899844, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 7.078 + }, + { + "t": 137.94057984299798, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 34.23, + "ram_mib": 6.992 + }, + { + "t": 138.4399706080003, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.09, + "ram_mib": 6.652 + }, + { + "t": 138.440015467997, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.07, + "ram_mib": 7.078 + }, + { + "t": 138.44003538799734, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 34.23, + "ram_mib": 6.992 + }, + { + "t": 138.93983656300043, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.852 + }, + { + "t": 138.93987108799774, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.348 + }, + { + "t": 138.93988993200037, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.54, + "ram_mib": 6.668 + }, + { + "t": 139.44001864099846, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.08, + "ram_mib": 6.852 + }, + { + "t": 139.44009196099796, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.1, + "ram_mib": 7.348 + }, + { + "t": 139.44013305499902, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 31.54, + "ram_mib": 6.668 + }, + { + "t": 139.94034512299913, + "container": "1ee3fc38a47b9febf7222a982adfbfd7c68084d94c88123c22fbea33a06fbbaa", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.125 + }, + { + "t": 139.9403733199979, + "container": "38ef35ae3fb91377df14a63b72a7748348c39185825294f596709b10a613a68f", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 7.57 + }, + { + "t": 139.94040042899724, + "container": "586da724bc75cbb44e4c53cda73cdbdd801bd564cd97b1a2b76c5a50381b4ef5", + "service": "worker", + "cpu_percent": 6.32, + "ram_mib": 6.016 + } + ], + "sdk_diagnostic_audit": { + "source": "Prometheus instant queries at trial start/end, restricted to trial container hostnames", + "warning_error_start": null, + "warning_error_end": null, + "warning_error_delta": null + } + }, + { + "variant": "B", + "repetition": 3, + "completed_utc": "2026-11-16T15:09:00.574189+00:00", + "successful_uploads": 1000, + "http_errors": 0, + "http_seconds": 14.415831594000338, + "pipeline_seconds": 137.76879967300192, + "collector_window_seconds": 140.85154524000245, + "rps": 69.36817994018365, + "latency_mean_ms": 57.14020101400456, + "latency_p50_ms": 30.458106000878615, + "latency_p99_ms": 437.93828500201926, + "latencies_ms": [ + 29.876110998884542, + 25.10843200070667, + 40.08777100170846, + 31.999945000279695, + 28.1288330006646, + 31.775923998793587, + 32.07144399857498, + 27.91066499776207, + 72.08069300031639, + 501.08756700137747, + 198.00158399812062, + 30.870149999827845, + 28.27753100064001, + 52.029619000677485, + 27.819577997433953, + 32.85457999663777, + 42.46992100161151, + 29.82179399987217, + 30.260498999268748, + 30.90648100260296, + 32.44381599870394, + 24.659016999066807, + 33.474775998911355, + 24.024262998864288, + 28.738310000335332, + 22.782706997531932, + 29.859980000765063, + 24.263571001938544, + 27.759814998717047, + 25.037241000973154, + 26.841582999622915, + 26.983109000866534, + 22.62909899945953, + 31.19648999927449, + 29.14873599729617, + 32.20234100081143, + 31.467487999179866, + 28.44577200085041, + 28.527121001388878, + 29.976792000525165, + 24.35751099983463, + 23.218749000079697, + 28.02222900209017, + 33.33236400067108, + 22.340195002470864, + 109.94026499975007, + 197.6137479978206, + 103.84964900003979, + 31.604542000422953, + 67.22359900231822, + 22.59560899983626, + 32.12722800162737, + 48.798148996866075, + 26.498829000047408, + 28.46166899689706, + 27.342176999809453, + 28.949941999599105, + 35.46692300005816, + 54.543074998946395, + 29.781874000036623, + 68.88409100065473, + 27.632705998257734, + 26.73222299927147, + 33.271519001573324, + 24.709817000257317, + 28.465936000429792, + 29.825647001416655, + 32.77719700054149, + 31.510838998656254, + 32.93238200058113, + 22.906066002178704, + 28.71858400249039, + 32.64482300073723, + 29.422509000141872, + 31.218596999678994, + 31.585667002218543, + 29.499390002456494, + 29.59423700303887, + 28.150514997832943, + 28.56702899953234, + 24.714535000384785, + 29.028191001998493, + 176.9703030004166, + 110.26600500190398, + 96.7186980014958, + 26.963270000123885, + 67.85637700158986, + 24.625065001600888, + 25.117449997196672, + 26.466596998943714, + 30.208465999749023, + 36.930939997546375, + 31.338253000285476, + 26.15168999909656, + 29.215069000201765, + 25.812156000029063, + 28.367066999635426, + 32.10634599963669, + 34.03115599940065, + 30.093932000454515, + 29.596967000543373, + 29.376850001426646, + 25.814114000240806, + 25.030693999724463, + 24.785546000202885, + 24.874392998754047, + 31.05518400116125, + 28.371450000122422, + 24.872474001313094, + 28.188316002342617, + 28.015077998134075, + 26.997011998901144, + 42.880360000708606, + 35.7163339976978, + 26.680879000196, + 36.20791600042139, + 27.056789000198478, + 22.41268800207763, + 22.643664000497665, + 23.197095000796253, + 291.8736089995946, + 120.75560800076346, + 98.0506339983549, + 149.81252000143286, + 437.93828500201926, + 271.61238600092474, + 214.61399500185507, + 329.2518759990344, + 277.0288419997087, + 214.24036600001273, + 305.22543899860466, + 969.252184000652, + 73.52397900103824, + 87.66660000037518, + 75.37657400098396, + 73.02946200070437, + 56.35765999977593, + 92.91520199985825, + 81.35672099888325, + 44.51001699999324, + 66.46994499897119, + 31.164543997874716, + 29.51235200089286, + 34.791166999639245, + 27.359512998373248, + 36.741964002430905, + 31.79288200044539, + 30.75402000104077, + 29.667507002159255, + 29.205082002590643, + 29.408365000563208, + 30.240210999181727, + 25.233737000235124, + 31.735485998069635, + 24.46129599775304, + 23.142602000007173, + 181.4342050020059, + 107.82215600193013, + 110.04564500035485, + 92.49619000183884, + 97.32805099702091, + 26.949571001750883, + 72.35930300157634, + 33.43063500142307, + 64.25112199940486, + 28.3416810016206, + 23.984220999409445, + 39.9366329984332, + 34.68280699962634, + 24.4712299972889, + 51.43895999935921, + 30.8371930004796, + 35.99386700079776, + 43.77045699948212, + 27.550254002562724, + 36.99220199996489, + 41.03774500254076, + 24.952062998636393, + 26.145232000999385, + 29.05394399931538, + 36.851239998213714, + 34.802254998794524, + 30.531768999935593, + 32.44022700164351, + 23.754558998916764, + 30.657310999231413, + 38.871026001288556, + 22.3312510024698, + 25.801507999858586, + 27.035854996938724, + 25.04879000116489, + 23.641911000595428, + 26.185300001088763, + 117.41229499966721, + 196.3684970032773, + 30.560187002265593, + 83.19291099905968, + 24.81446200181381, + 25.647099002526375, + 48.51764600243769, + 31.9404490001034, + 56.65995700110216, + 28.83676899728016, + 22.820902002422372, + 59.71642200165661, + 30.693490996782202, + 62.19242199949804, + 21.517594999750145, + 25.267356999393087, + 61.26376700194669, + 38.249536002695095, + 64.0356799995061, + 23.34000300106709, + 32.66498099765158, + 45.72806999931345, + 30.951114997151308, + 52.67722100325045, + 30.95191399916075, + 29.403043001366314, + 34.99945899966406, + 30.985109999164706, + 26.5024229993287, + 31.82944899890572, + 32.0862059998035, + 28.958312002941966, + 28.99518599951989, + 38.67452700069407, + 32.618246998026734, + 24.129796998749953, + 43.743926002207445, + 31.173380000836914, + 257.6597599982051, + 210.73047499885433, + 25.872867001453415, + 74.54000699726748, + 97.18499800146674, + 102.18532599901664, + 89.14079399983166, + 28.761328001564834, + 29.717813999013742, + 49.499924996780464, + 35.551697001210414, + 23.134277998906327, + 59.04298199675395, + 23.414121998939663, + 26.56381600172608, + 30.24464000191074, + 26.028983000287553, + 30.36407500258065, + 22.381541999493493, + 22.683223000058206, + 25.333401001262246, + 34.45421200012788, + 38.404856000852305, + 29.812101998686558, + 29.599114997836296, + 33.59813600036432, + 26.75676700164331, + 181.9534910027869, + 513.9328149998619, + 95.1573370002734, + 28.95481999803451, + 69.39396899906569, + 31.08555200014962, + 57.19943000076455, + 26.68058299968834, + 23.666037999646505, + 32.634102997690206, + 28.757969001162564, + 31.394614998134784, + 33.97817900258815, + 25.73804200073937, + 26.039509000838734, + 26.527836998866405, + 24.149082997610094, + 23.693901999649825, + 24.835219999658875, + 30.93373499723384, + 28.330829001788516, + 28.95029299907037, + 26.843561998248333, + 27.676383000653004, + 32.59506600079476, + 29.147021999960998, + 26.716199001384666, + 25.911042001098394, + 26.745989001938142, + 24.226598998211557, + 23.909424999146722, + 28.130057999078417, + 28.471424997405848, + 21.705770999687957, + 23.794371001713444, + 29.253020002215635, + 312.5805509989732, + 108.27718200016534, + 91.07115699953283, + 22.019787000317592, + 26.34594399933121, + 50.73435799931758, + 26.645701997040305, + 26.846430999285076, + 31.686916001490317, + 27.526558998943074, + 29.859285001293756, + 57.464070996502414, + 39.715888000500854, + 72.88136200077133, + 34.19182200013893, + 20.015844998852117, + 29.44371099874843, + 27.584211002249504, + 37.55224300039117, + 26.397903002362, + 32.09788300227956, + 24.43413799846894, + 31.689140996604692, + 23.52693799912231, + 28.605245999642648, + 38.25717200015788, + 27.96376099649933, + 24.023541001952253, + 25.383385000168346, + 31.09827799926279, + 30.217644998629112, + 27.71792999919853, + 28.71584999957122, + 24.603378002211684, + 25.535780001519015, + 190.61294100174564, + 112.48517900094157, + 99.07951100103674, + 29.214866997790523, + 62.68075200205203, + 32.334340998204425, + 20.808024000871228, + 23.97846399981063, + 31.371239998406963, + 24.46053799940273, + 39.55838900219533, + 30.784071001107804, + 27.946676000283333, + 38.029307001124835, + 29.012828999839257, + 27.053191002778476, + 37.54817499793717, + 27.264043001196114, + 34.68468899882282, + 26.743595997686498, + 27.367509002942825, + 24.630369000078645, + 26.204457000858383, + 28.018449997034622, + 31.17792500052019, + 23.857454998506, + 29.1618949995609, + 28.09076400080812, + 26.20468899840489, + 49.57053999896743, + 26.124842999706743, + 17.73627399961697, + 27.0595570000296, + 26.81558599942946, + 33.721624000463635, + 22.262165999563877, + 28.702083000098355, + 66.4297949988395, + 113.29639099858468, + 129.0580040003988, + 108.90018999998574, + 60.90483600200969, + 47.390179002832156, + 458.7093179980002, + 256.10987600157387, + 318.8901130015438, + 232.5718060019426, + 307.82985299811116, + 272.17904400094994, + 331.340149998141, + 976.9567650000681, + 84.60208700125804, + 77.65300899700378, + 67.32773399926373, + 79.7136330002104, + 78.82466999944882, + 99.52297800191445, + 85.22368800186086, + 29.354004000197165, + 90.08539099886548, + 30.464013001619605, + 41.553300001396565, + 28.196731000207365, + 34.54000700003235, + 35.4000970000925, + 30.90475399949355, + 27.16049900118378, + 34.93603000242729, + 38.33972999927937, + 26.344883001002017, + 30.49841100073536, + 26.719014000263996, + 23.556584001198644, + 86.09846599938464, + 205.00370599984308, + 103.76871500193374, + 94.94439699847135, + 31.241468001098838, + 67.81100000080187, + 24.210976000176743, + 76.7507390009996, + 23.069147999194684, + 26.234210999973584, + 55.32967199906125, + 21.58698600032949, + 21.464189001562772, + 53.86164499941515, + 32.64158599995426, + 23.92103300007875, + 53.6863400011498, + 34.55252699859557, + 61.49843699677149, + 32.90453199952026, + 31.789764998393366, + 31.45673499966506, + 31.357690000731964, + 27.33991399873048, + 27.552581999771064, + 29.74202300174511, + 32.589166999969166, + 26.522755000769394, + 33.56162700220011, + 28.866462998848874, + 23.91143299973919, + 30.3028929993161, + 21.39058499960811, + 28.798137998819584, + 25.636247999500483, + 23.91302599789924, + 18.901642000855645, + 23.085103999619605, + 29.24256800179137, + 29.3840039994393, + 108.61510999893653, + 206.8664409998746, + 96.07380200031912, + 26.421399998071138, + 25.47041499929037, + 45.68914199990104, + 35.79732499929378, + 66.39976599763031, + 26.90193299713428, + 23.384879001241643, + 44.69494200020563, + 24.34360800180002, + 21.7444109985081, + 52.84205399948405, + 27.437451997684548, + 23.131269997975323, + 54.21552299958421, + 31.308425997849554, + 19.389790002605878, + 45.4281769998488, + 29.33628100072383, + 33.19672200086643, + 46.28836099800537, + 36.88031500132638, + 42.76568500063149, + 27.667255999404006, + 29.506058999686502, + 46.9209859984403, + 39.52277900316403, + 34.49217999877874, + 35.92661900256644, + 31.120351999561535, + 28.807910999603337, + 33.30641499997, + 26.191484001174103, + 28.71549200062873, + 20.691319998149993, + 26.942969001538586, + 26.819709997653263, + 67.99324100211379, + 211.95283099950757, + 188.0305229969963, + 100.81538099984755, + 109.53565500312834, + 102.50816800180473, + 26.25842400084366, + 72.76325799830374, + 27.858948000357486, + 26.52130299975397, + 42.47482400023728, + 36.593494998669485, + 68.71696099915425, + 24.675478001881856, + 22.22694200099795, + 24.525716002244735, + 33.912733000761364, + 24.92202099892893, + 31.883603001915617, + 29.540599000029033, + 33.942598001885926, + 38.1991719987127, + 27.840154001751216, + 26.010404999396997, + 28.61605900034192, + 26.26977899853955, + 25.00876799967955, + 42.17634400265524, + 38.24729500047397, + 612.8558670025086, + 112.38903200137429, + 32.294959000864765, + 50.179125002614455, + 24.157088999345433, + 30.509878000884783, + 44.013432001520414, + 33.76400500201271, + 28.397034999215975, + 26.562570998066803, + 24.46636699824012, + 28.13070399861317, + 37.14217300148448, + 25.62298699922394, + 32.81427100228029, + 24.834763000399107, + 35.041011000430444, + 27.39231300074607, + 31.060586999956286, + 27.48226099720341, + 23.883527999714715, + 26.06747599929804, + 27.95752399833873, + 25.468456999078626, + 25.2205770011642, + 26.83126999909291, + 29.60230000098818, + 25.143204002233688, + 26.970312002958963, + 24.21031199992285, + 24.180382999475114, + 24.24564299872145, + 24.78278999842587, + 35.01601099924301, + 28.161641999759013, + 120.66749099903973, + 108.96091099857586, + 104.64188500191085, + 96.44344800108229, + 35.904969001421705, + 60.26321699755499, + 27.379684997868026, + 29.703437998250592, + 42.74939999959315, + 31.28288799780421, + 28.69953299887129, + 38.06484600136173, + 28.892234000522876, + 29.36565400159452, + 52.7472139983729, + 27.03232199928607, + 71.54139599879272, + 30.048777000047266, + 22.861086999910185, + 21.99772799940547, + 24.127520999172702, + 22.125234998384258, + 28.486880000855308, + 26.21342500060564, + 27.743237998947734, + 23.881094999524066, + 21.646498000336578, + 31.000473001768114, + 23.301437999180052, + 30.977869999333052, + 34.363877999567194, + 26.87784299996565, + 27.03511900108424, + 30.275474997324636, + 31.1280079986318, + 27.972083000349812, + 27.242033000220545, + 24.4921230005275, + 25.713992999953916, + 95.69499999997788, + 106.44097900149063, + 103.71110000050976, + 102.90051999982097, + 30.3265869988536, + 63.36354200175265, + 29.947186001663795, + 33.412172000680584, + 30.966825001087273, + 30.138033998809988, + 28.57410900105606, + 34.879822000220884, + 27.727664000849472, + 26.408697998704156, + 35.18018400063738, + 25.685273998533376, + 25.875534000078915, + 30.99712599941995, + 34.76505800063023, + 37.22216499954811, + 26.406826997117605, + 28.94194699911168, + 26.556909000646556, + 31.222516001434997, + 25.635543999669608, + 27.967785998043837, + 28.376075999403838, + 28.095172998291673, + 31.597853001585463, + 24.60250700096367, + 42.259604000719264, + 26.091396000992972, + 34.27762700084713, + 21.26207599940244, + 23.628978000488132, + 34.64689999964321, + 32.40788199764211, + 28.726328997436212, + 42.037046998302685, + 218.29482199973427, + 135.1776109986531, + 96.7233919982391, + 413.8453979976475, + 305.5968189983105, + 318.5187999988557, + 232.41837399837095, + 291.88134300056845, + 241.26984100075788, + 283.9416370006802, + 217.7960989974963, + 866.5575929990155, + 110.47369100197102, + 71.21228799951496, + 76.85120799942524, + 73.86948500061408, + 78.34739000099944, + 86.95986100065056, + 72.20129799679853, + 79.07121300013387, + 25.01121599925682, + 26.773528999910923, + 26.274489999195794, + 31.95308500289684, + 36.941643000318436, + 26.998561999789672, + 27.383750999433687, + 30.93137699761428, + 31.3800080002693, + 25.770593998458935, + 29.109189999871887, + 27.499068000906846, + 26.38150299753761, + 26.0127450019354, + 26.552716000878718, + 98.62360599800013, + 202.3697680015175, + 119.33695900006569, + 92.44047299944214, + 32.45927399984794, + 69.55416900018463, + 26.46122700025444, + 65.39267100015422, + 26.56858100090176, + 24.960790000477573, + 53.241853001964046, + 23.286309999093646, + 68.3203369990224, + 37.80409499813686, + 31.47841100144433, + 45.1119249992189, + 32.99381699980586, + 55.57371100076125, + 26.624379002896603, + 24.090720999083715, + 28.079993000574177, + 30.805398997472366, + 31.23436399982893, + 29.46425099798944, + 36.360813999635866, + 34.713405002548825, + 30.53938199809636, + 33.68017699904158, + 22.091495000495343, + 23.681668997596717, + 24.81290599826025, + 22.888963998411782, + 33.28148299988243, + 23.454722999304067, + 25.37592000226141, + 28.399874998285668, + 26.587282001855783, + 28.779788000974804, + 134.20080200012308, + 204.83716299713706, + 24.125773001287598, + 78.61534899711842, + 25.593131002096925, + 25.297974003478885, + 39.47743900062051, + 26.570488000288606, + 24.179096002626466, + 55.9701860001951, + 28.622459998587146, + 21.750809999502962, + 49.48734299978241, + 33.3370019980066, + 62.25482800073223, + 27.73058299862896, + 25.272457998653408, + 49.05921400131774, + 29.91695699893171, + 75.93714800168527, + 23.378767000394873, + 28.34051699755946, + 49.709563001670176, + 37.31923099985579, + 47.12016000121366, + 33.66055399965262, + 42.28493700065883, + 30.412759999308037, + 33.589626000321005, + 38.90421400137711, + 25.620522003009683, + 29.96076799900038, + 24.00782300173887, + 24.08974600257352, + 28.29378100068425, + 27.54584800277371, + 25.956154000596143, + 28.330859997367952, + 24.17864900053246, + 30.02981400277349, + 259.90252799965674, + 222.40419999798178, + 88.8655579983606, + 90.31172899994999, + 105.04691999813076, + 28.481736000685487, + 68.00986200323678, + 21.845349001523573, + 37.27106000224012, + 36.64490699884482, + 22.455607999290805, + 21.658657999068964, + 29.838283997378312, + 27.19747599985567, + 26.79911200175411, + 62.11727899790276, + 25.76808300000266, + 74.7956500017608, + 31.864335000136634, + 48.29016000076081, + 50.23085600259947, + 602.6681209987146, + 102.70083800060092, + 40.557529999205144, + 63.06303200108232, + 30.710023998835823, + 72.88418000098318, + 29.747912998573156, + 24.586744999396615, + 30.817061997368, + 25.896966002619592, + 27.25331900001038, + 36.71053400103119, + 25.279752000642475, + 30.181542999343947, + 21.41318299982231, + 30.618027001764858, + 23.691182999755256, + 22.281148998445133, + 23.463714998797514, + 26.99473399843555, + 29.371256001468282, + 26.073471999552567, + 22.728768999513704, + 32.29008500056807, + 23.473930999898585, + 25.73870999913197, + 25.770980999368476, + 24.75208699979703, + 33.00436999779777, + 29.268214999319753, + 31.22735999932047, + 24.30486500088591, + 28.62488100072369, + 29.148609999538166, + 29.91348899740842, + 193.24267100091674, + 114.25420099840267, + 98.45066600246355, + 33.88035699754255, + 65.04427999971085, + 25.297783999121748, + 32.57484499772545, + 39.517258999694604, + 26.53662900047493, + 27.985272001387784, + 34.348895998846274, + 31.05112299817847, + 30.671116001030896, + 41.23258199979318, + 29.019421999691986, + 25.75426000112202, + 61.604133999935584, + 25.924669000232825, + 26.77369000230101, + 26.945989000523696, + 26.663308002753183, + 37.75027300071088, + 23.579045999213122, + 35.746413999731885, + 23.86504199967021, + 27.280095000605797, + 21.976379000989255, + 30.10023699971498, + 33.73026099870913, + 32.507902000361355, + 31.154860997048672, + 28.026480998960324, + 33.79227400000673, + 36.12484599943855, + 31.134759999986272, + 24.445552997349296, + 24.308822001330554, + 32.0960280005238, + 272.1267810011341, + 112.35887300063041, + 92.9198970006837, + 26.70476899947971, + 29.64867300033802, + 25.668351001513656, + 29.875880001782207, + 27.95586499996716, + 29.738173998339335, + 34.671317000174895, + 31.87293999872054, + 25.348373001179425, + 28.010826001263922, + 27.14112700050464, + 32.69202499723178, + 31.3416330027394, + 36.98742500273511, + 27.170031000423478, + 25.792609001655364, + 24.783169999864185, + 24.93629300079192, + 29.039716002444038, + 28.184024999063695, + 27.16223999959766, + 27.996462002192857, + 28.164071001810953, + 32.68525399835198, + 49.35221299820114, + 36.5866760002973, + 18.94129799984512, + 43.057183000200894, + 33.65975600172533, + 22.145687999000074, + 25.029309999808902, + 72.62133000040194, + 108.83461500270641, + 131.11644300079206, + 116.06901200138964, + 90.1652610009478, + 470.0250589994539, + 207.69321099942317, + 277.71326699803467, + 280.10334899954614, + 239.7793529999035, + 228.26317100043525, + 198.4927779994905, + 388.9017719993717, + 885.9496059994854, + 71.36252499913098, + 55.689594002615195, + 68.57321500137914, + 78.14567500099656, + 73.95199599704938, + 80.92228699752013, + 89.00453499882133, + 60.111521001090296, + 71.63872200180776, + 25.8648249982798, + 36.08038599850261, + 28.087582999432925, + 26.248269001371227, + 36.92993200093042, + 34.252225999807706, + 28.91509099936229, + 28.81211999920197, + 31.571411000186345, + 29.54001000034623, + 34.46360499947332, + 28.42228200097452, + 29.261956999107497, + 26.55631500238087, + 306.56848500075284, + 109.75578099896666, + 97.6321630005259, + 100.48237299997709, + 92.68073400016874, + 35.701920998690184, + 68.58088499939186, + 22.994635997747537, + 24.99809000073583, + 52.298704998975154, + 29.61670399963623, + 31.476139000005787, + 44.36116699798731, + 33.15081700202427, + 62.6174600001832, + 26.056876002257923, + 24.09256600003573, + 33.0871450023551, + 29.903665999881923, + 25.136765998468036, + 25.57213399995817, + 35.641282996948576, + 27.056970000558067, + 33.89271700143581, + 28.243868000572547, + 28.226680999068776, + 22.01702900129021, + 23.682285001996206, + 29.571383998700185, + 33.261327000218444, + 30.45840500271879, + 25.559121000696905, + 24.907391001761425, + 23.373218999040546, + 19.543547998182476, + 35.22202100066352, + 202.96411299932515, + 116.46402900078101, + 87.98172900060308, + 27.173869999387534, + 24.63601999988896, + 52.35983000238775, + 27.032010999391787, + 67.23467200208688, + 29.025193998677423, + 23.616898000909714, + 15.120240997930523, + 39.93991300012567, + 32.47359500164748, + 62.25054199967417, + 27.25993199783261, + 25.245851000363473, + 43.82179099775385, + 30.269872997450875, + 70.92899399867747, + 26.597097999911057, + 27.475424998556264, + 48.97349999737344, + 23.93286499864189, + 26.49317099712789, + 53.652335998776834, + 28.374527999403654, + 29.751604997727554, + 30.458106000878615, + 31.115881000005174, + 29.462106998835225, + 26.46273600112181, + 29.575128999567823, + 28.65432100225007, + 35.620542999822646, + 32.78313099872321, + 32.750894999480806, + 28.569832000357565, + 38.544931001524674, + 24.67255399824353, + 161.5189130025101, + 202.58431699767243, + 120.5794679990504, + 178.54235599952517, + 102.361227000074, + 26.854895000724355, + 82.04407400262426, + 28.812528002163162, + 28.408562997356057, + 35.89172800275264, + 35.52209799818229, + 21.954760999506107, + 31.167787001322722, + 38.415022998378845, + 25.574761999450857, + 25.921061002009083, + 30.26306200263207, + 34.45032099989476, + 24.60075099952519, + 24.15224899959867, + 25.027267998666503, + 18.177030000515515, + 19.508354002027772, + 27.14555100101279 + ], + "resources": { + "api": { + "cpu_percent_mean": 5.374509090909092, + "ram_mib_mean": 16.098, + "ram_mib_max": 20.91, + "samples": 550, + "cpu_seconds_per_job_estimate": 0.007404396662861823 + }, + "worker": { + "cpu_percent_mean": 25.094327272727273, + "ram_mib_mean": 7.42024, + "ram_mib_max": 8.871, + "samples": 275, + "cpu_seconds_per_job_estimate": 0.034572153469651125 + } + }, + "collector_deltas": { + "otelcol_receiver_accepted_spans": 28429.0, + "otelcol_exporter_sent_spans": 28421.0, + "otelcol_receiver_refused_spans": 0.0, + "otelcol_exporter_send_failed_spans": 0.0, + "otelcol_receiver_accepted_log_records": 3000.0, + "otelcol_receiver_accepted_metric_points": 1372.0 + }, + "ingest_spans_per_second": 201.83662132750277, + "tempo_spans_per_second": 201.77982393854714, + "trace_retention": 0.9997185972070772, + "stats_samples": [ + { + "t": 0.4369326779997209, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.92, + "ram_mib": 7.844 + }, + { + "t": 0.4369855280019692, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 3.34, + "ram_mib": 8.047 + }, + { + "t": 0.43701694999981555, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 0.23, + "ram_mib": 4.723 + }, + { + "t": 0.937870877001842, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.92, + "ram_mib": 7.844 + }, + { + "t": 0.9379789500017068, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 3.34, + "ram_mib": 8.047 + }, + { + "t": 0.9380338230002963, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 0.23, + "ram_mib": 4.723 + }, + { + "t": 1.4376576930008014, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 12.55, + "ram_mib": 8.902 + }, + { + "t": 1.4376870350024546, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 11.12, + "ram_mib": 8.66 + }, + { + "t": 1.437702523002372, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 6.04, + "ram_mib": 5.039 + }, + { + "t": 1.9371579530015879, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 12.55, + "ram_mib": 8.902 + }, + { + "t": 1.9371763590024784, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 11.12, + "ram_mib": 8.66 + }, + { + "t": 1.9371835279998777, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 6.04, + "ram_mib": 5.039 + }, + { + "t": 2.4380538530022022, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 27.47, + "ram_mib": 9.969 + }, + { + "t": 2.438086155001656, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 26.1, + "ram_mib": 9.777 + }, + { + "t": 2.4381044860019756, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 16.3, + "ram_mib": 5.602 + }, + { + "t": 2.937208653002017, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 27.47, + "ram_mib": 9.969 + }, + { + "t": 2.937273796000227, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 26.1, + "ram_mib": 9.777 + }, + { + "t": 2.9373147250007605, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 16.3, + "ram_mib": 5.602 + }, + { + "t": 3.4372978760002297, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 19.06, + "ram_mib": 9.512 + }, + { + "t": 3.437330248001672, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 18.33, + "ram_mib": 9.918 + }, + { + "t": 3.437348788000236, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 10.78, + "ram_mib": 5.785 + }, + { + "t": 3.9380398240027716, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 19.06, + "ram_mib": 9.512 + }, + { + "t": 3.938091117001022, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 18.33, + "ram_mib": 9.918 + }, + { + "t": 3.9381177380018926, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 10.78, + "ram_mib": 5.785 + }, + { + "t": 4.4370127960028185, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 22.58, + "ram_mib": 9.227 + }, + { + "t": 4.437033174999669, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 22.79, + "ram_mib": 9.656 + }, + { + "t": 4.437040794000495, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 12.23, + "ram_mib": 5.777 + }, + { + "t": 4.93762296299974, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 22.58, + "ram_mib": 9.227 + }, + { + "t": 4.937652155000251, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 22.79, + "ram_mib": 9.656 + }, + { + "t": 4.937662000000273, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 12.23, + "ram_mib": 5.777 + }, + { + "t": 5.437334416001249, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 29.2, + "ram_mib": 9.062 + }, + { + "t": 5.437445388000924, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 29.93, + "ram_mib": 8.918 + }, + { + "t": 5.437476813000103, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 14.33, + "ram_mib": 5.68 + }, + { + "t": 5.938252941999963, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 29.2, + "ram_mib": 9.062 + }, + { + "t": 5.938326788000268, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 29.93, + "ram_mib": 8.918 + }, + { + "t": 5.938387288002559, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 14.33, + "ram_mib": 5.68 + }, + { + "t": 6.4375623790001555, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 9.63, + "ram_mib": 9.773 + }, + { + "t": 6.437604310001916, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 9.89, + "ram_mib": 10.4 + }, + { + "t": 6.437622729001305, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 6.42, + "ram_mib": 5.836 + }, + { + "t": 6.938406958000996, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 9.63, + "ram_mib": 9.773 + }, + { + "t": 6.938508614002785, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 9.89, + "ram_mib": 10.4 + }, + { + "t": 6.938572137001756, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 6.42, + "ram_mib": 5.836 + }, + { + "t": 7.437994937001349, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 6.72, + "ram_mib": 8.871 + }, + { + "t": 7.438061270000617, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 6.23, + "ram_mib": 9.52 + }, + { + "t": 7.438099877002969, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 2.09, + "ram_mib": 5.055 + }, + { + "t": 7.938167378000799, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 6.72, + "ram_mib": 8.871 + }, + { + "t": 7.938245014000131, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 6.23, + "ram_mib": 9.52 + }, + { + "t": 7.9382782360007695, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 2.09, + "ram_mib": 5.055 + }, + { + "t": 8.437637192000693, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 6.93, + "ram_mib": 9.688 + }, + { + "t": 8.43769469900144, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 5.83, + "ram_mib": 8.906 + }, + { + "t": 8.43771907500195, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 2.36, + "ram_mib": 5.375 + }, + { + "t": 8.93689226800052, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 6.93, + "ram_mib": 9.688 + }, + { + "t": 8.936914543002786, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 5.83, + "ram_mib": 8.906 + }, + { + "t": 8.936922621000122, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 2.36, + "ram_mib": 5.375 + }, + { + "t": 9.43729388599968, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 6.57, + "ram_mib": 10.01 + }, + { + "t": 9.437325262999366, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 6.91, + "ram_mib": 9.023 + }, + { + "t": 9.437343087000045, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 2.13, + "ram_mib": 6.07 + }, + { + "t": 9.937085888002912, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 6.57, + "ram_mib": 10.01 + }, + { + "t": 9.937126117001753, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 6.91, + "ram_mib": 9.023 + }, + { + "t": 9.937144579002052, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 2.13, + "ram_mib": 6.07 + }, + { + "t": 10.437620185002743, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 23.62, + "ram_mib": 10.51 + }, + { + "t": 10.43763856700025, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 21.97, + "ram_mib": 9.102 + }, + { + "t": 10.437646557002154, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 11.35, + "ram_mib": 5.348 + }, + { + "t": 10.937189110001782, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 23.62, + "ram_mib": 10.51 + }, + { + "t": 10.937222071999713, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 21.97, + "ram_mib": 9.102 + }, + { + "t": 10.937240879000456, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 11.35, + "ram_mib": 5.348 + }, + { + "t": 11.437718338002014, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 24.16, + "ram_mib": 9.352 + }, + { + "t": 11.43773589400007, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 25.37, + "ram_mib": 9.957 + }, + { + "t": 11.437743050999416, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 12.43, + "ram_mib": 5.375 + }, + { + "t": 11.938141220001853, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 24.16, + "ram_mib": 9.352 + }, + { + "t": 11.938172745001793, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 25.37, + "ram_mib": 9.957 + }, + { + "t": 11.938186702001985, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 12.43, + "ram_mib": 5.375 + }, + { + "t": 12.437695717002498, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 21.69, + "ram_mib": 9.887 + }, + { + "t": 12.437715152002056, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 22.52, + "ram_mib": 10.05 + }, + { + "t": 12.437721861002501, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 10.48, + "ram_mib": 6.129 + }, + { + "t": 12.936920044001454, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 21.69, + "ram_mib": 9.887 + }, + { + "t": 12.93695033900076, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 22.52, + "ram_mib": 10.05 + }, + { + "t": 12.936965338001755, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 10.48, + "ram_mib": 6.129 + }, + { + "t": 13.437770436001301, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 31.1, + "ram_mib": 10.28 + }, + { + "t": 13.437797169000987, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 30.73, + "ram_mib": 9.359 + }, + { + "t": 13.43780705500103, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 17.32, + "ram_mib": 5.668 + }, + { + "t": 13.93730622899966, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 31.1, + "ram_mib": 10.28 + }, + { + "t": 13.937326409002708, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 30.73, + "ram_mib": 9.359 + }, + { + "t": 13.937334023001313, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 17.32, + "ram_mib": 5.668 + }, + { + "t": 14.437609579999844, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 12.68, + "ram_mib": 9.938 + }, + { + "t": 14.437628478000988, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 13.03, + "ram_mib": 9.785 + }, + { + "t": 14.437635341000714, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 8.96, + "ram_mib": 6.156 + }, + { + "t": 14.937621591001516, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 12.68, + "ram_mib": 9.938 + }, + { + "t": 14.937670024002728, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 13.03, + "ram_mib": 9.785 + }, + { + "t": 14.937694059000933, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 8.96, + "ram_mib": 6.156 + }, + { + "t": 15.437324714999704, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 11.05, + "ram_mib": 7.824 + }, + { + "t": 15.437343108002096, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 12.58, + "ram_mib": 7.742 + }, + { + "t": 15.437350000000151, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 25.21, + "ram_mib": 6.445 + }, + { + "t": 15.936896020000859, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 11.05, + "ram_mib": 7.824 + }, + { + "t": 15.936947219001013, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 12.58, + "ram_mib": 7.742 + }, + { + "t": 15.936968257999979, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 25.21, + "ram_mib": 6.445 + }, + { + "t": 16.43693566100046, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 1.52, + "ram_mib": 8.578 + }, + { + "t": 16.43698450699958, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 1.32, + "ram_mib": 7.742 + }, + { + "t": 16.437006698000914, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 29.94, + "ram_mib": 6.305 + }, + { + "t": 16.93761237900253, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 1.52, + "ram_mib": 8.578 + }, + { + "t": 16.937655577999976, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 1.32, + "ram_mib": 7.742 + }, + { + "t": 16.93767510700127, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 29.94, + "ram_mib": 6.305 + }, + { + "t": 17.43763782500173, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.97, + "ram_mib": 8.082 + }, + { + "t": 17.437681601000804, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.65, + "ram_mib": 7.984 + }, + { + "t": 17.43770020500233, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.19, + "ram_mib": 6.492 + }, + { + "t": 17.93701635600155, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.97, + "ram_mib": 8.082 + }, + { + "t": 17.937057858001936, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.65, + "ram_mib": 7.984 + }, + { + "t": 17.937075371999526, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.19, + "ram_mib": 6.492 + }, + { + "t": 18.437641533000715, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.56, + "ram_mib": 7.848 + }, + { + "t": 18.437704406002013, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 1.01, + "ram_mib": 7.742 + }, + { + "t": 18.437732255999435, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.06, + "ram_mib": 6.805 + }, + { + "t": 18.938010884001415, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.56, + "ram_mib": 7.848 + }, + { + "t": 18.938071783999476, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 1.01, + "ram_mib": 7.742 + }, + { + "t": 18.938109793001786, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.06, + "ram_mib": 6.805 + }, + { + "t": 19.43698326500089, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.06, + "ram_mib": 8.109 + }, + { + "t": 19.437044763002632, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.24, + "ram_mib": 8.254 + }, + { + "t": 19.437076428999717, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 23.73, + "ram_mib": 6.875 + }, + { + "t": 19.937371149000683, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.06, + "ram_mib": 8.109 + }, + { + "t": 19.937391289000516, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.24, + "ram_mib": 8.254 + }, + { + "t": 19.93739848900077, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 23.73, + "ram_mib": 6.875 + }, + { + "t": 20.437950859999546, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.34, + "ram_mib": 8.613 + }, + { + "t": 20.43800544500118, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.83, + "ram_mib": 8.117 + }, + { + "t": 20.438036783001735, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 14.15, + "ram_mib": 6.031 + }, + { + "t": 20.93787405799958, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.34, + "ram_mib": 8.613 + }, + { + "t": 20.93792243899952, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.83, + "ram_mib": 8.117 + }, + { + "t": 20.93794388900278, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 14.15, + "ram_mib": 6.031 + }, + { + "t": 21.437520141000277, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 1.45, + "ram_mib": 7.863 + }, + { + "t": 21.43756128899986, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 1.44, + "ram_mib": 8.262 + }, + { + "t": 21.43758110899944, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 10.37, + "ram_mib": 6.219 + }, + { + "t": 21.937603454000055, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 1.45, + "ram_mib": 7.863 + }, + { + "t": 21.937676782999915, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 1.44, + "ram_mib": 8.262 + }, + { + "t": 21.93770835900068, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 10.37, + "ram_mib": 6.219 + }, + { + "t": 22.43799474000116, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.69, + "ram_mib": 7.859 + }, + { + "t": 22.438050753000425, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 1.04, + "ram_mib": 8.262 + }, + { + "t": 22.438083316999837, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 11.6, + "ram_mib": 6.117 + }, + { + "t": 22.93810146800024, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.69, + "ram_mib": 7.859 + }, + { + "t": 22.938185705999786, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 1.04, + "ram_mib": 8.262 + }, + { + "t": 22.938223343000573, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 11.6, + "ram_mib": 6.117 + }, + { + "t": 23.438542891999532, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 1.23, + "ram_mib": 8.113 + }, + { + "t": 23.438597963002394, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.97, + "ram_mib": 8.258 + }, + { + "t": 23.438630149001256, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 11.06, + "ram_mib": 5.375 + }, + { + "t": 23.936714288000076, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 1.23, + "ram_mib": 8.113 + }, + { + "t": 23.936737785999867, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.97, + "ram_mib": 8.258 + }, + { + "t": 23.93674564899993, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 11.06, + "ram_mib": 5.375 + }, + { + "t": 24.437815855002555, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.93, + "ram_mib": 7.855 + }, + { + "t": 24.437855190000846, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 1.04, + "ram_mib": 8.012 + }, + { + "t": 24.437877027001377, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 26.55, + "ram_mib": 6.805 + }, + { + "t": 24.93729632800023, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.93, + "ram_mib": 7.855 + }, + { + "t": 24.937369279999984, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 1.04, + "ram_mib": 8.012 + }, + { + "t": 24.937398269001278, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 26.55, + "ram_mib": 6.805 + }, + { + "t": 25.436988970002858, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.9, + "ram_mib": 7.863 + }, + { + "t": 25.43701999500263, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 4.07, + "ram_mib": 8.148 + }, + { + "t": 25.437040936001722, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.52, + "ram_mib": 6.879 + }, + { + "t": 25.938329503002024, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.9, + "ram_mib": 7.863 + }, + { + "t": 25.938469338001596, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 4.07, + "ram_mib": 8.148 + }, + { + "t": 25.938531302999763, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.52, + "ram_mib": 6.879 + }, + { + "t": 26.43755037700248, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 1.15, + "ram_mib": 8.129 + }, + { + "t": 26.43757688000187, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 1.07, + "ram_mib": 8.258 + }, + { + "t": 26.43759199300257, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.43, + "ram_mib": 6.566 + }, + { + "t": 26.9376771060015, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 1.15, + "ram_mib": 8.129 + }, + { + "t": 26.937713110000914, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 1.07, + "ram_mib": 8.258 + }, + { + "t": 26.937730328001635, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.43, + "ram_mib": 6.566 + }, + { + "t": 27.436913776000438, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.44, + "ram_mib": 7.859 + }, + { + "t": 27.43695798400222, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.59, + "ram_mib": 7.762 + }, + { + "t": 27.436984715001017, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.32, + "ram_mib": 6.379 + }, + { + "t": 27.93784132300061, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.44, + "ram_mib": 7.859 + }, + { + "t": 27.937883381000574, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.59, + "ram_mib": 7.762 + }, + { + "t": 27.9378999210021, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.32, + "ram_mib": 6.379 + }, + { + "t": 28.43800461900173, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 1.29, + "ram_mib": 8.109 + }, + { + "t": 28.438071016000322, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 1.22, + "ram_mib": 7.766 + }, + { + "t": 28.43811362300039, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 16.75, + "ram_mib": 6.473 + }, + { + "t": 28.93707810700289, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 1.29, + "ram_mib": 8.109 + }, + { + "t": 28.937144143001206, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 1.22, + "ram_mib": 7.766 + }, + { + "t": 28.937180273002014, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 16.75, + "ram_mib": 6.473 + }, + { + "t": 29.437308369000675, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.86, + "ram_mib": 7.859 + }, + { + "t": 29.437335554001038, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 8.297 + }, + { + "t": 29.437350306001463, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.91, + "ram_mib": 6.965 + }, + { + "t": 29.936952285999723, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.86, + "ram_mib": 7.859 + }, + { + "t": 29.93700192200049, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 8.297 + }, + { + "t": 29.93702308200227, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.91, + "ram_mib": 6.965 + }, + { + "t": 30.436957961999724, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.87, + "ram_mib": 8.086 + }, + { + "t": 30.436997376000363, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.45, + "ram_mib": 7.777 + }, + { + "t": 30.43701380800121, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.37, + "ram_mib": 7.309 + }, + { + "t": 30.93777766600033, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.87, + "ram_mib": 8.086 + }, + { + "t": 30.937838139001542, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.45, + "ram_mib": 7.777 + }, + { + "t": 30.93787682599941, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.37, + "ram_mib": 7.309 + }, + { + "t": 31.43767718500021, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.871 + }, + { + "t": 31.43770737399973, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.773 + }, + { + "t": 31.437721225000132, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.15, + "ram_mib": 7.012 + }, + { + "t": 31.937145725001756, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.871 + }, + { + "t": 31.937175679002394, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.773 + }, + { + "t": 31.93718958200043, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.15, + "ram_mib": 7.012 + }, + { + "t": 32.437681970000995, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.859 + }, + { + "t": 32.437701806000405, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.793 + }, + { + "t": 32.437709661000554, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.94, + "ram_mib": 7.184 + }, + { + "t": 32.93729102300131, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.859 + }, + { + "t": 32.93730938900262, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.793 + }, + { + "t": 32.93731626600129, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.94, + "ram_mib": 7.184 + }, + { + "t": 33.437427777000266, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.859 + }, + { + "t": 33.43744950200198, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.77 + }, + { + "t": 33.43745580800169, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.69, + "ram_mib": 6.656 + }, + { + "t": 33.937960474002466, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.859 + }, + { + "t": 33.938009956000315, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.77 + }, + { + "t": 33.93803431100241, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.69, + "ram_mib": 6.656 + }, + { + "t": 34.43792153600225, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.31, + "ram_mib": 7.859 + }, + { + "t": 34.43797408500177, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 8.02 + }, + { + "t": 34.438003880000906, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.65, + "ram_mib": 7.094 + }, + { + "t": 34.93772507200265, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.31, + "ram_mib": 7.859 + }, + { + "t": 34.93778584600295, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 8.02 + }, + { + "t": 34.93782078200093, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.65, + "ram_mib": 7.094 + }, + { + "t": 35.43721329800246, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.74, + "ram_mib": 8.086 + }, + { + "t": 35.437257816000056, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 3.11, + "ram_mib": 8.281 + }, + { + "t": 35.43727686400234, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 17.99, + "ram_mib": 6.383 + }, + { + "t": 35.93799839300118, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.74, + "ram_mib": 8.086 + }, + { + "t": 35.93805070600138, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 3.11, + "ram_mib": 8.281 + }, + { + "t": 35.93807415300034, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 17.99, + "ram_mib": 6.383 + }, + { + "t": 36.437269401001686, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.36, + "ram_mib": 8.105 + }, + { + "t": 36.43733324999994, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.008 + }, + { + "t": 36.43738541100174, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 13.68, + "ram_mib": 7.109 + }, + { + "t": 36.93716372600102, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.36, + "ram_mib": 8.105 + }, + { + "t": 36.93723282800056, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.008 + }, + { + "t": 36.93726144299944, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 13.68, + "ram_mib": 7.109 + }, + { + "t": 37.43821347700214, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.43, + "ram_mib": 8.109 + }, + { + "t": 37.43829592700058, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.3, + "ram_mib": 7.77 + }, + { + "t": 37.43834515300114, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 12.45, + "ram_mib": 6.637 + }, + { + "t": 37.93817624000076, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.43, + "ram_mib": 8.109 + }, + { + "t": 37.938247595000576, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.3, + "ram_mib": 7.77 + }, + { + "t": 37.93828938400111, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 12.45, + "ram_mib": 6.637 + }, + { + "t": 38.437173391001124, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 8.113 + }, + { + "t": 38.43723145500189, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.3, + "ram_mib": 7.77 + }, + { + "t": 38.43725624199942, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 12.84, + "ram_mib": 6.773 + }, + { + "t": 38.93787411100129, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 8.113 + }, + { + "t": 38.93793159699999, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.3, + "ram_mib": 7.77 + }, + { + "t": 38.93795520999993, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 12.84, + "ram_mib": 6.773 + }, + { + "t": 39.43755134800085, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 8.109 + }, + { + "t": 39.437572719001764, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 7.777 + }, + { + "t": 39.437580052002886, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 22.11, + "ram_mib": 6.871 + }, + { + "t": 39.93794746899948, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 8.109 + }, + { + "t": 39.93799758100067, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 7.777 + }, + { + "t": 39.93801767700279, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 22.11, + "ram_mib": 6.871 + }, + { + "t": 40.438190848002705, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.95, + "ram_mib": 8.391 + }, + { + "t": 40.438263937001466, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.69, + "ram_mib": 7.77 + }, + { + "t": 40.43830965500092, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.29, + "ram_mib": 7.316 + }, + { + "t": 40.937598903001344, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.95, + "ram_mib": 8.391 + }, + { + "t": 40.93764082200141, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.69, + "ram_mib": 7.77 + }, + { + "t": 40.937658823000675, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.29, + "ram_mib": 7.316 + }, + { + "t": 41.43750893300239, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.082 + }, + { + "t": 41.437539015001676, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.992 + }, + { + "t": 41.43754868600081, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.39, + "ram_mib": 6.887 + }, + { + "t": 41.93801600400184, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.082 + }, + { + "t": 41.93806133200269, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.992 + }, + { + "t": 41.938080654999794, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.39, + "ram_mib": 6.887 + }, + { + "t": 42.43766933799998, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.109 + }, + { + "t": 42.437721944999794, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.77 + }, + { + "t": 42.437748202002695, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.65, + "ram_mib": 7.5 + }, + { + "t": 42.93681218200072, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.109 + }, + { + "t": 42.9368452000017, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.77 + }, + { + "t": 42.93685937600094, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.65, + "ram_mib": 7.5 + }, + { + "t": 43.43781936800224, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.109 + }, + { + "t": 43.43785818700053, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.773 + }, + { + "t": 43.43787929500104, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.82, + "ram_mib": 7.066 + }, + { + "t": 43.93746859600287, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 8.109 + }, + { + "t": 43.93750554700091, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.773 + }, + { + "t": 43.937520403000235, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.82, + "ram_mib": 7.066 + }, + { + "t": 44.43685802500113, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 8.109 + }, + { + "t": 44.43687615300223, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.77 + }, + { + "t": 44.4368825950005, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.47, + "ram_mib": 6.344 + }, + { + "t": 44.93749633900006, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 8.109 + }, + { + "t": 44.937515687000996, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.77 + }, + { + "t": 44.93752248700184, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.47, + "ram_mib": 6.344 + }, + { + "t": 45.43784785800017, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.5, + "ram_mib": 8.359 + }, + { + "t": 45.43791461500223, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.95, + "ram_mib": 7.793 + }, + { + "t": 45.43795235000289, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.29, + "ram_mib": 6.98 + }, + { + "t": 45.937929268002335, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.5, + "ram_mib": 8.359 + }, + { + "t": 45.937977420002426, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.95, + "ram_mib": 7.793 + }, + { + "t": 45.93800422200002, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.29, + "ram_mib": 6.98 + }, + { + "t": 46.43754228400212, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 8.109 + }, + { + "t": 46.437589862001914, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.77 + }, + { + "t": 46.43761020000238, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 28.3, + "ram_mib": 7.207 + }, + { + "t": 46.93780255599995, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 8.109 + }, + { + "t": 46.93783869199979, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.77 + }, + { + "t": 46.93785562800258, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 28.3, + "ram_mib": 7.207 + }, + { + "t": 47.43760522100274, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 8.109 + }, + { + "t": 47.4376811880029, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.766 + }, + { + "t": 47.43773092000265, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 29.74, + "ram_mib": 7.633 + }, + { + "t": 47.93783885400262, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 8.109 + }, + { + "t": 47.9378956670007, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.766 + }, + { + "t": 47.93792551400111, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 29.74, + "ram_mib": 7.633 + }, + { + "t": 48.43766937200053, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.109 + }, + { + "t": 48.43770938099988, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.766 + }, + { + "t": 48.43772683200223, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.83, + "ram_mib": 7.324 + }, + { + "t": 48.93809078800041, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 8.109 + }, + { + "t": 48.93816715399953, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.766 + }, + { + "t": 48.93821615300112, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.83, + "ram_mib": 7.324 + }, + { + "t": 49.43768985600036, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.859 + }, + { + "t": 49.437749589000305, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.77 + }, + { + "t": 49.43777761000092, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.51, + "ram_mib": 7.312 + }, + { + "t": 49.937398952002695, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.859 + }, + { + "t": 49.93748876700192, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.77 + }, + { + "t": 49.93752938800026, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.51, + "ram_mib": 7.312 + }, + { + "t": 50.438023578000866, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.0, + "ram_mib": 8.109 + }, + { + "t": 50.43808512600299, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 3.15, + "ram_mib": 7.969 + }, + { + "t": 50.438122958999884, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 13.93, + "ram_mib": 6.91 + }, + { + "t": 50.93781958800173, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.0, + "ram_mib": 8.109 + }, + { + "t": 50.93784918000165, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 3.15, + "ram_mib": 7.969 + }, + { + "t": 50.9378611400025, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 13.93, + "ram_mib": 6.91 + }, + { + "t": 51.437512797001546, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.42, + "ram_mib": 8.383 + }, + { + "t": 51.43757230000119, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.39, + "ram_mib": 7.77 + }, + { + "t": 51.43760609099991, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 8.5, + "ram_mib": 7.031 + }, + { + "t": 51.93742738800211, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.42, + "ram_mib": 8.383 + }, + { + "t": 51.93750057199941, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.39, + "ram_mib": 7.77 + }, + { + "t": 51.93753778300015, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 8.5, + "ram_mib": 7.031 + }, + { + "t": 52.437315077000676, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.32, + "ram_mib": 8.109 + }, + { + "t": 52.43739459900098, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.77 + }, + { + "t": 52.4376458480001, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 12.93, + "ram_mib": 7.41 + }, + { + "t": 52.93814102300166, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.32, + "ram_mib": 8.109 + }, + { + "t": 52.93821949300036, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.77 + }, + { + "t": 52.93825988300159, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 12.93, + "ram_mib": 7.41 + }, + { + "t": 53.438016817999596, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 8.109 + }, + { + "t": 53.43813620000219, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.77 + }, + { + "t": 53.43820005499947, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 20.76, + "ram_mib": 7.586 + }, + { + "t": 53.937090503000945, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 8.109 + }, + { + "t": 53.9371699229996, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.77 + }, + { + "t": 53.93721875600022, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 20.76, + "ram_mib": 7.586 + }, + { + "t": 54.43709252299959, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 8.355 + }, + { + "t": 54.43718664100015, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 8.02 + }, + { + "t": 54.43723066300299, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 26.04, + "ram_mib": 7.414 + }, + { + "t": 54.937711853999645, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 8.355 + }, + { + "t": 54.937760255001194, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 8.02 + }, + { + "t": 54.93778821600063, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 26.04, + "ram_mib": 7.414 + }, + { + "t": 55.437807468002575, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.24, + "ram_mib": 8.516 + }, + { + "t": 55.437845608001226, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.78, + "ram_mib": 7.926 + }, + { + "t": 55.43785933700201, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.84, + "ram_mib": 7.09 + }, + { + "t": 55.93766670200057, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.24, + "ram_mib": 8.516 + }, + { + "t": 55.93774018200202, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.78, + "ram_mib": 7.926 + }, + { + "t": 55.937783556000795, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.84, + "ram_mib": 7.09 + }, + { + "t": 56.4379500569994, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.863 + }, + { + "t": 56.438000362999446, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.77 + }, + { + "t": 56.43802239400247, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.23, + "ram_mib": 7.484 + }, + { + "t": 56.937745254999754, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.863 + }, + { + "t": 56.93777822300035, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.77 + }, + { + "t": 56.93779565500154, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.23, + "ram_mib": 7.484 + }, + { + "t": 57.43753960400136, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 7.863 + }, + { + "t": 57.43757334300244, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 7.77 + }, + { + "t": 57.437586678002845, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 27.87, + "ram_mib": 8.32 + }, + { + "t": 57.93806944199969, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 7.863 + }, + { + "t": 57.9381214999994, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 7.77 + }, + { + "t": 57.93814251100048, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 27.87, + "ram_mib": 8.32 + }, + { + "t": 58.437108465001074, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.109 + }, + { + "t": 58.43717661900155, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.77 + }, + { + "t": 58.437220073999924, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.08, + "ram_mib": 7.309 + }, + { + "t": 58.93756048200157, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 8.109 + }, + { + "t": 58.93757943300079, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.77 + }, + { + "t": 58.937585515002866, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.08, + "ram_mib": 7.309 + }, + { + "t": 59.43776024900217, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 8.109 + }, + { + "t": 59.43779415800236, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 8.238 + }, + { + "t": 59.437811244999466, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.42, + "ram_mib": 7.578 + }, + { + "t": 59.936942448999616, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 8.109 + }, + { + "t": 59.93697056699966, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 8.238 + }, + { + "t": 59.93698348600083, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.42, + "ram_mib": 7.578 + }, + { + "t": 60.437531644001865, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.57, + "ram_mib": 8.605 + }, + { + "t": 60.437589681001555, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.76, + "ram_mib": 7.934 + }, + { + "t": 60.43762005100143, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.45, + "ram_mib": 7.527 + }, + { + "t": 60.93795302700164, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.57, + "ram_mib": 8.605 + }, + { + "t": 60.93799612800285, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.76, + "ram_mib": 7.934 + }, + { + "t": 60.93801405600243, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.45, + "ram_mib": 7.527 + }, + { + "t": 61.43794414700096, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 8.355 + }, + { + "t": 61.437989455000206, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.93 + }, + { + "t": 61.43801008800074, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.99, + "ram_mib": 7.348 + }, + { + "t": 61.93754813600026, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 8.355 + }, + { + "t": 61.93758118400001, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.93 + }, + { + "t": 61.93759531999967, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.99, + "ram_mib": 7.348 + }, + { + "t": 62.43727058100194, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.859 + }, + { + "t": 62.43729089200133, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.918 + }, + { + "t": 62.437298486001964, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.86, + "ram_mib": 7.527 + }, + { + "t": 62.93777939600113, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.859 + }, + { + "t": 62.93781376900006, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.918 + }, + { + "t": 62.9378278860022, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.86, + "ram_mib": 7.527 + }, + { + "t": 63.437939204999566, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.832 + }, + { + "t": 63.43803006300004, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.754 + }, + { + "t": 63.4380591750014, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.9, + "ram_mib": 8.074 + }, + { + "t": 63.93723247700109, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.832 + }, + { + "t": 63.93726508700274, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.754 + }, + { + "t": 63.93728059700152, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.9, + "ram_mib": 8.074 + }, + { + "t": 64.43701097099984, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 7.828 + }, + { + "t": 64.43703873300183, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.734 + }, + { + "t": 64.43705381700056, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.03, + "ram_mib": 7.941 + }, + { + "t": 64.93712267000228, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 7.828 + }, + { + "t": 64.93720211400068, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.734 + }, + { + "t": 64.93725073099995, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.03, + "ram_mib": 7.941 + }, + { + "t": 65.43782998100141, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.5, + "ram_mib": 8.5 + }, + { + "t": 65.43789968000056, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.34, + "ram_mib": 8.398 + }, + { + "t": 65.43794199799959, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 9.68, + "ram_mib": 8.027 + }, + { + "t": 65.93768896600159, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.5, + "ram_mib": 8.5 + }, + { + "t": 65.93784150500142, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.34, + "ram_mib": 8.398 + }, + { + "t": 65.9378880050026, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 9.68, + "ram_mib": 8.027 + }, + { + "t": 66.43795343600141, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.44, + "ram_mib": 8.703 + }, + { + "t": 66.43801565499962, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 7.75 + }, + { + "t": 66.43804241200269, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 4.18, + "ram_mib": 7.953 + }, + { + "t": 66.93764198899953, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.44, + "ram_mib": 8.703 + }, + { + "t": 66.93770677200155, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 7.75 + }, + { + "t": 66.93774337500145, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 4.18, + "ram_mib": 7.953 + }, + { + "t": 67.43716077300269, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 8.203 + }, + { + "t": 67.43721603200174, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.33, + "ram_mib": 7.719 + }, + { + "t": 67.43723812200187, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 8.77, + "ram_mib": 7.426 + }, + { + "t": 67.93766786299966, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 8.203 + }, + { + "t": 67.93770231999952, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.33, + "ram_mib": 7.719 + }, + { + "t": 67.93771531300081, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 8.77, + "ram_mib": 7.426 + }, + { + "t": 68.4375703629994, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.949 + }, + { + "t": 68.43762862299991, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.703 + }, + { + "t": 68.43766164400222, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 25.18, + "ram_mib": 7.934 + }, + { + "t": 68.9378895230002, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.949 + }, + { + "t": 68.93794230099957, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.703 + }, + { + "t": 68.93797358899974, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 25.18, + "ram_mib": 7.934 + }, + { + "t": 69.4372964380018, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 7.793 + }, + { + "t": 69.43732661800095, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 7.945 + }, + { + "t": 69.43734301800214, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.56, + "ram_mib": 7.953 + }, + { + "t": 69.93700312800138, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 7.793 + }, + { + "t": 69.9370532009998, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 7.945 + }, + { + "t": 69.93708035300006, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.56, + "ram_mib": 7.953 + }, + { + "t": 70.43715952800267, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.89, + "ram_mib": 7.797 + }, + { + "t": 70.43722788800005, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.48, + "ram_mib": 7.977 + }, + { + "t": 70.43726802600213, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 30.8, + "ram_mib": 7.953 + }, + { + "t": 70.93793847800043, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.89, + "ram_mib": 7.797 + }, + { + "t": 70.93798829099978, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.48, + "ram_mib": 7.977 + }, + { + "t": 70.93801654799972, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 30.8, + "ram_mib": 7.953 + }, + { + "t": 71.43732263100173, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.789 + }, + { + "t": 71.43736020300275, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.707 + }, + { + "t": 71.43737665400113, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.5, + "ram_mib": 8.008 + }, + { + "t": 71.93791862199942, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.789 + }, + { + "t": 71.93795619400044, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.707 + }, + { + "t": 71.93797076800183, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.5, + "ram_mib": 8.008 + }, + { + "t": 72.43673519400181, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.77 + }, + { + "t": 72.43677029399987, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.699 + }, + { + "t": 72.43678768700192, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.35, + "ram_mib": 8.078 + }, + { + "t": 72.9374932460014, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.77 + }, + { + "t": 72.93753395900058, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.699 + }, + { + "t": 72.9375515890024, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.35, + "ram_mib": 8.078 + }, + { + "t": 73.4368157860008, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.793 + }, + { + "t": 73.43683468100062, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.695 + }, + { + "t": 73.43684180399941, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 35.01, + "ram_mib": 7.883 + }, + { + "t": 73.93781201499951, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.793 + }, + { + "t": 73.93788564799979, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.695 + }, + { + "t": 73.93792953900265, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 35.01, + "ram_mib": 7.883 + }, + { + "t": 74.43768244500097, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 7.793 + }, + { + "t": 74.4377339470011, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 8.156 + }, + { + "t": 74.43775607200223, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.27, + "ram_mib": 7.91 + }, + { + "t": 74.93784059900281, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 7.793 + }, + { + "t": 74.93792901900088, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 8.156 + }, + { + "t": 74.93797815000289, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.27, + "ram_mib": 7.91 + }, + { + "t": 75.43764286400256, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.95, + "ram_mib": 7.793 + }, + { + "t": 75.43768805500076, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.67, + "ram_mib": 7.723 + }, + { + "t": 75.43771657999969, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.75, + "ram_mib": 7.48 + }, + { + "t": 75.93690891500228, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.95, + "ram_mib": 7.793 + }, + { + "t": 75.9369568559996, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.67, + "ram_mib": 7.723 + }, + { + "t": 75.93697803000032, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.75, + "ram_mib": 7.48 + }, + { + "t": 76.43771527200079, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.754 + }, + { + "t": 76.43775811300293, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.914 + }, + { + "t": 76.43777593599953, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.22, + "ram_mib": 8.52 + }, + { + "t": 76.93781569299972, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.754 + }, + { + "t": 76.93786607700167, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.914 + }, + { + "t": 76.9378942479998, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.22, + "ram_mib": 8.52 + }, + { + "t": 77.43711841800177, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.754 + }, + { + "t": 77.43718064700079, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.914 + }, + { + "t": 77.43721848300265, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.22, + "ram_mib": 8.52 + }, + { + "t": 77.93761673799963, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.73 + }, + { + "t": 77.93765230600184, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.633 + }, + { + "t": 77.93766826499996, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.23, + "ram_mib": 7.594 + }, + { + "t": 78.4371688550018, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.73 + }, + { + "t": 78.43721256000208, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.633 + }, + { + "t": 78.4372324649994, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.23, + "ram_mib": 7.594 + }, + { + "t": 78.93773783900178, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.727 + }, + { + "t": 78.93776240000079, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.633 + }, + { + "t": 78.93777564999982, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.94, + "ram_mib": 8.219 + }, + { + "t": 79.43756513900007, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.727 + }, + { + "t": 79.43761494200226, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.633 + }, + { + "t": 79.43763648599997, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.94, + "ram_mib": 8.219 + }, + { + "t": 79.93734548800057, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 7.977 + }, + { + "t": 79.9374499120022, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 7.879 + }, + { + "t": 79.93748471700019, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 25.68, + "ram_mib": 7.961 + }, + { + "t": 80.43769121399964, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 7.977 + }, + { + "t": 80.43771040300271, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 7.879 + }, + { + "t": 80.43771734199981, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 25.68, + "ram_mib": 7.961 + }, + { + "t": 80.93961345000207, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.86, + "ram_mib": 7.781 + }, + { + "t": 80.93969171600111, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 3.07, + "ram_mib": 7.879 + }, + { + "t": 80.93973842200285, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 12.44, + "ram_mib": 8.266 + }, + { + "t": 81.43761551500211, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.86, + "ram_mib": 7.781 + }, + { + "t": 81.43763466900054, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 3.07, + "ram_mib": 7.879 + }, + { + "t": 81.4376421190027, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 12.44, + "ram_mib": 8.266 + }, + { + "t": 81.93693043500025, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.977 + }, + { + "t": 81.93698276700161, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 7.648 + }, + { + "t": 81.93701249600053, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 14.0, + "ram_mib": 8.152 + }, + { + "t": 82.4380161730005, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.977 + }, + { + "t": 82.43805975500072, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 7.648 + }, + { + "t": 82.43808001500292, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 14.0, + "ram_mib": 8.152 + }, + { + "t": 82.93728391300101, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.734 + }, + { + "t": 82.93757632000052, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 7.629 + }, + { + "t": 82.93772795500263, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 13.67, + "ram_mib": 8.246 + }, + { + "t": 83.43741593900268, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.734 + }, + { + "t": 83.43744077000156, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 7.629 + }, + { + "t": 83.43744973499997, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 13.67, + "ram_mib": 8.246 + }, + { + "t": 83.93743474500297, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 7.73 + }, + { + "t": 83.93746936900061, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 7.633 + }, + { + "t": 83.93748566700015, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 24.05, + "ram_mib": 8.07 + }, + { + "t": 84.43769441800032, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 7.73 + }, + { + "t": 84.43771978900259, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 7.633 + }, + { + "t": 84.43773311000041, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 24.05, + "ram_mib": 8.07 + }, + { + "t": 84.93801363199964, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 7.734 + }, + { + "t": 84.93806731400036, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.645 + }, + { + "t": 84.93809160100136, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.06, + "ram_mib": 7.992 + }, + { + "t": 85.43738173600286, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 7.734 + }, + { + "t": 85.43740230000185, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.645 + }, + { + "t": 85.43741100700208, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.06, + "ram_mib": 7.992 + }, + { + "t": 85.93736940700182, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.62, + "ram_mib": 7.738 + }, + { + "t": 85.93743319799978, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.66, + "ram_mib": 7.848 + }, + { + "t": 85.93747131599957, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.57, + "ram_mib": 8.082 + }, + { + "t": 86.43769118099954, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.62, + "ram_mib": 7.738 + }, + { + "t": 86.43771524300246, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.66, + "ram_mib": 7.848 + }, + { + "t": 86.43772806500056, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.57, + "ram_mib": 8.082 + }, + { + "t": 86.93781945600131, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.734 + }, + { + "t": 86.93785260300137, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.629 + }, + { + "t": 86.93786742800148, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.86, + "ram_mib": 8.168 + }, + { + "t": 87.43751402500129, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.734 + }, + { + "t": 87.43755048599996, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.629 + }, + { + "t": 87.4375700290002, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.86, + "ram_mib": 8.168 + }, + { + "t": 87.93773646300178, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.738 + }, + { + "t": 87.93780388300002, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.629 + }, + { + "t": 87.93784654400224, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.27, + "ram_mib": 8.477 + }, + { + "t": 88.43739675600227, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.738 + }, + { + "t": 88.4374469050017, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.629 + }, + { + "t": 88.43747074600105, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.27, + "ram_mib": 8.477 + }, + { + "t": 88.93708622000122, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.734 + }, + { + "t": 88.93713441200089, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.602 + }, + { + "t": 88.93716044400207, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.05, + "ram_mib": 8.027 + }, + { + "t": 89.43768396800078, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.734 + }, + { + "t": 89.43772100500064, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.602 + }, + { + "t": 89.43773808100013, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.05, + "ram_mib": 8.027 + }, + { + "t": 89.93740911400164, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.707 + }, + { + "t": 89.93744496799991, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.602 + }, + { + "t": 89.93746250000186, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.67, + "ram_mib": 8.297 + }, + { + "t": 90.43708937100018, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.707 + }, + { + "t": 90.43712991600114, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.602 + }, + { + "t": 90.4371482730021, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.67, + "ram_mib": 8.297 + }, + { + "t": 90.93728902099974, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.25, + "ram_mib": 7.949 + }, + { + "t": 90.93731671000205, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.56, + "ram_mib": 7.871 + }, + { + "t": 90.93733244100076, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 23.97, + "ram_mib": 8.07 + }, + { + "t": 91.4370047850025, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.25, + "ram_mib": 7.949 + }, + { + "t": 91.43703457800075, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.56, + "ram_mib": 7.871 + }, + { + "t": 91.43704654600151, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 23.97, + "ram_mib": 8.07 + }, + { + "t": 91.93699682700026, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.707 + }, + { + "t": 91.9370175719996, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.832 + }, + { + "t": 91.93702485800168, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.59, + "ram_mib": 8.285 + }, + { + "t": 92.4378690400008, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.707 + }, + { + "t": 92.43790850500227, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.832 + }, + { + "t": 92.43793180600187, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.59, + "ram_mib": 8.285 + }, + { + "t": 92.93784449600207, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.707 + }, + { + "t": 92.93790958500176, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.602 + }, + { + "t": 92.9379496649999, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.77, + "ram_mib": 7.793 + }, + { + "t": 93.43763904000298, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.707 + }, + { + "t": 93.4377013480007, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.602 + }, + { + "t": 93.43772977000117, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.77, + "ram_mib": 7.793 + }, + { + "t": 93.93792402100007, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.707 + }, + { + "t": 93.93798633400002, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.602 + }, + { + "t": 93.93802509800298, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.05, + "ram_mib": 7.262 + }, + { + "t": 94.43696422699941, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.707 + }, + { + "t": 94.43701631099975, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.2, + "ram_mib": 7.602 + }, + { + "t": 94.43704752400299, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.05, + "ram_mib": 7.262 + }, + { + "t": 94.93764350100173, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.707 + }, + { + "t": 94.93766394500199, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 7.852 + }, + { + "t": 94.93767097800082, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.05, + "ram_mib": 8.637 + }, + { + "t": 95.43743873600033, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.707 + }, + { + "t": 95.43751162400076, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 7.852 + }, + { + "t": 95.43755199700172, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.05, + "ram_mib": 8.637 + }, + { + "t": 95.9372428429997, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.69, + "ram_mib": 7.707 + }, + { + "t": 95.93734073800078, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.73, + "ram_mib": 7.891 + }, + { + "t": 95.93744398700073, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 27.72, + "ram_mib": 8.145 + }, + { + "t": 96.43757050299973, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.69, + "ram_mib": 7.707 + }, + { + "t": 96.4375888350005, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.73, + "ram_mib": 7.891 + }, + { + "t": 96.43759603100261, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 27.72, + "ram_mib": 8.145 + }, + { + "t": 96.93754040299973, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.707 + }, + { + "t": 96.93758825400073, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.602 + }, + { + "t": 96.93761195000116, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 9.07, + "ram_mib": 8.172 + }, + { + "t": 97.43768420700144, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.707 + }, + { + "t": 97.43770559300174, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.602 + }, + { + "t": 97.43771570399986, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 9.07, + "ram_mib": 8.172 + }, + { + "t": 97.93720330400174, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 7.707 + }, + { + "t": 97.93728435400044, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 7.605 + }, + { + "t": 97.9373345080021, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 13.17, + "ram_mib": 7.859 + }, + { + "t": 98.43807192000168, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 7.707 + }, + { + "t": 98.43812036199961, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 7.605 + }, + { + "t": 98.43814206500247, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 13.17, + "ram_mib": 7.859 + }, + { + "t": 98.93708231200071, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.707 + }, + { + "t": 98.93714418899981, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 7.602 + }, + { + "t": 98.93717272800131, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 16.79, + "ram_mib": 7.559 + }, + { + "t": 99.43760449100228, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.707 + }, + { + "t": 99.43762657300249, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 7.602 + }, + { + "t": 99.43763381300232, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 16.79, + "ram_mib": 7.559 + }, + { + "t": 99.93768855800226, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 7.707 + }, + { + "t": 99.93772674900174, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 7.852 + }, + { + "t": 99.93774703900272, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 23.19, + "ram_mib": 7.84 + }, + { + "t": 100.43739002000075, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 7.707 + }, + { + "t": 100.4374298210023, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.35, + "ram_mib": 7.852 + }, + { + "t": 100.437448056, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 23.19, + "ram_mib": 7.84 + }, + { + "t": 100.93759185700037, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.02, + "ram_mib": 7.707 + }, + { + "t": 100.93763967300038, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 3.2, + "ram_mib": 7.863 + }, + { + "t": 100.93766373300241, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 23.91, + "ram_mib": 8.156 + }, + { + "t": 101.43783952100057, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.02, + "ram_mib": 7.707 + }, + { + "t": 101.43787222800165, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 3.2, + "ram_mib": 7.863 + }, + { + "t": 101.43788663400119, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 23.91, + "ram_mib": 8.156 + }, + { + "t": 101.93739279800138, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.707 + }, + { + "t": 101.9374181250023, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.605 + }, + { + "t": 101.93743119800274, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.2, + "ram_mib": 8.25 + }, + { + "t": 102.43807643599939, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.707 + }, + { + "t": 102.43814956600181, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.11, + "ram_mib": 7.605 + }, + { + "t": 102.43819449399962, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.2, + "ram_mib": 8.25 + }, + { + "t": 102.93762609300029, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.738 + }, + { + "t": 102.93764405600086, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.605 + }, + { + "t": 102.93765144400095, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.61, + "ram_mib": 8.594 + }, + { + "t": 103.43742626300082, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.738 + }, + { + "t": 103.43746679400283, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.605 + }, + { + "t": 103.43748578099985, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.61, + "ram_mib": 8.594 + }, + { + "t": 103.93768084800104, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.715 + }, + { + "t": 103.93770339200273, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.605 + }, + { + "t": 103.93771280100191, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.81, + "ram_mib": 8.871 + }, + { + "t": 104.4369768960023, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.715 + }, + { + "t": 104.43703561100119, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.605 + }, + { + "t": 104.43706923500213, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.81, + "ram_mib": 8.871 + }, + { + "t": 104.9378089310012, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.715 + }, + { + "t": 104.93785969800228, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.855 + }, + { + "t": 104.9378907829996, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.9, + "ram_mib": 7.867 + }, + { + "t": 105.43746192000253, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.715 + }, + { + "t": 105.43748689499989, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.855 + }, + { + "t": 105.4374937499997, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.9, + "ram_mib": 7.867 + }, + { + "t": 105.93755081500058, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.02, + "ram_mib": 7.715 + }, + { + "t": 105.93760190499961, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 3.43, + "ram_mib": 7.812 + }, + { + "t": 105.93763328000205, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 30.94, + "ram_mib": 8.547 + }, + { + "t": 106.43785393100188, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.02, + "ram_mib": 7.715 + }, + { + "t": 106.43790461699973, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 3.43, + "ram_mib": 7.812 + }, + { + "t": 106.43793405500037, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 30.94, + "ram_mib": 8.547 + }, + { + "t": 106.93778606300111, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.715 + }, + { + "t": 106.9378437430023, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.605 + }, + { + "t": 106.93787902900294, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.6, + "ram_mib": 8.344 + }, + { + "t": 107.4375217400011, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.715 + }, + { + "t": 107.43757822400221, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.605 + }, + { + "t": 107.43760399500025, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.6, + "ram_mib": 8.344 + }, + { + "t": 107.93742144100179, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.715 + }, + { + "t": 107.93745063400274, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.605 + }, + { + "t": 107.93746276100137, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 25.52, + "ram_mib": 7.762 + }, + { + "t": 108.43810413400206, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.715 + }, + { + "t": 108.43817712999953, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.605 + }, + { + "t": 108.4382221800006, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 25.52, + "ram_mib": 7.762 + }, + { + "t": 108.93769322500157, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.715 + }, + { + "t": 108.93772732400248, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.605 + }, + { + "t": 108.93774139699963, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.56, + "ram_mib": 8.508 + }, + { + "t": 109.43713574900175, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.715 + }, + { + "t": 109.43715601599979, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.605 + }, + { + "t": 109.43716326700087, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.56, + "ram_mib": 8.508 + }, + { + "t": 109.93752083100117, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 7.715 + }, + { + "t": 109.93757110099978, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 7.617 + }, + { + "t": 109.9376011280001, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.32, + "ram_mib": 7.93 + }, + { + "t": 110.43766204300118, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 7.715 + }, + { + "t": 110.43779018500209, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 7.617 + }, + { + "t": 110.43782665800245, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.32, + "ram_mib": 7.93 + }, + { + "t": 110.93761195300249, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.9, + "ram_mib": 7.715 + }, + { + "t": 110.93770468100047, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.8, + "ram_mib": 7.652 + }, + { + "t": 110.93780074200185, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 25.12, + "ram_mib": 7.988 + }, + { + "t": 111.4374257290001, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.9, + "ram_mib": 7.715 + }, + { + "t": 111.43749536100222, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.8, + "ram_mib": 7.652 + }, + { + "t": 111.43752238900197, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 25.12, + "ram_mib": 7.988 + }, + { + "t": 111.93819411400182, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 7.719 + }, + { + "t": 111.93827583600068, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 7.637 + }, + { + "t": 111.93832169600137, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 13.57, + "ram_mib": 7.574 + }, + { + "t": 112.43711939900095, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 7.719 + }, + { + "t": 112.43717873100104, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.24, + "ram_mib": 7.637 + }, + { + "t": 112.43721197800187, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 13.57, + "ram_mib": 7.574 + }, + { + "t": 112.93811959100276, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 7.746 + }, + { + "t": 112.93819998000254, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 7.637 + }, + { + "t": 112.93824627200229, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 12.13, + "ram_mib": 7.859 + }, + { + "t": 113.43742354300048, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 7.746 + }, + { + "t": 113.43749038200258, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.27, + "ram_mib": 7.637 + }, + { + "t": 113.43751771000098, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 12.13, + "ram_mib": 7.859 + }, + { + "t": 113.93748620500264, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 7.715 + }, + { + "t": 113.93755706500087, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.613 + }, + { + "t": 113.93758146500113, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 16.32, + "ram_mib": 8.328 + }, + { + "t": 114.43767881100212, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 7.715 + }, + { + "t": 114.43770654599939, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.13, + "ram_mib": 7.613 + }, + { + "t": 114.43772121500297, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 16.32, + "ram_mib": 8.328 + }, + { + "t": 114.93738846300039, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.715 + }, + { + "t": 114.93740808700022, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 7.613 + }, + { + "t": 114.93741527300153, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 26.0, + "ram_mib": 7.762 + }, + { + "t": 115.43805147400053, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 7.715 + }, + { + "t": 115.43811532700056, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.34, + "ram_mib": 7.613 + }, + { + "t": 115.4381556139997, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 26.0, + "ram_mib": 7.762 + }, + { + "t": 115.93750583400106, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.06, + "ram_mib": 7.738 + }, + { + "t": 115.93754039399937, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.4, + "ram_mib": 7.84 + }, + { + "t": 115.93755393800166, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.97, + "ram_mib": 8.023 + }, + { + "t": 116.43697445200087, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.06, + "ram_mib": 7.738 + }, + { + "t": 116.43701794300068, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.4, + "ram_mib": 7.84 + }, + { + "t": 116.43704456600244, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.97, + "ram_mib": 8.023 + }, + { + "t": 116.93802957000298, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.715 + }, + { + "t": 116.93810560600105, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.633 + }, + { + "t": 116.93815472400092, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.76, + "ram_mib": 7.957 + }, + { + "t": 117.43803053300144, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.14, + "ram_mib": 7.715 + }, + { + "t": 117.43808803700085, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.633 + }, + { + "t": 117.43811092000033, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.76, + "ram_mib": 7.957 + }, + { + "t": 117.93802648700148, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.715 + }, + { + "t": 117.9380792530028, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.613 + }, + { + "t": 117.93810177400155, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 24.83, + "ram_mib": 7.582 + }, + { + "t": 118.43731095100156, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.715 + }, + { + "t": 118.43733108900051, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.613 + }, + { + "t": 118.43734079500064, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 24.83, + "ram_mib": 7.582 + }, + { + "t": 118.93765705999976, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.961 + }, + { + "t": 118.93770421299996, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 7.613 + }, + { + "t": 118.9377257360029, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.39, + "ram_mib": 8.273 + }, + { + "t": 119.43697514100131, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.961 + }, + { + "t": 119.4370346579999, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 7.613 + }, + { + "t": 119.43707075900238, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.39, + "ram_mib": 8.273 + }, + { + "t": 119.93783656400046, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.715 + }, + { + "t": 119.9378669880025, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.863 + }, + { + "t": 119.9378817800025, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.55, + "ram_mib": 8.746 + }, + { + "t": 120.43783955199979, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.715 + }, + { + "t": 120.43789479599945, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.23, + "ram_mib": 7.863 + }, + { + "t": 120.43791732300087, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.55, + "ram_mib": 8.746 + }, + { + "t": 120.93763682000281, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.61, + "ram_mib": 7.715 + }, + { + "t": 120.93769434800197, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.53, + "ram_mib": 7.613 + }, + { + "t": 120.93772555800024, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 30.1, + "ram_mib": 7.805 + }, + { + "t": 121.43770783299988, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 3.61, + "ram_mib": 7.715 + }, + { + "t": 121.43773583200164, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.53, + "ram_mib": 7.613 + }, + { + "t": 121.43775100399944, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 30.1, + "ram_mib": 7.805 + }, + { + "t": 121.93766762900123, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.715 + }, + { + "t": 121.93772543300292, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.613 + }, + { + "t": 121.93775607700081, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.15, + "ram_mib": 8.012 + }, + { + "t": 122.43679357400106, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.715 + }, + { + "t": 122.43682702099977, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.18, + "ram_mib": 7.613 + }, + { + "t": 122.43684622, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.15, + "ram_mib": 8.012 + }, + { + "t": 122.93802635400061, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.715 + }, + { + "t": 122.93812779899963, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.859 + }, + { + "t": 122.93818848299998, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.73, + "ram_mib": 8.258 + }, + { + "t": 123.43800228799955, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.715 + }, + { + "t": 123.43803960700097, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 7.859 + }, + { + "t": 123.43805449499996, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.73, + "ram_mib": 8.258 + }, + { + "t": 123.93711249099943, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.715 + }, + { + "t": 123.93713493399991, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.883 + }, + { + "t": 123.93714334200195, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.26, + "ram_mib": 7.812 + }, + { + "t": 124.43794798200179, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.715 + }, + { + "t": 124.43800093200116, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.883 + }, + { + "t": 124.43802097400112, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.26, + "ram_mib": 7.812 + }, + { + "t": 124.93787778000114, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 7.715 + }, + { + "t": 124.93797596900185, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 7.859 + }, + { + "t": 124.93803736100017, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 30.2, + "ram_mib": 8.238 + }, + { + "t": 125.43844866500149, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 7.715 + }, + { + "t": 125.43854409900086, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 7.859 + }, + { + "t": 125.43858820400055, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 30.2, + "ram_mib": 8.238 + }, + { + "t": 125.93696924799951, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.42, + "ram_mib": 7.918 + }, + { + "t": 125.93702897299954, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.65, + "ram_mib": 8.387 + }, + { + "t": 125.93706254300196, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 22.24, + "ram_mib": 8.805 + }, + { + "t": 126.43813974500154, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.42, + "ram_mib": 7.918 + }, + { + "t": 126.43822822100265, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.65, + "ram_mib": 8.387 + }, + { + "t": 126.43828008900164, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 22.24, + "ram_mib": 8.805 + }, + { + "t": 126.9383253110027, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 8.164 + }, + { + "t": 126.93854787900273, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 8.113 + }, + { + "t": 126.9386214240003, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 25.27, + "ram_mib": 8.156 + }, + { + "t": 127.43794810799955, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.21, + "ram_mib": 8.164 + }, + { + "t": 127.43802274300106, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.29, + "ram_mib": 8.113 + }, + { + "t": 127.43806681500064, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 25.27, + "ram_mib": 8.156 + }, + { + "t": 127.93733082200197, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.715 + }, + { + "t": 127.9373766509998, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.3, + "ram_mib": 7.859 + }, + { + "t": 127.9374032650012, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 13.08, + "ram_mib": 8.266 + }, + { + "t": 128.43729745400196, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.715 + }, + { + "t": 128.43739485900005, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.3, + "ram_mib": 7.859 + }, + { + "t": 128.43743747200278, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 13.08, + "ram_mib": 8.266 + }, + { + "t": 128.93694180100283, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.3, + "ram_mib": 7.715 + }, + { + "t": 128.9369916200012, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.859 + }, + { + "t": 128.93701501300166, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 13.35, + "ram_mib": 7.984 + }, + { + "t": 129.4383250730025, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.3, + "ram_mib": 7.715 + }, + { + "t": 129.43846388600286, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.859 + }, + { + "t": 129.43851151900162, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 13.35, + "ram_mib": 7.984 + }, + { + "t": 129.938149171001, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.41, + "ram_mib": 7.715 + }, + { + "t": 129.93821976300023, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 8.359 + }, + { + "t": 129.93824898200182, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 15.93, + "ram_mib": 7.961 + }, + { + "t": 130.43686444900231, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.41, + "ram_mib": 7.715 + }, + { + "t": 130.43690945100025, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.26, + "ram_mib": 8.359 + }, + { + "t": 130.43693133600027, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 15.93, + "ram_mib": 7.961 + }, + { + "t": 130.93761582300067, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.86, + "ram_mib": 7.973 + }, + { + "t": 130.93766609200247, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.51, + "ram_mib": 8.109 + }, + { + "t": 130.93769451499975, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 27.95, + "ram_mib": 8.379 + }, + { + "t": 131.43684896600098, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.86, + "ram_mib": 7.973 + }, + { + "t": 131.43688700700295, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.51, + "ram_mib": 8.109 + }, + { + "t": 131.43690709800285, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 27.95, + "ram_mib": 8.379 + }, + { + "t": 131.93696621900017, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.715 + }, + { + "t": 131.9370096120001, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 8.109 + }, + { + "t": 131.93703387300047, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.09, + "ram_mib": 8.633 + }, + { + "t": 132.43787269200038, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 7.715 + }, + { + "t": 132.43793814700257, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.22, + "ram_mib": 8.109 + }, + { + "t": 132.43797913300295, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 32.09, + "ram_mib": 8.633 + }, + { + "t": 132.93781134300298, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.715 + }, + { + "t": 132.93786513600207, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.859 + }, + { + "t": 132.93789813700278, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.74, + "ram_mib": 8.215 + }, + { + "t": 133.43730175600285, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.715 + }, + { + "t": 133.43732254000133, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.19, + "ram_mib": 7.859 + }, + { + "t": 133.43732968699987, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.74, + "ram_mib": 8.215 + }, + { + "t": 133.9378998739994, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.715 + }, + { + "t": 133.9379388510024, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.109 + }, + { + "t": 133.9379554549996, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.39, + "ram_mib": 8.305 + }, + { + "t": 134.43740566500128, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.16, + "ram_mib": 7.715 + }, + { + "t": 134.43743565000113, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.17, + "ram_mib": 8.109 + }, + { + "t": 134.4374521380014, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.39, + "ram_mib": 8.305 + }, + { + "t": 134.93740104400058, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.715 + }, + { + "t": 134.93743662600173, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 8.109 + }, + { + "t": 134.93745080000008, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.51, + "ram_mib": 7.984 + }, + { + "t": 135.43785729400042, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.28, + "ram_mib": 7.715 + }, + { + "t": 135.43789830000242, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.25, + "ram_mib": 8.109 + }, + { + "t": 135.43791531399984, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 33.51, + "ram_mib": 7.984 + }, + { + "t": 135.93793665600242, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.47, + "ram_mib": 7.723 + }, + { + "t": 135.93799137899987, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.66, + "ram_mib": 8.637 + }, + { + "t": 135.93801592100135, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.94, + "ram_mib": 7.883 + }, + { + "t": 136.43734335200134, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 2.47, + "ram_mib": 7.723 + }, + { + "t": 136.43738860300073, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 2.66, + "ram_mib": 8.637 + }, + { + "t": 136.43741100600164, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 31.94, + "ram_mib": 7.883 + }, + { + "t": 136.93751423900176, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.715 + }, + { + "t": 136.93757098599963, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.355 + }, + { + "t": 136.9376059990027, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.06, + "ram_mib": 8.613 + }, + { + "t": 137.43732919600006, + "container": "b1e49744e61bc28de2f046f3045f9882576f7c1ea6e21bf8790b5638d4bc92c9", + "service": "api", + "cpu_percent": 0.15, + "ram_mib": 7.715 + }, + { + "t": 137.43744054700073, + "container": "dc07fa32bd527c12844f64832cf7140ef732ddce547a9758b6e403e074357ffe", + "service": "api", + "cpu_percent": 0.12, + "ram_mib": 8.355 + }, + { + "t": 137.4374872440021, + "container": "38b0bb0ce921cc441b64efc609f84d637f84c8e9e8a6500f9bfe3edc49a73f88", + "service": "worker", + "cpu_percent": 34.06, + "ram_mib": 8.613 + } + ], + "sdk_diagnostic_audit": { + "source": "Prometheus instant queries at trial start/end, restricted to trial container hostnames", + "warning_error_start": 0.0, + "warning_error_end": 0.0, + "warning_error_delta": 0.0 + } + } + ], + "container_limits": { + "api": "mtusi2026lab6-api:local|sha256:f61a4c1564f85fac4cbcc31e2d3053ad451cdee09503f541d094b98e14686450|500000000|268435456", + "worker": "mtusi2026lab6-api:local|sha256:f61a4c1564f85fac4cbcc31e2d3053ad451cdee09503f541d094b98e14686450|500000000|536870912" + }, + "error_probe": { + "type": "synthetic ERROR spans, separate from upload benchmark", + "sent": 100, + "found_in_tempo": 9, + "missing_in_tempo": 91 + }, + "result": "PASS", + "restored": "SDK enabled, default Collector configuration", + "sdk_diagnostic_audit": { + "span_queue_drop_max_during_experiment": 0.0, + "note": "Warning/error diagnostics are not counts of lost spans. Compare per-trial deltas; sampling discard is sent/accepted." + } +} diff --git a/evidence/track1-benchmark.md b/evidence/track1-benchmark.md new file mode 100644 index 0000000..7a1591e --- /dev/null +++ b/evidence/track1-benchmark.md @@ -0,0 +1,59 @@ +# Track 1: Цена наблюдаемости + +Результат: **PASS**. Начало UTC: 2026-11-16T14:52:30.645168+00:00. + +По 3 прогона каждого варианта, 1000 POST uploads, concurrency 4, warm-up 20 uploads. +Порядок ABC / BCA / CAB. PNG: 111817 bytes. Каждый job дошёл до ready; очередь между прогонами пуста. +Таблица содержит медианы результатов прогонов, включая медиану индивидуальных p50/p99 (не pooled percentile). +RPS и latency — HTTP 202 acceptance. CPU/RAM — средние docker stats за upload + полный drain worker; API = сумма двух реплик. +CPU: 100% = одно логическое ядро. RAM: MiB; это Docker working set, не peak RSS. Spans/s = delta accepted_spans / окно ingest, включающее финальный flush. + +| Настройка | RPS | p50 latency, ms | p99 latency, ms | CPU API | RAM API, MiB | CPU Worker | RAM Worker, MiB | Spans/sec (ingest) | +|---|---:|---:|---:|---:|---:|---:|---:|---:| +| A: Off | 84.37 | 27.30 | 202.70 | 10.32% | 14.22 | 34.79% | 6.88 | 0.00 | +| B: On, SDK 100% / Collector 100% | 75.44 | 30.46 | 288.30 | 12.64% | 17.05 | 38.48% | 7.81 | 391.01 | +| C: On, SDK 100% / Collector 10% | 75.28 | 30.48 | 204.05 | 13.31% | 16.58 | 39.12% | 7.88 | 412.19 | + +| Настройка | Mean HTTP, ms | Pipeline, s | Accepted spans | Tempo sent spans | Tempo spans/s | CPU API, ms/job* | CPU Worker, ms/job* | +|---|---:|---:|---:|---:|---:|---:|---:| +| A | 46.89 | 79.95 | 0 | 0 | 0.00 | 7.80 | 27.81 | +| B | 52.56 | 69.12 | 28231 | 28230 | 391.00 | 8.57 | 26.60 | +| C | 52.82 | 65.37 | 28218 | 3083 | 44.78 | 8.75 | 25.82 | + +*CPU ms/job — оценка по среднему docker stats CPU% и длительности pipeline, не аппаратный профиль CPU. +Accepted spans — вход в Collector; sampling в C выполняется после receiver и не уменьшает стоимость SDK/OTLP ingest. Это количества spans, не bytes. +В C логи и метрики остаются на 100%; отношение sent/accepted измеряет намеренное сокращение trace export. + +| Прогон | RPS | mean HTTP, ms | p99, ms | Pipeline, s | Stats samples API / Worker | Refused / failed export spans | +|---|---:|---:|---:|---:|---:|---:| +| A/1 | 79.03 | 50.13 | 201.98 | 79.95 | 320 / 160 | 0 / 0 | +| B/1 | 78.94 | 50.20 | 200.24 | 69.12 | 276 / 138 | 0 / 0 | +| C/1 | 75.28 | 52.82 | 204.05 | 65.37 | 260 / 130 | 0 / 0 | +| B/2 | 75.44 | 52.56 | 288.30 | 65.36 | 260 / 130 | 0 / 0 | +| C/2 | 77.95 | 50.86 | 202.22 | 64.91 | 258 / 129 | 0 / 0 | +| A/2 | 85.62 | 46.41 | 202.70 | 63.87 | 254 / 127 | 0 / 0 | +| C/3 | 68.84 | 57.60 | 212.64 | 73.28 | 292 / 146 | 0 / 0 | +| A/3 | 84.37 | 46.89 | 413.17 | 140.02 | 560 / 280 | 0 / 0 | +| B/3 | 69.37 | 57.14 | 437.94 | 137.77 | 550 / 275 | 0 / 0 | + +SDK audit: delta warning/error diagnostics в on-окнах: [0.0]; значения перед началом окон: [0.0, 4.0]. Startup/reconfiguration не входит в steady-state замер. +Максимум telemetry_sdk_dropped_spans в интервале эксперимента: 0.0. Это счётчик переполнения span batch queue, не точный аудит всех возможных потерь SDK. + +Отдельный synthetic ERROR probe (вне замеров API): {"type": "synthetic ERROR spans, separate from upload benchmark", "sent": 100, "found_in_tempo": 9, "missing_in_tempo": 91}. + +## Воспроизведение + +```sh +python3 scripts/benchmark_telemetry.py --requests 1000 --concurrency 4 --repetitions 3 +``` + +Если Docker Snap не находит Compose plugin, передать --compose /path/to/docker-compose --docker /path/to/docker. +Скрипт проверяет 2 API + 1 worker, завершение всех jobs, отсутствие HTTP/Collector ошибок и фактический процент экспорта. +В finally восстанавливаются SDK on и исходный Collector 100%. Данные/volumes не удаляются. + +## Ограничения + +Closed-loop, один хост, 3 повтора, фоновые health/outbox spans включены. Размер БД/S3 растёт; порядок вариантов ротируется, новых чатов и файлов поровну. +Warm-up не устраняет весь cache/thermal/I/O шум. Относительные CPU/RAM различия — наблюдения этой конфигурации, не универсальная надбавка 20–40%. +Docker CPU/RAM и клиентская latency не изолируют стоимость SDK от общего давления Collector/backends на тот же хост. +Приватные payloads, пароли и токены в evidence не записываются. Полные sanitized samples/latencies и hardware/limits: track1-benchmark.json. diff --git a/evidence/verification.md b/evidence/verification.md new file mode 100644 index 0000000..5f03fc0 --- /dev/null +++ b/evidence/verification.md @@ -0,0 +1,34 @@ +# Фактическая проверка — 16.11.2026 + +- Clean Dockerfile build: PASS, runtime loader dependency included. +- Compose config and Collector validate: PASS. +- Prometheus config + 3 alert rules (promtool): PASS. +- C++ W3C context/invalid-context/route-privacy self-test: PASS. +- Public lab6 API smoke with telemetry on and off: PASS. +- Disabled SDK durable payload: traceparent absent, not an empty invalid field. +- Real upload trace parent-child chain API/outbox/Redis/worker/S3/DB: PASS. +- Loki events from both services correlated by trace ID: PASS. +- Provisioned dashboard: 25 PromQL queries checked. +- Privacy canaries absent in recent Loki events and selected upload trace. +- Whole delivered incidents.py run against final image: PASS. +- All affected services restored; SDK enabled. + +Load: 10338 successes / 0 errors, 344.305 RPS; client p50/p95/p99 5.666/52.505/61.702 ms. +Closed-loop synthetic message load, concurrency 4, 30 seconds; not a capacity or 30-minute SLO proof. + +| Событие | Москва, UTC+3 | +|---|---| +| worker_stopped_upload_accepted | 10:30:35 | +| QueueLagGrowing_firing | 10:31:50 | +| QueueLagGrowing_resolved_backlog_drained | 10:32:10 | +| database_stopped | 10:32:10 | +| ApiHighErrorRate_firing | 10:32:54 | +| ApiHighErrorRate_resolved_database_recovered | 10:33:55 | +| s3_failure_scheduled_retry | 10:33:57 | +| retry_same_trace_ready_verified | 10:33:58 | +| tempo_loki_stopped | 10:34:08 | +| telemetry_outage_api_worker_healthy | 10:34:30 | +| tempo_loki_restarted | 10:34:30 | + +Evidence contains only synthetic technical IDs, timestamps and aggregate metrics. Full backend payloads, credentials and message bodies were not saved. +Limits: no prolonged memory soak or exhaustive privacy audit; SDK log-queue drops are not counted exactly (see REPORT.md). diff --git a/infra/README.md b/infra/README.md index 5a39e86..1c44a07 100644 --- a/infra/README.md +++ b/infra/README.md @@ -1,7 +1,33 @@ -# Инфраструктура студента +# Инфраструктура lab6 -Здесь разместите конфигурации выбранных сервисов; основную топологию — в корневом compose.yaml/stack.yaml. `compose.example.yaml` — только worksheet ролей и намеренно не запускается. `contracts/infrastructure.json` задаёт минимальные роли, не готовые образы/пароли. +Рабочая топология — в корневом `compose.yaml`. `compose.example.yaml` остаётся +учебным worksheet, его запускать не нужно. Bootstrap: `python3 scripts/bootstrap-local.py`, +затем `docker compose up -d --build`. Повторный запуск сохраняет volumes и данные. -В REPORT.md сопоставьте роль → service name → версия/digest → health/readiness → volume → сеть/порт → способ передачи credentials. Приведите bootstrap (schema, bucket, broker topology, а с lab6 provisioning) и безопасное повторение этих команд. +| Роль | Compose service | Persistent volume | Host port | +|---|---|---|---| +| C++ API (2 реплики) | api | — | через lb | +| Reverse proxy | lb | — | 127.0.0.1:8080 | +| PostgreSQL 16.15 | db | pgdata | нет | +| Valkey 8.1.10 / Redis Streams | cache | valkeydata | нет | +| MinIO | minio | miniodata | нет | +| Bucket / least-privilege user bootstrap | minio-init, minio-user-init | — | нет | +| C++ последовательный worker | worker | — | нет | +| Collector 0.119.0 | otel-collector | — | нет | +| Prometheus 3.2.1 | prometheus | prometheusdata | 127.0.0.1:9090 | +| Loki 3.4.2 | loki | lokidata | нет | +| Tempo 2.7.2 | tempo | tempodata | нет | +| Grafana 11.6.0 | grafana | grafanadata | 127.0.0.1:3000 | -Приложение строится из исходников. Не используйте заранее существующий образ преподавательского сервера вместо своей реализации. Restart hook перезапускает все соответствующие stores с volumes; failover hook останавливает только заданную API-реплику. +API/worker строятся из исходников этого репозитория; MinIO/mc — из закреплённых +официальных release binaries с проверкой SHA256. PostgreSQL/Valkey/MinIO имеют +healthchecks; API ждёт готовности бизнес-зависимостей и bootstrap S3, lb ждёт API. +Telemetry backends не блокируют запуск или работу бизнес-процессов. + +Credentials хранятся в локальных `.env` и `secrets/`, исключённых из Git/context. +API/worker читают Docker file secrets после staging для uid 10001; Grafana читает +пароль из отдельного file secret. Корневые MinIO credentials нужны только store/bootstrap; +приложения используют ограниченного S3 пользователя. Все сервисы находятся в default +Compose network. Метрики, логи, трассы и состояние Grafana переживают restart. + +Provisioning, версии, SLO, runbooks и реальные проверки: [REPORT.md](../REPORT.md). diff --git a/infra/grafana/dashboards/messenger.json b/infra/grafana/dashboards/messenger.json new file mode 100644 index 0000000..a828d9c --- /dev/null +++ b/infra/grafana/dashboards/messenger.json @@ -0,0 +1,485 @@ +{ + "uid": "messenger-observability", + "title": "Messenger — Observability", + "schemaVersion": 40, + "version": 1, + "refresh": "5s", + "time": { + "from": "now-15m", + "to": "now" + }, + "panels": [ + { + "id": 1, + "title": "API RPS (business requests)", + "type": "timeseries", + "gridPos": { + "x": 0, + "y": 0, + "w": 12, + "h": 8 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "refId": "A", + "expr": "sum by(http_route)(rate(http_server_requests_total[$__rate_interval]))", + "legendFormat": "{{http_route}}" + } + ], + "fieldConfig": { + "defaults": { + "unit": "reqps" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 2, + "title": "API p50 / p95 / p99 (all replicas)", + "type": "timeseries", + "gridPos": { + "x": 12, + "y": 0, + "w": 12, + "h": 8 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "refId": "A", + "expr": "histogram_quantile(0.5, sum by(le)(rate(http_server_request_duration_seconds_bucket[$__rate_interval])))", + "legendFormat": "p50" + }, + { + "refId": "B", + "expr": "histogram_quantile(0.95, sum by(le)(rate(http_server_request_duration_seconds_bucket[$__rate_interval])))", + "legendFormat": "p95" + }, + { + "refId": "C", + "expr": "histogram_quantile(0.99, sum by(le)(rate(http_server_request_duration_seconds_bucket[$__rate_interval])))", + "legendFormat": "p99" + } + ], + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 3, + "title": "API error rate (5xx / all business requests)", + "type": "timeseries", + "gridPos": { + "x": 0, + "y": 8, + "w": 12, + "h": 8 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "refId": "A", + "expr": "(sum(rate(http_server_requests_total{http_response_status_class=\"5xx\"}[$__rate_interval])) or vector(0)) / clamp_min(sum(rate(http_server_requests_total[$__rate_interval])),0.001)", + "legendFormat": "5xx ratio" + } + ], + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 4, + "title": "Queue depth (durable outstanding jobs)", + "type": "timeseries", + "gridPos": { + "x": 12, + "y": 8, + "w": 12, + "h": 8 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "refId": "A", + "expr": "max(queue_depth)", + "legendFormat": "jobs" + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 5, + "title": "Oldest outstanding job / observation age", + "type": "timeseries", + "gridPos": { + "x": 0, + "y": 16, + "w": 12, + "h": 8 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "refId": "A", + "expr": "max(queue_oldest_age)", + "legendFormat": "oldest" + }, + { + "refId": "B", + "expr": "time()-max(queue_observation_timestamp)", + "legendFormat": "observation age" + } + ], + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 6, + "title": "Worker saturation (busy / capacity)", + "type": "timeseries", + "gridPos": { + "x": 12, + "y": 16, + "w": 12, + "h": 8 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "refId": "A", + "expr": "sum(worker_busy) / clamp_min(sum(worker_capacity),1)", + "legendFormat": "saturation" + } + ], + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 7, + "title": "Worker outcomes per second", + "type": "timeseries", + "gridPos": { + "x": 0, + "y": 24, + "w": 12, + "h": 8 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "refId": "A", + "expr": "sum by(outcome)(rate(worker_jobs_total[$__rate_interval]))", + "legendFormat": "{{outcome}}" + } + ], + "fieldConfig": { + "defaults": { + "unit": "ops" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 8, + "title": "Worker p50 / p95 / p99", + "type": "timeseries", + "gridPos": { + "x": 12, + "y": 24, + "w": 12, + "h": 8 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "refId": "A", + "expr": "histogram_quantile(0.5,sum by(le)(rate(worker_job_duration_seconds_bucket[$__rate_interval])))", + "legendFormat": "p50" + }, + { + "refId": "B", + "expr": "histogram_quantile(0.95,sum by(le)(rate(worker_job_duration_seconds_bucket[$__rate_interval])))", + "legendFormat": "p95" + }, + { + "refId": "C", + "expr": "histogram_quantile(0.99,sum by(le)(rate(worker_job_duration_seconds_bucket[$__rate_interval])))", + "legendFormat": "p99" + } + ], + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 9, + "title": "DB pools (application + outbox)", + "type": "timeseries", + "gridPos": { + "x": 0, + "y": 32, + "w": 12, + "h": 8 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "refId": "A", + "expr": "sum(db_pool_used)", + "legendFormat": "used" + }, + { + "refId": "B", + "expr": "sum(db_pool_waiting)", + "legendFormat": "waiting" + }, + { + "refId": "C", + "expr": "sum(db_pool_capacity)", + "legendFormat": "capacity" + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 10, + "title": "Acceptance to ready p50 / p95 / p99", + "type": "timeseries", + "gridPos": { + "x": 12, + "y": 32, + "w": 12, + "h": 8 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "refId": "A", + "expr": "histogram_quantile(0.5,sum by(le)(rate(attachment_ready_duration_seconds_bucket[$__rate_interval])))", + "legendFormat": "p50" + }, + { + "refId": "B", + "expr": "histogram_quantile(0.95,sum by(le)(rate(attachment_ready_duration_seconds_bucket[$__rate_interval])))", + "legendFormat": "p95" + }, + { + "refId": "C", + "expr": "histogram_quantile(0.99,sum by(le)(rate(attachment_ready_duration_seconds_bucket[$__rate_interval])))", + "legendFormat": "p99" + } + ], + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 11, + "title": "Process resident memory", + "type": "timeseries", + "gridPos": { + "x": 0, + "y": 40, + "w": 12, + "h": 8 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "refId": "A", + "expr": "process_memory_usage", + "legendFormat": "{{service_name}} / {{service_instance_id}}" + } + ], + "fieldConfig": { + "defaults": { + "unit": "bytes" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 12, + "title": "Process CPU (cores)", + "type": "timeseries", + "gridPos": { + "x": 12, + "y": 40, + "w": 12, + "h": 8 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "refId": "A", + "expr": "rate(process_cpu_time[$__rate_interval])", + "legendFormat": "{{service_name}} / {{service_instance_id}}" + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 13, + "title": "Collector rejected/failed signal export", + "type": "timeseries", + "gridPos": { + "x": 0, + "y": 48, + "w": 12, + "h": 8 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "refId": "A", + "expr": "sum(rate(otelcol_exporter_send_failed_spans[$__rate_interval]))", + "legendFormat": "exporter_send_failed_spans" + }, + { + "refId": "B", + "expr": "sum(rate(otelcol_exporter_send_failed_log_records[$__rate_interval]))", + "legendFormat": "exporter_send_failed_log_records" + }, + { + "refId": "C", + "expr": "sum(rate(otelcol_processor_refused_spans[$__rate_interval]))", + "legendFormat": "processor_refused_spans" + }, + { + "refId": "D", + "expr": "sum(rate(otelcol_exporter_enqueue_failed_spans[$__rate_interval]))", + "legendFormat": "exporter_enqueue_failed_spans" + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + }, + { + "id": 14, + "title": "Correlated application events", + "type": "logs", + "gridPos": { + "x": 12, + "y": 48, + "w": 12, + "h": 8 + }, + "datasource": { + "type": "loki", + "uid": "loki" + }, + "targets": [ + { + "refId": "A", + "expr": "{service_name=~\"messenger-api|messenger-worker\"}", + "legendFormat": "logs" + } + ], + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "options": {} + } + ], + "tags": [ + "lab6" + ], + "annotations": { + "list": [] + } +} diff --git a/infra/grafana/provisioning/dashboards/provider.yaml b/infra/grafana/provisioning/dashboards/provider.yaml new file mode 100644 index 0000000..a1c102a --- /dev/null +++ b/infra/grafana/provisioning/dashboards/provider.yaml @@ -0,0 +1,7 @@ +apiVersion: 1 +providers: + - name: messenger + folder: Messenger + type: file + options: + path: /var/lib/grafana/dashboards diff --git a/infra/grafana/provisioning/datasources/sources.yaml b/infra/grafana/provisioning/datasources/sources.yaml new file mode 100644 index 0000000..36ff2da --- /dev/null +++ b/infra/grafana/provisioning/datasources/sources.yaml @@ -0,0 +1,33 @@ +apiVersion: 1 +datasources: + - name: Prometheus + uid: prometheus + type: prometheus + access: proxy + url: http://prometheus:9090 + isDefault: true + - name: Loki + uid: loki + type: loki + access: proxy + url: http://loki:3100 + jsonData: + derivedFields: + - name: TraceID + matcherType: label + matcherRegex: trace_id + datasourceUid: tempo + url: '$${__value.raw}' + - name: Tempo + uid: tempo + type: tempo + access: proxy + url: http://tempo:3200 + jsonData: + tracesToLogsV2: + datasourceUid: loki + spanStartTimeShift: '-1m' + spanEndTimeShift: '1m' + tags: [{key: service.name, value: service_name}] + filterByTraceID: true + filterBySpanID: true diff --git a/infra/loki/loki.yaml b/infra/loki/loki.yaml new file mode 100644 index 0000000..d9aa15d --- /dev/null +++ b/infra/loki/loki.yaml @@ -0,0 +1,31 @@ +auth_enabled: false +server: + http_listen_port: 3100 +common: + path_prefix: /loki + replication_factor: 1 + ring: + kvstore: + store: inmemory + storage: + filesystem: + chunks_directory: /loki/chunks + rules_directory: /loki/rules +schema_config: + configs: + - from: 2024-01-01 + store: tsdb + object_store: filesystem + schema: v13 + index: + prefix: index_ + period: 24h +limits_config: + allow_structured_metadata: true + retention_period: 168h +compactor: + working_directory: /loki/compactor + retention_enabled: true + delete_request_store: filesystem +analytics: + reporting_enabled: false diff --git a/infra/mc/Dockerfile b/infra/mc/Dockerfile new file mode 100644 index 0000000..bc68d58 --- /dev/null +++ b/infra/mc/Dockerfile @@ -0,0 +1,19 @@ +# Local MinIO Client (mc) from the official GitHub release binary (pinned). +# Fallback when docker.io/minio/mc cannot be pulled. +FROM ubuntu:24.04 + +ARG MC_VERSION=RELEASE.2025-04-16T18-13-26Z + +RUN apt-get update && apt-get install -y --no-install-recommends \ + ca-certificates curl \ + && curl -fsSL -o /tmp/mc.bin \ + "https://github.com/minio/mc/releases/download/${MC_VERSION}/mc.linux-amd64.${MC_VERSION}" \ + && curl -fsSL -o /tmp/mc.sha256sum \ + "https://github.com/minio/mc/releases/download/${MC_VERSION}/mc.linux-amd64.${MC_VERSION}.sha256sum" \ + && expected="$(awk '{print $1}' /tmp/mc.sha256sum)" \ + && echo "${expected} /tmp/mc.bin" | sha256sum -c - \ + && install -m 0755 /tmp/mc.bin /usr/local/bin/mc \ + && rm -f /tmp/mc.bin /tmp/mc.sha256sum \ + && rm -rf /var/lib/apt/lists/* + +ENTRYPOINT ["mc"] diff --git a/infra/minio/Dockerfile b/infra/minio/Dockerfile new file mode 100644 index 0000000..23d0727 --- /dev/null +++ b/infra/minio/Dockerfile @@ -0,0 +1,22 @@ +# Local MinIO image from the official GitHub release binary (pinned). +# Fallback when docker.io/minio/minio cannot be pulled. +FROM ubuntu:24.04 + +ARG MINIO_VERSION=RELEASE.2025-04-22T22-12-26Z + +RUN apt-get update && apt-get install -y --no-install-recommends \ + ca-certificates curl \ + && curl -fsSL -o /tmp/minio.bin \ + "https://github.com/minio/minio/releases/download/${MINIO_VERSION}/minio.linux-amd64.${MINIO_VERSION}" \ + && curl -fsSL -o /tmp/minio.sha256sum \ + "https://github.com/minio/minio/releases/download/${MINIO_VERSION}/minio.linux-amd64.${MINIO_VERSION}.sha256sum" \ + && expected="$(awk '{print $1}' /tmp/minio.sha256sum)" \ + && echo "${expected} /tmp/minio.bin" | sha256sum -c - \ + && install -m 0755 /tmp/minio.bin /usr/local/bin/minio \ + && rm -f /tmp/minio.bin /tmp/minio.sha256sum \ + && rm -rf /var/lib/apt/lists/* + +VOLUME ["/data"] +EXPOSE 9000 9001 +ENTRYPOINT ["minio"] +CMD ["server", "/data", "--console-address", ":9001"] diff --git a/infra/minio/policy-attachments.json b/infra/minio/policy-attachments.json new file mode 100644 index 0000000..69b4ca4 --- /dev/null +++ b/infra/minio/policy-attachments.json @@ -0,0 +1,29 @@ +{ + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "s3:ListBucketMultipartUploads", + "s3:GetBucketLocation", + "s3:ListBucket" + ], + "Resource": [ + "arn:aws:s3:::__S3_BUCKET__" + ] + }, + { + "Effect": "Allow", + "Action": [ + "s3:PutObject", + "s3:GetObject", + "s3:DeleteObject", + "s3:AbortMultipartUpload", + "s3:ListMultipartUploadParts" + ], + "Resource": [ + "arn:aws:s3:::__S3_BUCKET__/*" + ] + } + ] +} diff --git a/infra/otel/README.md b/infra/otel/README.md index c46fe89..a2c1b49 100644 --- a/infra/otel/README.md +++ b/infra/otel/README.md @@ -1,7 +1,39 @@ -# Конфигурация наблюдаемости — реализовать +# OpenTelemetry Collector -Добавьте `collector.yaml` с OTLP receivers, processors и exporters выбранной версии Collector. Укажите явные bind endpoints, внутренние сети, memory limits/batch и поведение при backpressure по уровню. Сопоставьте все три pipeline с реально развёрнутыми backend. +`collector.yaml` рассчитан на Collector Contrib **0.119.0**. -Добавьте конфигурации storage, Grafana provisioning/datasources, provisioning/dashboards и импортируемые dashboard JSON. На 4 — alert rules и runbooks. Пустой dashboard или debug exporter, который только печатает данные в stdout, не заменяют хранилища/доказательства из `contracts/observability.md`. +- Receiver: OTLP HTTP/protobuf, `0.0.0.0:4318`, только Compose network. +- Все pipelines: `memory_limiter` → `batch`. +- Metrics → Prometheus exporter `:9464`; process diagnostics `:8888`. +- Traces → Tempo `http://tempo:4318/v1/traces`. +- Logs → Loki native OTLP `http://loki:3100/otlp/v1/logs`. +- Ограниченные очереди 256 batches, retry не более 15s; Docker limit 256 MiB. +- Метрики остановленных SDK instances истекают через 20s, чтобы pool/capacity + не считались повторно после смены контейнеров. -Не публикуйте OTLP/metrics/административные ports в общую сеть без необходимости. В lab7 реализуйте TLS/mTLS по trust matrix; экспорт Authorization и message bodies запрещён. +API/worker экспортируют в Collector асинхронно и не зависят от его readiness. +Payloads не печатаются debug exporter-ом. Подробности и ограничения потерь — +в [REPORT.md](../../REPORT.md). + +Проверка: + +```sh +docker compose exec -T otel-collector /otelcol-contrib validate --config=/etc/otelcol/config.yaml +``` + +## Track 1 + +`collector-sampling10.yaml` отличается только traces processor: +`memory_limiter → probabilistic_sampler/track1 (10%, hash_seed=22) → batch`. +Логи и метрики сохраняются без sampling. Переключение: + +```sh +OTEL_COLLECTOR_CONFIG=./infra/otel/collector-sampling10.yaml docker compose up -d otel-collector +# Вернуть исходную конфигурацию: +OTEL_COLLECTOR_CONFIG=./infra/otel/collector.yaml docker compose up -d otel-collector +``` + +Пересоздание Collector сбрасывает его собственные counters: измерять delta только +внутри одного прогона. `otelcol_receiver_accepted_spans` отражает вход до sampling; +эффект 10% проверяется также через `otelcol_exporter_sent_spans`. +Полный эксперимент и автоматическое восстановление: `scripts/benchmark_telemetry.py`. diff --git a/infra/otel/collector-sampling10.yaml b/infra/otel/collector-sampling10.yaml new file mode 100644 index 0000000..559b626 --- /dev/null +++ b/infra/otel/collector-sampling10.yaml @@ -0,0 +1,67 @@ +# Track 1: sample traces only; metrics and logs remain at 100%. +receivers: + otlp: + protocols: + http: + endpoint: 0.0.0.0:4318 +processors: + memory_limiter: + check_interval: 1s + limit_mib: 192 + spike_limit_mib: 32 + probabilistic_sampler/track1: + hash_seed: 22 + sampling_percentage: 10 + batch: + timeout: 1s + send_batch_size: 256 + send_batch_max_size: 512 +exporters: + prometheus: + endpoint: 0.0.0.0:9464 + metric_expiration: 20s + resource_to_telemetry_conversion: + enabled: true + otlphttp/tempo: + endpoint: http://tempo:4318 + timeout: 2s + sending_queue: + enabled: true + num_consumers: 2 + queue_size: 256 + retry_on_failure: + enabled: true + initial_interval: 1s + max_interval: 5s + max_elapsed_time: 15s + otlphttp/loki: + endpoint: http://loki:3100/otlp + timeout: 2s + sending_queue: + enabled: true + num_consumers: 2 + queue_size: 256 + retry_on_failure: + enabled: true + initial_interval: 1s + max_interval: 5s + max_elapsed_time: 15s +service: + telemetry: + logs: + level: warn + metrics: + address: 0.0.0.0:8888 + pipelines: + traces: + receivers: [otlp] + processors: [memory_limiter, probabilistic_sampler/track1, batch] + exporters: [otlphttp/tempo] + metrics: + receivers: [otlp] + processors: [memory_limiter, batch] + exporters: [prometheus] + logs: + receivers: [otlp] + processors: [memory_limiter, batch] + exporters: [otlphttp/loki] diff --git a/infra/otel/collector.yaml b/infra/otel/collector.yaml new file mode 100644 index 0000000..524c2f4 --- /dev/null +++ b/infra/otel/collector.yaml @@ -0,0 +1,63 @@ +receivers: + otlp: + protocols: + http: + endpoint: 0.0.0.0:4318 +processors: + memory_limiter: + check_interval: 1s + limit_mib: 192 + spike_limit_mib: 32 + batch: + timeout: 1s + send_batch_size: 256 + send_batch_max_size: 512 +exporters: + prometheus: + endpoint: 0.0.0.0:9464 + metric_expiration: 20s + resource_to_telemetry_conversion: + enabled: true + otlphttp/tempo: + endpoint: http://tempo:4318 + timeout: 2s + sending_queue: + enabled: true + num_consumers: 2 + queue_size: 256 + retry_on_failure: + enabled: true + initial_interval: 1s + max_interval: 5s + max_elapsed_time: 15s + otlphttp/loki: + endpoint: http://loki:3100/otlp + timeout: 2s + sending_queue: + enabled: true + num_consumers: 2 + queue_size: 256 + retry_on_failure: + enabled: true + initial_interval: 1s + max_interval: 5s + max_elapsed_time: 15s +service: + telemetry: + logs: + level: warn + metrics: + address: 0.0.0.0:8888 + pipelines: + traces: + receivers: [otlp] + processors: [memory_limiter, batch] + exporters: [otlphttp/tempo] + metrics: + receivers: [otlp] + processors: [memory_limiter, batch] + exporters: [prometheus] + logs: + receivers: [otlp] + processors: [memory_limiter, batch] + exporters: [otlphttp/loki] diff --git a/infra/prometheus/alerts.yaml b/infra/prometheus/alerts.yaml new file mode 100644 index 0000000..05d6349 --- /dev/null +++ b/infra/prometheus/alerts.yaml @@ -0,0 +1,27 @@ +groups: + - name: messenger-slo + rules: + - alert: ApiHighErrorRate + expr: (sum(rate(http_server_requests_total{http_response_status_class="5xx"}[1m])) or vector(0)) / clamp_min(sum(rate(http_server_requests_total[1m])), 0.001) > 0.05 + for: 30s + labels: + severity: warning + annotations: + summary: API 5xx ratio above 5% for 30 seconds (1 minute window) + description: Check server spans, postgresql.pool.acquire and DB pool metrics. Runbook in REPORT.md. + - alert: QueueLagGrowing + expr: max(queue_oldest_age) > 30 and max(queue_depth) > 0 and max(delta(queue_oldest_age[1m])) > 0 + for: 30s + labels: + severity: warning + annotations: + summary: Durable backlog is ageing beyond 30 seconds + description: Check worker capacity/busy, worker logs and Redis/DB/S3 spans. Runbook in REPORT.md. + - alert: QueueObservationStale + expr: time() - max(queue_observation_timestamp) > 30 or absent(queue_observation_timestamp) + for: 30s + labels: + severity: warning + annotations: + summary: Queue observer unavailable + description: Queue values may be stale; check PostgreSQL and API observer logs. diff --git a/infra/prometheus/prometheus.yaml b/infra/prometheus/prometheus.yaml new file mode 100644 index 0000000..48e36b8 --- /dev/null +++ b/infra/prometheus/prometheus.yaml @@ -0,0 +1,11 @@ +global: + scrape_interval: 5s + evaluation_interval: 5s +rule_files: [/etc/prometheus/alerts.yaml] +scrape_configs: + - job_name: messenger + static_configs: + - targets: [otel-collector:9464] + - job_name: collector + static_configs: + - targets: [otel-collector:8888] diff --git a/infra/tempo/tempo.yaml b/infra/tempo/tempo.yaml new file mode 100644 index 0000000..71eda97 --- /dev/null +++ b/infra/tempo/tempo.yaml @@ -0,0 +1,22 @@ +server: + http_listen_port: 3200 +distributor: + receivers: + otlp: + protocols: + http: + endpoint: 0.0.0.0:4318 +ingester: + max_block_duration: 5m +compactor: + compaction: + block_retention: 168h +storage: + trace: + backend: local + wal: + path: /var/tempo/wal + local: + path: /var/tempo/blocks +usage_report: + reporting_enabled: false diff --git a/lb/nginx.conf.template b/lb/nginx.conf.template new file mode 100644 index 0000000..ac64896 --- /dev/null +++ b/lb/nginx.conf.template @@ -0,0 +1,44 @@ +worker_processes ${NGINX_WORKERS}; +error_log /dev/stderr warn; +pid /tmp/nginx.pid; + +events { + worker_connections 1024; +} + +http { + access_log off; + resolver 127.0.0.11 valid=2s ipv6=off; + resolver_timeout 2s; + + upstream api_upstream { + zone api_upstream 64k; + server api:8080 resolve max_fails=1 fail_timeout=5s; + keepalive 32; + } + + server { + listen 8080; + + # Lab4 attachments ≤10 MiB; allow a little headroom for multipart/headers. + client_max_body_size 12m; + client_body_timeout 60s; + + location / { + proxy_pass http://api_upstream; + proxy_http_version 1.1; + proxy_set_header Connection ""; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Host $host; + proxy_next_upstream error timeout http_502 http_503 http_504; + proxy_next_upstream_tries 2; + proxy_next_upstream_timeout 10s; + proxy_connect_timeout 2s; + # Uploads/downloads of ≤10 MiB need longer than JSON chat traffic. + proxy_read_timeout 120s; + proxy_send_timeout 120s; + } + } +} diff --git a/migrations/001_init.sql b/migrations/001_init.sql new file mode 100644 index 0000000..6c67477 --- /dev/null +++ b/migrations/001_init.sql @@ -0,0 +1,33 @@ +CREATE TABLE users ( + id uuid PRIMARY KEY, + username text NOT NULL UNIQUE + CHECK (username ~ '^[a-z0-9_]{3,32}$'), + display_name text NOT NULL, + password_hash text NOT NULL, + created_at timestamptz NOT NULL +); + +CREATE TABLE chats ( + id uuid PRIMARY KEY, + title text NOT NULL, + created_at timestamptz NOT NULL +); + +CREATE TABLE chat_members ( + chat_id uuid NOT NULL REFERENCES chats(id) ON DELETE CASCADE, + user_id uuid NOT NULL REFERENCES users(id) ON DELETE CASCADE, + PRIMARY KEY (chat_id, user_id) +); + +CREATE INDEX chat_members_user_idx ON chat_members(user_id); + +CREATE TABLE messages ( + id uuid PRIMARY KEY, + chat_id uuid NOT NULL REFERENCES chats(id) ON DELETE CASCADE, + sender_id uuid NOT NULL REFERENCES users(id), + text text NOT NULL, + created_at timestamptz NOT NULL +); + +CREATE INDEX messages_chat_keyset_idx + ON messages (chat_id, created_at, id); \ No newline at end of file diff --git a/migrations/002_sessions.sql b/migrations/002_sessions.sql new file mode 100644 index 0000000..2ee4985 --- /dev/null +++ b/migrations/002_sessions.sql @@ -0,0 +1,6 @@ +CREATE TABLE sessions ( + token text PRIMARY KEY, + user_id uuid NOT NULL REFERENCES users(id) ON DELETE CASCADE, + expires_at timestamptz NOT NULL +); +CREATE INDEX sessions_expires_at_idx ON sessions (expires_at); \ No newline at end of file diff --git a/migrations/003_idempotency.sql b/migrations/003_idempotency.sql new file mode 100644 index 0000000..2c84707 --- /dev/null +++ b/migrations/003_idempotency.sql @@ -0,0 +1,11 @@ +CREATE TABLE idempotency_keys ( + user_id uuid NOT NULL REFERENCES users(id) ON DELETE CASCADE, + chat_id uuid NOT NULL REFERENCES chats(id) ON DELETE CASCADE, + key text NOT NULL CHECK (key ~ '^[A-Za-z0-9._:-]{1,128}$'), + request_hash text NOT NULL, + message_id uuid NOT NULL REFERENCES messages(id) ON DELETE CASCADE, + created_at timestamptz NOT NULL DEFAULT now(), + PRIMARY KEY (user_id, chat_id, key) +); + +CREATE INDEX idempotency_keys_created_at_idx ON idempotency_keys (created_at); \ No newline at end of file diff --git a/migrations/004_attachments.sql b/migrations/004_attachments.sql new file mode 100644 index 0000000..1044693 --- /dev/null +++ b/migrations/004_attachments.sql @@ -0,0 +1,22 @@ +CREATE TABLE attachments ( + id uuid PRIMARY KEY, + chat_id uuid NOT NULL REFERENCES chats(id) ON DELETE CASCADE, + owner_id uuid NOT NULL REFERENCES users(id) ON DELETE CASCADE, + filename text NOT NULL + CHECK (char_length(filename) BETWEEN 1 AND 255), + content_type text NOT NULL + CHECK (content_type IN ('image/png', 'image/jpeg')), + size_bytes integer NOT NULL + CHECK (size_bytes >= 1 AND size_bytes <= 10485760), + sha256 text NOT NULL + CHECK (sha256 ~ '^[a-f0-9]{64}$'), + status text NOT NULL + CHECK (status IN ('ready')), + s3_key text NOT NULL UNIQUE, + error_code text NULL, + created_at timestamptz NOT NULL, + updated_at timestamptz NOT NULL +); + +CREATE INDEX attachments_chat_id_idx ON attachments (chat_id); +CREATE INDEX attachments_created_at_idx ON attachments (created_at); diff --git a/migrations/005_message_attachments.sql b/migrations/005_message_attachments.sql new file mode 100644 index 0000000..d1fa90a --- /dev/null +++ b/migrations/005_message_attachments.sql @@ -0,0 +1,12 @@ +CREATE TABLE message_attachments ( + message_id uuid NOT NULL REFERENCES messages(id) ON DELETE CASCADE, + attachment_id uuid NOT NULL REFERENCES attachments(id), + position integer NOT NULL CHECK (position >= 0 AND position < 10), + PRIMARY KEY (message_id, attachment_id) +); + +CREATE INDEX message_attachments_attachment_idx + ON message_attachments (attachment_id); + +CREATE UNIQUE INDEX message_attachments_order_idx + ON message_attachments (message_id, position); diff --git a/migrations/006_direct_uploads.sql b/migrations/006_direct_uploads.sql new file mode 100644 index 0000000..2a97a7d --- /dev/null +++ b/migrations/006_direct_uploads.sql @@ -0,0 +1,26 @@ +-- Track 1 (grade 5): pending direct/presigned upload sessions. +-- Attachment rows stay status=ready only; incomplete uploads live here. +CREATE TABLE direct_uploads ( + id uuid PRIMARY KEY, + chat_id uuid NOT NULL REFERENCES chats(id) ON DELETE CASCADE, + owner_id uuid NOT NULL REFERENCES users(id) ON DELETE CASCADE, + filename text NOT NULL + CHECK (char_length(filename) BETWEEN 1 AND 255), + content_type text NOT NULL + CHECK (content_type IN ('image/png', 'image/jpeg')), + expected_size integer NOT NULL + CHECK (expected_size >= 1 AND expected_size <= 10485760), + expected_sha256 text NOT NULL + CHECK (expected_sha256 ~ '^[a-f0-9]{64}$'), + s3_key text NOT NULL UNIQUE, + status text NOT NULL + CHECK (status IN ('pending', 'completed', 'aborted', 'expired')), + attachment_id uuid NULL REFERENCES attachments(id), + expires_at timestamptz NOT NULL, + created_at timestamptz NOT NULL, + updated_at timestamptz NOT NULL +); + +CREATE INDEX direct_uploads_status_expires_idx + ON direct_uploads (status, expires_at); +CREATE INDEX direct_uploads_owner_idx ON direct_uploads (owner_id); diff --git a/migrations/007_direct_upload_staging.sql b/migrations/007_direct_upload_staging.sql new file mode 100644 index 0000000..cd3d422 --- /dev/null +++ b/migrations/007_direct_upload_staging.sql @@ -0,0 +1,12 @@ +-- Track 1: presigned PUT lands in staging/; complete copies to attachments/. +-- Existing rows keep the old key as staging so in-flight sessions still resolve. +ALTER TABLE direct_uploads ADD COLUMN staging_key text; + +UPDATE direct_uploads + SET staging_key = s3_key + WHERE staging_key IS NULL; + +ALTER TABLE direct_uploads ALTER COLUMN staging_key SET NOT NULL; + +ALTER TABLE direct_uploads + ADD CONSTRAINT direct_uploads_staging_key_key UNIQUE (staging_key); diff --git a/migrations/008_async_attachments.sql b/migrations/008_async_attachments.sql new file mode 100644 index 0000000..13abf2e --- /dev/null +++ b/migrations/008_async_attachments.sql @@ -0,0 +1,21 @@ +-- Keep existing lab4 originals ready; new jobs set queued explicitly. +ALTER TABLE attachments DROP CONSTRAINT attachments_status_check; +ALTER TABLE attachments + ADD CONSTRAINT attachments_status_check + CHECK (status IN ('queued', 'processing', 'ready', 'failed')), + ADD COLUMN variants jsonb NOT NULL DEFAULT '[]'::jsonb + CHECK (jsonb_typeof(variants) = 'array'); + +CREATE TABLE jobs ( + id uuid PRIMARY KEY, + attachment_id uuid NOT NULL UNIQUE + REFERENCES attachments(id) ON DELETE CASCADE, + status text NOT NULL DEFAULT 'queued' + CHECK (status IN ('queued', 'processing', 'ready', 'failed')), + retries integer NOT NULL DEFAULT 0 CHECK (retries >= 0), + error_code text, + created_at timestamptz NOT NULL DEFAULT now(), + updated_at timestamptz NOT NULL DEFAULT now() +); + +CREATE INDEX jobs_status_created_at_idx ON jobs (status, created_at); diff --git a/migrations/009_outbox.sql b/migrations/009_outbox.sql new file mode 100644 index 0000000..856ca17 --- /dev/null +++ b/migrations/009_outbox.sql @@ -0,0 +1,20 @@ +ALTER TABLE jobs ADD COLUMN next_attempt_at timestamptz NOT NULL DEFAULT now(); + +CREATE TABLE outbox ( + id bigserial PRIMARY KEY, + payload jsonb NOT NULL CHECK (jsonb_typeof(payload) = 'object'), + published boolean NOT NULL DEFAULT false, + created_at timestamptz NOT NULL DEFAULT now(), + available_at timestamptz NOT NULL DEFAULT now() +); + +CREATE INDEX outbox_pending_idx ON outbox (available_at, id) WHERE NOT published; + +-- Upgrade jobs accepted before outbox existed; duplicates are safe. +INSERT INTO outbox (payload, available_at) +SELECT jsonb_build_object( + 'schema_version', 1, 'type', 'attachment.process.v1', + 'job_id', id::text, 'attachment_id', attachment_id::text, + 'pipeline_version', 1, 'attempt', retries + 1, + 'created_at', to_char(created_at AT TIME ZONE 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS"Z"') +), next_attempt_at FROM jobs WHERE status IN ('queued', 'processing'); diff --git a/migrations/010_staging_and_replay.sql b/migrations/010_staging_and_replay.sql new file mode 100644 index 0000000..9402467 --- /dev/null +++ b/migrations/010_staging_and_replay.sql @@ -0,0 +1,22 @@ +ALTER TABLE attachments + ADD COLUMN staging_key text, + ADD COLUMN staging_cleaned_at timestamptz; + +UPDATE attachments a SET staging_key='staging/' || a.chat_id::text || '/' || a.id::text +WHERE EXISTS (SELECT 1 FROM jobs j WHERE j.attachment_id=a.id); + +CREATE INDEX attachments_staging_cleanup_idx ON attachments(status, updated_at) +WHERE staging_key IS NOT NULL AND staging_cleaned_at IS NULL; + +ALTER TABLE jobs ADD COLUMN retry_base integer NOT NULL DEFAULT 0 + CHECK (retry_base >= 0 AND retry_base <= retries); + +CREATE TABLE job_replays ( + id bigserial PRIMARY KEY, + job_id uuid NOT NULL REFERENCES jobs(id), + actor text NOT NULL CHECK (char_length(actor) BETWEEN 1 AND 100), + reason text NOT NULL CHECK (char_length(reason) BETWEEN 1 AND 500), + previous_error_code text, + retries_before integer NOT NULL CHECK (retries_before >= 0), + created_at timestamptz NOT NULL DEFAULT now() +); diff --git a/migrations/011_versioned_pipeline.sql b/migrations/011_versioned_pipeline.sql new file mode 100644 index 0000000..2350d04 --- /dev/null +++ b/migrations/011_versioned_pipeline.sql @@ -0,0 +1,41 @@ +ALTER TABLE attachments + ADD COLUMN pipeline_version integer NOT NULL DEFAULT 1 CHECK (pipeline_version > 0), + ADD COLUMN published_version integer CHECK (published_version > 0), + ADD CONSTRAINT attachments_version_order CHECK (published_version <= pipeline_version); +UPDATE attachments SET published_version=1 WHERE status='ready'; + +ALTER TABLE jobs + ADD COLUMN pipeline_version integer NOT NULL DEFAULT 1 CHECK (pipeline_version > 0), + ADD COLUMN source_key text; +UPDATE jobs j SET source_key=a.s3_key FROM attachments a WHERE a.id=j.attachment_id; +ALTER TABLE jobs ALTER COLUMN source_key SET NOT NULL; +ALTER TABLE jobs DROP CONSTRAINT jobs_attachment_id_key; +ALTER TABLE jobs ADD CONSTRAINT jobs_attachment_version_key UNIQUE (attachment_id, pipeline_version); +ALTER TABLE jobs DROP CONSTRAINT jobs_status_check; +ALTER TABLE jobs ADD CONSTRAINT jobs_status_check + CHECK (status IN ('queued','processing','ready','failed','superseded')); + +-- One immutable logical result per (attachment, pipeline version). +CREATE TABLE attachment_results ( + attachment_id uuid NOT NULL REFERENCES attachments(id) ON DELETE CASCADE, + pipeline_version integer NOT NULL CHECK (pipeline_version > 0), + job_id uuid UNIQUE REFERENCES jobs(id), + original_key text NOT NULL, + variants jsonb NOT NULL CHECK (jsonb_typeof(variants)='array'), + created_at timestamptz NOT NULL DEFAULT now(), + PRIMARY KEY (attachment_id, pipeline_version) +); +INSERT INTO attachment_results(attachment_id,pipeline_version,job_id,original_key,variants) +SELECT a.id,1,j.id,a.s3_key,a.variants FROM attachments a +LEFT JOIN jobs j ON j.attachment_id=a.id AND j.pipeline_version=1 WHERE a.status='ready'; + +CREATE TABLE pipeline_requests ( + id bigserial PRIMARY KEY, + attachment_id uuid NOT NULL REFERENCES attachments(id), + pipeline_version integer NOT NULL CHECK (pipeline_version > 0), + job_id uuid NOT NULL UNIQUE REFERENCES jobs(id), + actor text NOT NULL CHECK (char_length(actor) BETWEEN 1 AND 100), + reason text NOT NULL CHECK (char_length(reason) BETWEEN 1 AND 500), + created_at timestamptz NOT NULL DEFAULT now(), + UNIQUE(attachment_id,pipeline_version) +); diff --git a/scripts/benchmark_telemetry.py b/scripts/benchmark_telemetry.py new file mode 100644 index 0000000..7ad7577 --- /dev/null +++ b/scripts/benchmark_telemetry.py @@ -0,0 +1,461 @@ +#!/usr/bin/env python3 +"""Track 1: fixed-count attachment benchmark; stdlib only, no credentials in evidence. + +Creates synthetic durable data. Never deletes volumes or changes business code. +Always restores SDK on / Collector 100% when the experiment finishes or fails. +""" +import argparse +import base64 +from concurrent.futures import ThreadPoolExecutor +from datetime import datetime, timezone +import hashlib +import json +import math +import os +from pathlib import Path +import platform +import re +import shlex +import signal +import statistics +import subprocess +import sys +import threading +import time +import urllib.error +import urllib.parse +import urllib.request +import uuid + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT / 'tests')) +from client import Client, Failure + +VARIANTS = {'A': ('Off', True, 'collector.yaml'), + 'B': ('On, SDK 100% / Collector 100%', False, 'collector.yaml'), + 'C': ('On, SDK 100% / Collector 10%', False, 'collector-sampling10.yaml')} + + +def percentile(values, quantile): + return sorted(values)[max(0, math.ceil(len(values) * quantile) - 1)] + + +def memory_mib(text): + number, unit = re.fullmatch(r'([\d.]+)\s*([kKMGT]?i?B)', text.strip()).groups() + factors = {'B': 1, 'kB': 1000, 'MB': 1000**2, 'GB': 1000**3, 'TB': 1000**4, + 'KiB': 1024, 'MiB': 1024**2, 'GiB': 1024**3, 'TiB': 1024**4} + return float(number) * factors[unit] / 1024**2 + + +def parse_metrics(text): + result = {} + for line in text.splitlines(): + if not line or line.startswith('#'): + continue + name = line.split('{', 1)[0].split(' ', 1)[0] + result[name] = result.get(name, 0) + float(line.rsplit(' ', 1)[1]) + return result + + +class Bench: + def __init__(self, args): + self.args = args + self.compose = shlex.split(args.compose) + self.docker = shlex.split(args.docker) + self.output = ROOT / args.output + self.output.mkdir(parents=True, exist_ok=True) + self.content = (ROOT / 'tests/fixtures/sample.png').read_bytes() + self.report = {'started_utc': datetime.now(timezone.utc).isoformat(), + 'method': {'requests': args.requests, 'concurrency': args.concurrency, + 'repetitions': args.repetitions, 'warmup': args.warmup, + 'fixture_bytes': len(self.content), + 'fixture_sha256': hashlib.sha256(self.content).hexdigest(), + 'stats_source': 'docker stats stream; 100% CPU = one logical core', + 'cpu_ram_window': 'uploads plus complete worker drain, excluding final export wait', + 'percentile': 'nearest rank; HTTP upload acceptance, client wall clock', + 'config_sha256': {name: hashlib.sha256((ROOT/'infra/otel'/name).read_bytes()).hexdigest() for name in ('collector.yaml', 'collector-sampling10.yaml')}, + 'order': 'ABC / BCA / CAB (rotated each repetition)'}, + 'host': {'machine': platform.machine(), 'logical_cpus': os.cpu_count(), + 'cpu_model': next((line.split(':',1)[1].strip() for line in Path('/proc/cpuinfo').read_text().splitlines() if line.startswith('model name')), 'unknown'), + 'memory_kib': int(next(line.split()[1] for line in Path('/proc/meminfo').read_text().splitlines() if line.startswith('MemTotal:')))}, + 'trials': []} + + def run(self, cmd, *, env=None, data=None): + completed = subprocess.run(cmd, cwd=ROOT, env=env, input=data, text=True, + stdout=subprocess.PIPE, stderr=subprocess.PIPE) + if completed.returncode: + # Subprocess output can contain connection credentials; do not forward it. + raise RuntimeError('Command failed: ' + Path(cmd[0]).name + ' ' + cmd[1] + + ' (exit ' + str(completed.returncode) + ')') + return completed.stdout + + def compose_run(self, *args, **kwargs): + return self.run(self.compose + list(args), **kwargs) + + def sql(self, sql): + return self.compose_run('exec', '-T', 'db', 'sh', '-c', + 'psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -d "$POSTGRES_DB" -tA', data=sql+'\n').strip() + + def wait_jobs(self, chat=None, expected=None): + deadline = time.monotonic() + self.args.drain_timeout + while time.monotonic() < deadline: + if chat: + uuid.UUID(chat) # Only synthetic UUIDs may enter the query. + row = self.sql("SELECT count(*),count(*) FILTER (WHERE j.status='ready')," + "count(*) FILTER (WHERE j.status='failed') FROM jobs j JOIN attachments a " + "ON a.id=j.attachment_id WHERE a.chat_id='" + chat + "'::uuid;") + total, ready, failed = map(int, row.split('|')) + if failed: + raise RuntimeError('Worker produced failed benchmark jobs') + if total == expected and ready == expected: + return + elif int(self.sql("SELECT count(*) FROM jobs WHERE status IN ('queued','processing');")) == 0: + return + time.sleep(1) + raise RuntimeError('Worker backlog did not drain; evidence is incomplete') + + def configure(self, variant): + _, disabled, filename = VARIANTS[variant] + env = dict(os.environ, OTEL_SDK_DISABLED=str(disabled).lower(), + OTEL_COLLECTOR_CONFIG=str(ROOT / 'infra/otel' / filename)) + self.compose_run('config', '--quiet', env=env) + self.compose_run('up', '-d', '--no-deps', '--force-recreate', '--wait', + '--wait-timeout', '120', 'otel-collector', 'api', 'worker', env=env) + self.compose_run('exec', '-T', 'otel-collector', '/otelcol-contrib', 'validate', + '--config=/etc/otelcol/config.yaml', env=env) + deadline = time.monotonic() + 60 + while True: + try: + Client(self.args.base_url).call('GET', '/health/ready', schema='Health') + self.collector() + return + except (Failure, RuntimeError): + if time.monotonic() >= deadline: + raise RuntimeError('API/Collector did not become ready') from None + time.sleep(1) + + def collector(self): + return parse_metrics(self.compose_run('exec', '-T', '--index', '1', 'api', + 'curl', '-fsS', '--max-time', '5', 'http://otel-collector:8888/metrics')) + + def upload(self, count, actor, chat): + barrier = threading.Barrier(self.args.concurrency) + def work(slot): + client = Client(self.args.base_url, timeout=60) + results = [] + barrier.wait() + for index in range(slot, count, self.args.concurrency): + started = time.monotonic() + try: + # No supplied traceparent: the SDK's AlwaysOn root policy is exercised. + client.call('POST', '/api/v1/chats/' + chat['id'] + '/attachments?filename=sample.png', + expected=202, actor=actor, raw=self.content, + headers={'Content-Type': 'image/png'}, schema='Attachment') + results.append((time.monotonic()-started, True)) + except Failure: + results.append((time.monotonic()-started, False)) + return results + start = time.monotonic() + with ThreadPoolExecutor(max_workers=self.args.concurrency) as pool: + rows = [r for batch in pool.map(work, range(self.args.concurrency)) for r in batch] + return rows, time.monotonic()-start + + def sample_stats(self, ids, stop, rows, errors): + process = subprocess.Popen(self.docker + ['stats', '--format', '{{json .}}'] + list(ids), + stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True) + def terminate(): + stop.wait() + process.terminate() + closer = threading.Thread(target=terminate, daemon=True) + closer.start() + try: + for line in process.stdout: + clean = re.sub(r'\x1b\[[0-?]*[ -/]*[@-~]', '', line).strip() + if not clean: + continue + if stop.is_set() and not clean.endswith('}'): + continue + obj = json.loads(clean) + ident = obj['ID'] + if ident not in ids: + ident = next((key for key in ids if key.startswith(ident)), '') + if ident: + rows.append({'t': time.monotonic(), 'container': ident, 'service': ids[ident], + 'cpu_percent': float(obj['CPUPerc'].rstrip('%')), + 'ram_mib': memory_mib(obj['MemUsage'].split('/')[0])}) + if not stop.is_set(): + errors.append('docker stats stopped unexpectedly') + except Exception as error: + errors.append(type(error).__name__ + ': ' + str(error)) + finally: + stop.set() + process.terminate() + process.wait(timeout=10) + closer.join(timeout=10) + + def trial(self, variant, repetition): + print(f'Preparing {variant}, repetition {repetition}', flush=True) + self.wait_jobs() + self.configure(variant) + client = Client(self.args.base_url) + alice, _, _, chat = client.bootstrap() + warm, _ = self.upload(self.args.warmup, alice, chat) + if not all(ok for _, ok in warm): + raise RuntimeError('Warm-up HTTP errors') + self.wait_jobs(chat['id'], self.args.warmup) + time.sleep(8) # SDK reader/processor + Collector batch settle before baseline. + ids = {} + for service in ('api', 'worker'): + for ident in self.compose_run('ps', '-q', service).split(): + ids[ident] = service + self.report['container_limits'] = {service: self.run(self.docker + ['inspect', '--format', '{{.Config.Image}}|{{.Image}}|{{.HostConfig.NanoCpus}}|{{.HostConfig.Memory}}', ident]).strip() for ident, service in ids.items()} + if sum(s == 'api' for s in ids.values()) != 2 or sum(s == 'worker' for s in ids.values()) != 1: + raise RuntimeError('Benchmark requires two API replicas and one worker') + rows, errors, stop = [], [], threading.Event() + sampler = threading.Thread(target=self.sample_stats, args=(ids, stop, rows, errors)) + sampler.start() + try: + time.sleep(3) + before = self.collector() + start = time.monotonic() + measurements, http_seconds = self.upload(self.args.requests, alice, chat) + if any(not ok for _, ok in measurements): + raise RuntimeError('HTTP upload errors invalidate the comparison') + self.wait_jobs(chat['id'], self.args.warmup+self.args.requests) + end = time.monotonic() + finally: + stop.set() + sampler.join(timeout=15) + if sampler.is_alive() or errors: + raise RuntimeError('docker stats sampling failed: ' + ', '.join(errors)) + # Export is asynchronous. Wait for SDK batches and for backend queues to empty. + time.sleep(3) + after = self.collector() + for _ in range(10): + if after.get('otelcol_exporter_queue_size', 0) == 0: + break + time.sleep(1) + after = self.collector() + metric_seconds = time.monotonic()-start + def delta(name): + return after.get(name, 0)-before.get(name, 0) + samples = [r for r in rows if start <= r['t'] <= end] + resource = {} + for service in ('api', 'worker'): + per_container = [] + for ident, kind in ids.items(): + if kind != service: + continue + series = [r for r in samples if r['container'] == ident] + if len(series) < 3: + raise RuntimeError('Too few docker stats samples; use more requests') + per_container.append({'cpu_percent_mean': statistics.mean(r['cpu_percent'] for r in series), + 'ram_mib_mean': statistics.mean(r['ram_mib'] for r in series), + 'ram_mib_max': max(r['ram_mib'] for r in series), 'samples': len(series)}) + resource[service] = {key: sum(r[key] for r in per_container) + for key in ('cpu_percent_mean', 'ram_mib_mean', 'ram_mib_max', 'samples')} + resource[service]['cpu_seconds_per_job_estimate'] = resource[service]['cpu_percent_mean']/100*(end-start)/self.args.requests + good = [seconds*1000 for seconds, ok in measurements if ok] + failures = sum(not ok for _, ok in measurements) + counters = {name: delta(name) for name in ( + 'otelcol_receiver_accepted_spans', 'otelcol_exporter_sent_spans', + 'otelcol_receiver_refused_spans', 'otelcol_exporter_send_failed_spans', + 'otelcol_receiver_accepted_log_records', 'otelcol_receiver_accepted_metric_points')} + if failures or not good or counters['otelcol_receiver_refused_spans'] or counters['otelcol_exporter_send_failed_spans']: + raise RuntimeError('HTTP or Collector failures invalidate the comparison') + if variant == 'A' and counters['otelcol_receiver_accepted_spans'] != 0: + raise RuntimeError('Telemetry Off still exported spans') + retention = counters['otelcol_exporter_sent_spans']/max(counters['otelcol_receiver_accepted_spans'], 1) + if variant == 'B' and not 0.95 <= retention <= 1.05: + raise RuntimeError('100% trace export did not match receiver ingest') + if variant == 'C' and not 0.04 <= retention <= 0.18: + raise RuntimeError('Collector sampling did not reduce export to approximately 10%') + result = {'variant': variant, 'repetition': repetition, 'completed_utc': datetime.now(timezone.utc).isoformat(), + 'successful_uploads': len(good), 'http_errors': failures, 'http_seconds': http_seconds, + 'pipeline_seconds': end-start, 'collector_window_seconds': metric_seconds, + 'rps': len(good)/http_seconds, 'latency_mean_ms': statistics.mean(good), + 'latency_p50_ms': percentile(good, .5), 'latency_p99_ms': percentile(good, .99), + 'latencies_ms': good, + 'resources': resource, 'collector_deltas': counters, + 'ingest_spans_per_second': counters['otelcol_receiver_accepted_spans']/metric_seconds, + 'tempo_spans_per_second': counters['otelcol_exporter_sent_spans']/metric_seconds, + 'trace_retention': retention, 'stats_samples': [{**r, 't': r['t']-start} for r in samples]} + self.report['trials'].append(result) + self.save() + print(f'{variant}/{repetition}: {result["rps"]:.2f} RPS, p99 {result["latency_p99_ms"]:.2f} ms, ' + f'accepted {counters["otelcol_receiver_accepted_spans"]:.0f}, exported {counters["otelcol_exporter_sent_spans"]:.0f}', flush=True) + + def save(self): + (self.output / 'track1-benchmark.json').write_text(json.dumps(self.report, indent=2)+'\n') + + def write_summary(self): + def med(variant, getter): + return statistics.median(getter(t) for t in self.report['trials'] if t['variant'] == variant) + lines = ['# Track 1: Цена наблюдаемости', '', + 'Результат: **' + self.report.get('result', 'INCOMPLETE') + '**. Начало UTC: ' + self.report['started_utc'] + '.', '', + f"По {self.args.repetitions} прогона каждого варианта, {self.args.requests} POST uploads, concurrency {self.args.concurrency}, warm-up {self.args.warmup} uploads.", + 'Порядок ABC / BCA / CAB. PNG: ' + str(len(self.content)) + ' bytes. Каждый job дошёл до ready; очередь между прогонами пуста.', + 'Таблица содержит медианы результатов прогонов, включая медиану индивидуальных p50/p99 (не pooled percentile).', + 'RPS и latency — HTTP 202 acceptance. CPU/RAM — средние docker stats за upload + полный drain worker; API = сумма двух реплик.', + 'CPU: 100% = одно логическое ядро. RAM: MiB; это Docker working set, не peak RSS. Spans/s = delta accepted_spans / окно ingest, включающее финальный flush.', '', + '| Настройка | RPS | p50 latency, ms | p99 latency, ms | CPU API | RAM API, MiB | CPU Worker | RAM Worker, MiB | Spans/sec (ingest) |', + '|---|---:|---:|---:|---:|---:|---:|---:|---:|'] + for v in 'ABC': + values = [med(v, lambda t: t[k]) for k in ('rps', 'latency_p50_ms', 'latency_p99_ms')] + api = [med(v, lambda t: t['resources']['api'][k]) for k in ('cpu_percent_mean', 'ram_mib_mean')] + worker = [med(v, lambda t: t['resources']['worker'][k]) for k in ('cpu_percent_mean', 'ram_mib_mean')] + lines.append(f'| {v}: {VARIANTS[v][0]} | {values[0]:.2f} | {values[1]:.2f} | {values[2]:.2f} | {api[0]:.2f}% | {api[1]:.2f} | {worker[0]:.2f}% | {worker[1]:.2f} | {med(v, lambda t:t["ingest_spans_per_second"]):.2f} |') + lines += ['', '| Настройка | Mean HTTP, ms | Pipeline, s | Accepted spans | Tempo sent spans | Tempo spans/s | CPU API, ms/job* | CPU Worker, ms/job* |', + '|---|---:|---:|---:|---:|---:|---:|---:|'] + for v in 'ABC': + lines.append(f'| {v} | {med(v, lambda t:t["latency_mean_ms"]):.2f} | {med(v, lambda t:t["pipeline_seconds"]):.2f} | {med(v, lambda t:t["collector_deltas"]["otelcol_receiver_accepted_spans"]):.0f} | {med(v, lambda t:t["collector_deltas"]["otelcol_exporter_sent_spans"]):.0f} | {med(v, lambda t:t["tempo_spans_per_second"]):.2f} | {1000*med(v, lambda t:t["resources"]["api"]["cpu_seconds_per_job_estimate"]):.2f} | {1000*med(v, lambda t:t["resources"]["worker"]["cpu_seconds_per_job_estimate"]):.2f} |') + lines += ['', '*CPU ms/job — оценка по среднему docker stats CPU% и длительности pipeline, не аппаратный профиль CPU.', + 'Accepted spans — вход в Collector; sampling в C выполняется после receiver и не уменьшает стоимость SDK/OTLP ingest. Это количества spans, не bytes.', + 'В C логи и метрики остаются на 100%; отношение sent/accepted измеряет намеренное сокращение trace export.', '', + '| Прогон | RPS | mean HTTP, ms | p99, ms | Pipeline, s | Stats samples API / Worker | Refused / failed export spans |', + '|---|---:|---:|---:|---:|---:|---:|'] + for t in self.report['trials']: + lines.append(f'| {t["variant"]}/{t["repetition"]} | {t["rps"]:.2f} | {t["latency_mean_ms"]:.2f} | {t["latency_p99_ms"]:.2f} | {t["pipeline_seconds"]:.2f} | {t["resources"]["api"]["samples"]} / {t["resources"]["worker"]["samples"]} | {t["collector_deltas"]["otelcol_receiver_refused_spans"]:.0f} / {t["collector_deltas"]["otelcol_exporter_send_failed_spans"]:.0f} |') + if all('sdk_diagnostic_audit' in t for t in self.report['trials']): + starts = sorted({t['sdk_diagnostic_audit']['warning_error_start'] for t in self.report['trials'] if t['sdk_diagnostic_audit']['warning_error_start'] is not None}) + deltas = sorted({t['sdk_diagnostic_audit']['warning_error_delta'] for t in self.report['trials'] if t['sdk_diagnostic_audit']['warning_error_delta'] is not None}) + drops = self.report.get('sdk_diagnostic_audit', {}).get('span_queue_drop_max_during_experiment') + lines += ['', f'SDK audit: delta warning/error diagnostics в on-окнах: {deltas}; значения перед началом окон: {starts}. Startup/reconfiguration не входит в steady-state замер.', + f'Максимум telemetry_sdk_dropped_spans в интервале эксперимента: {drops}. Это счётчик переполнения span batch queue, не точный аудит всех возможных потерь SDK.'] + probe = self.report.get('error_probe', {}) + lines += ['', 'Отдельный synthetic ERROR probe (вне замеров API): ' + json.dumps(probe, ensure_ascii=False) + '.', '', + '## Воспроизведение', '', '```sh', + 'python3 scripts/benchmark_telemetry.py --requests 1000 --concurrency 4 --repetitions 3', '```', '', + 'Если Docker Snap не находит Compose plugin, передать --compose /path/to/docker-compose --docker /path/to/docker.', + 'Скрипт проверяет 2 API + 1 worker, завершение всех jobs, отсутствие HTTP/Collector ошибок и фактический процент экспорта.', + 'В finally восстанавливаются SDK on и исходный Collector 100%. Данные/volumes не удаляются.', '', + '## Ограничения', '', + 'Closed-loop, один хост, 3 повтора, фоновые health/outbox spans включены. Размер БД/S3 растёт; порядок вариантов ротируется, новых чатов и файлов поровну.', + 'Warm-up не устраняет весь cache/thermal/I/O шум. Относительные CPU/RAM различия — наблюдения этой конфигурации, не универсальная надбавка 20–40%.', + 'Docker CPU/RAM и клиентская latency не изолируют стоимость SDK от общего давления Collector/backends на тот же хост.', + 'Приватные payloads, пароли и токены в evidence не записываются. Полные sanitized samples/latencies и hardware/limits: track1-benchmark.json.'] + (self.output/'track1-benchmark.md').write_text('\n'.join(lines)+'\n') + + def audit_sdk(self): + # Read the same externally scraped diagnostics for each trial's own SDK instances. + def query(expr, timestamp): + url = self.args.prometheus_url + '/api/v1/query?' + urllib.parse.urlencode({'query': expr, 'time': timestamp}) + with urllib.request.urlopen(url, timeout=15) as response: + rows = json.load(response)['data']['result'] + return float(rows[0]['value'][1]) if rows else None + end = 0 + for trial in self.report['trials']: + ids = '|'.join(sorted({s['container'][:12] for s in trial['stats_samples']})) + end = datetime.fromisoformat(trial['completed_utc']).timestamp() + start = end-trial['collector_window_seconds'] + expr = 'sum(telemetry_sdk_errors{service_instance_id=~"' + ids + '"})' + a, b = query(expr, start), query(expr, end) + trial['sdk_diagnostic_audit'] = {'source': 'Prometheus instant queries at trial start/end, restricted to trial container hostnames', + 'warning_error_start': a, 'warning_error_end': b, + 'warning_error_delta': b-a if a is not None and b is not None else None} + seconds = math.ceil(end-datetime.fromisoformat(self.report['started_utc']).timestamp()) + self.report['sdk_diagnostic_audit'] = { + 'span_queue_drop_max_during_experiment': query(f'max(max_over_time(telemetry_sdk_dropped_spans[{seconds}s]))', end), + 'note': 'Warning/error diagnostics are not counts of lost spans. Compare per-trial deltas; sampling discard is sent/accepted.'} + self.save() + if any(t['sdk_diagnostic_audit']['warning_error_delta'] not in (None, 0) for t in self.report['trials']): + raise RuntimeError('SDK diagnostics increased during measured windows') + + def probe_errors(self): + # Separate from measured trials: synthetic ERROR spans verify that probability sampling is not error-aware. + self.configure('C') + traces = [uuid.uuid4().hex for _ in range(100)] + now = time.time_ns() + spans = [{'traceId': ident, 'spanId': '0123456789abcdef', 'name': 'track1.synthetic-error-probe', + 'kind': 2, 'startTimeUnixNano': str(now), 'endTimeUnixNano': str(now+1000000), + 'status': {'code': 2}, 'attributes': [{'key': 'http.response.status_code', 'value': {'intValue': '503'}}]} + for ident in traces] + data = json.dumps({'resourceSpans': [{'resource': {'attributes': [{'key': 'service.name', + 'value': {'stringValue': 'track1-sampling-probe'}}]}, 'scopeSpans': [{'spans': spans}]}]}) + self.compose_run('exec', '-T', '--index', '1', 'api', 'curl', '-fsS', '--max-time', '10', + '-H', 'Content-Type: application/json', '--data-binary', '@-', + 'http://otel-collector:4318/v1/traces', data=data) + time.sleep(5) + auth = base64.b64encode((os.environ.get('GRAFANA_ADMIN_USER', 'admin')+':'+(ROOT/'secrets/grafana_admin_password').read_text().strip()).encode()).decode() + def retained(ident): + request = urllib.request.Request(self.args.grafana_url+'/api/datasources/proxy/uid/tempo/api/traces/'+ident, + headers={'Authorization': 'Basic '+auth}) + try: + with urllib.request.urlopen(request, timeout=15) as response: + return response.status == 200 + except urllib.error.HTTPError as error: + if error.code == 404: + return False + raise RuntimeError('Tempo probe query failed') from None + with ThreadPoolExecutor(max_workers=4) as pool: + found = sum(pool.map(retained, traces)) + if not 0 < found < len(traces): + raise RuntimeError('Error sampling probe failed') + self.report['error_probe'] = {'type': 'synthetic ERROR spans, separate from upload benchmark', + 'sent': len(traces), 'found_in_tempo': found, 'missing_in_tempo': len(traces)-found} + self.save() + print(f'Error probe: {found}/100 ERROR traces retained', flush=True) + + +def self_test(): + assert re.sub(r'\x1b\[[0-?]*[ -/]*[@-~]', '', '\x1b[?25l\x1b[H{}\x1b[?25h') == '{}' + assert percentile([1, 2, 3, 4], .5) == 2 + assert percentile(list(range(1, 101)), .99) == 99 + assert memory_mib('1024KiB') == 1 + assert memory_mib('1GiB') == 1024 + assert abs(memory_mib('1048576B')-1) < 1e-9 + assert parse_metrics('# comment\nx{a="b"} 2\nx{a="c"} 3\ny 4\n') == {'x': 5, 'y': 4} + base = (ROOT/'infra/otel/collector.yaml').read_text() + sampled = (ROOT/'infra/otel/collector-sampling10.yaml').read_text() + expected = base.replace(' batch:\n', ' probabilistic_sampler/track1:\n hash_seed: 22\n sampling_percentage: 10\n batch:\n', 1) + expected = expected.replace('processors: [memory_limiter, batch]\n exporters: [otlphttp/tempo]', + 'processors: [memory_limiter, probabilistic_sampler/track1, batch]\n exporters: [otlphttp/tempo]') + assert sampled.split('\n', 1)[1] == expected, 'Sampling must be the only Collector configuration difference' + assert 'sampling_percentage: 10' in sampled + assert sampled.count('processors: [memory_limiter, probabilistic_sampler/track1, batch]') == 1 + assert sampled.count('processors: [memory_limiter, batch]') == base.count('processors: [memory_limiter, batch]')-1 + print('PASS: percentile, docker memory units, metric sums, trace-only sampler configuration') + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('--requests', type=int, default=1000) + parser.add_argument('--concurrency', type=int, default=4) + parser.add_argument('--repetitions', type=int, default=3) + parser.add_argument('--warmup', type=int, default=20) + parser.add_argument('--drain-timeout', type=int, default=600) + parser.add_argument('--base-url', default='http://localhost:8080') + parser.add_argument('--prometheus-url', default='http://localhost:9090') + parser.add_argument('--grafana-url', default='http://localhost:3000') + parser.add_argument('--compose', default=os.environ.get('COMPOSE', 'docker compose')) + parser.add_argument('--docker', default=os.environ.get('DOCKER', 'docker')) + parser.add_argument('--output', default='evidence') + parser.add_argument('--self-test', action='store_true') + args = parser.parse_args() + if args.self_test: + return self_test() + if not (args.requests >= 100 and 1 <= args.concurrency <= 16 and 1 <= args.repetitions <= 10 and args.warmup >= args.concurrency): + parser.error('requests >=100, concurrency 1..16, repetitions 1..10, warmup >= concurrency required') + def interrupted(signum, frame): + raise KeyboardInterrupt('Benchmark interrupted; restoring baseline') + signal.signal(signal.SIGTERM, interrupted) + bench = Bench(args) + try: + for repetition in range(args.repetitions): + order = 'ABC'[repetition % 3:] + 'ABC'[:repetition % 3] + for variant in order: + bench.trial(variant, repetition+1) + bench.audit_sdk() + bench.probe_errors() + bench.report['result'] = 'PASS' + finally: + print('Restoring SDK on / Collector 100%', flush=True) + bench.configure('B') + bench.report['restored'] = 'SDK enabled, default Collector configuration' + bench.save() + bench.write_summary() + print('PASS: all trials complete; raw sanitized evidence saved', flush=True) + + +if __name__ == '__main__': + main() diff --git a/scripts/bootstrap-local.py b/scripts/bootstrap-local.py new file mode 100644 index 0000000..4fb1309 --- /dev/null +++ b/scripts/bootstrap-local.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python3 +"""Generate isolated local lab credentials without printing secret values.""" +import os +from pathlib import Path +import secrets + +root = Path(__file__).resolve().parents[1] +os.umask(0o077) +if (root / '.env').exists() or (root / 'secrets').exists(): + raise SystemExit('Existing .env/secrets preserved; use the existing credentials.') +password, minio_root, s3, grafana = [secrets.token_hex(24) for _ in range(4)] +text = (root / '.env.example').read_text() +for key, value in {'POSTGRES_PASSWORD': password, 'MINIO_ROOT_PASSWORD': minio_root, + 'MINIO_USER_SECRET_KEY': s3}.items(): + import re + text = re.sub(r'^' + key + r'=.*$', key + '=' + value, text, flags=re.M) +(root / '.env').write_text(text) +(root / 'secrets').mkdir(mode=0o700) +for name, value in {'database_url': f'postgresql://messenger:{password}@db:5432/messenger', + 'cache_url': 'redis://cache:6379', 's3_access_key_id': 'messenger-s3', + 's3_secret_access_key': s3, 'grafana_admin_password': grafana}.items(): + (root / 'secrets' / name).write_text(value + '\n') +# Parent directory stays 0700; bind-mounted file must be readable by Grafana uid 472. +(root / 'secrets' / 'grafana_admin_password').chmod(0o444) +print('Created .env and secrets/. Grafana user: admin; password: secrets/grafana_admin_password') diff --git a/src/attachment_queue.cpp b/src/attachment_queue.cpp new file mode 100644 index 0000000..e77b71e --- /dev/null +++ b/src/attachment_queue.cpp @@ -0,0 +1,94 @@ +#include "telemetry.hpp" +#include "attachment_queue.hpp" +#include "errors.hpp" + +#include + +void AttachmentQueue::publish(const std::string& payload) { + auto lease = pool_.acquire(); + std::unique_ptr reply( + static_cast(redisCommand( + lease.ctx(), "XADD jobs:attachments * payload %b", + payload.data(), payload.size())), &freeReplyObject); + if (!reply || reply->type != REDIS_REPLY_STRING || reply->len == 0) { + throw DependencyUnavailable("attachment queue publish failed"); + } +} + +namespace { +using Reply = std::unique_ptr; +Reply checked(redisReply* reply) { + Reply owned(reply, &freeReplyObject); + if (!owned || owned->type == REDIS_REPLY_ERROR) { + throw DependencyUnavailable("attachment stream command failed"); + } + return owned; +} +JobDelivery delivery(const redisReply* entry) { + if (entry->type != REDIS_REPLY_ARRAY || entry->elements != 2 || + entry->element[0]->type != REDIS_REPLY_STRING || + entry->element[1]->type != REDIS_REPLY_ARRAY) { + throw DependencyUnavailable("invalid stream response"); + } + JobDelivery result{std::string(entry->element[0]->str, entry->element[0]->len), {}}; + const auto* fields = entry->element[1]; + for (std::size_t i = 0; i + 1 < fields->elements; i += 2) { + if (fields->element[i]->type == REDIS_REPLY_STRING && + std::string(fields->element[i]->str, fields->element[i]->len) == "payload" && + fields->element[i + 1]->type == REDIS_REPLY_STRING && fields->element[i + 1]->len <= 4096) { + result.payload.assign(fields->element[i + 1]->str, fields->element[i + 1]->len); + } + } + return result; +} +} // namespace + +void AttachmentQueue::ensure_group() { + auto lease = pool_.acquire(); + Reply reply(static_cast(redisCommand(lease.ctx(), + "XGROUP CREATE jobs:attachments attachment-workers 0 MKSTREAM")), &freeReplyObject); + if (!reply || (reply->type == REDIS_REPLY_ERROR && + std::string(reply->str, reply->len).rfind("BUSYGROUP", 0) != 0)) { + throw DependencyUnavailable("attachment consumer group unavailable"); + } +} + +std::optional AttachmentQueue::read(const std::string& consumer, int reclaim_idle_ms) { + auto lease = pool_.acquire(); + auto pending = checked(static_cast(redisCommand(lease.ctx(), + "XAUTOCLAIM jobs:attachments attachment-workers %s %d %s COUNT 1", + consumer.c_str(), reclaim_idle_ms, claim_cursor_.c_str()))); + if (pending->type != REDIS_REPLY_ARRAY || pending->elements < 2 || + pending->element[0]->type != REDIS_REPLY_STRING || + pending->element[1]->type != REDIS_REPLY_ARRAY) { + throw DependencyUnavailable("invalid pending response"); + } + claim_cursor_.assign(pending->element[0]->str, pending->element[0]->len); + if (pending->element[1]->elements) return delivery(pending->element[1]->element[0]); + auto fresh = checked(static_cast(redisCommand(lease.ctx(), + "XREADGROUP GROUP attachment-workers %s COUNT 1 BLOCK 1000 STREAMS jobs:attachments >", + consumer.c_str()))); + if (fresh->type == REDIS_REPLY_NIL) return std::nullopt; + if (fresh->type != REDIS_REPLY_ARRAY || fresh->elements != 1 || + fresh->element[0]->type != REDIS_REPLY_ARRAY || fresh->element[0]->elements != 2 || + fresh->element[0]->element[1]->type != REDIS_REPLY_ARRAY || + fresh->element[0]->element[1]->elements != 1) { + throw DependencyUnavailable("invalid stream read response"); + } + return delivery(fresh->element[0]->element[1]->element[0]); +} + +void AttachmentQueue::ack(const std::string& stream_id) { + auto lease = pool_.acquire(); + checked(static_cast(redisCommand(lease.ctx(), + "XACK jobs:attachments attachment-workers %s", stream_id.c_str()))); +} + +void AttachmentQueue::reject(const std::string& stream_id) { + { + auto lease = pool_.acquire(); + checked(static_cast(redisCommand(lease.ctx(), + "XADD jobs:attachments:invalid * stream_id %s error_code invalid_job", stream_id.c_str()))); + } + ack(stream_id); +} diff --git a/src/attachment_queue.hpp b/src/attachment_queue.hpp new file mode 100644 index 0000000..c2af522 --- /dev/null +++ b/src/attachment_queue.hpp @@ -0,0 +1,27 @@ +#pragma once + +#include "redis_pool.hpp" + +#include +#include + +struct JobDelivery { + std::string stream_id; + std::string payload; +}; + +class AttachmentQueue { +public: + explicit AttachmentQueue(RedisPool& pool) : pool_(pool) {} + + void publish(const std::string& payload); + void ensure_group(); + std::optional read(const std::string& consumer, int reclaim_idle_ms); + void ack(const std::string& stream_id); + void reject(const std::string& stream_id); + bool ping() { return pool_.ping(); } + +private: + RedisPool& pool_; + std::string claim_cursor_ = "0-0"; +}; diff --git a/src/attachment_repo.cpp b/src/attachment_repo.cpp new file mode 100644 index 0000000..bfe11ee --- /dev/null +++ b/src/attachment_repo.cpp @@ -0,0 +1,156 @@ +#include "attachment_repo.hpp" +#include "outbox.hpp" + +#include +#include + +#include +#include +#include +#include + +namespace { + +std::string epoch_to_rfc3339(long long epoch) { + const std::time_t t = static_cast(epoch); + std::tm tm{}; + gmtime_r(&t, &tm); + std::ostringstream out; + out << std::put_time(&tm, "%Y-%m-%dT%H:%M:%SZ"); + return out.str(); +} + +std::string now_epoch_str() { + const auto now = std::chrono::system_clock::now(); + const auto secs = std::chrono::duration_cast( + now.time_since_epoch()) + .count(); + return std::to_string(secs); +} + +Attachment row_to_attachment(const pqxx::row& r) { + Attachment a; + a.id = r["id"].as(); + a.chat_id = r["chat_id"].as(); + a.owner_id = r["owner_id"].as(); + a.filename = r["filename"].as(); + a.content_type = r["content_type"].as(); + a.size_bytes = r["size_bytes"].as(); + a.sha256 = r["sha256"].as(); + a.status = r["status"].as(); + a.s3_key = r["s3_key"].as(); + if (r["error_code"].is_null()) { + a.error_code = std::nullopt; + } else { + a.error_code = r["error_code"].as(); + } + a.created_at = epoch_to_rfc3339(r["created_at_epoch"].as()); + a.updated_at = epoch_to_rfc3339(r["updated_at_epoch"].as()); + for (const auto& v : nlohmann::json::parse(r["variants"].as())) { + a.variants.push_back(Variant{v.at("name").get(), + v.at("content_type").get(), v.at("size_bytes").get(), + v.at("sha256").get(), v.at("width").get(), + v.at("height").get(), v.value("storage_key", "")}); + } + return a; +} + +constexpr const char* kAttachmentColumns = + "id, chat_id, owner_id, filename, content_type, size_bytes, sha256, " + "status, s3_key, error_code, variants, " + "EXTRACT(EPOCH FROM created_at)::bigint AS created_at_epoch, " + "EXTRACT(EPOCH FROM updated_at)::bigint AS updated_at_epoch"; + +} // namespace + +Attachment AttachmentRepo::insert(const Attachment& in) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + const std::string ts = now_epoch_str(); + pqxx::result r; + if (in.error_code) { + r = tx.exec( + "INSERT INTO attachments (" + " id, chat_id, owner_id, filename, content_type, size_bytes, sha256, " + " status, s3_key, error_code, created_at, updated_at" + ") VALUES (" + " $1::uuid, $2::uuid, $3::uuid, $4, $5, $6, $7, $8, $9, $10, " + " to_timestamp($11::bigint), to_timestamp($12::bigint)" + ") RETURNING " + + std::string(kAttachmentColumns), + pqxx::params{in.id, in.chat_id, in.owner_id, in.filename, + in.content_type, in.size_bytes, in.sha256, in.status, + in.s3_key, *in.error_code, ts, ts}); + } else { + r = tx.exec( + "INSERT INTO attachments (" + " id, chat_id, owner_id, filename, content_type, size_bytes, sha256, " + " status, s3_key, error_code, created_at, updated_at" + ") VALUES (" + " $1::uuid, $2::uuid, $3::uuid, $4, $5, $6, $7, $8, $9, NULL, " + " to_timestamp($10::bigint), to_timestamp($11::bigint)" + ") RETURNING " + + std::string(kAttachmentColumns), + pqxx::params{in.id, in.chat_id, in.owner_id, in.filename, + in.content_type, in.size_bytes, in.sha256, in.status, + in.s3_key, ts, ts}); + } + tx.commit(); + return row_to_attachment(r[0]); +} + +std::optional AttachmentRepo::find_by_id(const std::string& id) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + auto r = tx.exec( + "SELECT " + std::string(kAttachmentColumns) + + " FROM attachments WHERE id = $1::uuid", + pqxx::params{id}); + if (r.empty()) { + return std::nullopt; + } + return row_to_attachment(r[0]); +} + +Attachment AttachmentRepo::insert_queued(const Attachment& in, + const std::string& job_id, + const std::function& save_original) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + tx.exec("SELECT pg_advisory_xact_lock(hashtextextended('staging:' || $1::uuid::text, 0))", + pqxx::params{in.id}); + save_original(); + auto r = tx.exec( + "INSERT INTO attachments (" + "id, chat_id, owner_id, filename, content_type, size_bytes, sha256, " + "status, s3_key, staging_key, created_at, updated_at) VALUES (" + "$1::uuid, $2::uuid, $3::uuid, $4, $5, $6, $7, 'queued', $8, $8, now(), now()) " + "RETURNING " + std::string(kAttachmentColumns), + pqxx::params{in.id, in.chat_id, in.owner_id, in.filename, + in.content_type, in.size_bytes, in.sha256, in.s3_key}); + tx.exec("INSERT INTO jobs (id, attachment_id, source_key) VALUES ($1::uuid, $2::uuid, $3)", + pqxx::params{job_id, in.id, in.s3_key}); + enqueue_attachment_job(tx, job_id); + Attachment saved = row_to_attachment(r[0]); + tx.commit(); + return saved; +} + +bool AttachmentRepo::all_belong_to_chat(const std::string& chat_id, + const std::vector& ids) { + if (ids.empty()) { + return true; + } + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + for (const auto& id : ids) { + auto r = tx.exec( + "SELECT 1 FROM attachments " + "WHERE id = $1::uuid AND chat_id = $2::uuid AND status <> 'failed'", + pqxx::params{id, chat_id}); + if (r.empty()) { + return false; + } + } + return true; +} diff --git a/src/attachment_repo.hpp b/src/attachment_repo.hpp new file mode 100644 index 0000000..eaa40ef --- /dev/null +++ b/src/attachment_repo.hpp @@ -0,0 +1,28 @@ +#pragma once + +#include "db.hpp" +#include "models.hpp" + +#include +#include +#include +#include + +class AttachmentRepo { +public: + explicit AttachmentRepo(PgPool& pool) : pool_(pool) {} + + Attachment insert(const Attachment& a); + Attachment insert_queued(const Attachment& a, const std::string& job_id, + const std::function& save_original); + + std::optional find_by_id(const std::string& id); + + // All IDs must exist, belong to chat_id, and not have status=failed. + // Returns false if any id is missing/foreign/failed. + bool all_belong_to_chat(const std::string& chat_id, + const std::vector& ids); + +private: + PgPool& pool_; +}; diff --git a/src/attachment_storage.hpp b/src/attachment_storage.hpp new file mode 100644 index 0000000..4398f8f --- /dev/null +++ b/src/attachment_storage.hpp @@ -0,0 +1,20 @@ +#pragma once + +#include +#include + +inline std::string attachment_variant_key(const std::string& chat_id, + const std::string& id, + const std::string& variant) { + const char* suffix = variant == "thumbnail" ? "_256.jpg" : + variant == "crop" ? "_128.jpg" : + variant == "optimized" ? "_optimized.webp" : nullptr; + if (!suffix) throw std::invalid_argument("unknown variant"); + return "attachments/" + chat_id + "/" + id + suffix; +} + +inline std::string pipeline_prefix(const std::string& chat_id, const std::string& id, + int version) { + if (version < 1) throw std::invalid_argument("invalid pipeline version"); + return "attachments/" + chat_id + "/" + id + "/v" + std::to_string(version) + "/"; +} diff --git a/src/auth.cpp b/src/auth.cpp new file mode 100644 index 0000000..d6d8cf9 --- /dev/null +++ b/src/auth.cpp @@ -0,0 +1,39 @@ +#include "auth.hpp" + +#include +#include + + +namespace { +struct SodiumInit { + SodiumInit() { + if (sodium_init() < 0) { + throw std::runtime_error("sodium_init failed"); + } + } +}; + +const SodiumInit g_sodium_init; +} + + +std::string hash_password(const std::string& plain) { + char hashed[crypto_pwhash_STRBYTES]; + if (crypto_pwhash_str( + hashed, + plain.data(), plain.size(), + crypto_pwhash_OPSLIMIT_INTERACTIVE, + crypto_pwhash_MEMLIMIT_INTERACTIVE) != 0) { + throw std::runtime_error("crypto_pwhash_str failed (out of memory?)"); + } + return std::string(hashed); +} + +bool verify_password(const std::string& plain, const std::string& hash) { + if (hash.empty() || hash.size() >= crypto_pwhash_STRBYTES) { + return false; + } + return crypto_pwhash_str_verify( + hash.c_str(), + plain.data(), plain.size()) == 0; +} \ No newline at end of file diff --git a/src/auth.hpp b/src/auth.hpp new file mode 100644 index 0000000..639b033 --- /dev/null +++ b/src/auth.hpp @@ -0,0 +1,7 @@ +#pragma once + +#include + +std::string hash_password(const std::string& plain); + +bool verify_password(const std::string& plain, const std::string& hash); \ No newline at end of file diff --git a/src/chat_repo.cpp b/src/chat_repo.cpp new file mode 100644 index 0000000..580fc71 --- /dev/null +++ b/src/chat_repo.cpp @@ -0,0 +1,186 @@ +#include "chat_repo.hpp" +#include "cursor.hpp" + +#include + +#include +#include +#include +#include +#include +#include + +namespace { + +std::string make_uuid() { + static std::mt19937_64 rng{std::random_device{}()}; + std::uniform_int_distribution d16(0, 0xffff); + std::uniform_int_distribution d32(0, 0xffffffffu); + std::ostringstream out; + out << std::hex << std::setfill('0'); + out << std::setw(8) << d32(rng); + out << '-' << std::setw(4) << d16(rng); + out << '-' << std::setw(4) << ((d16(rng) & 0x0fff) | 0x4000); + out << '-' << std::setw(4) << ((d16(rng) & 0x3fff) | 0x8000); + out << '-' << std::setw(4) << d16(rng) << std::setw(8) << d32(rng); + return out.str(); +} + +std::string epoch_to_rfc3339(long long epoch) { + const std::time_t t = static_cast(epoch); + std::tm tm{}; + gmtime_r(&t, &tm); + std::ostringstream out; + out << std::put_time(&tm, "%Y-%m-%dT%H:%M:%SZ"); + return out.str(); +} + +std::string now_epoch_str() { + const auto now = std::chrono::system_clock::now(); + const auto secs = std::chrono::duration_cast( + now.time_since_epoch()).count(); + return std::to_string(secs); +} + +Chat row_to_chat(const pqxx::row& r) { + Chat c; + c.id = r["id"].as(); + c.title = r["title"].as(); + c.created_at = epoch_to_rfc3339(r["created_at_epoch"].as()); + return c; +} + +std::vector load_member_ids(pqxx::work& tx, + const std::string& chat_id) { + std::vector ids; + auto r = tx.exec( + "SELECT user_id FROM chat_members WHERE chat_id = $1 ORDER BY user_id", + pqxx::params{chat_id}); + ids.reserve(r.size()); + for (const auto& row : r) { + ids.push_back(row["user_id"].as()); + } + return ids; +} + +constexpr const char* kChatSelect = + "id, title, " + "EXTRACT(EPOCH FROM created_at)::bigint AS created_at_epoch"; + +} + +std::optional ChatRepo::create(const std::string& title, + const std::vector& member_ids) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + + const std::string chat_id = make_uuid(); + const std::string created = now_epoch_str(); + + try { + tx.exec( + "INSERT INTO chats (id, title, created_at) " + "VALUES ($1, $2, to_timestamp($3::bigint))", + pqxx::params{chat_id, title, created}); + + for (const auto& uid : member_ids) { + tx.exec( + "INSERT INTO chat_members (chat_id, user_id) VALUES ($1, $2)", + pqxx::params{chat_id, uid}); + } + } catch (const pqxx::foreign_key_violation&) { + tx.abort(); + return std::nullopt; + } catch (const pqxx::unique_violation&) { + tx.abort(); + return std::nullopt; + } + + auto r = tx.exec( + "SELECT " + std::string(kChatSelect) + " FROM chats WHERE id = $1", + pqxx::params{chat_id}); + Chat c = row_to_chat(r[0]); + c.member_ids = load_member_ids(tx, chat_id); + tx.commit(); + return c; +} + +std::optional ChatRepo::find_by_id(const std::string& id) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + auto r = tx.exec( + "SELECT " + std::string(kChatSelect) + " FROM chats WHERE id = $1", + pqxx::params{id}); + if (r.empty()) { + tx.commit(); + return std::nullopt; + } + Chat c = row_to_chat(r[0]); + c.member_ids = load_member_ids(tx, id); + tx.commit(); + return c; +} + + +std::optional ChatRepo::list_for_user( + const std::string& user_id, + int limit, + const std::optional& cursor) { + + std::optional cur; + if (cursor) { + cur = parse_cursor(*cursor); + if (!cur) { + return std::nullopt; + } + } + + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + + if (cur) { + auto owner_check = tx.exec( + "SELECT 1 FROM chats WHERE id = $1 AND id IN " + "(SELECT chat_id FROM chat_members WHERE user_id = $2)", + pqxx::params{cur->id, user_id}); + if (owner_check.empty()) { + tx.commit(); + return std::nullopt; + } + } + + std::string sql = + "SELECT " + std::string(kChatSelect) + ", " + kCreatedUsSql + " " + "FROM chats " + "WHERE id IN (SELECT chat_id FROM chat_members WHERE user_id = $1) "; + if (cur) { + sql += "AND (created_at, id) > (" + std::string(kCursorTimestampSql) + ", $4::uuid) "; + } + sql += "ORDER BY created_at ASC, id ASC LIMIT $2"; + + pqxx::result r; + if (cur) { + r = tx.exec(sql, pqxx::params{user_id, limit + 1, cur->created_us, cur->id}); + } else { + r = tx.exec(sql, pqxx::params{user_id, limit + 1}); + } + + ChatPage page; + const bool has_more = (static_cast(r.size()) > limit); + const int take = has_more ? limit : static_cast(r.size()); + page.items.reserve(take); + for (int i = 0; i < take; ++i) { + Chat c = row_to_chat(r[static_cast(i)]); + c.member_ids = load_member_ids(tx, c.id); + page.items.push_back(std::move(c)); + } + + if (has_more && take > 0) { + const auto& last = r[static_cast(take - 1)]; + page.next_cursor = make_cursor(last["created_us"].as(), + last["id"].as()); + } + + tx.commit(); + return page; +} \ No newline at end of file diff --git a/src/chat_repo.hpp b/src/chat_repo.hpp new file mode 100644 index 0000000..279e266 --- /dev/null +++ b/src/chat_repo.hpp @@ -0,0 +1,23 @@ +#pragma once + +#include "db.hpp" +#include "models.hpp" + +#include +#include +#include + +class ChatRepo { +public: + explicit ChatRepo(PgPool& pool) : pool_(pool) {} + + std::optional create(const std::string& title, + const std::vector& member_ids); + + std::optional find_by_id(const std::string& id); + + std::optional list_for_user(const std::string& user_id, int limit, const std::optional& cursor); + +private: + PgPool& pool_; +}; \ No newline at end of file diff --git a/src/cursor.hpp b/src/cursor.hpp new file mode 100644 index 0000000..08f0850 --- /dev/null +++ b/src/cursor.hpp @@ -0,0 +1,47 @@ +#pragma once + +#include +#include +#include +#include +#include + +// Непрозрачный для клиента курсор keyset-пагинации: "|". +// Микросекунды сохраняют точный created_at строки, даже если в JSON время округлено до секунд. +struct Cursor { + std::string created_us; + std::string id; +}; + +// Выражение SQL, восстанавливающее timestamptz из created_us без потери точности. +constexpr const char* kCursorTimestampSql = + "(timestamptz 'epoch' + $3::bigint * interval '1 microsecond')"; + +constexpr const char* kCreatedUsSql = + "(EXTRACT(EPOCH FROM created_at) * 1000000)::bigint AS created_us"; + +inline bool is_uuid(const std::string& s) { + static const std::regex re( + "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-" + "[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"); + return std::regex_match(s, re); +} + +inline std::optional parse_cursor(const std::string& raw) { + const auto bar = raw.find('|'); + if (bar == std::string::npos) { + return std::nullopt; + } + Cursor c{raw.substr(0, bar), raw.substr(bar + 1)}; + const bool digits = !c.created_us.empty() && c.created_us.size() <= 18 && + std::all_of(c.created_us.begin(), c.created_us.end(), + [](unsigned char ch) { return std::isdigit(ch); }); + if (!digits || !is_uuid(c.id)) { + return std::nullopt; + } + return c; +} + +inline std::string make_cursor(const std::string& created_us, const std::string& id) { + return created_us + "|" + id; +} diff --git a/src/db.cpp b/src/db.cpp new file mode 100644 index 0000000..b769e11 --- /dev/null +++ b/src/db.cpp @@ -0,0 +1,370 @@ +#include "telemetry.hpp" +#include "db.hpp" +#include "errors.hpp" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace fs = std::filesystem; + + +namespace { + +constexpr int kConnectTimeoutSeconds = 2; +constexpr int kTcpUserTimeoutMs = 5000; +constexpr int kStatementTimeoutMs = 5000; +constexpr int kClientIoTimeoutSeconds = 5; +constexpr auto kAcquireTimeout = std::chrono::seconds(3); + +std::string add_conn_param(std::string conninfo, const std::string& key, + const std::string& value) { + if (conninfo.find(key + "=") != std::string::npos) { + return conninfo; + } + const bool is_url = conninfo.rfind("postgres://", 0) == 0 || + conninfo.rfind("postgresql://", 0) == 0; + if (is_url) { + conninfo += (conninfo.find('?') == std::string::npos ? "?" : "&"); + } else { + conninfo += " "; + } + return conninfo + key + "=" + value; +} + +bool is_alive(pqxx::connection* conn) { + std::promise done; + auto fut = done.get_future(); + std::thread th([conn, &done]() { + try { + pqxx::nontransaction tx(*conn); + tx.exec("SELECT 1"); + done.set_value(); + } catch (...) { + done.set_exception(std::current_exception()); + } + }); + if (fut.wait_for(std::chrono::seconds(kClientIoTimeoutSeconds)) != + std::future_status::ready) { + const int fd = conn->sock(); + if (fd >= 0) { + ::shutdown(fd, SHUT_RDWR); + } + th.join(); + return false; + } + th.join(); + try { + fut.get(); + return true; + } catch (...) { + return false; + } +} + +struct Migration { + int version; + std::string path; +}; + +constexpr int kMigrationsAdvisoryLockKey = 0x6d747573; + + +Migration parse_migration_name(const fs::path& p) { + const std::string name = p.filename().string(); + const auto dot = name.find('.'); + + if (dot == std::string::npos || name.substr(dot) != ".sql") { + throw std::runtime_error("migration file must end with .sql: " + name); + } + + const auto us = name.find('_'); + if (us == std::string::npos || us == 0) { + throw std::runtime_error( + "migration file must be named NNN_name.sql: " + name); + } + + const std::string num = name.substr(0, us); + if (!std::all_of(num.begin(), num.end(), + [](unsigned char c){ return std::isdigit(c); })) { + throw std::runtime_error( + "migration file prefix must be digits: " + name); + } + + Migration m; + m.version = std::stoi(num); + m.path = p.string(); + return m; +}} + + +void apply_migrations(pqxx::connection& conn, const std::string& dir) { + { + pqxx::work tx(conn); + tx.exec("SELECT pg_advisory_lock($1)", + pqxx::params{kMigrationsAdvisoryLockKey}); + tx.commit(); + } + std::clog << "migration advisory lock acquired\n"; + struct Unlock { + pqxx::connection& c; + ~Unlock() { + try { + pqxx::work tx(c); + tx.exec("SELECT pg_advisory_unlock($1)", + pqxx::params{kMigrationsAdvisoryLockKey}); + tx.commit(); + } catch (...) {} + } + } unlock_guard{conn}; + + { + pqxx::work tx(conn); + tx.exec( + "CREATE TABLE IF NOT EXISTS schema_migrations (" + " version int PRIMARY KEY," + " applied_at timestamptz NOT NULL DEFAULT now()" + ")"); + tx.commit(); + } + + if (!fs::exists(dir) || !fs::is_directory(dir)) { + throw std::runtime_error("migrations dir not found: " + dir); + } + std::vector files; + for (const auto& entry : fs::directory_iterator(dir)) { + if (entry.is_regular_file()) { + files.push_back(parse_migration_name(entry.path())); + } + } + std::sort(files.begin(), files.end(), + [](const Migration& a, const Migration& b){ + return a.version < b.version; + }); + + for (std::size_t i = 1; i < files.size(); ++i) { + if (files[i].version == files[i-1].version) { + throw std::runtime_error( + "duplicate migration version: " + std::to_string(files[i].version)); + } + } + + std::set applied; + { + pqxx::work tx(conn); + for (const auto& row : tx.exec("SELECT version FROM schema_migrations")) { + applied.insert(row[0].as()); + } + tx.commit(); + } + + for (const auto& m : files) { + if (applied.count(m.version)) { + continue; + } + + std::ifstream f(m.path, std::ios::binary); + if (!f) { + throw std::runtime_error("cannot open migration: " + m.path); + } + std::stringstream buf; + buf << f.rdbuf(); + const std::string sql = buf.str(); + + pqxx::work tx(conn); + tx.exec(sql); + tx.exec("INSERT INTO schema_migrations(version) VALUES ($1)", + m.version); + tx.commit(); + + std::clog << "applied migration " << m.version + << " (" << m.path << ")\n"; + } +} + + +std::string read_secret_file(const char* env_name) { + const char* path = std::getenv(env_name); + + if (path == nullptr || *path == '\0') { + throw std::runtime_error( + std::string("environment variable not set: ") + env_name); + } + + std::ifstream f(path, std::ios::binary); + if (!f) { + throw std::runtime_error( + std::string("cannot open secret file: ") + path); + } + + std::string s; + std::getline(f, s); + if (!s.empty() && s.back() == '\r') { + s.pop_back(); + } + + if (s.empty()) { + throw std::runtime_error( + std::string("secret file is empty: ") + path); + } + + return s; +} + + +bool is_dependency_failure(const std::exception& e) { + if (dynamic_cast(&e) != nullptr || + dynamic_cast(&e) != nullptr || + dynamic_cast(&e) != nullptr) { + return true; + } + if (const auto* sql = dynamic_cast(&e)) { + // 08xxx — ошибки соединения, 57xxx — отмена (statement_timeout) и остановка сервера. + const std::string& state = sql->sqlstate(); + return state.rfind("08", 0) == 0 || state.rfind("57", 0) == 0; + } + return false; +} + + +std::unique_ptr open_pg_connection(const std::string& conninfo, + bool statement_timeout) { + std::string full = add_conn_param(conninfo, "connect_timeout", + std::to_string(kConnectTimeoutSeconds)); + full = add_conn_param(full, "tcp_user_timeout", std::to_string(kTcpUserTimeoutMs)); + auto conn = std::make_unique(full); + const int fd = conn->sock(); + if (fd >= 0) { + timeval tv{}; + tv.tv_sec = kClientIoTimeoutSeconds; + tv.tv_usec = 0; + ::setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); + ::setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)); + } + if (statement_timeout) { + pqxx::nontransaction tx(*conn); + tx.exec("SET statement_timeout = " + std::to_string(kStatementTimeoutMs)); + } + return conn; +} + + +PgPool::PgPool(std::string conninfo, std::size_t n) + : conninfo_(std::move(conninfo)) { + if (n == 0) { + throw std::runtime_error("PgPool: n must be > 0"); + } + all_.reserve(n); + idle_.reserve(n); + for (std::size_t i = 0; i < n; ++i) { + auto conn = open_pg_connection(conninfo_, true); + idle_.push_back(conn.get()); + all_.push_back(std::move(conn)); + } + telemetry::delta("db.pool.capacity", n); +} + + +PgPool::~PgPool() { + telemetry::delta("db.pool.capacity", -static_cast(all_.size())); + { + std::lock_guard lk(mu_); + shutting_down_ = true; + } + cv_.notify_all(); +} + + +pqxx::connection* PgPool::take() { + telemetry::Span acquire_span("postgresql.pool.acquire", opentelemetry::trace::SpanKind::kClient); + struct Waiting { + Waiting() { telemetry::delta("db.pool.waiting", 1); } + ~Waiting() { telemetry::delta("db.pool.waiting", -1); } + } waiting; + std::unique_lock lk(mu_); + if (!cv_.wait_for(lk, kAcquireTimeout, + [&]() { return shutting_down_ || !idle_.empty(); })) { + throw DependencyUnavailable("postgres pool: acquire timeout"); + } + if (shutting_down_) { + throw DependencyUnavailable("postgres pool is shutting down"); + } + pqxx::connection* conn = idle_.back(); + idle_.pop_back(); + telemetry::delta("db.pool.used", 1); + lk.unlock(); + + if (is_alive(conn)) { + return conn; + } + + std::unique_ptr fresh; + try { + fresh = open_pg_connection(conninfo_, true); + } catch (const std::exception& e) { + // Мёртвое соединение возвращается в пул: следующий take() снова + // попробует переподключиться, и пул не теряет слот. + give_back(conn); + throw DependencyUnavailable(std::string("postgres reconnect failed: ") + e.what()); + } + + std::lock_guard lk2(mu_); + for (auto& up : all_) { + if (up.get() == conn) { + up = std::move(fresh); + return up.get(); + } + } + throw std::logic_error("PgPool: connection not owned by pool"); +} + + +void PgPool::give_back(pqxx::connection* conn) { + { + std::lock_guard lk(mu_); + idle_.push_back(conn); + telemetry::delta("db.pool.used", -1); + } + cv_.notify_one(); +} + + +PgPool::Lease::Lease(PgPool& pool) : pool_(&pool), conn_(pool.take()) {} + +PgPool::Lease::~Lease() { + if (pool_ != nullptr && conn_ != nullptr) { + pool_->give_back(conn_); + } +} + +PgPool::Lease::Lease(Lease&& other) noexcept + : pool_(other.pool_), conn_(other.conn_) { + other.pool_ = nullptr; + other.conn_ = nullptr; +} + +PgPool::Lease PgPool::acquire() { + return Lease(*this); +} + +bool PgPool::ping() { + try { + auto lease = acquire(); + pqxx::work tx(*lease); + tx.exec("SELECT 1"); + tx.commit(); + return true; + } catch (...) { + return false; + } +} \ No newline at end of file diff --git a/src/db.hpp b/src/db.hpp new file mode 100644 index 0000000..bacfa92 --- /dev/null +++ b/src/db.hpp @@ -0,0 +1,62 @@ +#pragma once +#include + +#include + +#include +#include +#include +#include +#include + + +std::string read_secret_file(const char* env_name); + +std::unique_ptr open_pg_connection(const std::string& conninfo, + bool statement_timeout); + + +void apply_migrations(pqxx::connection& conn, const std::string& dir); + + +class PgPool { +public: + bool ping(); + PgPool(std::string conninfo, std::size_t n); + ~PgPool(); + + PgPool(const PgPool&) = delete; + PgPool& operator=(const PgPool&) = delete; + + class Lease { + public: + explicit Lease(PgPool& pool); + ~Lease(); + Lease(Lease&& other) noexcept; + Lease& operator=(Lease&&) = delete; + Lease(const Lease&) = delete; + Lease& operator=(const Lease&) = delete; + + pqxx::connection& operator*() const { return *conn_; } + pqxx::connection* operator->() const { return conn_; } + + private: + PgPool* pool_; + pqxx::connection* conn_; + }; + + Lease acquire(); + +private: + friend class Lease; + + pqxx::connection* take(); + void give_back(pqxx::connection* conn); + + std::string conninfo_; + std::vector> all_; + std::vector idle_; + std::mutex mu_; + std::condition_variable cv_; + bool shutting_down_ = false; +}; \ No newline at end of file diff --git a/src/direct_upload_repo.cpp b/src/direct_upload_repo.cpp new file mode 100644 index 0000000..d24b04c --- /dev/null +++ b/src/direct_upload_repo.cpp @@ -0,0 +1,292 @@ +#include "direct_upload_repo.hpp" +#include "outbox.hpp" + +#include +#include + +#include +#include +#include +#include + +namespace { + +std::string epoch_to_rfc3339(long long epoch) { + const std::time_t t = static_cast(epoch); + std::tm tm{}; + gmtime_r(&t, &tm); + std::ostringstream out; + out << std::put_time(&tm, "%Y-%m-%dT%H:%M:%SZ"); + return out.str(); +} + +std::string now_epoch_str() { + const auto now = std::chrono::system_clock::now(); + const auto secs = std::chrono::duration_cast( + now.time_since_epoch()) + .count(); + return std::to_string(secs); +} + +DirectUpload row_to(const pqxx::row& r) { + DirectUpload d; + d.id = r["id"].as(); + d.chat_id = r["chat_id"].as(); + d.owner_id = r["owner_id"].as(); + d.filename = r["filename"].as(); + d.content_type = r["content_type"].as(); + d.expected_size = r["expected_size"].as(); + d.expected_sha256 = r["expected_sha256"].as(); + d.s3_key = r["s3_key"].as(); + d.staging_key = r["staging_key"].as(); + d.status = r["status"].as(); + d.overdue = r["overdue"].as(); + if (r["attachment_id"].is_null()) { + d.attachment_id = std::nullopt; + } else { + d.attachment_id = r["attachment_id"].as(); + } + d.expires_at = epoch_to_rfc3339(r["expires_at_epoch"].as()); + d.created_at = epoch_to_rfc3339(r["created_at_epoch"].as()); + d.updated_at = epoch_to_rfc3339(r["updated_at_epoch"].as()); + return d; +} + +constexpr const char* kCols = + "id, chat_id, owner_id, filename, content_type, expected_size, " + "expected_sha256, s3_key, staging_key, status, attachment_id, " + "(status = 'pending' AND expires_at < now()) AS overdue, " + "EXTRACT(EPOCH FROM expires_at)::bigint AS expires_at_epoch, " + "EXTRACT(EPOCH FROM created_at)::bigint AS created_at_epoch, " + "EXTRACT(EPOCH FROM updated_at)::bigint AS updated_at_epoch"; + +constexpr const char* kAttachmentColumns = + "id, chat_id, owner_id, filename, content_type, size_bytes, sha256, " + "status, s3_key, error_code, variants, " + "EXTRACT(EPOCH FROM created_at)::bigint AS created_at_epoch, " + "EXTRACT(EPOCH FROM updated_at)::bigint AS updated_at_epoch"; + +Attachment attachment_from_row(const pqxx::row& r) { + Attachment a; + a.id = r["id"].as(); + a.chat_id = r["chat_id"].as(); + a.owner_id = r["owner_id"].as(); + a.filename = r["filename"].as(); + a.content_type = r["content_type"].as(); + a.size_bytes = r["size_bytes"].as(); + a.sha256 = r["sha256"].as(); + a.status = r["status"].as(); + a.s3_key = r["s3_key"].as(); + if (r["error_code"].is_null()) { + a.error_code = std::nullopt; + } else { + a.error_code = r["error_code"].as(); + } + a.created_at = epoch_to_rfc3339(r["created_at_epoch"].as()); + a.updated_at = epoch_to_rfc3339(r["updated_at_epoch"].as()); + for (const auto& v : nlohmann::json::parse(r["variants"].as())) { + a.variants.push_back(Variant{v.at("name").get(), + v.at("content_type").get(), v.at("size_bytes").get(), + v.at("sha256").get(), v.at("width").get(), + v.at("height").get(), v.value("storage_key", "")}); + } + return a; +} + +} // namespace + +DirectUpload DirectUploadRepo::insert(const DirectUpload& in) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + const std::string ts = now_epoch_str(); + // expires_at is already an absolute epoch string from the caller. + auto r = tx.exec( + "INSERT INTO direct_uploads (" + " id, chat_id, owner_id, filename, content_type, expected_size, " + " expected_sha256, s3_key, staging_key, status, attachment_id, " + " expires_at, created_at, updated_at" + ") VALUES (" + " $1::uuid, $2::uuid, $3::uuid, $4, $5, $6, $7, $8, $9, $10, NULL, " + " to_timestamp($11::bigint), to_timestamp($12::bigint), " + " to_timestamp($13::bigint)" + ") RETURNING " + + std::string(kCols), + pqxx::params{in.id, in.chat_id, in.owner_id, in.filename, + in.content_type, in.expected_size, in.expected_sha256, + in.s3_key, in.staging_key, in.status, in.expires_at_epoch, + ts, ts}); + tx.commit(); + return row_to(r[0]); +} + +std::optional DirectUploadRepo::find_by_id( + const std::string& id) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + auto r = tx.exec( + "SELECT " + std::string(kCols) + + " FROM direct_uploads WHERE id = $1::uuid", + pqxx::params{id}); + if (r.empty()) { + return std::nullopt; + } + return row_to(r[0]); +} + +std::optional DirectUploadRepo::mark_completed( + const std::string& id, const std::string& attachment_id) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + const std::string ts = now_epoch_str(); + auto r = tx.exec( + "UPDATE direct_uploads SET status = 'completed', " + " attachment_id = $2::uuid, " + " updated_at = to_timestamp($3::bigint) " + "WHERE id = $1::uuid AND status = 'pending' " + "RETURNING " + + std::string(kCols), + pqxx::params{id, attachment_id, ts}); + if (r.empty()) { + return std::nullopt; + } + tx.commit(); + return row_to(r[0]); +} + +std::optional DirectUploadRepo::mark_aborted( + const std::string& id) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + const std::string ts = now_epoch_str(); + auto r = tx.exec( + "UPDATE direct_uploads SET status = 'aborted', " + " updated_at = to_timestamp($2::bigint) " + "WHERE id = $1::uuid AND status = 'pending' " + "RETURNING " + + std::string(kCols), + pqxx::params{id, ts}); + if (r.empty()) { + return std::nullopt; + } + tx.commit(); + return row_to(r[0]); +} + +std::vector DirectUploadRepo::expire_stale() { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + const std::string ts = now_epoch_str(); + auto r = tx.exec( + "UPDATE direct_uploads SET status = 'expired', " + " updated_at = to_timestamp($1::bigint) " + "WHERE status = 'pending' AND expires_at < now() " + "RETURNING " + + std::string(kCols), + pqxx::params{ts}); + tx.commit(); + std::vector out; + out.reserve(r.size()); + for (const auto& row : r) { + out.push_back(row_to(row)); + } + return out; +} + +std::vector DirectUploadRepo::pending_s3_keys() { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + auto r = tx.exec( + "SELECT staging_key FROM direct_uploads WHERE status = 'pending'"); + std::vector out; + out.reserve(r.size()); + for (const auto& row : r) { + out.push_back(row["staging_key"].as()); + } + return out; +} + +void DirectUploadRepo::with_lock(const std::function& fn) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + UploadLock lock(tx); + fn(lock); +} + +std::optional UploadLock::lock(const std::string& id) { + auto r = tx_.exec( + "SELECT " + std::string(kCols) + + " FROM direct_uploads WHERE id = $1::uuid FOR UPDATE", + pqxx::params{id}); + if (r.empty()) { + return std::nullopt; + } + return row_to(r[0]); +} + +std::optional UploadLock::find_attachment(const std::string& id) { + auto r = tx_.exec( + "SELECT " + std::string(kAttachmentColumns) + + " FROM attachments WHERE id = $1::uuid", + pqxx::params{id}); + if (r.empty()) { + return std::nullopt; + } + return attachment_from_row(r[0]); +} + +std::optional UploadLock::insert_queued(const Attachment& in, + bool& inserted) { + inserted = false; + const std::string ts = now_epoch_str(); + auto r = tx_.exec( + "INSERT INTO attachments (" + " id, chat_id, owner_id, filename, content_type, size_bytes, sha256, " + " status, s3_key, staging_key, error_code, created_at, updated_at" + ") VALUES (" + " $1::uuid, $2::uuid, $3::uuid, $4, $5, $6, $7, $8, $9, $9, NULL, " + " to_timestamp($10::bigint), to_timestamp($11::bigint)" + ") ON CONFLICT (id) DO NOTHING RETURNING " + + std::string(kAttachmentColumns), + pqxx::params{in.id, in.chat_id, in.owner_id, in.filename, + in.content_type, in.size_bytes, in.sha256, in.status, + in.s3_key, ts, ts}); + if (r.empty()) { + return std::nullopt; + } + tx_.exec("INSERT INTO jobs(id, attachment_id, source_key) VALUES($1::uuid, $1::uuid, $2)", + pqxx::params{in.id, in.s3_key}); + enqueue_attachment_job(tx_, in.id); + inserted = true; + return attachment_from_row(r[0]); +} + +void UploadLock::mark_completed(const std::string& id, + const std::string& attachment_id) { + const std::string ts = now_epoch_str(); + auto r = tx_.exec( + "UPDATE direct_uploads SET status = 'completed', " + " attachment_id = $2::uuid, " + " updated_at = to_timestamp($3::bigint) " + "WHERE id = $1::uuid AND status = 'pending'", + pqxx::params{id, attachment_id, ts}); + if (r.affected_rows() != 1) { + throw std::runtime_error("direct upload complete lost the pending row"); + } +} + +void UploadLock::mark_expired(const std::string& id) { + const std::string ts = now_epoch_str(); + tx_.exec( + "UPDATE direct_uploads SET status = 'expired', " + " updated_at = to_timestamp($2::bigint) " + "WHERE id = $1::uuid AND status = 'pending'", + pqxx::params{id, ts}); +} + +void UploadLock::commit() { + if (committed_) { + return; + } + tx_.commit(); + committed_ = true; +} diff --git a/src/direct_upload_repo.hpp b/src/direct_upload_repo.hpp new file mode 100644 index 0000000..8fa6f8c --- /dev/null +++ b/src/direct_upload_repo.hpp @@ -0,0 +1,63 @@ +#pragma once + +#include "db.hpp" +#include "models.hpp" + +#include +#include +#include +#include + +class UploadLock; + +class DirectUploadRepo { +public: + explicit DirectUploadRepo(PgPool& pool) : pool_(pool) {} + + DirectUpload insert(const DirectUpload& in); + + std::optional find_by_id(const std::string& id); + + // Mark completed and link attachment_id. Returns nullopt if not pending + // (or already finished / wrong owner handled by caller). + std::optional mark_completed(const std::string& id, + const std::string& attachment_id); + + std::optional mark_aborted(const std::string& id); + + // pending → expired where expires_at < now; returns expired rows. + std::vector expire_stale(); + + // Staging keys of still-pending sessions (orphan GC must keep these). + std::vector pending_s3_keys(); + + // One PG transaction. Callback may call S3 while the row lock is held. + // Commit explicitly via UploadLock::commit(); otherwise the work rolls back. + void with_lock(const std::function& fn); + +private: + PgPool& pool_; +}; + +// Row lock for a single complete(). Not safe to use after with_lock returns. +class UploadLock { +public: + std::optional lock(const std::string& id); + + std::optional find_attachment(const std::string& id); + + // Inserts attachment and its job in this transaction; job_id equals attachment id. + // ON CONFLICT (id) DO NOTHING. inserted=false and nullopt → row already exists. + std::optional insert_queued(const Attachment& in, bool& inserted); + + void mark_completed(const std::string& id, const std::string& attachment_id); + void mark_expired(const std::string& id); + void commit(); + +private: + friend class DirectUploadRepo; + explicit UploadLock(pqxx::work& tx) : tx_(tx) {} + + pqxx::work& tx_; + bool committed_ = false; +}; diff --git a/src/errors.hpp b/src/errors.hpp new file mode 100644 index 0000000..8589957 --- /dev/null +++ b/src/errors.hpp @@ -0,0 +1,15 @@ +#pragma once + +#include +#include + +// PostgreSQL или Valkey недоступны либо не ответили вовремя: клиент получает 503. +struct DependencyUnavailable : std::runtime_error { + using std::runtime_error::runtime_error; +}; + +struct AttachmentFailed : std::runtime_error { + AttachmentFailed() : std::runtime_error("attachment processing failed") {} +}; + +bool is_dependency_failure(const std::exception& e); diff --git a/src/fault_injection.hpp b/src/fault_injection.hpp new file mode 100644 index 0000000..85dea36 --- /dev/null +++ b/src/fault_injection.hpp @@ -0,0 +1,42 @@ +#pragma once + +#include +#include + +// Explicit local-test opt-in; no HTTP parameter can enable fault injection. +inline void lab_crash_at(const char* point) { + const char* enabled = std::getenv("LAB_ENABLE_FAULT_INJECTION"); + const char* selected = std::getenv("LAB_FAULT_POINT"); + if (enabled && std::strcmp(enabled, "1") == 0 && selected && + std::strcmp(selected, point) == 0) std::_Exit(86); +} + +#include +#include +#include +#include +#include + +// One injection per container/job/point; marker survives a process restart. +inline void lab_worker_fault(const char* point, const std::string& job_id, int version) { + const char* enabled = std::getenv("LAB_ENABLE_FAULT_INJECTION"); + const char* selected = std::getenv("LAB_FAULT_POINT"); + if (!enabled || std::strcmp(enabled, "1") || !selected || std::strcmp(selected, point)) return; + const char* job = std::getenv("LAB_FAULT_JOB_ID"); + const char* target_version = std::getenv("LAB_FAULT_PIPELINE_VERSION"); + if ((job && job_id != job) || (target_version && std::to_string(version) != target_version)) return; + const std::string base = "/tmp/lab-fault/" + std::string(point) + "." + job_id; + std::filesystem::create_directories("/tmp/lab-fault"); + if (std::filesystem::exists(base + ".reached")) return; + std::ofstream marker(base + ".reached"); + marker << version << '\n'; + marker.close(); + const char* action = std::getenv("LAB_FAULT_ACTION"); + if (action && std::strcmp(action, "pause") == 0) { + while (!std::filesystem::exists(base + ".release")) { + std::this_thread::sleep_for(std::chrono::milliseconds(25)); + } + } else { + std::_Exit(86); + } +} diff --git a/src/image_pipeline.cpp b/src/image_pipeline.cpp new file mode 100644 index 0000000..23d3e61 --- /dev/null +++ b/src/image_pipeline.cpp @@ -0,0 +1,151 @@ +#include "image_pipeline.hpp" +#include "image_util.hpp" + +#include +#define STB_IMAGE_RESIZE_IMPLEMENTATION +#include +#define STB_IMAGE_WRITE_IMPLEMENTATION +#include +#include +#include + +#include +#include +#include + +namespace { +int orientation(const std::vector& bytes) { + const unsigned char* data = bytes.data(); + std::size_t size = bytes.size(); + std::vector exif; + // PNG eXIf stores a TIFF header without the JPEG Exif prefix. + if (size >= 8 && std::memcmp(data, "\x89PNG\r\n\x1a\n", 8) == 0) { + for (std::size_t pos = 8; pos + 12 <= size;) { + const std::uint32_t len = (std::uint32_t(data[pos]) << 24) | + (std::uint32_t(data[pos + 1]) << 16) | + (std::uint32_t(data[pos + 2]) << 8) | data[pos + 3]; + if (len > size - pos - 12) break; + if (std::memcmp(data + pos + 4, "eXIf", 4) == 0) { + exif.assign({'E', 'x', 'i', 'f', 0, 0}); + exif.insert(exif.end(), data + pos + 8, data + pos + 8 + len); + data = exif.data(); + size = exif.size(); + break; + } + pos += std::size_t(len) + 12; + } + } + std::unique_ptr metadata( + exif_data_new_from_data(data, static_cast(size)), exif_data_unref); + if (!metadata) return 1; + const auto* entry = exif_content_get_entry(metadata->ifd[EXIF_IFD_0], EXIF_TAG_ORIENTATION); + if (!entry || entry->format != EXIF_FORMAT_SHORT || entry->size < 2) return 1; + const int result = exif_get_short(entry->data, exif_data_get_byte_order(metadata.get())); + return result >= 1 && result <= 8 ? result : 1; +} +struct Raster { + std::vector pixels; + int width; + int height; +}; + +Raster decode(const std::vector& bytes) { + const ImageLimits limits; + if (bytes.empty() || bytes.size() > static_cast(limits.max_bytes) || + !sniff_content_type(bytes.data(), bytes.size())) { + throw InvalidImage("invalid_image"); + } + int w = 0, h = 0, channels = 0; + if (!stbi_info_from_memory(bytes.data(), static_cast(bytes.size()), &w, &h, &channels) || + w <= 0 || h <= 0) throw InvalidImage("invalid_image"); + if (std::int64_t(w) * h > limits.max_pixels) throw InvalidImage("image_too_large"); + std::unique_ptr rgba( + stbi_load_from_memory(bytes.data(), static_cast(bytes.size()), &w, &h, &channels, 4), + stbi_image_free); + if (!rgba) throw InvalidImage("invalid_image"); + const int o = orientation(bytes); + const int width = o >= 5 ? h : w; + const int height = o >= 5 ? w : h; + std::vector rgb(std::size_t(width) * height * 3); + for (int y = 0; y < h; ++y) { + for (int x = 0; x < w; ++x) { + int dx = x, dy = y; + switch (o) { + case 2: dx = w - 1 - x; break; + case 3: dx = w - 1 - x; dy = h - 1 - y; break; + case 4: dy = h - 1 - y; break; + case 5: dx = y; dy = x; break; + case 6: dx = h - 1 - y; dy = x; break; + case 7: dx = h - 1 - y; dy = w - 1 - x; break; + case 8: dx = y; dy = w - 1 - x; break; + } + const auto* pixel = rgba.get() + (std::size_t(y) * w + x) * 4; + auto* target = rgb.data() + (std::size_t(dy) * width + dx) * 3; + for (int c = 0; c < 3; ++c) { + target[c] = static_cast( + (pixel[c] * pixel[3] + 255 * (255 - pixel[3]) + 127) / 255); + } + } + } + rgba.reset(); + return Raster{std::move(rgb), width, height}; +} + +Raster resize(const unsigned char* pixels, int width, int height, int stride, + int out_w, int out_h) { + Raster result{std::vector(std::size_t(out_w) * out_h * 3), out_w, out_h}; + if (!stbir_resize_uint8(pixels, width, height, stride, + result.pixels.data(), out_w, out_h, 0, 3)) { + throw std::runtime_error("resize failed"); + } + return result; +} + +Raster fit(const Raster& input, int limit) { + const int extent = std::max(input.width, input.height); + const int w = extent > limit ? std::max(1, std::int64_t(input.width) * limit / extent) : input.width; + const int h = extent > limit ? std::max(1, std::int64_t(input.height) * limit / extent) : input.height; + return resize(input.pixels.data(), input.width, input.height, 0, w, h); +} + +EncodedImage jpeg(const Raster& raster, int quality = 85) { + EncodedImage image{{}, raster.width, raster.height}; + const auto write = [](void* context, void* data, int size) { + static_cast(context)->append(static_cast(data), size); + }; + if (!stbi_write_jpg_to_func(write, &image.bytes, raster.width, raster.height, + 3, raster.pixels.data(), quality)) { + throw std::runtime_error("JPEG encoding failed"); + } + return image; +} + +EncodedImage webp(const Raster& raster, float quality) { + unsigned char* output = nullptr; + const auto size = WebPEncodeRGB(raster.pixels.data(), raster.width, raster.height, + raster.width * 3, quality, &output); + std::unique_ptr owned(output, WebPFree); + if (!size) throw std::runtime_error("WebP encoding failed"); + return EncodedImage{std::string(reinterpret_cast(output), size), + raster.width, raster.height}; +} +} // namespace + +EncodedImage make_thumbnail(const std::vector& bytes) { + return jpeg(fit(decode(bytes), 256)); +} + +std::vector make_variants(const std::vector& bytes, int version) { + if (version != 1 && version != 2) throw std::invalid_argument("unsupported pipeline version"); + const int quality = version == 1 ? 85 : 90; + const auto raster = decode(bytes); + std::vector result; + result.push_back({"thumbnail", "image/jpeg", jpeg(fit(raster, 256), quality)}); + const int side = std::min(raster.width, raster.height); + const int left = (raster.width - side) / 2; + const int top = (raster.height - side) / 2; + const auto* center = raster.pixels.data() + (std::size_t(top) * raster.width + left) * 3; + result.push_back({"crop", "image/jpeg", jpeg(resize(center, side, side, raster.width * 3, 128, 128), quality)}); + result.push_back({"optimized", "image/webp", webp(fit(raster, 1280), version == 1 ? 80.0f : 90.0f)}); + return result; +} diff --git a/src/image_pipeline.hpp b/src/image_pipeline.hpp new file mode 100644 index 0000000..5d3afdc --- /dev/null +++ b/src/image_pipeline.hpp @@ -0,0 +1,25 @@ +#pragma once + +#include +#include +#include +#include + +struct InvalidImage : std::runtime_error { + explicit InvalidImage(const char* code) : std::runtime_error(code) {} +}; + +struct EncodedImage { + std::string bytes; + int width; + int height; +}; + +struct EncodedVariant { + std::string name; + std::string content_type; + EncodedImage image; +}; + +std::vector make_variants(const std::vector& original, int version = 1); +EncodedImage make_thumbnail(const std::vector& original); diff --git a/src/image_util.cpp b/src/image_util.cpp new file mode 100644 index 0000000..92d8976 --- /dev/null +++ b/src/image_util.cpp @@ -0,0 +1,90 @@ +#include "image_util.hpp" + +#define STB_IMAGE_IMPLEMENTATION +#define STBI_NO_STDIO +#define STBI_ONLY_JPEG +#define STBI_ONLY_PNG +#include "stb_image.h" + +#include + +std::optional sniff_content_type(const std::uint8_t* data, + std::size_t len) { + if (!data || len < 3) { + return std::nullopt; + } + // JPEG: FF D8 FF + if (data[0] == 0xFF && data[1] == 0xD8 && data[2] == 0xFF) { + return std::string("image/jpeg"); + } + // PNG: 89 50 4E 47 + if (len >= 4 && data[0] == 0x89 && data[1] == 0x50 && data[2] == 0x4E && + data[3] == 0x47) { + return std::string("image/png"); + } + return std::nullopt; +} + +std::string_view image_reject_code(ImageReject r) { + switch (r) { + case ImageReject::unsupported_media_type: + return "unsupported_media_type"; + case ImageReject::payload_too_large: + return "payload_too_large"; + case ImageReject::invalid_image: + return "invalid_image"; + } + return "invalid_image"; +} + +std::optional validate_image(const std::uint8_t* data, + std::size_t len, + const ImageLimits& limits, + ImageInfo& out) { + if (!data || len == 0) { + return ImageReject::unsupported_media_type; + } + if (static_cast(len) > limits.max_bytes) { + return ImageReject::payload_too_large; + } + + auto sniffed = sniff_content_type(data, len); + if (!sniffed) { + return ImageReject::unsupported_media_type; + } + + int w = 0; + int h = 0; + int comp = 0; + if (!stbi_info_from_memory(reinterpret_cast(data), + static_cast(len), &w, &h, &comp)) { + return ImageReject::invalid_image; + } + if (w <= 0 || h <= 0) { + return ImageReject::invalid_image; + } + + const std::int64_t pixels = + static_cast(w) * static_cast(h); + if (pixels > limits.max_pixels) { + return ImageReject::payload_too_large; + } + + int load_w = 0; + int load_h = 0; + int load_comp = 0; + stbi_uc* decoded = stbi_load_from_memory( + reinterpret_cast(data), static_cast(len), &load_w, + &load_h, &load_comp, 0); + if (!decoded) { + return ImageReject::invalid_image; + } + // Integrity only — do not retain decoded raster. + stbi_image_free(decoded); + + out.content_type = *sniffed; + out.width = w; + out.height = h; + out.pixel_count = pixels; + return std::nullopt; +} diff --git a/src/image_util.hpp b/src/image_util.hpp new file mode 100644 index 0000000..f39a310 --- /dev/null +++ b/src/image_util.hpp @@ -0,0 +1,41 @@ +#pragma once + +#include +#include +#include +#include +#include + +struct ImageLimits { + std::int64_t max_bytes = 10'485'760; // 10 MiB + std::int64_t max_pixels = 40'000'000; // decoded width*height +}; + +enum class ImageReject { + unsupported_media_type, // → 415 + payload_too_large, // → 413 (bytes or pixels) + invalid_image, // → 415 (corrupt / undecodable) +}; + +struct ImageInfo { + std::string content_type; // image/png | image/jpeg + int width = 0; + int height = 0; + std::int64_t pixel_count = 0; +}; + +// Magic sniff only (does not decode). Returns nullopt if neither PNG nor JPEG. +std::optional sniff_content_type(const std::uint8_t* data, + std::size_t len); + +// Full validation pipeline from contracts: +// sniff → stbi_info (dims) → pixel limit → stbi_load (integrity) → free. +// On success fills `out`. On failure returns ImageReject; decoded pixels are +// never retained after return. +std::optional validate_image(const std::uint8_t* data, + std::size_t len, + const ImageLimits& limits, + ImageInfo& out); + +// Human-readable error_code for Attachment failed path / API body. +std::string_view image_reject_code(ImageReject r); diff --git a/src/job_admin_main.cpp b/src/job_admin_main.cpp new file mode 100644 index 0000000..e2fb96d --- /dev/null +++ b/src/job_admin_main.cpp @@ -0,0 +1,110 @@ +#include "db.hpp" +#include "outbox.hpp" +#include "s3_client.hpp" + +#include +#include +#include +#include + +namespace { +void verify_source(S3Client& s3, const std::string& key, std::size_t expected, + const std::string& checksum) { + crypto_hash_sha256_state state; + crypto_hash_sha256_init(&state); + std::size_t received = 0; + s3.get_object(key, [&](const char* data, std::size_t n) { + if (received > expected || n > expected - received) throw std::runtime_error("source mismatch"); + crypto_hash_sha256_update(&state, reinterpret_cast(data), n); + received += n; + }); + unsigned char digest[crypto_hash_sha256_BYTES]; + crypto_hash_sha256_final(&state, digest); + char hex[crypto_hash_sha256_BYTES * 2 + 1]; + sodium_bin2hex(hex, sizeof(hex), digest, sizeof(digest)); + if (received != expected || checksum != hex) throw std::runtime_error("source checksum mismatch"); +} +} + +int main(int argc, char** argv) { + const bool replay = argc == 7 && std::string(argv[1]) == "replay" && + std::string(argv[3]) == "--actor" && std::string(argv[5]) == "--reason"; + const bool upgrade = argc == 9 && std::string(argv[1]) == "upgrade" && + std::string(argv[3]) == "--version" && std::string(argv[5]) == "--actor" && + std::string(argv[7]) == "--reason"; + if (!replay && !upgrade) { + std::cerr << "usage: job_admin replay JOB_UUID --actor NAME --reason REASON\n" + " job_admin upgrade ATTACHMENT_UUID --version 2 --actor NAME --reason REASON\n"; + return 2; + } + const std::string id = argv[2], actor = argv[replay ? 4 : 6], reason = argv[replay ? 6 : 8]; + const std::regex uuid("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"); + if (!std::regex_match(id, uuid) || actor.empty() || actor.size() > 100 || reason.empty() || + reason.size() > 500 || actor.find_first_not_of(" \t\r\n") == std::string::npos || + reason.find_first_not_of(" \t\r\n") == std::string::npos) return 2; + if (upgrade && std::string(argv[4]) != "1" && std::string(argv[4]) != "2") return 2; + try { + if (sodium_init() < 0) return 1; + auto conn = open_pg_connection(read_secret_file("DATABASE_URL_FILE"), true); + S3Client s3(S3Client::from_env()); + pqxx::work tx(*conn); + if (upgrade) { + const int version = std::stoi(argv[4]); + tx.exec("SELECT pg_advisory_xact_lock(hashtextextended('pipeline:' || $1::uuid::text,0))", pqxx::params{id}); + auto rows = tx.exec("SELECT pipeline_version,s3_key,size_bytes,sha256 FROM attachments " + "WHERE id=$1::uuid FOR UPDATE", pqxx::params{id}); + if (rows.empty() || version < rows[0]["pipeline_version"].as()) return 1; + if (version == rows[0]["pipeline_version"].as()) { + const auto jobs = tx.exec("SELECT id FROM jobs WHERE attachment_id=$1::uuid AND pipeline_version=$2", + pqxx::params{id, version}); + if (jobs.empty()) return 1; + std::cout << nlohmann::json{{"job_id", jobs[0][0].as()}, + {"pipeline_version", version}, {"created", false}}.dump() << '\n'; + return 0; + } + const auto& row = rows[0]; + verify_source(s3, row["s3_key"].as(), row["size_bytes"].as(), row["sha256"].as()); + const auto job = tx.exec("INSERT INTO jobs(id,attachment_id,pipeline_version,source_key) " + "VALUES(gen_random_uuid(),$1::uuid,$2,$3) RETURNING id", + pqxx::params{id, version, row["s3_key"].as()})[0][0].as(); + tx.exec("UPDATE attachments SET pipeline_version=$2, " + "status=CASE WHEN published_version IS NULL THEN 'queued' ELSE status END, " + "error_code=CASE WHEN published_version IS NULL THEN NULL ELSE error_code END, " + "updated_at=CASE WHEN published_version IS NULL THEN now() ELSE updated_at END WHERE id=$1::uuid", + pqxx::params{id, version}); + tx.exec("INSERT INTO pipeline_requests(attachment_id,pipeline_version,job_id,actor,reason) " + "VALUES($1::uuid,$2,$3::uuid,$4,$5)", pqxx::params{id, version, job, actor, reason}); + enqueue_attachment_job(tx, job); + tx.commit(); + std::cout << nlohmann::json{{"job_id", job}, {"pipeline_version", version}, {"created", true}}.dump() << '\n'; + return 0; + } + if (!tx.exec("SELECT pg_try_advisory_xact_lock(hashtextextended($1::uuid::text,0))", + pqxx::params{id})[0][0].as()) return 1; + const auto rows = tx.exec( + "SELECT j.attachment_id,j.status,j.retries,j.source_key,j.pipeline_version, " + "a.pipeline_version AS desired_version,a.staging_cleaned_at,a.size_bytes,a.sha256 " + "FROM jobs j JOIN attachments a ON a.id=j.attachment_id " + "WHERE j.id=$1::uuid FOR UPDATE OF j,a", pqxx::params{id}); + if (rows.empty() || rows[0]["status"].as() != "failed" || + rows[0]["pipeline_version"].as() != rows[0]["desired_version"].as()) return 1; + const auto& row = rows[0]; + const std::string source = row["source_key"].as(); + if (source.rfind("staging/",0) == 0 && !row["staging_cleaned_at"].is_null()) return 1; + verify_source(s3, source, row["size_bytes"].as(), row["sha256"].as()); + tx.exec("INSERT INTO job_replays(job_id,actor,reason,previous_error_code,retries_before) " + "SELECT id,$2,$3,error_code,retries FROM jobs WHERE id=$1::uuid", pqxx::params{id, actor, reason}); + tx.exec("UPDATE jobs SET status='queued',retry_base=retries,error_code=NULL, " + "next_attempt_at=now(),updated_at=now() WHERE id=$1::uuid", pqxx::params{id}); + tx.exec("UPDATE attachments SET status='queued',s3_key=$2,error_code=NULL,variants='[]'::jsonb,updated_at=now() " + "WHERE id=$1::uuid AND published_version IS NULL", + pqxx::params{row["attachment_id"].as(), source}); + enqueue_attachment_job(tx, id); + tx.commit(); + std::cout << "replayed job=" << id << '\n'; + return 0; + } catch (const std::exception&) { + std::cerr << "operator action failed; transaction was not confirmed\n"; + return 1; + } +} diff --git a/src/job_repo.cpp b/src/job_repo.cpp new file mode 100644 index 0000000..2abc5ea --- /dev/null +++ b/src/job_repo.cpp @@ -0,0 +1,139 @@ +#include "telemetry.hpp" +#include "job_repo.hpp" +#include "image_pipeline.hpp" +#include "outbox.hpp" +#include "fault_injection.hpp" + +#include +#include +#include +#include + +JobRepo::Result JobRepo::run(const std::string& job_id, const std::string& attachment_id, + int version, int attempt, const std::function& process) { + auto lease = pool_.acquire(); + { + pqxx::nontransaction tx(*lease); + if (!tx.exec("SELECT pg_try_advisory_lock(hashtextextended($1::uuid::text, 0))", + pqxx::params{job_id})[0][0].as()) return Result::Busy; + } + struct Unlock { + pqxx::connection& conn; + const std::string& id; + ~Unlock() { + try { + pqxx::nontransaction tx(conn); + tx.exec("SELECT pg_advisory_unlock(hashtextextended($1::uuid::text, 0))", pqxx::params{id}); + } catch (...) {} + } + } unlock{*lease, job_id}; + JobInput input; + { + pqxx::work tx(*lease); + auto rows = tx.exec( + "SELECT j.status, j.retries, j.retry_base, j.source_key, j.pipeline_version AS job_version, " + "a.pipeline_version AS desired_version, j.next_attempt_at<=now() AS due, " + "a.status AS attachment_status FROM jobs j " + "JOIN attachments a ON a.id=j.attachment_id " + "WHERE j.id=$1::uuid AND j.attachment_id=$2::uuid FOR UPDATE OF j, a", + pqxx::params{job_id, attachment_id}); + if (rows.empty()) return Result::Missing; + const auto& row = rows[0]; + if (row["job_version"].as() != version) return Result::Missing; + const std::string status = row["status"].as(); + if (version < row["desired_version"].as() || status == "superseded") { + tx.exec("UPDATE jobs SET status='superseded', updated_at=now() " + "WHERE id=$1::uuid AND status IN ('queued','processing')", pqxx::params{job_id}); + tx.commit(); + return Result::Superseded; + } + if (version > row["desired_version"].as()) return Result::Missing; + if (status == "ready" || status == "failed") return Result::Done; + input = JobInput{version, row["source_key"].as()}; + const int retries = row["retries"].as(); + // A previous processing state with no advisory lock means its worker died. + if (status == "processing") { + return fail(tx, job_id, attachment_id, version, retries + 1, row["retry_base"].as(), "processing_failed", false); + } + // A newer attempt is already durable in outbox/the stream; discard an old delivery. + if (attempt < retries + 1) return Result::Scheduled; + if (attempt > retries + 1) return Result::Missing; + if (!row["due"].as()) return Result::Busy; + tx.exec("UPDATE jobs SET status='processing', error_code=NULL, updated_at=now() " + "WHERE id=$1::uuid", pqxx::params{job_id}); + tx.exec("UPDATE attachments SET status='processing', error_code=NULL, updated_at=now() " + "WHERE id=$1::uuid AND pipeline_version=$2 AND published_version IS NULL", + pqxx::params{attachment_id, version}); + tx.commit(); + } + try { + lab_worker_fault("worker_before_effect", job_id, version); + const JobResult result = process(input); + telemetry::Span commit_span("postgresql.publish_ready", opentelemetry::trace::SpanKind::kClient); + pqxx::work tx(*lease); + const auto current = tx.exec( + "SELECT a.pipeline_version, extract(epoch FROM now()-j.created_at) AS ready_seconds FROM jobs j JOIN attachments a ON a.id=j.attachment_id " + "WHERE j.id=$1::uuid FOR UPDATE OF j,a", pqxx::params{job_id}); + tx.exec("INSERT INTO attachment_results(attachment_id,pipeline_version,job_id,original_key,variants) " + "VALUES($1::uuid,$2,$3::uuid,$4,$5::jsonb) ON CONFLICT DO NOTHING", + pqxx::params{attachment_id, version, job_id, result.original_key, result.variants_json}); + const bool publish = current[0][0].as() == version; + if (publish) { + // The pointer and complete result become visible in one transaction. + tx.exec("UPDATE attachments a SET status='ready', published_version=$2, " + "s3_key=r.original_key, variants=r.variants, error_code=NULL, updated_at=now() " + "FROM attachment_results r WHERE a.id=$1::uuid AND a.pipeline_version=$2 " + "AND r.attachment_id=a.id AND r.pipeline_version=$2", + pqxx::params{attachment_id, version}); + } + tx.exec("UPDATE jobs SET status=$2, error_code=NULL, updated_at=now() WHERE id=$1::uuid", + pqxx::params{job_id, publish ? "ready" : "superseded"}); + tx.commit(); + if (publish) telemetry::duration("attachment.ready.duration", current[0]["ready_seconds"].as()); + lab_worker_fault("worker_after_commit", job_id, version); + return publish ? Result::Done : Result::Superseded; + } catch (const std::exception& e) { + const auto* invalid = dynamic_cast(&e); + const std::string code = invalid ? invalid->what() : "processing_failed"; + pqxx::work tx(*lease); + auto rows = tx.exec("SELECT j.status,j.retries,j.retry_base,a.pipeline_version FROM jobs j " + "JOIN attachments a ON a.id=j.attachment_id WHERE j.id=$1::uuid FOR UPDATE OF j,a", + pqxx::params{job_id}); + if (rows.empty()) return Result::Missing; + if (rows[0]["pipeline_version"].as() != version) { + tx.exec("UPDATE jobs SET status='superseded',updated_at=now() WHERE id=$1::uuid " + "AND status IN ('queued','processing')", pqxx::params{job_id}); + tx.commit(); + return Result::Superseded; + } + const std::string status = rows[0]["status"].as(); + // A lost COMMIT reply must not roll back an already published ready result. + if (status == "ready" || status == "failed") return Result::Done; + return fail(tx, job_id, attachment_id, version, rows[0]["retries"].as() + 1, + rows[0]["retry_base"].as(), code, invalid != nullptr); + } +} + +JobRepo::Result JobRepo::fail(pqxx::work& tx, const std::string& job_id, + const std::string& attachment_id, int version, int retries, int retry_base, + const std::string& code, bool permanent) { + const bool failed = permanent || retries - retry_base >= policy_.max_attempts; + long long ceiling = policy_.base_delay_ms; + for (int i = 1; i < retries - retry_base; ++i) ceiling = std::min(policy_.max_delay_ms, ceiling * 2); + ceiling = std::min(policy_.max_delay_ms, ceiling); + thread_local std::mt19937 rng(std::random_device{}()); + const int delay = failed ? 0 : std::uniform_int_distribution( + static_cast((ceiling + 1) / 2), static_cast(ceiling))(rng); + tx.exec("UPDATE jobs SET status=$2, retries=$3, error_code=$4, " + "next_attempt_at=now()+($5::bigint * interval '1 millisecond'), updated_at=now() " + "WHERE id=$1::uuid", + pqxx::params{job_id, failed ? "failed" : "queued", retries, code, delay}); + tx.exec("UPDATE attachments SET status=$2, error_code=$3, updated_at=now() " + "WHERE id=$1::uuid AND status='processing' AND pipeline_version=$4 AND published_version IS NULL", + pqxx::params{attachment_id, failed ? "failed" : "queued", + failed ? std::optional(code) : std::nullopt, version}); + if (!failed) enqueue_attachment_job(tx, job_id); + tx.commit(); + telemetry::event(failed ? "worker.attempt.failed" : "worker.attempt.retry", true); + return failed ? Result::Done : Result::Scheduled; +} diff --git a/src/job_repo.hpp b/src/job_repo.hpp new file mode 100644 index 0000000..d5e25bc --- /dev/null +++ b/src/job_repo.hpp @@ -0,0 +1,35 @@ +#pragma once + +#include "db.hpp" +#include +#include + +struct JobInput { + int pipeline_version; + std::string source_key; +}; + +struct JobResult { + std::string original_key; + std::string variants_json; +}; + +struct RetryPolicy { + int max_attempts = 6; + int base_delay_ms = 1000; + int max_delay_ms = 60000; +}; + +class JobRepo { +public: + enum class Result { Done, Scheduled, Busy, Missing, Superseded }; + JobRepo(PgPool& pool, RetryPolicy policy) : pool_(pool), policy_(policy) {} + Result run(const std::string& job_id, const std::string& attachment_id, + int version, int attempt, const std::function& process); +private: + Result fail(pqxx::work& tx, const std::string& job_id, + const std::string& attachment_id, int version, int retries, int retry_base, + const std::string& code, bool permanent); + PgPool& pool_; + RetryPolicy policy_; +}; diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..52ac9f9 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,2361 @@ +#include "telemetry.hpp" +#include "observability_monitor.hpp" +#include "models.hpp" +#include "db.hpp" +#include "auth.hpp" +#include "user_repo.hpp" +#include "chat_repo.hpp" +#include "message_repo.hpp" +#include "attachment_repo.hpp" +#include "attachment_storage.hpp" +#include "outbox.hpp" +#include "fault_injection.hpp" +#include "direct_upload_repo.hpp" +#include "s3_client.hpp" +#include "image_util.hpp" +#include "redis_pool.hpp" +#include "session_repo.hpp" +#include "pg_session_repo.hpp" +#include "session_repo_base.hpp" +#include "errors.hpp" + +#include +#include +#include +#include +#include + + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +static std::string g_instance_id; + +// Cap concurrent attachment uploads so RSS does not track HTTP_WORKERS × body. +static std::mutex g_up_mu; +static std::condition_variable g_up_cv; +static int g_up_active = 0; +static int g_up_max = 3; + +struct UploadSlot { + UploadSlot() { + std::unique_lock lk(g_up_mu); + g_up_cv.wait(lk, []() { return g_up_active < g_up_max; }); + ++g_up_active; + } + ~UploadSlot() { + { + std::lock_guard lk(g_up_mu); + --g_up_active; + } + // Return free heap pages to the OS so docker-stats RSS tracks the + // concurrent footprint instead of monotonic arena growth across uploads. + malloc_trim(0); + g_up_cv.notify_one(); + } + UploadSlot(const UploadSlot&) = delete; + UploadSlot& operator=(const UploadSlot&) = delete; +}; + +// Zero-copy istream over an existing contiguous buffer (no string copy). +struct MemBuf : std::streambuf { + MemBuf(const char* p, std::size_t n) { + auto* base = const_cast(p); + setg(base, base, base + n); + } +}; + +static std::string make_instance_id() { + const char* env = std::getenv("INSTANCE_ID"); + if (env && *env) { + return std::string(env); + } + const char* host = std::getenv("HOSTNAME"); + if (host && *host) { + return std::string(host); + } + static const char hex[] = "0123456789abcdef"; + std::random_device rd; + std::string s(8, '0'); + for (auto& c : s) c = hex[rd() & 0xf]; + return s; +} + + +static void send_all(int fd, const std::string& data) { + telemetry::response(data); + size_t sent = 0; + while (sent < data.size()) { + const ssize_t n = ::write(fd, data.data() + sent, data.size() - sent); + if (n <= 0) { + return; + } + sent += static_cast(n); + } +} + + +static std::string http_response(int status, const char* reason, + const std::string& request_id, + const std::string& body) { + std::string out; + out += "HTTP/1.1 " + std::to_string(status) + " " + reason + "\r\n"; + out += "Content-Type: application/json\r\n"; + out += "X-Request-Id: " + request_id + "\r\n"; + out += "X-Instance-Id: " + g_instance_id + "\r\n"; + out += "Content-Length: " + std::to_string(body.size()) + "\r\n"; + out += "Connection: close\r\n"; + out += "\r\n"; + out += body; + return out; +} + +static std::string http_no_content(const std::string& request_id) { + std::string out; + out += "HTTP/1.1 204 No Content\r\n"; + out += "X-Request-Id: " + request_id + "\r\n"; + out += "X-Instance-Id: " + g_instance_id + "\r\n"; + out += "Content-Length: 0\r\n"; + out += "Connection: close\r\n"; + out += "\r\n"; + return out; +} + + +static const char* status_reason(int status) { + switch (status) { + case 400: return "Bad Request"; + case 401: return "Unauthorized"; + case 404: return "Not Found"; + case 409: return "Conflict"; + case 413: return "Payload Too Large"; + case 415: return "Unsupported Media Type"; + case 500: return "Internal Server Error"; + case 503: return "Service Unavailable"; + default: return "Error"; + } +} + + +static std::string error_response(int status, + const std::string& code, + const std::string& message, + const std::string& request_id, + const std::string& www_authenticate = "") { + nlohmann::json j; + j["error"]["code"] = code; + j["error"]["message"] = message; + j["error"]["request_id"] = request_id; + const std::string body = j.dump(); + + std::string head = + "HTTP/1.1 " + std::to_string(status) + " " + + status_reason(status) + "\r\n" + "Content-Type: application/json\r\n" + "X-Request-Id: " + request_id + "\r\n" + + "X-Instance-Id: " + g_instance_id + "\r\n"; + if (status == 401 && !www_authenticate.empty()) { + head += "WWW-Authenticate: " + www_authenticate + "\r\n"; + } + head += "Content-Length: " + std::to_string(body.size()) + "\r\n"; + head += "Connection: close\r\n\r\n"; + return head + body; +} + + +static std::string failure_response(const std::exception& e, const char* what, + const std::string& request_id) { + if (dynamic_cast(&e)) { + return error_response(409, "conflict", "attachment processing failed", request_id); + } + telemetry::event("dependency.operation.failed", true); + if (is_dependency_failure(e)) { + return error_response(503, "unavailable", "service unavailable", request_id); + } + return error_response(500, "internal_error", "internal error", request_id); +} + + +static std::optional parse_json_object(const std::string& body) { + nlohmann::json j; + try { + j = nlohmann::json::parse(body); + } catch (const nlohmann::json::exception&) { + return std::nullopt; + } + + if (!j.is_object()) { + return std::nullopt; + } + return j; +} + + +static std::optional find_unexpected_key( + const nlohmann::json& j, + std::initializer_list allowed) { + for (const auto& [key, value] : j.items()) { + bool ok = false; + for (const char* a : allowed) { + if (key == a) { ok = true; break; } + } + + if (!ok) { + return key; + } + } + return std::nullopt; +} + + +static std::optional get_string_field( + const nlohmann::json& j, const char* key) { + auto it = j.find(key); + if (it == j.end() || !it->is_string()) { + return std::nullopt; + } + return it->get(); +} + +static std::optional get_int64_field( + const nlohmann::json& j, const char* key) { + auto it = j.find(key); + if (it == j.end() || !it->is_number_integer()) { + return std::nullopt; + } + return it->get(); +} + +static bool valid_sha256_hex(const std::string& s) { + if (s.size() != 64) { + return false; + } + for (char c : s) { + if (!((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f'))) { + return false; + } + } + return true; +} + + +static std::optional> get_string_array( + const nlohmann::json& j, const char* key) { + auto it = j.find(key); + if (it == j.end() || !it->is_array()) { + return std::nullopt; + } + std::vector out; + out.reserve(it->size()); + for (const auto& item : *it) { + if (!item.is_string()) { + return std::nullopt; + } + out.push_back(item.get()); + } + return out; +} + +static bool parse_request_line(const std::string& first_line, + std::string& method, + std::string& path, + std::string& query) { + query.clear(); + const auto sp1 = first_line.find(' '); + if (sp1 == std::string::npos) { + return false; + } + + const auto sp2 = first_line.find(' ', sp1 + 1); + if (sp2 == std::string::npos) { + return false; + } + + method = first_line.substr(0, sp1); + path = first_line.substr(sp1 + 1, sp2 - sp1 - 1); + const auto q = path.find('?'); + if (q != std::string::npos) { + query = path.substr(q + 1); + path.resize(q); + } + return !method.empty() && !path.empty() && path[0] == '/'; +} + +static bool match_id_path(const std::string& path, + const std::string& prefix, + std::string& id) { + if (path.compare(0, prefix.size(), prefix) != 0) { + return false; + } + id = path.substr(prefix.size()); + return !id.empty() && id.find('/') == std::string::npos; +} + + +static bool match_chat_messages(const std::string& path, std::string& chat_id) { + const std::string prefix = "/api/v1/chats/"; + const std::string suffix = "/messages"; + if (path.size() <= prefix.size() + suffix.size()) { + return false; + } + if (path.compare(0, prefix.size(), prefix) != 0) { + return false; + } + if (path.compare(path.size() - suffix.size(), suffix.size(), suffix) != 0) { + return false; + } + chat_id = path.substr(prefix.size(), + path.size() - prefix.size() - suffix.size()); + return !chat_id.empty() && chat_id.find('/') == std::string::npos; +} + +static bool match_chat_attachments(const std::string& path, std::string& chat_id) { + const std::string prefix = "/api/v1/chats/"; + const std::string suffix = "/attachments"; + if (path.size() <= prefix.size() + suffix.size()) { + return false; + } + if (path.compare(0, prefix.size(), prefix) != 0) { + return false; + } + if (path.compare(path.size() - suffix.size(), suffix.size(), suffix) != 0) { + return false; + } + chat_id = path.substr(prefix.size(), + path.size() - prefix.size() - suffix.size()); + return !chat_id.empty() && chat_id.find('/') == std::string::npos; +} + +// Track 1 extension: POST /api/v1/chats/{id}/direct-uploads +static bool match_chat_direct_uploads(const std::string& path, + std::string& chat_id) { + const std::string prefix = "/api/v1/chats/"; + const std::string suffix = "/direct-uploads"; + if (path.size() <= prefix.size() + suffix.size()) { + return false; + } + if (path.compare(0, prefix.size(), prefix) != 0) { + return false; + } + if (path.compare(path.size() - suffix.size(), suffix.size(), suffix) != 0) { + return false; + } + chat_id = path.substr(prefix.size(), + path.size() - prefix.size() - suffix.size()); + return !chat_id.empty() && chat_id.find('/') == std::string::npos; +} + +// POST /api/v1/direct-uploads/{id}/complete +static bool match_direct_upload_complete(const std::string& path, + std::string& upload_id) { + const std::string prefix = "/api/v1/direct-uploads/"; + const std::string suffix = "/complete"; + if (path.size() <= prefix.size() + suffix.size()) { + return false; + } + if (path.compare(0, prefix.size(), prefix) != 0) { + return false; + } + if (path.compare(path.size() - suffix.size(), suffix.size(), suffix) != 0) { + return false; + } + upload_id = path.substr(prefix.size(), + path.size() - prefix.size() - suffix.size()); + return !upload_id.empty() && upload_id.find('/') == std::string::npos; +} + +static bool match_attachment_content(const std::string& path, + std::string& attachment_id) { + const std::string prefix = "/api/v1/attachments/"; + const std::string suffix = "/content"; + if (path.size() <= prefix.size() + suffix.size()) { + return false; + } + if (path.compare(0, prefix.size(), prefix) != 0) { + return false; + } + if (path.compare(path.size() - suffix.size(), suffix.size(), suffix) != 0) { + return false; + } + attachment_id = path.substr(prefix.size(), + path.size() - prefix.size() - suffix.size()); + return !attachment_id.empty() && attachment_id.find('/') == std::string::npos; +} + + +static std::string to_lower(std::string s) { + for (char& c : s) { + c = static_cast(std::tolower(static_cast(c))); + } + return s; +} + + +static std::optional utf8_cps(const std::string& s) { + size_t i = 0; + size_t n = 0; + while (i < s.size()) { + const unsigned char c = static_cast(s[i]); + size_t w = 1; + if (c >= 0x80) { + if ((c & 0xE0) == 0xC0) w = 2; + else if ((c & 0xF0) == 0xE0) w = 3; + else if ((c & 0xF8) == 0xF0) w = 4; + else return std::nullopt; + if (i + w > s.size()) return std::nullopt; + for (size_t k = 1; k < w; ++k) { + if ((static_cast(s[i + k]) & 0xC0) != 0x80) { + return std::nullopt; + } + } + } + ++n; + i += w; + } + return n; +} + + +static bool cps_in_range(const std::string& s, size_t lo, size_t hi) { + const auto n = utf8_cps(s); + return n && *n >= lo && *n <= hi; +} + + +static std::unordered_map parse_headers( + const std::string& request, std::string::size_type after_first_line) { + std::unordered_map headers; + auto pos = after_first_line; + if (pos < request.size() && request.compare(pos, 2, "\r\n") == 0) { + pos += 2; + } + for (;;) { + const auto eol = request.find("\r\n", pos); + if (eol == std::string::npos || eol == pos) { + break; + } + const std::string line = request.substr(pos, eol - pos); + pos = eol + 2; + const auto colon = line.find(':'); + if (colon == std::string::npos) { + continue; + } + std::string name = to_lower(line.substr(0, colon)); + std::string value = line.substr(colon + 1); + while (!value.empty() && (value[0] == ' ' || value[0] == '\t')) { + value.erase(0, 1); + } + headers[name] = value; + } + return headers; +} + + +static std::string user_json(const User& user) { + nlohmann::json j; + j["id"] = user.id; + j["username"] = user.username; + j["display_name"] = user.display_name; + j["created_at"] = user.created_at; + return j.dump(); +} + + +static std::string attachment_json(const Attachment& a) { + nlohmann::json j; + j["id"] = a.id; + j["chat_id"] = a.chat_id; + j["owner_id"] = a.owner_id; + j["filename"] = a.filename; + j["content_type"] = a.content_type; + j["size_bytes"] = a.size_bytes; + j["sha256"] = a.sha256; + j["status"] = a.status; + j["variants"] = nlohmann::json::array(); + for (const auto& v : a.variants) { + j["variants"].push_back({{"name", v.name}, {"content_type", v.content_type}, + {"size_bytes", v.size_bytes}, {"sha256", v.sha256}, + {"width", v.width}, {"height", v.height}}); + } + if (a.error_code) { + j["error_code"] = *a.error_code; + } else { + j["error_code"] = nullptr; + } + j["created_at"] = a.created_at; + j["updated_at"] = a.updated_at; + return j.dump(); +} + +static std::string message_json(const Message& msg) { + nlohmann::json j; + j["id"] = msg.id; + j["chat_id"] = msg.chat_id; + j["sender_id"] = msg.sender_id; + j["text"] = msg.text; + j["created_at"] = msg.created_at; + j["attachment_ids"] = msg.attachment_ids; + return j.dump(); +} + + +static std::string chat_json(const Chat& chat) { + nlohmann::json j; + j["id"] = chat.id; + j["title"] = chat.title; + j["member_ids"] = chat.member_ids; + j["created_at"] = chat.created_at; + return j.dump(); +} + + +static std::string messages_page_json(const MessagePage& msgs) { + nlohmann::json j; + j["items"] = nlohmann::json::array(); + for (const auto& m : msgs.items) { + j["items"].push_back(nlohmann::json::parse(message_json(m))); + } + if (msgs.next_cursor) { + j["next_cursor"] = *msgs.next_cursor; + } else { + j["next_cursor"] = nullptr; + } + return j.dump(); +} + + +static std::string chats_page_json(const ChatPage& page) { + nlohmann::json j; + j["items"] = nlohmann::json::array(); + for (const auto& c : page.items) { + j["items"].push_back(nlohmann::json::parse(chat_json(c))); + } + if (page.next_cursor) { + j["next_cursor"] = *page.next_cursor; + } else { + j["next_cursor"] = nullptr; + } + return j.dump(); +} + + +static bool is_json_content_type(const std::string& raw) { + std::string s = to_lower(raw); + const auto sc = s.find(';'); + if (sc != std::string::npos) { + s.resize(sc); + } + while (!s.empty() && (s.back() == ' ' || s.back() == '\t')) { + s.pop_back(); + } + size_t a = 0; + while (a < s.size() && (s[a] == ' ' || s[a] == '\t')) { + ++a; + } + return s.substr(a) == "application/json"; +} + + +static int hex_val(char c) { + if (c >= '0' && c <= '9') return c - '0'; + if (c >= 'a' && c <= 'f') return c - 'a' + 10; + if (c >= 'A' && c <= 'F') return c - 'A' + 10; + return -1; +} + + +static bool json_content_type_ok( + const std::unordered_map& headers) { + const auto it = headers.find("content-type"); + return it != headers.end() && is_json_content_type(it->second); +} + +static std::string media_type_only(std::string ct) { + const auto semi = ct.find(';'); + if (semi != std::string::npos) { + ct.resize(semi); + } + while (!ct.empty() && (ct.back() == ' ' || ct.back() == '\t')) { + ct.pop_back(); + } + size_t a = 0; + while (a < ct.size() && (ct[a] == ' ' || ct[a] == '\t')) { + ++a; + } + return to_lower(ct.substr(a)); +} + +static std::optional image_content_type_declared( + const std::unordered_map& headers) { + const auto it = headers.find("content-type"); + if (it == headers.end()) { + return std::nullopt; + } + const std::string mt = media_type_only(it->second); + if (mt == "image/png" || mt == "image/jpeg") { + return mt; + } + return std::nullopt; +} + +// filename: 1–255 Unicode code points; no '/', '\\', NUL, or control chars. +static bool valid_attachment_filename(const std::string& s) { + const auto n = utf8_cps(s); + if (!n || *n < 1 || *n > 255) { + return false; + } + size_t i = 0; + while (i < s.size()) { + const unsigned char c = static_cast(s[i]); + uint32_t cp = c; + size_t w = 1; + if (c >= 0x80) { + if ((c & 0xE0) == 0xC0 && i + 1 < s.size()) { + w = 2; + cp = (static_cast(c & 0x1F) << 6) | + (static_cast(s[i + 1]) & 0x3F); + } else if ((c & 0xF0) == 0xE0 && i + 2 < s.size()) { + w = 3; + cp = (static_cast(c & 0x0F) << 12) | + ((static_cast(s[i + 1]) & 0x3F) << 6) | + (static_cast(s[i + 2]) & 0x3F); + } else if ((c & 0xF8) == 0xF0 && i + 3 < s.size()) { + w = 4; + cp = (static_cast(c & 0x07) << 18) | + ((static_cast(s[i + 1]) & 0x3F) << 12) | + ((static_cast(s[i + 2]) & 0x3F) << 6) | + (static_cast(s[i + 3]) & 0x3F); + } else { + return false; + } + } + if (cp == '/' || cp == '\\' || cp == 0 || + (cp < 0x20) || cp == 0x7F) { + return false; + } + i += w; + } + return true; +} + +static std::string make_uuid_v4() { + static std::mutex rng_mu; + static std::mt19937_64 rng{std::random_device{}()}; + std::uniform_int_distribution d16(0, 0xffff); + std::uniform_int_distribution d32(0, 0xffffffffu); + std::lock_guard lock(rng_mu); + std::ostringstream out; + out << std::hex << std::setfill('0'); + out << std::setw(8) << d32(rng); + out << '-' << std::setw(4) << d16(rng); + out << '-' << std::setw(4) << ((d16(rng) & 0x0fff) | 0x4000); + out << '-' << std::setw(4) << ((d16(rng) & 0x3fff) | 0x8000); + out << '-' << std::setw(4) << d16(rng) << std::setw(8) << d32(rng); + return out.str(); +} + +static std::string sha256_hex_bytes(const std::uint8_t* data, std::size_t len) { + unsigned char out[crypto_hash_sha256_BYTES]; + crypto_hash_sha256(out, data, len); + static const char hex[] = "0123456789abcdef"; + std::string r(sizeof(out) * 2, '0'); + for (std::size_t i = 0; i < sizeof(out); ++i) { + r[i * 2] = hex[out[i] >> 4]; + r[i * 2 + 1] = hex[out[i] & 0x0f]; + } + return r; +} + + +static bool contains_nul(const std::string& s) { + return s.find('\0') != std::string::npos; +} + +static bool is_unicode_space(uint32_t cp) { + if (cp <= 0x7F) { + return std::isspace(static_cast(cp)) != 0; + } + if (cp >= 0x2000 && cp <= 0x200A) { + return true; + } + switch (cp) { + case 0x00A0: + case 0x1680: + case 0x2028: + case 0x2029: + case 0x202F: + case 0x205F: + case 0x3000: + case 0xFEFF: + return true; + default: + return false; + } +} + +static bool is_blank(const std::string& s) { + size_t i = 0; + while (i < s.size()) { + const unsigned char c = static_cast(s[i]); + uint32_t cp = c; + size_t w = 1; + if (c >= 0x80) { + if ((c & 0xE0) == 0xC0 && i + 1 < s.size()) { + w = 2; + cp = (static_cast(c & 0x1F) << 6) + | (static_cast(s[i + 1]) & 0x3F); + } else if ((c & 0xF0) == 0xE0 && i + 2 < s.size()) { + w = 3; + cp = (static_cast(c & 0x0F) << 12) + | ((static_cast(s[i + 1]) & 0x3F) << 6) + | (static_cast(s[i + 2]) & 0x3F); + } else if ((c & 0xF8) == 0xF0 && i + 3 < s.size()) { + w = 4; + cp = (static_cast(c & 0x07) << 18) + | ((static_cast(s[i + 1]) & 0x3F) << 12) + | ((static_cast(s[i + 2]) & 0x3F) << 6) + | (static_cast(s[i + 3]) & 0x3F); + } else { + return false; + } + } + if (!is_unicode_space(cp)) { + return false; + } + i += w; + } + return true; +} + + +static bool valid_username(const std::string& s) { + static const std::regex re("^[a-z0-9_]{3,32}$"); + return std::regex_match(s, re); +} + + +static bool valid_uuid(const std::string& s) { + static const std::regex re( + "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-" + "[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"); + return std::regex_match(s, re); +} + +static bool valid_idempotency_key(const std::string& s) { + static const std::regex re("^[A-Za-z0-9._:-]{1,128}$"); + return std::regex_match(s, re); +} + + +static bool has_duplicate_ids(const std::vector& ids) { + std::unordered_set seen; + for (const auto& id : ids) { + if (!seen.insert(to_lower(id)).second) { + return true; + } + } + return false; +} + + +static std::string url_decode(const std::string& s) { + std::string out; + for (size_t i = 0; i < s.size(); ++i) { + if (s[i] == '%' && i + 2 < s.size()) { + const int hi = hex_val(s[i + 1]); + const int lo = hex_val(s[i + 2]); + if (hi >= 0 && lo >= 0) { + out.push_back(static_cast((hi << 4) | lo)); + i += 2; + continue; + } + } + out.push_back(s[i] == '+' ? ' ' : s[i]); + } + return out; +} + + +static std::unordered_map parse_query( + const std::string& query) { + std::unordered_map out; + size_t pos = 0; + while (pos < query.size()) { + auto amp = query.find('&', pos); + if (amp == std::string::npos) { + amp = query.size(); + } + const auto pair = query.substr(pos, amp - pos); + const auto eq = pair.find('='); + if (eq != std::string::npos) { + out[url_decode(pair.substr(0, eq))] = + url_decode(pair.substr(eq + 1)); + } + pos = amp + 1; + } + return out; +} + + +static std::atomic g_listen{-1}; +static std::atomic g_stop{false}; +static std::atomic g_draining{false}; +static std::mutex g_live_mu; +static std::unordered_set g_live; + +static void set_timeouts(int fd) { + // Allow larger attachment uploads (≤10 MiB) without premature timeout. + timeval tv{}; + tv.tv_sec = 60; + tv.tv_usec = 0; + ::setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); + ::setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)); +} + +static void live_add(int fd) { + std::lock_guard lk(g_live_mu); + g_live.insert(fd); +} + +static void live_del(int fd) { + std::lock_guard lk(g_live_mu); + g_live.erase(fd); +} + +// Read HTTP request. Optional `before_large_body` runs once headers are known +// and Content-Length exceeds 256 KiB — used to take UploadSlot BEFORE the +// multi-MiB body is buffered (otherwise the semaphore cannot cap RSS). +static std::string read_request( + int client, + bool& too_large, + const std::function& before_large_body = + {}) { + too_large = false; + std::string request; + char buf[64 * 1024]; + // Lab4 attachment limit (also covers JSON endpoints). + constexpr std::size_t kMaxBody = 10'485'760; + constexpr std::size_t kGateBody = 256 * 1024; + bool headers_parsed = false; + bool gated = false; + bool has_cl = false; + std::size_t content_length = 0; + std::size_t hdr = std::string::npos; + for (;;) { + const ssize_t n = ::read(client, buf, sizeof(buf)); + if (n < 0) { + if (errno == EINTR) { + continue; + } + return {}; + } + if (n == 0) { + return request; + } + request.append(buf, static_cast(n)); + if (!headers_parsed) { + hdr = request.find("\r\n\r\n"); + if (hdr == std::string::npos) { + // Cap header size to avoid unbounded growth without body. + if (request.size() > 64 * 1024) { + too_large = true; + return {}; + } + continue; + } + headers_parsed = true; + // Search Content-Length only in headers — never to_lower() the body. + const std::string hdr_only = request.substr(0, hdr); + const auto cl = to_lower(hdr_only).find("content-length:"); + if (cl != std::string::npos) { + const auto line_end = hdr_only.find("\r\n", cl); + const auto colon = hdr_only.find(':', cl); + if (line_end != std::string::npos && colon < line_end) { + content_length = static_cast( + std::strtoull(hdr_only.c_str() + colon + 1, nullptr, 10)); + has_cl = true; + } + } + // Early reject on declared Content-Length (do not trust for final size). + // Still drain the declared body so reverse proxies (nginx) do not see + // a premature upstream close as 502 while they are writing the request. + if (has_cl && content_length > kMaxBody) { + too_large = true; + const std::size_t need = hdr + 4 + content_length; + std::size_t have = request.size(); + request.resize(hdr + 4); + while (have < need) { + const ssize_t n2 = ::read(client, buf, sizeof(buf)); + if (n2 < 0) { + if (errno == EINTR) { + continue; + } + break; + } + if (n2 == 0) { + break; + } + have += static_cast(n2); + } + return request; + } + if (!gated && before_large_body && has_cl && + content_length > kGateBody) { + gated = true; + const auto line_end = request.find("\r\n"); + const std::string first = + line_end == std::string::npos ? request.substr(0, hdr) + : request.substr(0, line_end); + std::string method; + std::string path; + std::string query; + if (parse_request_line(first, method, path, query)) { + before_large_body(method, path); + } + } + } + const std::size_t body_have = request.size() - (hdr + 4); + if (body_have > kMaxBody) { + too_large = true; + request.resize(hdr + 4); + return request; + } + // Without Content-Length treat body as empty (HTTP/1.1 clients send CL). + const auto need = hdr + 4 + (has_cl ? content_length : 0); + if (request.size() >= need) { + request.resize(need); + return request; + } + } +} + +static std::optional> parse_basic_auth( + const std::string& header_value) { + + static const std::string prefix = "Basic "; + if (header_value.size() <= prefix.size() || + header_value.compare(0, prefix.size(), prefix) != 0) { + return std::nullopt; + } + const std::string b64 = header_value.substr(prefix.size()); + + auto b64_val = [](char c) -> int { + if (c >= 'A' && c <= 'Z') return c - 'A'; + if (c >= 'a' && c <= 'z') return c - 'a' + 26; + if (c >= '0' && c <= '9') return c - '0' + 52; + if (c == '+') return 62; + if (c == '/') return 63; + return -1; + }; + + std::string decoded; + int buf = 0, bits = 0; + for (char c : b64) { + if (c == '=') break; + const int v = b64_val(c); + if (v < 0) return std::nullopt; + buf = (buf << 6) | v; + bits += 6; + if (bits >= 8) { + bits -= 8; + decoded.push_back(static_cast((buf >> bits) & 0xFF)); + } + } + + const auto colon = decoded.find(':'); + if (colon == std::string::npos) { + return std::nullopt; + } + return std::make_pair(decoded.substr(0, colon), + decoded.substr(colon + 1)); +} + +static void handle_client(int client, + std::atomic& request_n, + UserRepo& users, + ChatRepo& chats, + MessageRepo& messages, + AttachmentRepo& attachments, + DirectUploadRepo& direct_uploads, + S3Client* s3, + ISessionRepo& sessions, + PgPool& pg, + RedisPool* redis) { + telemetry::HttpRequest observation; + bool too_large = false; + // Hold upload slot across body read + handler for attachment POSTs. + std::optional early_upload_slot; + const std::string request = read_request( + client, too_large, + [&](const std::string& method, const std::string& path) { + std::string chat_id; + if (method == "POST" && match_chat_attachments(path, chat_id) && + !early_upload_slot) { + early_upload_slot.emplace(); + } + }); + const unsigned nreq = ++request_n; + const std::string request_id = std::to_string(nreq); + + if (too_large) { + send_all(client, error_response(413, "payload_too_large", + "payload too large", request_id)); + live_del(client); + ::close(client); + return; + } + if (request.empty()) { + live_del(client); + ::close(client); + return; + } + + const auto line_end = request.find("\r\n"); + const std::string first_line = request.substr(0, line_end); + std::string method; + std::string path; + std::string query; + if (!parse_request_line(first_line, method, path, query)) { + send_all(client, error_response(400, "invalid_request", + "bad request line", request_id)); + live_del(client); + ::close(client); + return; + } + + const auto headers = parse_headers(request, line_end); + auto trace_header = [&](const char* name) { + auto i = headers.find(name); + return i == headers.end() ? std::string{} : i->second; + }; + observation.configure(method, path, trace_header("traceparent"), trace_header("tracestate"), request_id); + std::string user_id; + std::string bearer_token; + bool auth_backend_error = false; + { + auto it = headers.find("authorization"); + if (it != headers.end()) { + static const std::string prefix = "Bearer "; + const std::string& auth = it->second; + if (auth.size() > prefix.size() && + auth.compare(0, prefix.size(), prefix) == 0) { + bearer_token = auth.substr(prefix.size()); + } + } + if (!bearer_token.empty()) { + try { + auto found = sessions.lookup(bearer_token); + if (found) { + user_id = *found; + } + } catch (const std::exception& e) { + telemetry::event("session.lookup.failed", true); + auth_backend_error = true; + } + } + } + auto send_auth_error = [&]() -> bool { + if (auth_backend_error) { + send_all(client, error_response(503, "unavailable", + "service unavailable", request_id)); + return true; + } + if (user_id.empty()) { + send_all(client, error_response(401, "unauthorized", + "unauthorized", request_id, + "Bearer realm=\"messenger\"")); + return true; + } + return false; + }; + // Сессия может пережить пользователя; недоступная БД — это 503, а не 401. + auto send_user_error = [&]() -> bool { + try { + if (users.find_by_id(user_id)) { + return false; + } + send_all(client, error_response(401, "unauthorized", + "unauthorized", request_id, + "Bearer realm=\"messenger\"")); + } catch (const std::exception& e) { + send_all(client, failure_response(e, "find_user", request_id)); + } + return true; + }; + + std::string chat_id; + std::string attachment_id; + std::string direct_upload_id; + + if (method == "GET" && path == "/health/live") { + send_all(client, http_response(200, "OK", request_id, "{\"status\":\"ok\"}")); + } + else if (method == "GET" && path == "/health/ready") { + if (g_draining.load()) { + send_all(client, error_response(503, "unavailable", + "shutting down", request_id)); + } else { + const bool pg_ok = pg.ping(); + const bool redis_ok = redis == nullptr || redis->ping(); + if (pg_ok && redis_ok) { + send_all(client, http_response(200, "OK", request_id, "{\"status\":\"ok\"}")); + } else { + std::clog << "readiness failed: pg=" << pg_ok + << " redis=" << redis_ok << "\n"; + send_all(client, error_response(503, "unavailable", + "service unavailable", request_id)); + } + } + } + else if (method == "POST" && path == "/api/v1/auth/sessions") { + const auto body_at = request.find("\r\n\r\n"); + const std::string session_body = + body_at == std::string::npos ? "" : request.substr(body_at + 4); + if (!session_body.empty()) { + send_all(client, error_response(400, "invalid_request", + "body not allowed", request_id)); + } else { + auto it = headers.find("authorization"); + std::optional> creds; + if (it != headers.end()) { + creds = parse_basic_auth(it->second); + } + + const auto send_basic_401 = [&]() { + send_all(client, error_response( + 401, "unauthorized", "unauthorized", request_id, + "Basic realm=\"messenger\", charset=\"UTF-8\"")); + }; + + if (!creds) { + send_basic_401(); + } else { + const auto& username = creds->first; + const auto& password = creds->second; + try { + const auto user = users.find_by_username(username); + if (!user || !verify_password(password, user->password_hash)) { + send_basic_401(); + } else { + const auto created = sessions.create(user->id); + nlohmann::json j; + j["token"] = created.token; + j["token_type"] = "Bearer"; + const std::time_t t = static_cast( + created.expires_at); + std::tm tm{}; + gmtime_r(&t, &tm); + std::ostringstream out; + out << std::put_time(&tm, "%Y-%m-%dT%H:%M:%SZ"); + j["expires_at"] = out.str(); + j["user"] = nlohmann::json::parse(user_json(*user)); + send_all(client, http_response(201, "Created", + request_id, j.dump())); + } + } catch (const std::exception& e) { + send_all(client, failure_response(e, "create_session", request_id)); + } + } + } + } + else if (method == "GET" && path == "/api/v1/users/me") { + if (send_auth_error()) { + } else { + try { + const auto user = users.find_by_id(user_id); + if (!user) { + send_all(client, error_response(401, "unauthorized", + "unauthorized", request_id, + "Bearer realm=\"messenger\"")); + } else { + send_all(client, http_response(200, "OK", request_id, + user_json(*user))); + } + } catch (const std::exception& e) { + send_all(client, failure_response(e, "find_user", request_id)); + } + } + } + else if (method == "POST" && path == "/api/v1/users") { + if (!json_content_type_ok(headers)) { + send_all(client, error_response(415, "unsupported_media_type", + "unsupported media type", request_id)); + } else { + const auto body_at = request.find("\r\n\r\n"); + const std::string body = + body_at == std::string::npos ? "" : request.substr(body_at + 4); + + const auto j = parse_json_object(body); + if (!j) { + send_all(client, error_response(400, "invalid_request", + "invalid json", request_id)); + } else if (auto bad = find_unexpected_key( + *j, {"username", "display_name", "password"})) { + send_all(client, error_response(400, "invalid_request", + "unexpected field: " + *bad, request_id)); + } else { + const auto username = get_string_field(*j, "username"); + const auto display_name = get_string_field(*j, "display_name"); + const auto password = get_string_field(*j, "password"); + if (!username || !display_name || !password) { + send_all(client, error_response(400, "invalid_request", + "invalid fields", request_id)); + } else if (!valid_username(*username) || + contains_nul(*display_name) || + is_blank(*display_name) || + !cps_in_range(*display_name, 1, 100)) { + send_all(client, error_response(400, "invalid_request", + "invalid fields", request_id)); + } else if (contains_nul(*password) || + !cps_in_range(*password, 12, 128)) { + send_all(client, error_response(400, "invalid_request", + "invalid password", request_id)); + } else { + std::string hash; + try { + hash = hash_password(*password); + } catch (const std::exception& e) { + send_all(client, failure_response(e, "hash_password", request_id)); + } + if (!hash.empty()) { + try { + const auto created = users.create(*username, + *display_name, hash); + if (!created) { + send_all(client, error_response(409, "conflict", + "username taken", request_id)); + } else { + send_all(client, http_response(201, "Created", request_id, + user_json(*created))); + } + } catch (const std::exception& e) { + send_all(client, failure_response(e, "create_user", request_id)); + } + } + } + } + } + } + else if (method == "POST" && path == "/api/v1/chats") { + if (send_auth_error()) { + // ответ отправлен + } else if (send_user_error()) { + // ответ отправлен + } else if (!json_content_type_ok(headers)) { + send_all(client, error_response(415, "unsupported_media_type", + "unsupported media type", request_id)); + } else { + const auto body_at = request.find("\r\n\r\n"); + const std::string body = + body_at == std::string::npos ? "" : request.substr(body_at + 4); + + const auto j = parse_json_object(body); + if (!j) { + send_all(client, error_response(400, "invalid_request", + "invalid json", request_id)); + } else if (auto bad = find_unexpected_key(*j, {"title", "member_ids"})) { + send_all(client, error_response(400, "invalid_request", + "unexpected field: " + *bad, request_id)); + } else { + const auto title = get_string_field(*j, "title"); + const auto member_ids = get_string_array(*j, "member_ids"); + if (!title || !member_ids) { + send_all(client, error_response(400, "invalid_request", + "invalid fields", request_id)); + } else if (contains_nul(*title) || is_blank(*title) || + !cps_in_range(*title, 1, 100)) { + send_all(client, error_response(400, "invalid_request", + "invalid fields", request_id)); + } else if (member_ids->empty() || member_ids->size() > 100) { + send_all(client, error_response(400, "invalid_request", + "invalid members", request_id)); + } else if (std::find(member_ids->begin(), member_ids->end(), + user_id) == member_ids->end()) { + send_all(client, error_response(400, "invalid_request", + "caller not in members", request_id)); + } else if (!std::all_of(member_ids->begin(), member_ids->end(), + valid_uuid)) { + send_all(client, error_response(400, "invalid_request", + "invalid members", request_id)); + } else if (has_duplicate_ids(*member_ids)) { + send_all(client, error_response(400, "invalid_request", + "duplicate members", request_id)); + } else { + try { + const auto created = chats.create(*title, *member_ids); + if (!created) { + send_all(client, error_response(400, "invalid_request", + "invalid members", request_id)); + } else { + send_all(client, http_response(201, "Created", request_id, + chat_json(*created))); + } + } catch (const std::exception& e) { + send_all(client, failure_response(e, "create_chat", request_id)); + } + } + } + } + } + else if (method == "POST" && match_chat_attachments(path, chat_id)) { + // Prefer the slot taken before buffering a large body; otherwise take + // one now (small uploads / missing Content-Length). + std::optional late_slot; + if (!early_upload_slot) { + late_slot.emplace(); + } + if (send_auth_error()) { + } else if (send_user_error()) { + } else if (!valid_uuid(chat_id)) { + send_all(client, error_response(400, "invalid_request", + "invalid chat id", request_id)); + } else if (!s3) { + send_all(client, error_response(503, "unavailable", + "service unavailable", request_id)); + } else { + try { + const auto chat = chats.find_by_id(chat_id); + const bool is_member = chat && + (std::find(chat->member_ids.begin(), + chat->member_ids.end(), + user_id) != chat->member_ids.end()); + if (!is_member) { + send_all(client, error_response(404, "not_found", + "not found", request_id)); + } else { + const auto qparams = parse_query(query); + const auto fn_it = qparams.find("filename"); + if (fn_it == qparams.end() || + !valid_attachment_filename(fn_it->second)) { + send_all(client, error_response( + 400, "invalid_request", + "invalid filename", request_id)); + } else { + const auto declared = image_content_type_declared(headers); + if (!declared) { + send_all(client, error_response( + 415, "unsupported_media_type", + "unsupported media type", request_id)); + } else { + const auto body_at = request.find("\r\n\r\n"); + const char* body_ptr = nullptr; + std::size_t body_len = 0; + if (body_at != std::string::npos) { + body_ptr = request.data() + body_at + 4; + body_len = request.size() - (body_at + 4); + } + if (body_len == 0 || body_ptr == nullptr) { + send_all(client, error_response( + 400, "invalid_request", + "empty body", request_id)); + } else { + ImageLimits lim; + if (const char* env = std::getenv("MAX_UPLOAD_BYTES")) { + try { + lim.max_bytes = std::stoll(env); + } catch (...) { + } + } + if (const char* env = std::getenv("MAX_IMAGE_PIXELS")) { + try { + lim.max_pixels = std::stoll(env); + } catch (...) { + } + } + ImageInfo info; + const auto* bytes = + reinterpret_cast( + body_ptr); + auto rej = validate_image( + bytes, body_len, lim, info); + if (rej == ImageReject::payload_too_large) { + send_all(client, error_response( + 413, "payload_too_large", + "payload too large", request_id)); + } else if (rej) { + send_all(client, error_response( + 415, "unsupported_media_type", + std::string(image_reject_code(*rej)), + request_id)); + } else if (info.content_type != *declared) { + // MIME spoof: declared CT ≠ magic. + send_all(client, error_response( + 415, "unsupported_media_type", + "unsupported media type", request_id)); + } else { + Attachment a; + a.id = make_uuid_v4(); + a.chat_id = chat_id; + a.owner_id = user_id; + a.filename = fn_it->second; + a.content_type = info.content_type; + a.size_bytes = + static_cast(body_len); + a.sha256 = sha256_hex_bytes( + bytes, body_len); + a.status = "queued"; + a.error_code = std::nullopt; + a.s3_key = "staging/" + chat_id + + "/" + a.id; + + MemBuf mem(body_ptr, body_len); + std::istream stream(&mem); + try { + const std::string job_id = make_uuid_v4(); + const Attachment saved = attachments.insert_queued(a, job_id, [&] { + s3->put_object(a.s3_key, stream, body_len, a.content_type); + }); + lab_crash_at("upload_after_commit"); + send_all(client, http_response( + 202, "Accepted", request_id, + attachment_json(saved))); + } catch (const std::exception& e) { + // Preserve staging when the DB COMMIT outcome is uncertain. + send_all(client, failure_response( + e, "upload_attachment", + request_id)); + } + } + } + } + } + } + } catch (const std::exception& e) { + send_all(client, failure_response(e, "upload_attachment", + request_id)); + } + } + } + else if (method == "POST" && match_chat_messages(path, chat_id)) { + if (send_auth_error()) { + // ответ отправлен + } else if (send_user_error()) { + // ответ отправлен + } else if (!valid_uuid(chat_id)) { + send_all(client, error_response(400, "invalid_request", + "invalid chat id", request_id)); + } else { + try { + const auto chat = chats.find_by_id(chat_id); + const bool is_member = chat && + (std::find(chat->member_ids.begin(), + chat->member_ids.end(), + user_id) != chat->member_ids.end()); + if (!is_member) { + send_all(client, error_response(404, "not_found", + "not found", request_id)); + } else if (!json_content_type_ok(headers)) { + send_all(client, error_response(415, "unsupported_media_type", + "unsupported media type", request_id)); + } else { + const auto body_at = request.find("\r\n\r\n"); + const std::string body = + body_at == std::string::npos ? "" : request.substr(body_at + 4); + + const auto j = parse_json_object(body); + if (!j) { + send_all(client, error_response(400, "invalid_request", + "invalid json", request_id)); + } else if (auto bad = find_unexpected_key( + *j, {"text", "attachment_ids"})) { + send_all(client, error_response(400, "invalid_request", + "unexpected field: " + *bad, request_id)); + } else { + const auto text = get_string_field(*j, "text"); + std::vector attachment_ids; + bool attachment_ids_ok = true; + if (j->contains("attachment_ids")) { + const auto parsed = get_string_array(*j, "attachment_ids"); + if (!parsed) { + attachment_ids_ok = false; + } else { + attachment_ids = *parsed; + } + } + if (!text || !attachment_ids_ok) { + send_all(client, error_response(400, "invalid_request", + "invalid fields", request_id)); + } else if (contains_nul(*text) || + !cps_in_range(*text, 0, 4000) || + (attachment_ids.empty() && + (is_blank(*text) || !cps_in_range(*text, 1, 4000)))) { + send_all(client, error_response(400, "invalid_request", + "invalid fields", request_id)); + } else if (attachment_ids.size() > 10) { + send_all(client, error_response(400, "invalid_request", + "too many attachments", request_id)); + } else if (!std::all_of(attachment_ids.begin(), attachment_ids.end(), + valid_uuid)) { + send_all(client, error_response(400, "invalid_request", + "invalid attachment ids", request_id)); + } else if (has_duplicate_ids(attachment_ids)) { + send_all(client, error_response(400, "invalid_request", + "duplicate attachment ids", request_id)); + } else { + const auto idem = headers.find("idempotency-key"); + if (idem == headers.end() || + !valid_idempotency_key(idem->second)) { + send_all(client, error_response( + 400, "invalid_request", + "invalid idempotency key", request_id)); + } else { + const auto created = messages.create_idempotent( + chat_id, user_id, *text, attachment_ids, idem->second); + if (created.status == CreateResult::Status::NotFound) { + send_all(client, error_response(404, "not_found", + "not found", request_id)); + } else if (created.status == + CreateResult::Status::KeyConflict) { + send_all(client, error_response( + 409, "conflict", + "idempotency key reused", request_id)); + } else if (!created.message) { + send_all(client, error_response( + 500, "internal_error", + "internal error", request_id)); + } else { + send_all(client, http_response( + 201, "Created", request_id, + message_json(*created.message))); + } + } + } + } + } + } catch (const std::exception& e) { + send_all(client, failure_response(e, "post_message", request_id)); + } + } + } + else if (method == "GET" && match_chat_messages(path, chat_id)) { + if (send_auth_error()) { + } else if (send_user_error()) { + // ответ отправлен + } else if (!valid_uuid(chat_id)) { + send_all(client, error_response(400, "invalid_request", + "invalid chat id", request_id)); + } else { + try { + const auto chat = chats.find_by_id(chat_id); + const bool is_member = chat && + (std::find(chat->member_ids.begin(), + chat->member_ids.end(), + user_id) != chat->member_ids.end()); + if (!is_member) { + send_all(client, error_response(404, "not_found", + "not found", request_id)); + } else { + const auto params = parse_query(query); + int limit = 50; + bool bad_limit = false; + if (params.count("limit")) { + try { + std::size_t consumed = 0; + limit = std::stoi(params.at("limit"), &consumed); + if (consumed != params.at("limit").size() || + limit < 1 || limit > 100) { + bad_limit = true; + } + } catch (...) { + bad_limit = true; + } + } + std::optional cursor; + if (params.count("cursor")) { + cursor = params.at("cursor"); + } + if (bad_limit || (cursor && cursor->empty())) { + send_all(client, error_response(400, "invalid_request", + "bad query", request_id)); + } else { + const auto page = messages.list_page(chat_id, limit, cursor); + if (!page) { + send_all(client, error_response(400, "invalid_request", + "bad cursor", request_id)); + } else { + send_all(client, http_response(200, "OK", + request_id, + messages_page_json(*page))); + } + } + } + } catch (const std::exception& e) { + send_all(client, failure_response(e, "list_messages", request_id)); + } + } + } + else if (method == "GET" && path == "/api/v1/chats") { + if (send_auth_error()) { + // ответ отправлен + } else if (send_user_error()) { + // ответ отправлен + } else { + const auto params = parse_query(query); + int limit = 50; + bool bad_limit = false; + if (params.count("limit")) { + try { + std::size_t consumed = 0; + limit = std::stoi(params.at("limit"), &consumed); + if (consumed != params.at("limit").size() || + limit < 1 || limit > 100) { + bad_limit = true; + } + } catch (...) { + bad_limit = true; + } + } + std::optional cursor; + if (params.count("cursor")) { + cursor = params.at("cursor"); + } + if (bad_limit || (cursor && cursor->empty())) { + send_all(client, error_response(400, "invalid_request", + "bad query", request_id)); + } else { + try { + const auto page = chats.list_for_user(user_id, limit, cursor); + if (!page) { + send_all(client, error_response(400, "invalid_request", + "bad cursor", request_id)); + } else { + send_all(client, http_response(200, "OK", request_id, + chats_page_json(*page))); + } + } catch (const std::exception& e) { + send_all(client, failure_response(e, "list_chats", request_id)); + } + } + } + } + else if (method == "GET" && match_id_path(path, "/api/v1/chats/", chat_id)) { + if (send_auth_error()) { + // ответ отправлен + } else if (send_user_error()) { + // ответ отправлен + } else if (!valid_uuid(chat_id)) { + send_all(client, error_response(400, "invalid_request", + "invalid chat id", request_id)); + } else { + try { + const auto chat = chats.find_by_id(chat_id); + const bool is_member = chat && + (std::find(chat->member_ids.begin(), + chat->member_ids.end(), + user_id) != chat->member_ids.end()); + if (!is_member) { + send_all(client, error_response(404, "not_found", + "not found", request_id)); + } else { + send_all(client, http_response(200, "OK", request_id, + chat_json(*chat))); + } + } catch (const std::exception& e) { + send_all(client, failure_response(e, "find_chat", request_id)); + } + } + } + else if (method == "GET" && match_attachment_content(path, attachment_id)) { + if (send_auth_error()) { + } else if (send_user_error()) { + } else if (!valid_uuid(attachment_id)) { + send_all(client, error_response(400, "invalid_request", + "invalid attachment id", request_id)); + } else if (!s3) { + send_all(client, error_response(503, "unavailable", + "service unavailable", request_id)); + } else { + bool response_headers_sent = false; + try { + const auto att = attachments.find_by_id(attachment_id); + if (!att) { + send_all(client, error_response(404, "not_found", + "not found", request_id)); + } else { + const auto chat = chats.find_by_id(att->chat_id); + const bool is_member = chat && + (std::find(chat->member_ids.begin(), + chat->member_ids.end(), + user_id) != chat->member_ids.end()); + if (!is_member) { + send_all(client, error_response(404, "not_found", + "not found", request_id)); + } else if (att->status != "ready") { + send_all(client, error_response( + 409, "conflict", + "attachment not ready", request_id)); + } else { + const auto params = parse_query(query); + const auto it = params.find("variant"); + const std::string name = it == params.end() ? "original" : it->second; + std::string key = att->s3_key; + std::string content_type = att->content_type; + int size_bytes = att->size_bytes; + bool found = name == "original"; + for (const auto& v : att->variants) { + if (v.name == name) { + found = true; + content_type = v.content_type; + size_bytes = v.size_bytes; + key = v.storage_key.empty() ? attachment_variant_key(att->chat_id, att->id, name) : v.storage_key; + } + } + const bool valid = name == "original" || name == "thumbnail" || + name == "crop" || name == "optimized"; + std::int64_t object_size = 0; + std::string etag; + if (!valid) { + send_all(client, error_response( + 400, "invalid_request", "invalid variant", request_id)); + } else if (!found || !s3->stat_object(key, object_size, etag)) { + send_all(client, error_response( + 404, "not_found", "not found", request_id)); + } else if (object_size != size_bytes) { + send_all(client, error_response( + 500, "internal_error", "internal error", + request_id)); + } else { + std::string head = + "HTTP/1.1 200 OK\r\n" + "Content-Type: " + content_type + "\r\n" + "X-Request-Id: " + request_id + "\r\n" + "X-Instance-Id: " + g_instance_id + "\r\n" + "Content-Length: " + + std::to_string(size_bytes) + "\r\n" + "Connection: close\r\n" + "\r\n"; + response_headers_sent = true; + send_all(client, head); + s3->get_object(key, [&](const char* data, + std::size_t n) { + size_t sent = 0; + while (sent < n) { + const ssize_t w = ::write( + client, data + sent, n - sent); + if (w <= 0) { + throw std::runtime_error( + "content write failed"); + } + sent += static_cast(w); + } + }); + } + } + } + } catch (const std::exception& e) { + if (response_headers_sent) { + telemetry::event("attachment.download.failed", true); + } else { + send_all(client, failure_response(e, "download_attachment", + request_id)); + } + } + } + } + else if (method == "GET" && + match_id_path(path, "/api/v1/attachments/", attachment_id)) { + if (send_auth_error()) { + } else if (send_user_error()) { + } else if (!valid_uuid(attachment_id)) { + send_all(client, error_response(400, "invalid_request", + "invalid attachment id", request_id)); + } else { + try { + const auto att = attachments.find_by_id(attachment_id); + if (!att) { + send_all(client, error_response(404, "not_found", + "not found", request_id)); + } else { + const auto chat = chats.find_by_id(att->chat_id); + const bool is_member = chat && + (std::find(chat->member_ids.begin(), + chat->member_ids.end(), + user_id) != chat->member_ids.end()); + if (!is_member) { + send_all(client, error_response(404, "not_found", + "not found", request_id)); + } else { + send_all(client, http_response(200, "OK", request_id, + attachment_json(*att))); + } + } + } catch (const std::exception& e) { + send_all(client, failure_response(e, "get_attachment", + request_id)); + } + } + } else if (method == "POST" && match_chat_direct_uploads(path, chat_id)) { + // Track 1: initiate presigned PUT (proxy POST /attachments stays mandatory). + if (send_auth_error()) { + } else if (send_user_error()) { + } else if (!valid_uuid(chat_id)) { + send_all(client, error_response(400, "invalid_request", + "invalid chat id", request_id)); + } else if (!s3) { + send_all(client, error_response(503, "unavailable", + "service unavailable", request_id)); + } else if (!json_content_type_ok(headers)) { + send_all(client, error_response(415, "unsupported_media_type", + "unsupported media type", request_id)); + } else { + try { + const auto chat = chats.find_by_id(chat_id); + const bool is_member = chat && + (std::find(chat->member_ids.begin(), + chat->member_ids.end(), + user_id) != chat->member_ids.end()); + if (!is_member) { + send_all(client, error_response(404, "not_found", + "not found", request_id)); + } else { + const auto body_at = request.find("\r\n\r\n"); + const std::string body = + body_at == std::string::npos ? "" : request.substr(body_at + 4); + const auto j = parse_json_object(body); + if (!j) { + send_all(client, error_response(400, "invalid_request", + "invalid json", request_id)); + } else if (auto bad = find_unexpected_key( + *j, {"filename", "content_type", "size_bytes", + "sha256"})) { + send_all(client, error_response( + 400, "invalid_request", + "unexpected field: " + *bad, request_id)); + } else { + const auto filename = get_string_field(*j, "filename"); + const auto ctype = get_string_field(*j, "content_type"); + const auto size_b = get_int64_field(*j, "size_bytes"); + const auto sha = get_string_field(*j, "sha256"); + std::int64_t max_bytes = 10485760; + if (const char* env = std::getenv("MAX_UPLOAD_BYTES")) { + try { + max_bytes = std::stoll(env); + } catch (...) { + } + } + int ttl = 300; + if (const char* env = + std::getenv("DIRECT_UPLOAD_TTL_SECONDS")) { + const int v = std::atoi(env); + if (v >= 30 && v <= 3600) { + ttl = v; + } + } + if (!filename || !valid_attachment_filename(*filename) || + !ctype || + (*ctype != "image/png" && *ctype != "image/jpeg") || + !size_b || *size_b < 1 || *size_b > max_bytes || + !sha || !valid_sha256_hex(*sha)) { + send_all(client, error_response( + 400, "invalid_request", "invalid fields", + request_id)); + } else { + DirectUpload d; + d.id = make_uuid_v4(); + d.chat_id = chat_id; + d.owner_id = user_id; + d.filename = *filename; + d.content_type = *ctype; + d.expected_size = static_cast(*size_b); + d.expected_sha256 = *sha; + d.s3_key = "attachments/" + chat_id + "/" + d.id; + d.staging_key = "staging/" + chat_id + "/" + d.id; + d.status = "pending"; + const auto now = std::chrono::system_clock::now(); + const auto secs = + std::chrono::duration_cast( + now.time_since_epoch()) + .count(); + d.expires_at_epoch = secs + ttl; + const DirectUpload saved = direct_uploads.insert(d); + const std::string url = s3->presign_put( + saved.staging_key, static_cast(ttl), + saved.content_type); + nlohmann::json out; + out["id"] = saved.id; + out["upload_url"] = url; + out["method"] = "PUT"; + out["headers"] = nlohmann::json::object(); + out["headers"]["Content-Type"] = saved.content_type; + out["expires_at"] = saved.expires_at; + out["size_bytes"] = saved.expected_size; + out["sha256"] = saved.expected_sha256; + out["filename"] = saved.filename; + out["content_type"] = saved.content_type; + send_all(client, http_response(201, "Created", + request_id, + out.dump())); + } + } + } + } catch (const std::exception& e) { + send_all(client, failure_response(e, "direct_upload_init", + request_id)); + } + } + } else if (method == "POST" && + match_direct_upload_complete(path, direct_upload_id)) { + if (send_auth_error()) { + } else if (send_user_error()) { + } else if (!valid_uuid(direct_upload_id)) { + send_all(client, error_response(400, "invalid_request", + "invalid upload id", request_id)); + } else if (!s3) { + send_all(client, error_response(503, "unavailable", + "service unavailable", request_id)); + } else { + try { + std::string response; + direct_uploads.with_lock([&](UploadLock& upload) { + const auto sess = upload.lock(direct_upload_id); + if (!sess || sess->owner_id != user_id) { + response = error_response(404, "not_found", "not found", + request_id); + return; + } + if (sess->status == "completed") { + const auto saved = upload.find_attachment( + sess->attachment_id.value_or(sess->id)); + if (!saved) { + throw std::runtime_error( + "completed upload has no attachment"); + } + upload.commit(); + const bool pending = saved->status == "queued" || saved->status == "processing"; + + response = http_response(pending ? 202 : 200, + pending ? "Accepted" : "OK", request_id, + attachment_json(*saved)); + return; + } + if (sess->status != "pending") { + response = error_response( + 409, "conflict", "upload session not pending", + request_id); + return; + } + if (sess->overdue) { + upload.mark_expired(sess->id); + upload.commit(); + response = error_response(410, "gone", + "upload session expired", + request_id); + return; + } + + std::int64_t obj_size = 0; + std::string etag; + if (!s3->stat_object(sess->staging_key, obj_size, etag)) { + upload.commit(); + response = error_response(409, "not_ready", + "upload object not ready", + request_id); + return; + } + if (obj_size != sess->expected_size) { + upload.commit(); + response = error_response(409, "hash_mismatch", + "uploaded object mismatch", + request_id); + return; + } + + std::vector buf; + buf.reserve(static_cast(obj_size)); + s3->get_object( + sess->staging_key, + [&](const char* data, std::size_t n) { + if (buf.size() > static_cast(sess->expected_size) || + n > static_cast(sess->expected_size) - buf.size()) { + throw std::runtime_error("staging object size changed"); + } + buf.insert(buf.end(), + reinterpret_cast(data), + reinterpret_cast(data) + n); + }); + if (static_cast(buf.size()) != + sess->expected_size || + sha256_hex_bytes(buf.data(), buf.size()) != + sess->expected_sha256) { + upload.commit(); + response = error_response(409, "hash_mismatch", + "uploaded object mismatch", + request_id); + return; + } + + ImageLimits lim; + if (const char* env = std::getenv("MAX_UPLOAD_BYTES")) { + try { + lim.max_bytes = std::stoll(env); + } catch (...) { + } + } + if (const char* env = std::getenv("MAX_IMAGE_PIXELS")) { + try { + lim.max_pixels = std::stoll(env); + } catch (...) { + } + } + ImageInfo info; + const auto rejection = + validate_image(buf.data(), buf.size(), lim, info); + if (rejection || info.content_type != sess->content_type) { + upload.commit(); + response = error_response(415, "unsupported_media_type", + "unsupported media type", + request_id); + return; + } + + Attachment a; + a.id = sess->id; + a.chat_id = sess->chat_id; + a.owner_id = sess->owner_id; + a.filename = sess->filename; + a.content_type = sess->content_type; + a.size_bytes = sess->expected_size; + a.sha256 = sess->expected_sha256; + a.status = "queued"; + a.s3_key = sess->staging_key; + bool inserted = false; + auto saved = upload.insert_queued(a, inserted); + if (!saved) { + saved = upload.find_attachment(a.id); + } + if (!saved) { + throw std::runtime_error( + "attachment insert conflict without existing row"); + } + upload.mark_completed(sess->id, saved->id); + upload.commit(); + lab_crash_at("upload_after_commit"); + response = http_response(202, "Accepted", request_id, + attachment_json(*saved)); + }); + send_all(client, response); + } catch (const std::exception& e) { + send_all(client, failure_response(e, "direct_upload_complete", + request_id)); + } + } + } else if (method == "DELETE" && + match_id_path(path, "/api/v1/direct-uploads/", + direct_upload_id)) { + if (send_auth_error()) { + } else if (send_user_error()) { + } else if (!valid_uuid(direct_upload_id)) { + send_all(client, error_response(400, "invalid_request", + "invalid upload id", request_id)); + } else { + try { + auto sess = direct_uploads.find_by_id(direct_upload_id); + if (!sess || sess->owner_id != user_id) { + send_all(client, error_response(404, "not_found", + "not found", request_id)); + } else if (sess->status != "pending") { + send_all(client, error_response( + 409, "conflict", + "upload session not pending", request_id)); + } else { + direct_uploads.mark_aborted(sess->id); + if (s3) { + try { + std::int64_t sz = 0; + std::string et; + if (s3->stat_object(sess->staging_key, sz, et)) { + s3->delete_object(sess->staging_key); + } + } catch (const std::exception& de) { + telemetry::event("attachment.abort.failed", true); + } + } + send_all(client, http_no_content(request_id)); + } + } catch (const std::exception& e) { + send_all(client, failure_response(e, "direct_upload_abort", + request_id)); + } + } + } else if (method == "DELETE" && path == "/api/v1/auth/sessions/current") { + if (send_auth_error()) { + } else { + try { + sessions.revoke(bearer_token); + send_all(client, http_no_content(request_id)); + } catch (const std::exception& e) { + send_all(client, failure_response(e, "revoke_session", request_id)); + } + } + } + else { + send_all(client, error_response(404, "not_found", "not found", request_id)); + } + + live_del(client); + ::close(client); +} + +int env_or_default(const char* name, int fallback) { + const char* raw = std::getenv(name); + if (raw == nullptr || raw[0] == '\0') { + return fallback; + } + char* end = nullptr; + errno = 0; + const long value = std::strtol(raw, &end, 10); + if (end == raw || *end != '\0' || errno != 0 || value < 1 || value > 4096) { + return fallback; + } + return static_cast(value); +} + +int main() { + telemetry::Runtime telemetry_runtime("messenger-api"); + const char* host_env = std::getenv("APP_HOST"); + const char* port_env = std::getenv("APP_PORT"); + const char* host = host_env ? host_env : "0.0.0.0"; + const int port = port_env ? std::atoi(port_env) : 8080; + g_instance_id = make_instance_id(); + std::clog << "instance id: " << g_instance_id << "\n"; + + sigset_t set; + sigemptyset(&set); + sigaddset(&set, SIGTERM); + sigaddset(&set, SIGINT); + if (pthread_sigmask(SIG_BLOCK, &set, nullptr) != 0) { + std::cerr << "pthread_sigmask failed" << std::endl; + return 1; + } + + const std::string db_url = read_secret_file("DATABASE_URL_FILE"); + std::clog << "connecting to db...\n"; + { + auto conn = open_pg_connection(db_url, false); + std::clog << "applying migrations...\n"; + apply_migrations(*conn, "./migrations"); + std::clog << "migrations ok\n"; + } + + const int pool_n = env_or_default("DB_POOL_SIZE", 8); + PgPool pool(db_url, pool_n); + std::clog << "pg pool ready (" << pool_n << " connections)\n"; + + if (sodium_init() < 0) { + std::cerr << "sodium_init failed\n"; + return 1; + } + + UserRepo users(pool); + ChatRepo chats(pool); + MessageRepo messages(pool); + AttachmentRepo attachments(pool); + DirectUploadRepo direct_uploads(pool); + + std::unique_ptr s3; + try { + s3 = std::make_unique(S3Client::from_env()); + std::clog << "s3 client ready bucket=" << s3->bucket() << "\n"; + } catch (const std::exception& e) { + telemetry::event("s3.initialization.failed", true); + return 1; + } + + const char* ttl_env = std::getenv("SESSION_TTL_SECONDS"); + const int ttl_seconds = ttl_env ? std::atoi(ttl_env) : 3600; + + const char* store_env = std::getenv("SESSION_STORE"); + const std::string store = store_env ? store_env : "redis"; + + std::unique_ptr redis_pool; + std::unique_ptr sessions; + if (store == "postgres") { + sessions = std::make_unique(pool, ttl_seconds); + std::clog << "session store: postgres\n"; + } else if (store == "redis") { + redis_pool = std::make_unique(read_secret_file("CACHE_URL_FILE"), 4); + std::clog << "redis pool ready (4 connections)\n"; + sessions = std::make_unique(*redis_pool, ttl_seconds); + std::clog << "session store: redis\n"; + } else { + throw std::runtime_error("unknown SESSION_STORE: " + store); + } + std::clog << "session ttl: " << ttl_seconds << "s\n"; + + const char* broker_file = std::getenv("BROKER_URL_FILE"); + const std::string broker_url = read_secret_file( + broker_file && *broker_file ? "BROKER_URL_FILE" : "CACHE_URL_FILE"); + + const int fd = ::socket(AF_INET, SOCK_STREAM, 0); + if (fd < 0) { + std::cerr << "socket failed" << std::endl; + return 1; + } + + const int yes = 1; + ::setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)); + + sockaddr_in addr{}; + addr.sin_family = AF_INET; + addr.sin_port = htons(static_cast(port)); + if (::inet_pton(AF_INET, host, &addr.sin_addr) != 1) { + std::cerr << "invalid APP_HOST" << std::endl; + ::close(fd); + return 1; + } + + if (::bind(fd, reinterpret_cast(&addr), sizeof(addr)) != 0) { + std::cerr << "bind failed on " << host << ":" << port << std::endl; + ::close(fd); + return 1; + } + + if (::listen(fd, 16) != 0) { + std::cerr << "listen failed" << std::endl; + ::close(fd); + return 1; + } + + g_listen.store(fd); + + std::clog << "listening on " << host << ":" << port << std::endl; + + ObservabilityMonitor monitor(db_url, true); + OutboxPublisher publisher(db_url, broker_url); + + std::atomic request_n{0}; + std::mutex q_mu; + std::condition_variable q_cv; + std::queue q; + const int workers_n = env_or_default("HTTP_WORKERS", 8); + std::clog << "http workers: " << workers_n << "\n"; + if (const char* v = std::getenv("MAX_CONCURRENT_UPLOADS")) { + const int n = std::atoi(v); + if (n >= 1 && n <= 32) { + g_up_max = n; + } + } + std::clog << "max concurrent uploads: " << g_up_max << "\n"; + std::vector workers; + for (int i = 0; i < workers_n; ++i) { + workers.emplace_back([&]() { + for (;;) { + int client = -1; + { + std::unique_lock lk(q_mu); + q_cv.wait(lk, [&]() { return g_stop.load() || !q.empty(); }); + if (g_stop.load() && q.empty()) { + return; + } + client = q.front(); + q.pop(); + } + try { + handle_client(client, request_n, users, chats, messages, + attachments, direct_uploads, s3.get(), + *sessions, pool, redis_pool.get()); + } catch (const std::exception& e) { + telemetry::event("http.request.failed", true); + send_all(client, error_response(500, "internal_error", + "internal error", + std::to_string(request_n.load()))); + live_del(client); + ::close(client); + } catch (...) { + live_del(client); + ::close(client); + } + } + }); + } + + std::thread signal_thread([&]() { + int sig = 0; + if (sigwait(&set, &sig) != 0) { + return; + } + g_draining.store(true); + int drain_seconds = 2; + if (const char* env = std::getenv("DRAIN_SECONDS")) { + if (*env) { + drain_seconds = std::atoi(env); + if (drain_seconds < 0) { + drain_seconds = 0; + } else if (drain_seconds > 30) { + drain_seconds = 30; + } + } + } + std::clog << "draining: /health/ready is 503 for " + << drain_seconds << "s before listen socket closes\n"; + if (drain_seconds > 0) { + ::sleep(static_cast(drain_seconds)); + } + g_stop.store(true); + const int lfd = g_listen.load(); + if (lfd >= 0) { + ::shutdown(lfd, SHUT_RDWR); + } + }); + + for (;;) { + const int client = ::accept(fd, nullptr, nullptr); + if (client < 0) { + if (g_stop.load()) { + std::clog << "shutting down\n"; + break; + } + std::cerr << "accept failed\n"; + break; + } + set_timeouts(client); + live_add(client); + { + std::lock_guard lk(q_mu); + q.push(client); + } + q_cv.notify_one(); + } + { + std::lock_guard lk(q_mu); + g_stop.store(true); + } + q_cv.notify_all(); + for (auto& t : workers) { + t.join(); + } + signal_thread.detach(); + + ::close(fd); + std::clog << "stopped\n"; + return 0; +} \ No newline at end of file diff --git a/src/message_repo.cpp b/src/message_repo.cpp new file mode 100644 index 0000000..973beca --- /dev/null +++ b/src/message_repo.cpp @@ -0,0 +1,377 @@ +#include "message_repo.hpp" +#include "cursor.hpp" +#include "errors.hpp" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace { + +std::string make_uuid() { + static std::mutex rng_mu; + static std::mt19937_64 rng{std::random_device{}()}; + std::uniform_int_distribution d16(0, 0xffff); + std::uniform_int_distribution d32(0, 0xffffffffu); + std::lock_guard lock(rng_mu); + std::ostringstream out; + out << std::hex << std::setfill('0'); + out << std::setw(8) << d32(rng); + out << '-' << std::setw(4) << d16(rng); + out << '-' << std::setw(4) << ((d16(rng) & 0x0fff) | 0x4000); + out << '-' << std::setw(4) << ((d16(rng) & 0x3fff) | 0x8000); + out << '-' << std::setw(4) << d16(rng) << std::setw(8) << d32(rng); + return out.str(); +} + +std::string sha256_hex(const std::string& s) { + unsigned char out[crypto_hash_sha256_BYTES]; + crypto_hash_sha256(out, reinterpret_cast(s.data()), s.size()); + static const char hex[] = "0123456789abcdef"; + std::string r; + r.resize(sizeof(out) * 2); + for (std::size_t i = 0; i < sizeof(out); ++i) { + r[i * 2] = hex[out[i] >> 4]; + r[i * 2 + 1] = hex[out[i] & 0x0f]; + } + return r; +} + +std::string epoch_to_rfc3339(long long epoch) { + const std::time_t t = static_cast(epoch); + std::tm tm{}; + gmtime_r(&t, &tm); + std::ostringstream out; + out << std::put_time(&tm, "%Y-%m-%dT%H:%M:%SZ"); + return out.str(); +} + +std::string now_epoch_str() { + const auto now = std::chrono::system_clock::now(); + const auto secs = std::chrono::duration_cast( + now.time_since_epoch()).count(); + return std::to_string(secs); +} + +Message row_to_message(const pqxx::row& r) { + Message m; + m.id = r["id"].as(); + m.chat_id = r["chat_id"].as(); + m.sender_id = r["sender_id"].as(); + m.text = r["text"].as(); + m.created_at = epoch_to_rfc3339(r["created_at_epoch"].as()); + return m; +} + +constexpr const char* kMessageSelect = + "id, chat_id, sender_id, text, " + "EXTRACT(EPOCH FROM created_at)::bigint AS created_at_epoch"; + +std::string canonical_message_body(const std::string& text, + const std::vector& attachment_ids) { + std::ostringstream out; + out << "text=" << text << "\nattachment_ids="; + for (std::size_t i = 0; i < attachment_ids.size(); ++i) { + if (i > 0) { + out << ','; + } + out << attachment_ids[i]; + } + return out.str(); +} + +int idempotency_ttl_seconds() { + const char* env = std::getenv("IDEMPOTENCY_TTL_SECONDS"); + if (env == nullptr || *env == '\0') { + return 86400; + } + try { + const int v = std::stoi(env); + if (v <= 0) { + return 86400; + } + return v; + } catch (...) { + return 86400; + } +} + +bool attachments_belong_to_chat(pqxx::work& tx, + const std::string& chat_id, + const std::vector& attachment_ids) { + bool failed = false; + for (const auto& id : attachment_ids) { + auto r = tx.exec( + "SELECT status FROM attachments " + "WHERE id = $1 AND chat_id = $2 FOR SHARE", + pqxx::params{id, chat_id}); + if (r.empty()) { + return false; + } + failed = failed || r[0]["status"].as() == "failed"; + } + if (failed) { + throw AttachmentFailed(); + } + return true; +} + +void link_attachments(pqxx::work& tx, + const std::string& message_id, + const std::vector& attachment_ids) { + for (std::size_t i = 0; i < attachment_ids.size(); ++i) { + tx.exec( + "INSERT INTO message_attachments (message_id, attachment_id, position) " + "VALUES ($1, $2, $3)", + pqxx::params{message_id, attachment_ids[i], static_cast(i)}); + } +} + +std::vector load_attachment_ids(pqxx::work& tx, + const std::string& message_id) { + auto r = tx.exec( + "SELECT attachment_id FROM message_attachments " + "WHERE message_id = $1 ORDER BY position ASC", + pqxx::params{message_id}); + std::vector ids; + ids.reserve(r.size()); + for (const auto& row : r) { + ids.push_back(row["attachment_id"].as()); + } + return ids; +} + +void fill_attachment_ids(pqxx::work& tx, Message& m) { + m.attachment_ids = load_attachment_ids(tx, m.id); +} + +void fill_attachment_ids(pqxx::work& tx, std::vector& items) { + for (auto& m : items) { + fill_attachment_ids(tx, m); + } +} + +Message insert_message(pqxx::work& tx, + const std::string& chat_id, + const std::string& sender_id, + const std::string& text, + const std::vector& attachment_ids) { + const std::string id = make_uuid(); + const std::string created = now_epoch_str(); + auto r = tx.exec( + "INSERT INTO messages (id, chat_id, sender_id, text, created_at) " + "VALUES ($1, $2, $3, $4, to_timestamp($5::bigint)) " + "RETURNING " + std::string(kMessageSelect), + pqxx::params{id, chat_id, sender_id, text, created}); + Message m = row_to_message(r[0]); + link_attachments(tx, m.id, attachment_ids); + m.attachment_ids = attachment_ids; + return m; +} + +bool insert_idempotency_key(pqxx::work& tx, + const std::string& user_id, + const std::string& chat_id, + const std::string& idem_key, + const std::string& request_hash, + const std::string& message_id) { + auto inserted = tx.exec( + "INSERT INTO idempotency_keys " + "(user_id, chat_id, key, request_hash, message_id) " + "VALUES ($1, $2, $3, $4, $5) " + "ON CONFLICT (user_id, chat_id, key) DO NOTHING " + "RETURNING message_id", + pqxx::params{user_id, chat_id, idem_key, request_hash, message_id}); + return !inserted.empty(); +} + +Message load_message(pqxx::work& tx, const std::string& message_id) { + auto r = tx.exec( + "SELECT " + std::string(kMessageSelect) + " FROM messages WHERE id = $1", + pqxx::params{message_id}); + if (r.empty()) { + throw std::runtime_error("idempotent message row is missing"); + } + Message m = row_to_message(r[0]); + fill_attachment_ids(tx, m); + return m; +} + +} // namespace + +std::optional MessageRepo::create(const std::string& chat_id, + const std::string& sender_id, + const std::string& text, + const std::vector& attachment_ids) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + + auto member_check = tx.exec( + "SELECT 1 FROM chat_members WHERE chat_id = $1 AND user_id = $2", + pqxx::params{chat_id, sender_id}); + if (member_check.empty()) { + tx.commit(); + return std::nullopt; + } + if (!attachments_belong_to_chat(tx, chat_id, attachment_ids)) { + tx.commit(); + return std::nullopt; + } + + Message created = insert_message(tx, chat_id, sender_id, text, attachment_ids); + tx.commit(); + return created; +} + +std::optional MessageRepo::list_page( + const std::string& chat_id, + int limit, + const std::optional& cursor) { + + std::optional cur; + if (cursor) { + cur = parse_cursor(*cursor); + if (!cur) { + return std::nullopt; + } + } + + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + + if (cur) { + auto owner_check = tx.exec( + "SELECT 1 FROM messages WHERE id = $1 AND chat_id = $2", + pqxx::params{cur->id, chat_id}); + if (owner_check.empty()) { + tx.commit(); + return std::nullopt; + } + } + + std::string sql = + "SELECT " + std::string(kMessageSelect) + ", " + kCreatedUsSql + " " + "FROM messages " + "WHERE chat_id = $1 "; + if (cur) { + sql += "AND (created_at, id) > (" + std::string(kCursorTimestampSql) + ", $4::uuid) "; + } + sql += "ORDER BY created_at ASC, id ASC LIMIT $2"; + + pqxx::result r; + if (cur) { + r = tx.exec(sql, pqxx::params{chat_id, limit + 1, cur->created_us, cur->id}); + } else { + r = tx.exec(sql, pqxx::params{chat_id, limit + 1}); + } + + MessagePage page; + const bool has_more = (static_cast(r.size()) > limit); + const int take = has_more ? limit : static_cast(r.size()); + page.items.reserve(take); + for (int i = 0; i < take; ++i) { + page.items.push_back(row_to_message(r[static_cast(i)])); + } + fill_attachment_ids(tx, page.items); + + if (has_more && take > 0) { + const auto& last = r[static_cast(take - 1)]; + page.next_cursor = make_cursor(last["created_us"].as(), + last["id"].as()); + } + + tx.commit(); + return page; +} + +CreateResult MessageRepo::create_idempotent( + const std::string& chat_id, + const std::string& sender_id, + const std::string& text, + const std::vector& attachment_ids, + const std::string& idem_key) { + const int ttl = idempotency_ttl_seconds(); + const std::string hash = sha256_hex(canonical_message_body(text, attachment_ids)); + + for (int attempt = 0; attempt < 3; ++attempt) { + { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + + auto member_check = tx.exec( + "SELECT 1 FROM chat_members WHERE chat_id = $1 AND user_id = $2", + pqxx::params{chat_id, sender_id}); + if (member_check.empty()) { + tx.commit(); + return CreateResult{CreateResult::Status::NotFound, std::nullopt}; + } + if (!attachments_belong_to_chat(tx, chat_id, attachment_ids)) { + tx.commit(); + return CreateResult{CreateResult::Status::NotFound, std::nullopt}; + } + + const Message created = + insert_message(tx, chat_id, sender_id, text, attachment_ids); + if (insert_idempotency_key(tx, sender_id, chat_id, idem_key, hash, + created.id)) { + tx.commit(); + return CreateResult{CreateResult::Status::Created, created}; + } + } + + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + auto existing = tx.exec( + "SELECT request_hash, message_id, " + "EXTRACT(EPOCH FROM (now() - created_at))::bigint AS age_seconds " + "FROM idempotency_keys " + "WHERE user_id = $1 AND chat_id = $2 AND key = $3 " + "FOR UPDATE", + pqxx::params{sender_id, chat_id, idem_key}); + if (existing.empty()) { + tx.commit(); + continue; + } + + const std::string existing_hash = existing[0]["request_hash"].as(); + const long long age = existing[0]["age_seconds"].as(); + const std::string message_id = existing[0]["message_id"].as(); + if (age < ttl) { + if (existing_hash != hash) { + tx.commit(); + return CreateResult{CreateResult::Status::KeyConflict, std::nullopt}; + } + const Message replayed = load_message(tx, message_id); + tx.commit(); + return CreateResult{CreateResult::Status::Replayed, replayed}; + } + + tx.exec( + "DELETE FROM idempotency_keys " + "WHERE user_id = $1 AND chat_id = $2 AND key = $3", + pqxx::params{sender_id, chat_id, idem_key}); + if (!attachments_belong_to_chat(tx, chat_id, attachment_ids)) { + tx.commit(); + return CreateResult{CreateResult::Status::NotFound, std::nullopt}; + } + const Message created = + insert_message(tx, chat_id, sender_id, text, attachment_ids); + if (insert_idempotency_key(tx, sender_id, chat_id, idem_key, hash, + created.id)) { + tx.commit(); + return CreateResult{CreateResult::Status::Created, created}; + } + } + + throw std::runtime_error("idempotency retry exhausted"); +} diff --git a/src/message_repo.hpp b/src/message_repo.hpp new file mode 100644 index 0000000..ea4dbf1 --- /dev/null +++ b/src/message_repo.hpp @@ -0,0 +1,38 @@ +#pragma once + +#include "db.hpp" +#include "models.hpp" + +#include +#include +#include + +struct CreateResult { + enum class Status { Created, Replayed, NotFound, KeyConflict }; + Status status; + std::optional message; +}; + +class MessageRepo { +public: + explicit MessageRepo(PgPool& pool) : pool_(pool) {} + + std::optional create(const std::string& chat_id, + const std::string& sender_id, + const std::string& text, + const std::vector& attachment_ids); + + std::optional list_page( + const std::string& chat_id, + int limit, + const std::optional& cursor); + + CreateResult create_idempotent(const std::string& chat_id, + const std::string& sender_id, + const std::string& text, + const std::vector& attachment_ids, + const std::string& idem_key); + +private: + PgPool& pool_; +}; diff --git a/src/models.hpp b/src/models.hpp new file mode 100644 index 0000000..ffdbb31 --- /dev/null +++ b/src/models.hpp @@ -0,0 +1,86 @@ +#pragma once + +#include +#include +#include + +struct User { + std::string id; + std::string username; + std::string display_name; + std::string password_hash; + std::string created_at; +}; + +struct Chat { + std::string id; + std::string title; + std::vector member_ids; + std::string created_at; +}; + +struct Message { + std::string id; + std::string chat_id; + std::string sender_id; + std::string text; + std::string created_at; + std::vector attachment_ids; +}; + +struct MessagePage { + std::vector items; + std::optional next_cursor; +}; + +struct ChatPage { + std::vector items; + std::optional next_cursor; +}; + +// Public metadata; storage keys are derived internally. +struct Variant { + std::string name; + std::string content_type; + int size_bytes = 0; + std::string sha256; + int width = 0; + int height = 0; + std::string storage_key; // internal; filtered from API JSON +}; + +struct Attachment { + std::string id; + std::string chat_id; + std::string owner_id; + std::string filename; + std::string content_type; + int size_bytes = 0; + std::string sha256; + std::string status; // queued|processing|ready|failed + std::vector variants; + std::optional error_code; + std::string s3_key; // internal; never exposed in API JSON + std::string created_at; + std::string updated_at; +}; + +// Track 1: pending presigned PUT session (not a public attachment until complete). +struct DirectUpload { + std::string id; + std::string chat_id; + std::string owner_id; + std::string filename; + std::string content_type; + int expected_size = 0; + std::string expected_sha256; + std::string s3_key; // final key: attachments/{chat}/{id} + std::string staging_key; // presigned PUT target: staging/{chat}/{id} + std::string status; // pending|completed|aborted|expired + bool overdue = false; // pending && expires_at < now(); not a column + std::optional attachment_id; + std::string expires_at; // RFC3339 for JSON + long long expires_at_epoch = 0; // for INSERT + std::string created_at; + std::string updated_at; +}; diff --git a/src/observability_monitor.cpp b/src/observability_monitor.cpp new file mode 100644 index 0000000..5a3822a --- /dev/null +++ b/src/observability_monitor.cpp @@ -0,0 +1,37 @@ +#include "observability_monitor.hpp" +#include "db.hpp" +#include "telemetry.hpp" +#include +#include +#include + +ObservabilityMonitor::ObservabilityMonitor(std::string db_url, bool queue) + : thread_([this, db_url, queue] { + std::unique_ptr conn; + while (!stopping_) { + try { + rusage usage{}; + if (getrusage(RUSAGE_SELF, &usage) == 0) + telemetry::gauge("process.cpu.time", usage.ru_utime.tv_sec + usage.ru_stime.tv_sec + + (usage.ru_utime.tv_usec + usage.ru_stime.tv_usec)/1e6); + long total, resident; + std::ifstream statm("/proc/self/statm"); + if (statm >> total >> resident) + telemetry::gauge("process.memory.usage", resident * sysconf(_SC_PAGESIZE)); + if (queue) { + if (!conn) conn = open_pg_connection(db_url, true); + pqxx::nontransaction tx(*conn); + // Logical durable backlog includes outbox, Redis pending and delayed retries, + // without counting duplicate stream entries or ACKed historical entries. + const auto rows = tx.exec("SELECT count(*), coalesce(extract(epoch FROM now()-min(created_at)),0) " + "FROM jobs WHERE status IN ('queued','processing')"); + telemetry::gauge("queue.depth", rows[0][0].as()); + telemetry::gauge("queue.oldest.age", rows[0][1].as()); + telemetry::gauge("queue.observation.timestamp", std::chrono::duration( + std::chrono::system_clock::now().time_since_epoch()).count()); + } + } catch (...) { conn.reset(); telemetry::event("telemetry.queue.observation.failed", true); } + for (int i=0; i<50 && !stopping_; ++i) std::this_thread::sleep_for(std::chrono::milliseconds(100)); + } + }) {} +ObservabilityMonitor::~ObservabilityMonitor() { stopping_ = true; thread_.join(); } diff --git a/src/observability_monitor.hpp b/src/observability_monitor.hpp new file mode 100644 index 0000000..7ce2640 --- /dev/null +++ b/src/observability_monitor.hpp @@ -0,0 +1,13 @@ +#pragma once +#include +#include +#include +// Dedicated connection: telemetry queries never consume the application's pool. +class ObservabilityMonitor { +public: + ObservabilityMonitor(std::string db_url, bool queue); + ~ObservabilityMonitor(); +private: + std::atomic stopping_{false}; + std::thread thread_; +}; diff --git a/src/outbox.cpp b/src/outbox.cpp new file mode 100644 index 0000000..3d4ad2b --- /dev/null +++ b/src/outbox.cpp @@ -0,0 +1,80 @@ +#include "telemetry.hpp" +#include "outbox.hpp" +#include "attachment_queue.hpp" +#include "fault_injection.hpp" + +#include +#include +#include +#include + +void enqueue_attachment_job(pqxx::work& tx, const std::string& job_id) { + telemetry::Span producer("attachment.enqueue", opentelemetry::trace::SpanKind::kProducer); + producer.span->SetAttribute("messaging.system", "redis"); + producer.span->SetAttribute("messaging.destination.name", "jobs:attachments"); + const auto rows = tx.exec( + "INSERT INTO outbox(payload, available_at) " + "SELECT jsonb_strip_nulls(jsonb_build_object('traceparent', nullif($2::text,''), 'tracestate', $3::text, 'schema_version', 1, 'type', 'attachment.process.v1', " + "'job_id', id::text, 'attachment_id', attachment_id::text, 'pipeline_version', pipeline_version, " + "'attempt', retries + 1, 'created_at', " + "to_char(created_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS\"Z\"'))), " + "next_attempt_at FROM jobs WHERE id=$1::uuid RETURNING id", pqxx::params{job_id, telemetry::inject(), telemetry::inject("tracestate")}); + if (rows.size() != 1) throw std::runtime_error("outbox job missing"); +} + +OutboxPublisher::OutboxPublisher(std::string db_url, std::string broker_url) + : thread_([this, db_url = std::move(db_url), broker_url = std::move(broker_url)] { + run(db_url, broker_url); + }) {} + +OutboxPublisher::~OutboxPublisher() { + stopping_.store(true); + cv_.notify_all(); + thread_.join(); +} + +bool OutboxPublisher::wait_interval() { + std::unique_lock lock(mutex_); + return cv_.wait_for(lock, std::chrono::seconds(1), [this] { return stopping_.load(); }); +} + +void OutboxPublisher::run(const std::string& db_url, const std::string& broker_url) { + while (!stopping_.load()) { + try { + // Dedicated pools keep broker failure/reconnect off the HTTP path. + PgPool pg(db_url, 1); + RedisPool redis(broker_url, 1); + AttachmentQueue queue(redis); + while (!stopping_.load()) { + { + auto lease = pg.acquire(); + pqxx::work tx(*lease); + const auto rows = tx.exec( + "SELECT id, payload FROM outbox WHERE NOT published AND available_at<=now() " + "ORDER BY available_at, id LIMIT 32 FOR UPDATE SKIP LOCKED"); + for (const auto& row : rows) { + auto payload = nlohmann::json::parse(row["payload"].as()); + telemetry::Span publish("jobs:attachments publish", opentelemetry::trace::SpanKind::kProducer, + payload.value("traceparent", ""), payload.value("tracestate", "")); + publish.span->SetAttribute("messaging.system", "redis"); + publish.span->SetAttribute("messaging.destination.name", "jobs:attachments"); + const auto parent = telemetry::inject(); + if (!parent.empty()) payload["traceparent"] = parent; + else payload.erase("traceparent"); + payload["tracestate"] = telemetry::inject("tracestate"); + queue.publish(payload.dump()); + telemetry::event("queue.published"); + lab_crash_at("outbox_after_publish"); + tx.exec("UPDATE outbox SET published=true WHERE id=$1", + pqxx::params{row["id"].as()}); + } + tx.commit(); + } + if (wait_interval()) break; + } + } catch (const std::exception&) { + telemetry::event("queue.publish.unavailable", true); + if (wait_interval()) break; + } + } +} diff --git a/src/outbox.hpp b/src/outbox.hpp new file mode 100644 index 0000000..987e1e3 --- /dev/null +++ b/src/outbox.hpp @@ -0,0 +1,26 @@ +#pragma once + +#include "db.hpp" +#include +#include +#include +#include +#include + +// Must share the transaction that inserts/updates the job. +void enqueue_attachment_job(pqxx::work& tx, const std::string& job_id); + +class OutboxPublisher { +public: + OutboxPublisher(std::string db_url, std::string broker_url); + ~OutboxPublisher(); + OutboxPublisher(const OutboxPublisher&) = delete; + OutboxPublisher& operator=(const OutboxPublisher&) = delete; +private: + void run(const std::string& db_url, const std::string& broker_url); + bool wait_interval(); + std::atomic stopping_{false}; + std::mutex mutex_; + std::condition_variable cv_; + std::thread thread_; +}; diff --git a/src/pg_session_repo.cpp b/src/pg_session_repo.cpp new file mode 100644 index 0000000..507f2dd --- /dev/null +++ b/src/pg_session_repo.cpp @@ -0,0 +1,66 @@ +#include "pg_session_repo.hpp" + +#include +#include + +#include +#include +#include + +namespace { + +std::string random_token_hex() { + unsigned char buf[32]; + randombytes_buf(buf, sizeof(buf)); + static const char hex[] = "0123456789abcdef"; + std::string out; + out.resize(sizeof(buf) * 2); + for (std::size_t i = 0; i < sizeof(buf); ++i) { + out[i * 2] = hex[buf[i] >> 4]; + out[i * 2 + 1] = hex[buf[i] & 0x0f]; + } + return out; +} + +std::int64_t now_unix() { + return static_cast(std::time(nullptr)); +} + +} + +ISessionRepo::Created PgSessionRepo::create(const std::string& user_id) { + const std::string token = random_token_hex(); + const std::int64_t exp = now_unix() + ttl_; + + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + tx.exec( + "INSERT INTO sessions (token, user_id, expires_at) " + "VALUES ($1, $2, to_timestamp($3::bigint))", + pqxx::params{token, user_id, exp}); + tx.commit(); + + return Created{token, exp}; +} + +std::optional PgSessionRepo::lookup(const std::string& token) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + auto r = tx.exec( + "SELECT user_id FROM sessions " + "WHERE token = $1 AND expires_at > now()", + pqxx::params{token}); + tx.commit(); + if (r.empty()) return std::nullopt; + return r[0]["user_id"].as(); +} + +bool PgSessionRepo::revoke(const std::string& token) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + auto r = tx.exec( + "DELETE FROM sessions WHERE token = $1", + pqxx::params{token}); + tx.commit(); + return r.affected_rows() > 0; +} \ No newline at end of file diff --git a/src/pg_session_repo.hpp b/src/pg_session_repo.hpp new file mode 100644 index 0000000..ed005fe --- /dev/null +++ b/src/pg_session_repo.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include "db.hpp" +#include "session_repo_base.hpp" + +class PgSessionRepo : public ISessionRepo { +public: + PgSessionRepo(PgPool& pool, int ttl_seconds) + : pool_(pool), ttl_(ttl_seconds) {} + + Created create(const std::string& user_id) override; + std::optional lookup(const std::string& token) override; + bool revoke(const std::string& token) override; + +private: + PgPool& pool_; + int ttl_; +}; \ No newline at end of file diff --git a/src/redis_pool.cpp b/src/redis_pool.cpp new file mode 100644 index 0000000..035b5f2 --- /dev/null +++ b/src/redis_pool.cpp @@ -0,0 +1,216 @@ +#include "redis_pool.hpp" +#include "errors.hpp" + +#include +#include +#include +#include + +namespace { + +constexpr timeval kConnectTimeout{2, 0}; +constexpr timeval kCommandTimeout{2, 0}; +constexpr auto kAcquireTimeout = std::chrono::seconds(3); + +struct RedisUrl { + std::string host = "127.0.0.1"; + int port = 6379; + std::string password; + int db = 0; +}; + +RedisUrl parse_redis_url(const std::string& url) { + RedisUrl out; + const std::string prefix = "redis://"; + if (url.compare(0, prefix.size(), prefix) != 0) { + throw std::runtime_error("redis url must start with redis://"); + } + std::string rest = url.substr(prefix.size()); + + const auto slash = rest.find('/'); + if (slash != std::string::npos) { + const std::string db_str = rest.substr(slash + 1); + rest.resize(slash); + if (!db_str.empty()) { + out.db = std::atoi(db_str.c_str()); + } + } + + const auto at = rest.find('@'); + std::string hostport = rest; + if (at != std::string::npos) { + const std::string creds = rest.substr(0, at); + hostport = rest.substr(at + 1); + const auto colon = creds.find(':'); + if (colon != std::string::npos) { + out.password = creds.substr(colon + 1); + } else { + out.password = creds; + } + } + + const auto colon = hostport.find(':'); + if (colon == std::string::npos) { + out.host = hostport; + } else { + out.host = hostport.substr(0, colon); + out.port = std::atoi(hostport.substr(colon + 1).c_str()); + } + + return out; +} + +redisContext* make_connection(const RedisUrl& u) { + redisContext* c = redisConnectWithTimeout(u.host.c_str(), u.port, kConnectTimeout); + if (c == nullptr) { + throw std::runtime_error("redisConnect: allocation failed"); + } + if (c->err) { + const std::string err = c->errstr; + redisFree(c); + throw DependencyUnavailable("redisConnect failed: " + err); + } + if (redisSetTimeout(c, kCommandTimeout) != REDIS_OK) { + redisFree(c); + throw DependencyUnavailable("redisSetTimeout failed"); + } + if (!u.password.empty()) { + redisReply* r = static_cast( + redisCommand(c, "AUTH %s", u.password.c_str())); + if (r == nullptr) { + redisFree(c); + throw std::runtime_error("redis AUTH: no reply"); + } + const bool ok = (r->type == REDIS_REPLY_STATUS); + freeReplyObject(r); + if (!ok) { + redisFree(c); + throw std::runtime_error("redis AUTH failed"); + } + } + if (u.db != 0) { + redisReply* r = static_cast( + redisCommand(c, "SELECT %d", u.db)); + if (r == nullptr) { + redisFree(c); + throw std::runtime_error("redis SELECT: no reply"); + } + const bool ok = (r->type == REDIS_REPLY_STATUS); + freeReplyObject(r); + if (!ok) { + redisFree(c); + throw std::runtime_error("redis SELECT failed"); + } + } + return c; +} + +} + +RedisPool::RedisPool(std::string url, std::size_t n) + : url_(std::move(url)) { + if (n == 0) { + throw std::runtime_error("RedisPool: n must be > 0"); + } + const RedisUrl parsed = parse_redis_url(url_); + all_.reserve(n); + idle_.reserve(n); + for (std::size_t i = 0; i < n; ++i) { + ConnPtr c(make_connection(parsed)); + idle_.push_back(c.get()); + all_.push_back(std::move(c)); + } +} + +RedisPool::~RedisPool() { + { + std::lock_guard lk(mu_); + shutting_down_ = true; + } + cv_.notify_all(); +} + +RedisPool::Lease::Lease(RedisPool& pool) + : pool_(&pool), ctx_(pool.take()) {} + +RedisPool::Lease::~Lease() { + if (pool_ != nullptr && ctx_ != nullptr) { + pool_->give_back(ctx_); + } +} + +RedisPool::Lease::Lease(Lease&& other) noexcept + : pool_(other.pool_), ctx_(other.ctx_) { + other.pool_ = nullptr; + other.ctx_ = nullptr; +} + +RedisPool::Lease RedisPool::acquire() { + return Lease(*this); +} + +redisContext* RedisPool::take() { + std::unique_lock lk(mu_); + if (!cv_.wait_for(lk, kAcquireTimeout, + [&]() { return shutting_down_ || !idle_.empty(); })) { + throw DependencyUnavailable("redis pool: acquire timeout"); + } + if (shutting_down_) { + throw DependencyUnavailable("redis pool is shutting down"); + } + redisContext* c = idle_.back(); + idle_.pop_back(); + lk.unlock(); + + bool alive = false; + if (!c->err) { + redisReply* r = static_cast(redisCommand(c, "PING")); + if (r != nullptr && r->type == REDIS_REPLY_STATUS) { + alive = true; + } + if (r != nullptr) freeReplyObject(r); + } + if (alive) { + return c; + } + + ConnPtr fresh; + try { + fresh.reset(make_connection(parse_redis_url(url_))); + } catch (const std::exception& e) { + // Слот возвращается в пул, иначе после нескольких неудач пул опустеет навсегда. + give_back(c); + throw DependencyUnavailable(std::string("redis reconnect failed: ") + e.what()); + } + + std::lock_guard lk2(mu_); + for (auto& up : all_) { + if (up.get() == c) { + up = std::move(fresh); + return up.get(); + } + } + throw std::logic_error("RedisPool: connection not owned by pool"); +} + +void RedisPool::give_back(redisContext* c) { + { + std::lock_guard lk(mu_); + idle_.push_back(c); + } + cv_.notify_one(); +} + +bool RedisPool::ping() { + try { + auto lease = acquire(); + redisContext* c = lease.ctx(); + redisReply* r = static_cast(redisCommand(c, "PING")); + if (r == nullptr) return false; + const bool ok = (r->type == REDIS_REPLY_STATUS); + freeReplyObject(r); + return ok; + } catch (...) { + return false; + } +} \ No newline at end of file diff --git a/src/redis_pool.hpp b/src/redis_pool.hpp new file mode 100644 index 0000000..0032315 --- /dev/null +++ b/src/redis_pool.hpp @@ -0,0 +1,59 @@ +#pragma once + +#include + +#include +#include +#include +#include +#include +#include + +class RedisPool { +public: + RedisPool(std::string url, std::size_t n); + ~RedisPool(); + + RedisPool(const RedisPool&) = delete; + RedisPool& operator=(const RedisPool&) = delete; + + class Lease { + public: + explicit Lease(RedisPool& pool); + ~Lease(); + Lease(Lease&& other) noexcept; + Lease& operator=(Lease&&) = delete; + Lease(const Lease&) = delete; + Lease& operator=(const Lease&) = delete; + + redisContext* ctx() const { return ctx_; } + + private: + RedisPool* pool_; + redisContext* ctx_; + }; + + Lease acquire(); + + bool ping(); + +private: + friend class Lease; + + struct RedisDeleter { + void operator()(redisContext* c) const noexcept { + if (c != nullptr) ::redisFree(c); + } + }; + using ConnPtr = std::unique_ptr; + + redisContext* take(); + void give_back(redisContext* c); + + std::string url_; + std::vector all_; + std::vector idle_; + std::mutex mu_; + std::condition_variable cv_; + bool shutting_down_ = false; +}; \ No newline at end of file diff --git a/src/s3_client.cpp b/src/s3_client.cpp new file mode 100644 index 0000000..f019f3a --- /dev/null +++ b/src/s3_client.cpp @@ -0,0 +1,290 @@ +#include "telemetry.hpp" +#include "s3_client.hpp" + +#include +#include +#include +#include +#include + +#include +#include +#include + +namespace { + +std::string read_file_trim(const std::string& path) { + std::ifstream in(path); + if (!in) { + throw std::runtime_error("cannot open secret/file: " + path); + } + std::string s((std::istreambuf_iterator(in)), + std::istreambuf_iterator()); + while (!s.empty() && (s.back() == '\n' || s.back() == '\r' || s.back() == ' ')) { + s.pop_back(); + } + return s; +} + +std::string env_or(const char* key, const char* fallback = "") { + const char* v = std::getenv(key); + return (v && *v) ? std::string(v) : std::string(fallback); +} + +void parse_endpoint(const std::string& endpoint, std::string& host, unsigned& port, + bool& https) { + https = true; + host = endpoint; + port = 0; + if (host.rfind("http://", 0) == 0) { + https = false; + host = host.substr(7); + } else if (host.rfind("https://", 0) == 0) { + https = true; + host = host.substr(8); + } + // strip path + const auto slash = host.find('/'); + if (slash != std::string::npos) { + host = host.substr(0, slash); + } + const auto colon = host.rfind(':'); + if (colon != std::string::npos) { + port = static_cast(std::stoul(host.substr(colon + 1))); + host = host.substr(0, colon); + } + if (port == 0) { + port = https ? 443u : 80u; + } +} + +} // namespace + +struct S3Client::Impl { + minio::s3::BaseUrl base_url; + minio::s3::BaseUrl presign_url; + std::unique_ptr provider; + std::unique_ptr client; + std::unique_ptr presign_client; // null → use client +}; + +S3Client::Config S3Client::from_env() { + Config c; + // Ops endpoint (Stat/Get/Put/Delete). Presign may use S3_PRESIGN_ENDPOINT + // (read in ctor) so signed Host matches the client-reachable address. + c.endpoint = env_or("S3_ENDPOINT", "http://minio:9000"); + c.region = env_or("S3_REGION", "us-east-1"); + c.bucket = env_or("S3_BUCKET"); + if (c.bucket.empty()) { + throw std::runtime_error("S3_BUCKET is required"); + } + + const std::string key_file = env_or("S3_ACCESS_KEY_ID_FILE"); + const std::string secret_file = env_or("S3_SECRET_ACCESS_KEY_FILE"); + if (key_file.empty() || secret_file.empty()) { + throw std::runtime_error( + "S3_ACCESS_KEY_ID_FILE and S3_SECRET_ACCESS_KEY_FILE are required"); + } + c.access_key = read_file_trim(key_file); + c.secret_key = read_file_trim(secret_file); + if (c.access_key.empty() || c.secret_key.empty()) { + throw std::runtime_error("S3 credentials files are empty"); + } + return c; +} + +S3Client::S3Client(Config cfg) : cfg_(std::move(cfg)), impl_(std::make_unique()) { + if (cfg_.endpoint.empty() || cfg_.bucket.empty() || + cfg_.access_key.empty() || cfg_.secret_key.empty()) { + throw std::runtime_error("S3Client: incomplete config"); + } + + std::string host; + unsigned port = 0; + bool https = false; + parse_endpoint(cfg_.endpoint, host, port, https); + + impl_->base_url = minio::s3::BaseUrl(host, https, cfg_.region); + impl_->base_url.port = port; + // MinIO requires path-style addressing. + impl_->base_url.virtual_style = false; + + impl_->provider = std::make_unique( + cfg_.access_key, cfg_.secret_key); + impl_->client = + std::make_unique(impl_->base_url, impl_->provider.get()); + + // Separate BaseUrl for presigning when S3_PRESIGN_ENDPOINT differs. + const std::string presign_ep = env_or("S3_PRESIGN_ENDPOINT"); + if (!presign_ep.empty() && presign_ep != cfg_.endpoint) { + std::string ph; + unsigned pp = 0; + bool phttps = false; + parse_endpoint(presign_ep, ph, pp, phttps); + impl_->presign_url = minio::s3::BaseUrl(ph, phttps, cfg_.region); + impl_->presign_url.port = pp; + impl_->presign_url.virtual_style = false; + impl_->presign_client = std::make_unique( + impl_->presign_url, impl_->provider.get()); + } +} + +S3Client::~S3Client() = default; + +void S3Client::put_object(const std::string& key, + std::istream& body, + std::int64_t size_bytes, + const std::string& content_type) { + telemetry::Span operation("s3.put_object", opentelemetry::trace::SpanKind::kClient); + if (size_bytes < 0) { + throw std::invalid_argument("put_object: negative size"); + } + + // part_size=0 → library chooses multipart sizing; streams from `body`. + minio::s3::PutObjectArgs args(body, static_cast(size_bytes), 0); + args.bucket = cfg_.bucket; + args.object = key; + if (!content_type.empty()) { + args.content_type = content_type; + } + + minio::s3::PutObjectResponse resp = impl_->client->PutObject(args); + if (!resp) { + throw std::runtime_error("S3 PutObject failed: " + resp.Error().String()); + } +} + +void S3Client::get_object(const std::string& key, std::ostream& out) { + telemetry::Span operation("s3.get_object", opentelemetry::trace::SpanKind::kClient); + get_object(key, [&](const char* data, std::size_t n) { + out.write(data, static_cast(n)); + if (!out) { + throw std::runtime_error("get_object: write failed"); + } + }); +} + +std::int64_t S3Client::get_object( + const std::string& key, + const std::function& on_chunk) { + telemetry::Span operation("s3.get_object", opentelemetry::trace::SpanKind::kClient); + std::int64_t total = 0; + minio::s3::GetObjectArgs args; + args.bucket = cfg_.bucket; + args.object = key; + args.datafunc = [&](minio::http::DataFunctionArgs da) -> bool { + on_chunk(da.datachunk.data(), da.datachunk.size()); + total += static_cast(da.datachunk.size()); + return true; + }; + + minio::s3::GetObjectResponse resp = impl_->client->GetObject(args); + if (!resp) { + throw std::runtime_error("S3 GetObject failed: " + resp.Error().String()); + } + return total; +} + +void S3Client::copy_object(const std::string& src_key, + const std::string& dst_key) { + telemetry::Span operation("s3.copy_object", opentelemetry::trace::SpanKind::kClient); + if (src_key.empty() || dst_key.empty() || src_key == dst_key) { + throw std::invalid_argument("copy_object: bad keys"); + } + minio::s3::CopyObjectArgs args; + args.bucket = cfg_.bucket; + args.object = dst_key; + args.source.bucket = cfg_.bucket; + args.source.object = src_key; + minio::s3::CopyObjectResponse resp = impl_->client->CopyObject(args); + if (!resp) { + throw std::runtime_error("S3 CopyObject failed: " + resp.Error().String()); + } +} + +void S3Client::delete_object(const std::string& key) { + telemetry::Span operation("s3.delete_object", opentelemetry::trace::SpanKind::kClient); + minio::s3::RemoveObjectArgs args; + args.bucket = cfg_.bucket; + args.object = key; + minio::s3::RemoveObjectResponse resp = impl_->client->RemoveObject(args); + if (!resp) { + throw std::runtime_error("S3 DeleteObject failed: " + resp.Error().String()); + } +} + +bool S3Client::stat_object(const std::string& key, std::int64_t& size_bytes, + std::string& etag) { + telemetry::Span operation("s3.stat_object", opentelemetry::trace::SpanKind::kClient); + minio::s3::StatObjectArgs args; + args.bucket = cfg_.bucket; + args.object = key; + minio::s3::StatObjectResponse resp = impl_->client->StatObject(args); + if (!resp) { + // NoSuchKey / Not Found → absent + const std::string err = resp.Error().String(); + if (resp.code == "NoSuchKey" || resp.status_code == 404) { + return false; + } + throw std::runtime_error("S3 StatObject failed: " + err); + } + size_bytes = static_cast(resp.size); + etag = resp.etag; + return true; +} + +std::string S3Client::presign_put(const std::string& key, + unsigned expiry_seconds, + const std::string& content_type) { + telemetry::Span operation("s3.presign_put", opentelemetry::trace::SpanKind::kClient); + if (expiry_seconds < 1 || expiry_seconds > 7 * 24 * 3600u) { + throw std::invalid_argument("presign_put: bad expiry"); + } + minio::s3::Client* c = + impl_->presign_client ? impl_->presign_client.get() : impl_->client.get(); + + // Note: minio-cpp query-presign signs method/host/path/query only — it does + // not bind Content-Type into the signature. Clients should still send + // Content-Type so the object metadata is correct; complete() re-validates + // magic/sha256 against the session. + (void)content_type; + minio::s3::GetPresignedObjectUrlArgs args; + args.bucket = cfg_.bucket; + args.object = key; + args.method = minio::http::Method::kPut; + args.expiry_seconds = expiry_seconds; + + minio::s3::GetPresignedObjectUrlResponse resp = c->GetPresignedObjectUrl(args); + if (!resp) { + throw std::runtime_error("S3 PresignPut failed: " + resp.Error().String()); + } + return resp.url; +} + +std::vector S3Client::old_staging(const std::string& cursor, + int retention_seconds, + std::string& next_cursor) { + telemetry::Span operation("s3.old_staging", opentelemetry::trace::SpanKind::kClient); + minio::s3::ListObjectsArgs args; + args.bucket = cfg_.bucket; + args.prefix = "staging/"; + args.recursive = true; + args.max_keys = 100; + args.start_after = cursor; + auto cutoff = minio::utils::UtcTime::Now(); + cutoff.Add(-retention_seconds); + auto result = impl_->client->ListObjects(args); + std::vector keys; + next_cursor.clear(); + for (int count = 0; result && count < 100; ++count) { + const auto& item = *result; + if (!item) throw std::runtime_error("S3 staging listing failed"); + if (!item.is_prefix && item.last_modified <= cutoff) keys.push_back(item.name); + if (count == 99) { + next_cursor = item.name; + break; + } + ++result; + } + return keys; +} diff --git a/src/s3_client.hpp b/src/s3_client.hpp new file mode 100644 index 0000000..aea8b01 --- /dev/null +++ b/src/s3_client.hpp @@ -0,0 +1,71 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include + +// Thin wrapper over AWS SDK for C++ (S3 only). Credentials and SigV4 come from +// the SDK — no hand-rolled signing. + +class S3Client { +public: + struct Config { + std::string endpoint; // e.g. http://minio:9000 + std::string region; // e.g. us-east-1 + std::string bucket; + std::string access_key; + std::string secret_key; + }; + + explicit S3Client(Config cfg); + ~S3Client(); + + S3Client(const S3Client&) = delete; + S3Client& operator=(const S3Client&) = delete; + + static Config from_env(); + + const std::string& bucket() const { return cfg_.bucket; } + + // Stream upload. `body` must yield exactly `size_bytes` bytes. + void put_object(const std::string& key, + std::istream& body, + std::int64_t size_bytes, + const std::string& content_type); + + // Stream download into `out` (chunked reads from SDK body stream). + void get_object(const std::string& key, std::ostream& out); + + // Stream download with a consumer callback (chunk, size). Returns total bytes. + std::int64_t get_object(const std::string& key, + const std::function& on_chunk); + + void delete_object(const std::string& key); + + // At most 100 entries examined per call; cursor wraps to empty at end. + std::vector old_staging(const std::string& cursor, + int retention_seconds, std::string& next_cursor); + + // Server-side copy inside the bucket (complete: staging → final). + void copy_object(const std::string& src_key, const std::string& dst_key); + + // HeadObject-style metadata. Returns false if the object does not exist. + bool stat_object(const std::string& key, std::int64_t& size_bytes, + std::string& etag); + + // Presigned PUT URL via minio-cpp (SigV4). Optional required Content-Type + // is bound into the signature when non-empty. + // expiry_seconds: typically 60–600 for Track 1. + std::string presign_put(const std::string& key, + unsigned expiry_seconds, + const std::string& content_type); + +private: + struct Impl; + Config cfg_; + std::unique_ptr impl_; +}; diff --git a/src/session_repo.cpp b/src/session_repo.cpp new file mode 100644 index 0000000..28f1edb --- /dev/null +++ b/src/session_repo.cpp @@ -0,0 +1,87 @@ +#include "session_repo.hpp" +#include "errors.hpp" + +#include + +#include +#include +#include +#include + +namespace { + +std::string random_token_hex() { + unsigned char buf[32]; + randombytes_buf(buf, sizeof(buf)); + static const char hex[] = "0123456789abcdef"; + std::string out; + out.resize(sizeof(buf) * 2); + for (std::size_t i = 0; i < sizeof(buf); ++i) { + out[i * 2] = hex[buf[i] >> 4]; + out[i * 2 + 1] = hex[buf[i] & 0x0f]; + } + return out; +} + +std::int64_t now_unix() { + return static_cast(std::time(nullptr)); +} + +redisReply* check_reply(redisContext* c, redisReply* r) { + if (r == nullptr) { + const std::string err = c->err ? c->errstr : "no reply"; + throw DependencyUnavailable("redis command failed: " + err); + } + return r; +} + +} + +ISessionRepo::Created SessionRepo::create(const std::string& user_id) { + const std::string token = random_token_hex(); + const std::int64_t exp = now_unix() + ttl_; + + auto lease = pool_.acquire(); + redisContext* c = lease.ctx(); + + redisReply* r = static_cast( + redisCommand(c, "SET session:%s %s EX %d", + token.c_str(), user_id.c_str(), ttl_)); + check_reply(c, r); + const bool ok = (r->type == REDIS_REPLY_STATUS); + freeReplyObject(r); + if (!ok) { + throw std::runtime_error("redis SET returned non-status"); + } + + return Created{token, exp}; +} + +std::optional SessionRepo::lookup(const std::string& token) { + auto lease = pool_.acquire(); + redisContext* c = lease.ctx(); + + redisReply* r = static_cast( + redisCommand(c, "GET session:%s", token.c_str())); + check_reply(c, r); + + std::optional out; + if (r->type == REDIS_REPLY_STRING) { + out = std::string(r->str, r->len); + } + freeReplyObject(r); + return out; +} + +bool SessionRepo::revoke(const std::string& token) { + auto lease = pool_.acquire(); + redisContext* c = lease.ctx(); + + redisReply* r = static_cast( + redisCommand(c, "DEL session:%s", token.c_str())); + check_reply(c, r); + + const bool existed = (r->type == REDIS_REPLY_INTEGER && r->integer == 1); + freeReplyObject(r); + return existed; +} \ No newline at end of file diff --git a/src/session_repo.hpp b/src/session_repo.hpp new file mode 100644 index 0000000..550eae6 --- /dev/null +++ b/src/session_repo.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include "redis_pool.hpp" +#include "session_repo_base.hpp" + +class SessionRepo : public ISessionRepo { +public: + SessionRepo(RedisPool& pool, int ttl_seconds) + : pool_(pool), ttl_(ttl_seconds) {} + + Created create(const std::string& user_id) override; + std::optional lookup(const std::string& token) override; + bool revoke(const std::string& token) override; + +private: + RedisPool& pool_; + int ttl_; +}; \ No newline at end of file diff --git a/src/session_repo_base.hpp b/src/session_repo_base.hpp new file mode 100644 index 0000000..4a685ba --- /dev/null +++ b/src/session_repo_base.hpp @@ -0,0 +1,22 @@ +#pragma once + +#include +#include +#include + + +class ISessionRepo { +public: + virtual ~ISessionRepo() = default; + + struct Created { + std::string token; + std::int64_t expires_at; // unix-время в секундах UTC + }; + + virtual Created create(const std::string& user_id) = 0; + + virtual std::optional lookup(const std::string& token) = 0; + + virtual bool revoke(const std::string& token) = 0; +}; \ No newline at end of file diff --git a/src/staging_cleaner.cpp b/src/staging_cleaner.cpp new file mode 100644 index 0000000..b4767f5 --- /dev/null +++ b/src/staging_cleaner.cpp @@ -0,0 +1,77 @@ +#include "staging_cleaner.hpp" +#include "attachment_storage.hpp" + +#include +#include + +void StagingCleaner::clean(const std::string& key) { + static const std::regex pattern( + "^staging/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/" + "([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"); + std::smatch match; + if (!std::regex_match(key, match, pattern)) return; + const std::string id = match[1]; + auto lease = pg_.acquire(); + pqxx::work tx(*lease); + if (!tx.exec("SELECT pg_try_advisory_xact_lock(hashtextextended('staging:' || $1::uuid::text, 0))", + pqxx::params{id})[0][0].as()) return; + auto rows = tx.exec( + "SELECT a.chat_id, a.staging_key, a.s3_key, a.size_bytes, a.variants, a.status, j.id AS job_id, " + "a.updated_at < now()-($2::bigint * interval '1 second') AS expired " + "FROM attachments a LEFT JOIN jobs j ON j.attachment_id=a.id AND j.pipeline_version=a.pipeline_version " + "WHERE a.id=$1::uuid FOR UPDATE OF a SKIP LOCKED", pqxx::params{id, retention_seconds_}); + if (rows.empty()) { + // An existing locked row is not an orphan. + if (!tx.exec("SELECT 1 FROM attachments WHERE id=$1::uuid", pqxx::params{id}).empty()) return; + } else { + const auto& row = rows[0]; + if (row["staging_key"].is_null() || row["staging_key"].as() != key) return; + const std::string status = row["status"].as(); + if (status != "ready" && !(status == "failed" && row["expired"].as())) return; + if (!row["job_id"].is_null() && !tx.exec( + "SELECT pg_try_advisory_xact_lock(hashtextextended($1::uuid::text, 0))", + pqxx::params{row["job_id"].as()})[0][0].as()) return; + if (!tx.exec("SELECT 1 FROM jobs WHERE attachment_id=$1::uuid AND source_key=$2 " + "AND status IN ('queued','processing')", pqxx::params{id,key}).empty()) return; + if (status == "ready") { + std::int64_t size = 0; + std::string etag; + if (!s3_.stat_object(row["s3_key"].as(), size, etag) || + size != row["size_bytes"].as()) return; + for (const auto& variant : nlohmann::json::parse(row["variants"].as())) { + const std::string object_key = variant.value("storage_key", + attachment_variant_key(row["chat_id"].as(), id, variant.at("name").get())); + if (!s3_.stat_object(object_key, size, etag) || + size != variant.at("size_bytes").get()) return; + } + } + } + // A still-valid presigned URL can recreate the key: wait for its expiry. + if (!tx.exec("SELECT 1 FROM direct_uploads WHERE staging_key=$1 AND expires_at>now()", + pqxx::params{key}).empty()) return; + s3_.delete_object(key); + if (!rows.empty()) { + // Internal cleanup does not change public metadata/updated_at. + tx.exec("UPDATE attachments SET staging_cleaned_at=now() WHERE id=$1::uuid", pqxx::params{id}); + } + tx.commit(); +} + +void StagingCleaner::sweep() { + std::vector known; + { + auto lease = pg_.acquire(); + pqxx::work tx(*lease); + for (const auto& row : tx.exec( + "SELECT staging_key FROM attachments WHERE staging_key IS NOT NULL " + "AND staging_cleaned_at IS NULL AND (status='ready' OR " + "(status='failed' AND updated_at()); + } + } + for (const auto& key : known) clean(key); + std::string next; + for (const auto& key : s3_.old_staging(cursor_, retention_seconds_, next)) clean(key); + cursor_ = std::move(next); +} diff --git a/src/staging_cleaner.hpp b/src/staging_cleaner.hpp new file mode 100644 index 0000000..12e261a --- /dev/null +++ b/src/staging_cleaner.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include "db.hpp" +#include "s3_client.hpp" +#include + +class StagingCleaner { +public: + StagingCleaner(PgPool& pg, S3Client& s3, int retention_seconds) + : pg_(pg), s3_(s3), retention_seconds_(retention_seconds) {} + void clean(const std::string& key); + void sweep(); +private: + PgPool& pg_; + S3Client& s3_; + int retention_seconds_; + std::string cursor_; +}; diff --git a/src/telemetry.cpp b/src/telemetry.cpp new file mode 100644 index 0000000..c38db12 --- /dev/null +++ b/src/telemetry.cpp @@ -0,0 +1,270 @@ +#include "telemetry.hpp" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace telemetry { +namespace ot = opentelemetry; +namespace ts = ot::sdk::trace; +namespace ms = ot::sdk::metrics; +namespace ls = ot::sdk::logs; +namespace ex = ot::exporter::otlp; +namespace { +std::shared_ptr traces; +std::shared_ptr metrics; +std::shared_ptr logs; +ot::nostd::shared_ptr logger; +ot::nostd::unique_ptr> requests, jobs; +ot::nostd::unique_ptr> http_duration, job_duration, ready_duration; +struct Gauge { + std::atomic value{0}; + ot::nostd::shared_ptr instrument; +}; +std::map gauges; +thread_local HttpRequest* current_http = nullptr; +struct Carrier : ot::context::propagation::TextMapCarrier { + std::map fields; + ot::nostd::string_view Get(ot::nostd::string_view key) const noexcept override { + auto i = fields.find(std::string(key)); + return i == fields.end() ? ot::nostd::string_view{} : ot::nostd::string_view(i->second); + } + void Set(ot::nostd::string_view key, ot::nostd::string_view value) noexcept override { + fields[std::string(key)] = std::string(value); + } +}; +ot::trace::propagation::HttpTraceContext propagation; +class Diagnostics : public ot::sdk::common::internal_log::LogHandler { +public: + void Handle(ot::sdk::common::internal_log::LogLevel level, const char*, int, const char* message, + const ot::sdk::common::AttributeMap&) noexcept override { + // Count diagnostics without copying backend errors, URLs or payloads into logs. + delta("telemetry.sdk.errors", 1); + if (message && std::string_view(message).find("BatchSpanProcessor queue is full") != std::string_view::npos) + delta("telemetry.sdk.dropped.spans", 1); + } +}; +void observe(ot::metrics::ObserverResult result, void* state) { + ot::nostd::get>>(result) + ->Observe(static_cast(state)->value.load()); +} +} +Runtime::Runtime(const char* service) noexcept { + try { + if (const auto* disabled = std::getenv("OTEL_SDK_DISABLED"); disabled && std::string(disabled) == "true") return; + // Do not dump exporter payloads or third party error strings to stderr. + ot::sdk::common::internal_log::GlobalLogHandler::SetLogLevel( + ot::sdk::common::internal_log::LogLevel::None); + char host[256]{}; + gethostname(host, sizeof(host)-1); + auto resource = ot::sdk::resource::Resource::Create({ + {"service.name", service}, {"service.version", "lab6-1.0"}, + {"service.instance.id", host}, {"deployment.environment.name", "lab"}}); + ex::OtlpHttpExporterOptions to; + to.timeout = std::chrono::milliseconds(500); + to.console_debug = false; + to.retry_policy_max_attempts = 1; + to.content_type = ex::HttpRequestContentType::kBinary; + ts::BatchSpanProcessorOptions batch; + batch.max_queue_size = 1024; + batch.max_export_batch_size = 128; + batch.schedule_delay_millis = std::chrono::milliseconds(500); + traces = std::make_shared( + ts::BatchSpanProcessorFactory::Create(ex::OtlpHttpExporterFactory::Create(to), batch), resource, + std::make_unique(std::make_shared())); + std::shared_ptr api_traces = traces; + ot::trace::Provider::SetTracerProvider(api_traces); + ex::OtlpHttpMetricExporterOptions mo; + mo.timeout = std::chrono::milliseconds(500); + mo.console_debug = false; + mo.retry_policy_max_attempts = 1; + mo.content_type = ex::HttpRequestContentType::kBinary; + metrics = std::make_shared(std::make_unique(), resource); + for (auto name : {"http.server.request.duration", "worker.job.duration", "attachment.ready.duration"}) { + auto config = std::make_shared(); + config->boundaries_ = {0.005,0.01,0.025,0.05,0.1,0.25,0.5,1,2.5,5,10,30,60,120}; + metrics->AddView(std::make_unique(ms::InstrumentType::kHistogram, name, "s"), + std::make_unique("messenger", "1.0", ""), + std::make_unique(name, "", "s", ms::AggregationType::kHistogram, config)); + } + ms::PeriodicExportingMetricReaderOptions ro; + ro.export_interval_millis = std::chrono::milliseconds(5000); + ro.export_timeout_millis = std::chrono::milliseconds(1000); + metrics->AddMetricReader(ms::PeriodicExportingMetricReaderFactory::Create( + ex::OtlpHttpMetricExporterFactory::Create(mo), ro)); + auto meter = metrics->GetMeter("messenger", "1.0"); + requests = meter->CreateUInt64Counter("http.server.requests", "Business HTTP requests", "{request}"); + jobs = meter->CreateUInt64Counter("worker.jobs", "Delivery outcomes", "{job}"); + http_duration = meter->CreateDoubleHistogram("http.server.request.duration", "Request latency", "s"); + job_duration = meter->CreateDoubleHistogram("worker.job.duration", "Delivery processing latency", "s"); + ready_duration = meter->CreateDoubleHistogram("attachment.ready.duration", "Durable acceptance to ready", "s"); + for (auto name : {"queue.depth", "queue.oldest.age", "queue.observation.timestamp", + "db.pool.used", "db.pool.waiting", "db.pool.capacity", "worker.busy", "worker.capacity", + "process.cpu.time", "process.memory.usage", "telemetry.sdk.errors", "telemetry.sdk.dropped.spans"}) { + auto& g = gauges[name]; + g.instrument = meter->CreateDoubleObservableGauge(name); + g.instrument->AddCallback(observe, &g); + } + ex::OtlpHttpLogRecordExporterOptions lo; + lo.timeout = std::chrono::milliseconds(500); + lo.console_debug = false; + lo.retry_policy_max_attempts = 1; + lo.content_type = ex::HttpRequestContentType::kBinary; + ls::BatchLogRecordProcessorOptions lb; + lb.max_queue_size = 1024; + lb.max_export_batch_size = 128; + lb.schedule_delay_millis = std::chrono::milliseconds(500); + logs = std::make_shared(ls::BatchLogRecordProcessorFactory::Create( + ex::OtlpHttpLogRecordExporterFactory::Create(lo), lb), resource); + logger = logs->GetLogger("messenger", "messenger", "1.0", "", ot::common::NoopKeyValueIterable()); + ot::sdk::common::internal_log::GlobalLogHandler::SetLogHandler( + ot::nostd::shared_ptr(new Diagnostics)); + ot::sdk::common::internal_log::GlobalLogHandler::SetLogLevel( + ot::sdk::common::internal_log::LogLevel::Warning); + event("service.started"); + } catch (...) { /* Telemetry setup must not prevent application startup. */ } +} +Runtime::~Runtime() { + if (metrics) metrics->Shutdown(std::chrono::seconds(2)); + if (logs) logs->Shutdown(std::chrono::seconds(2)); + if (traces) traces->Shutdown(std::chrono::seconds(2)); +} +Span::Span(const std::string& name, ot::trace::SpanKind kind, + const std::string& parent, const std::string& state) : exceptions_(std::uncaught_exceptions()) { + ot::trace::StartSpanOptions options; + options.kind = kind; + if (!parent.empty()) { + Carrier carrier; + if (parent.size() <= 256) carrier.fields["traceparent"] = parent; + if (state.size() <= 512) carrier.fields["tracestate"] = state; + auto root = ot::context::Context{}; + options.parent = propagation.Extract(carrier, root); + } + span = ot::trace::Provider::GetTracerProvider()->GetTracer("messenger", "1.0")->StartSpan(name, options); + scope_ = std::make_unique(span); +} +Span::~Span() { + if (std::uncaught_exceptions() > exceptions_) error(); + span->End(); +} +void Span::error() noexcept { span->SetStatus(ot::trace::StatusCode::kError); } +std::string inject(const char* field) { + Carrier carrier; + auto context = ot::context::RuntimeContext::GetCurrent(); + propagation.Inject(carrier, context); + return carrier.fields[field]; +} +void event(const char* name, bool failed, const std::string& request_id) noexcept { + if (!logger) return; + auto record = logger->CreateLogRecord(); + record->SetTimestamp(std::chrono::system_clock::now()); + record->SetSeverity(failed ? ot::logs::Severity::kError : ot::logs::Severity::kInfo); + record->SetBody(name); + record->SetAttribute("event", name); + if (!request_id.empty()) record->SetAttribute("request_id", request_id); + const auto context = ot::trace::GetSpan(ot::context::RuntimeContext::GetCurrent())->GetContext(); + if (context.IsValid()) { + record->SetTraceId(context.trace_id()); + record->SetSpanId(context.span_id()); + record->SetTraceFlags(context.trace_flags()); + } + logger->EmitLogRecord(std::move(record)); +} +void gauge(const char* name, double value) noexcept { + auto i = gauges.find(name); + if (i != gauges.end()) i->second.value.store(value); +} +void delta(const char* name, long value) noexcept { + auto i = gauges.find(name); + if (i != gauges.end()) { + auto old = i->second.value.load(); + while (!i->second.value.compare_exchange_weak(old, old + value)) {} + } +} +void duration(const char*, double seconds) noexcept { + if (ready_duration) ready_duration->Record(seconds, ot::context::Context{}); +} +std::string route_template(const std::string& path) { + // Whitelist full templates; unknown/hostile paths never enter telemetry. + static const std::pair routes[] = { + {std::regex("^/api/v1/chats/[^/]+/messages$"), "/api/v1/chats/{chat_id}/messages"}, + {std::regex("^/api/v1/chats/[^/]+/attachments$"), "/api/v1/chats/{chat_id}/attachments"}, + {std::regex("^/api/v1/chats/[^/]+/direct-uploads$"), "/api/v1/chats/{chat_id}/direct-uploads"}, + {std::regex("^/api/v1/chats/[^/]+$"), "/api/v1/chats/{chat_id}"}, + {std::regex("^/api/v1/attachments/[^/]+/content$"), "/api/v1/attachments/{attachment_id}/content"}, + {std::regex("^/api/v1/attachments/[^/]+$"), "/api/v1/attachments/{attachment_id}"}, + {std::regex("^/api/v1/direct-uploads/[^/]+/complete$"), "/api/v1/direct-uploads/{upload_id}/complete"}, + {std::regex("^/api/v1/direct-uploads/[^/]+$"), "/api/v1/direct-uploads/{upload_id}"}}; + for (auto exact : {"/api/v1/users", "/api/v1/users/me", "/api/v1/chats", "/api/v1/auth/sessions", "/api/v1/auth/sessions/current", "/health/live", "/health/ready"}) + if (path == exact) return exact; + for (const auto& route : routes) if (std::regex_match(path, route.first)) return route.second; + return "unmatched"; +} +HttpRequest::HttpRequest() : start_(std::chrono::steady_clock::now()), previous_(current_http) { current_http = this; } +void HttpRequest::configure(const std::string& method, const std::string& path, + const std::string& parent, const std::string& state, const std::string& id) { + for (auto known : {"GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"}) if (method == known) method_ = known; + status = 500; + route_ = route_template(path); + id_ = id; + span_ = std::make_unique(method_ + " " + route_, ot::trace::SpanKind::kServer, parent, state); + span_->span->SetAttribute("http.request.method", method_); + span_->span->SetAttribute("http.route", route_); +} +HttpRequest::~HttpRequest() { + current_http = previous_; + if (status == 0 || route_.rfind("/health/", 0) == 0) return; + const std::map attrs = {{"http.request.method", method_}, + {"http.route", route_}, {"http.response.status_class", std::to_string(status/100)+"xx"}}; + if (requests) requests->Add(1, attrs); + if (http_duration) http_duration->Record(std::chrono::duration(std::chrono::steady_clock::now()-start_).count(), attrs, ot::context::Context{}); + if (span_) { + span_->span->SetAttribute("http.response.status_code", status); + if (status >= 500) span_->error(); + } + event("http.request.completed", status >= 500, id_); +} +void response(const std::string& bytes) noexcept { + if (current_http && bytes.size() >= 12 && bytes.compare(0,9,"HTTP/1.1 ") == 0 && + bytes[9] >= '1' && bytes[9] <= '5' && bytes[10] >= '0' && bytes[10] <= '9' && bytes[11] >= '0' && bytes[11] <= '9') + current_http->status = (bytes[9]-'0')*100+(bytes[10]-'0')*10+bytes[11]-'0'; +} +Job::Job(const std::string& parent, const std::string& state) + : span_("attachment.process", ot::trace::SpanKind::kConsumer, parent, state), start_(std::chrono::steady_clock::now()) { + span_.span->SetAttribute("messaging.system", "redis"); + span_.span->SetAttribute("messaging.destination.name", "jobs:attachments"); + delta("worker.busy", 1); +} +void Job::finish(const char* outcome) { outcome_ = outcome; } +Job::~Job() { + if (std::uncaught_exceptions() > exceptions_) outcome_ = "failed"; + delta("worker.busy", -1); + const std::map attrs{{"job.type","attachment.process.v1"},{"outcome",outcome_}}; + if (jobs) jobs->Add(1, attrs); + if (job_duration) job_duration->Record(std::chrono::duration(std::chrono::steady_clock::now()-start_).count(), attrs, ot::context::Context{}); + bool failed = std::string(outcome_) == "failed" || std::string(outcome_) == "retry"; + span_.span->SetAttribute("job.outcome", outcome_); + if (failed) span_.error(); + event("worker.job.completed", failed); +} +} diff --git a/src/telemetry.hpp b/src/telemetry.hpp new file mode 100644 index 0000000..4339801 --- /dev/null +++ b/src/telemetry.hpp @@ -0,0 +1,60 @@ +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace telemetry { +class Runtime { +public: + explicit Runtime(const char* service) noexcept; + ~Runtime(); +}; +// Only trusted constants and bounded route templates may be passed as names/attributes. +class Span { +public: + explicit Span(const std::string& name, + opentelemetry::trace::SpanKind kind = opentelemetry::trace::SpanKind::kInternal, + const std::string& traceparent = "", const std::string& tracestate = ""); + ~Span(); + void error() noexcept; + opentelemetry::nostd::shared_ptr span; +private: + int exceptions_; + std::unique_ptr scope_; +}; +std::string inject(const char* field = "traceparent"); +std::string route_template(const std::string& path); +void event(const char* name, bool error = false, const std::string& request_id = "") noexcept; +void gauge(const char* name, double value) noexcept; +void delta(const char* name, long value) noexcept; +void duration(const char* name, double seconds) noexcept; +class HttpRequest { +public: + HttpRequest(); + ~HttpRequest(); + void configure(const std::string& method, const std::string& path, + const std::string& parent, const std::string& state, const std::string& id); + int status = 0; +private: + std::chrono::steady_clock::time_point start_; + std::unique_ptr span_; + std::string method_ = "_OTHER", route_ = "unmatched", id_; + HttpRequest* previous_; +}; +void response(const std::string& bytes) noexcept; +class Job { +public: + Job(const std::string& parent, const std::string& state); + ~Job(); + void finish(const char* outcome); +private: + Span span_; + std::chrono::steady_clock::time_point start_; + int exceptions_ = std::uncaught_exceptions(); + const char* outcome_ = "failed"; +}; +} diff --git a/src/user_repo.cpp b/src/user_repo.cpp new file mode 100644 index 0000000..2cc4bc9 --- /dev/null +++ b/src/user_repo.cpp @@ -0,0 +1,100 @@ +#include "user_repo.hpp" + +#include + +#include +#include +#include +#include +#include +#include + +namespace { + +std::string make_uuid() { + static std::mt19937_64 rng{std::random_device{}()}; + std::uniform_int_distribution d16(0, 0xffff); + std::uniform_int_distribution d32(0, 0xffffffffu); + std::ostringstream out; + out << std::hex << std::setfill('0'); + out << std::setw(8) << d32(rng); + out << '-' << std::setw(4) << d16(rng); + out << '-' << std::setw(4) << ((d16(rng) & 0x0fff) | 0x4000); + out << '-' << std::setw(4) << ((d16(rng) & 0x3fff) | 0x8000); + out << '-' << std::setw(4) << d16(rng) << std::setw(8) << d32(rng); + return out.str(); +} + +std::string epoch_to_rfc3339(long long epoch) { + const std::time_t t = static_cast(epoch); + std::tm tm{}; + gmtime_r(&t, &tm); + std::ostringstream out; + out << std::put_time(&tm, "%Y-%m-%dT%H:%M:%SZ"); + return out.str(); +} + +std::string now_epoch_str() { + const auto now = std::chrono::system_clock::now(); + const auto secs = std::chrono::duration_cast( + now.time_since_epoch()).count(); + return std::to_string(secs); +} + +User row_to_user(const pqxx::row& r) { + User u; + u.id = r["id"].as(); + u.username = r["username"].as(); + u.display_name = r["display_name"].as(); + u.password_hash = r["password_hash"].as(); + u.created_at = epoch_to_rfc3339(r["created_at_epoch"].as()); + return u; +} + +constexpr const char* kUserColumns = + "id, username, display_name, password_hash, " + "EXTRACT(EPOCH FROM created_at)::bigint AS created_at_epoch"; + +} + +std::optional UserRepo::create(const std::string& username, + const std::string& display_name, + const std::string& password_hash) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + try { + const std::string id = make_uuid(); + auto r = tx.exec( + "INSERT INTO users (id, username, display_name, password_hash, created_at) " + "VALUES ($1, $2, $3, $4, to_timestamp($5::bigint)) " + "RETURNING " + std::string(kUserColumns), + pqxx::params{id, username, display_name, password_hash, now_epoch_str()}); + tx.commit(); + return row_to_user(r[0]); + } catch (const pqxx::unique_violation&) { + tx.abort(); + return std::nullopt; + } +} + +std::optional UserRepo::find_by_id(const std::string& id) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + auto r = tx.exec( + "SELECT " + std::string(kUserColumns) + " FROM users WHERE id = $1", + pqxx::params{id}); + tx.commit(); + if (r.empty()) return std::nullopt; + return row_to_user(r[0]); +} + +std::optional UserRepo::find_by_username(const std::string& username) { + auto lease = pool_.acquire(); + pqxx::work tx(*lease); + auto r = tx.exec( + "SELECT " + std::string(kUserColumns) + " FROM users WHERE username = $1", + pqxx::params{username}); + tx.commit(); + if (r.empty()) return std::nullopt; + return row_to_user(r[0]); +} \ No newline at end of file diff --git a/src/user_repo.hpp b/src/user_repo.hpp new file mode 100644 index 0000000..b8cbada --- /dev/null +++ b/src/user_repo.hpp @@ -0,0 +1,22 @@ +#pragma once + +#include "db.hpp" +#include "models.hpp" + +#include +#include + +class UserRepo { +public: + explicit UserRepo(PgPool& pool) : pool_(pool) {} + + std::optional create(const std::string& username, + const std::string& display_name, + const std::string& password_hash); + + std::optional find_by_id(const std::string& id); + std::optional find_by_username(const std::string& username); + +private: + PgPool& pool_; +}; \ No newline at end of file diff --git a/src/worker_main.cpp b/src/worker_main.cpp new file mode 100644 index 0000000..d26210a --- /dev/null +++ b/src/worker_main.cpp @@ -0,0 +1,236 @@ +#include "telemetry.hpp" +#include "observability_monitor.hpp" +#include "attachment_queue.hpp" +#include "attachment_repo.hpp" +#include "attachment_storage.hpp" +#include "staging_cleaner.hpp" +#include "image_pipeline.hpp" +#include "job_repo.hpp" +#include "fault_injection.hpp" +#include "s3_client.hpp" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace { +volatile std::sig_atomic_t stop_requested = 0; +void stop(int) { stop_requested = 1; } + +class Watchdog { +public: + explicit Watchdog(int seconds) : seconds_(seconds), thread_([this] { + while (!stopping_.load()) { + const auto deadline = deadline_.load(); + if (deadline && now_ms() >= deadline) { + std::cerr << "worker job timed out; exiting for durable recovery\n"; + std::_Exit(124); + } + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + } + }) {} + ~Watchdog() { stopping_.store(true); thread_.join(); } + void arm() { deadline_.store(now_ms() + seconds_ * 1000LL); } + void clear() { deadline_.store(0); } +private: + static long long now_ms() { + return std::chrono::duration_cast( + std::chrono::steady_clock::now().time_since_epoch()).count(); + } + int seconds_; + std::atomic deadline_{0}; + std::atomic stopping_{false}; + std::thread thread_; +}; + +struct Deadline { + Watchdog& timer; + explicit Deadline(Watchdog& timer) : timer(timer) { timer.arm(); } + ~Deadline() { timer.clear(); } +}; + +int setting(const char* name, int fallback, int minimum, int maximum) { + const char* value = std::getenv(name); + if (!value) return fallback; + std::size_t end = 0; + const int result = std::stoi(value, &end); + if (value[end] || result < minimum || result > maximum) { + throw std::runtime_error("invalid worker setting"); + } + return result; +} + +std::string sha256(const std::string& bytes) { + unsigned char hash[crypto_hash_sha256_BYTES]; + crypto_hash_sha256(hash, reinterpret_cast(bytes.data()), bytes.size()); + char hex[crypto_hash_sha256_BYTES * 2 + 1]; + sodium_bin2hex(hex, sizeof(hex), hash, sizeof(hash)); + return hex; +} + +bool valid_job(const nlohmann::json& j) { + static const std::regex uuid("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"); + return j.is_object() && j.value("schema_version", 0) == 1 && + j.value("type", "") == "attachment.process.v1" && j.value("pipeline_version", 0) >= 1 && j.value("pipeline_version", 0) <= 2 && + j.value("attempt", 0) >= 1 && j.contains("created_at") && j.at("created_at").is_string() && + std::regex_match(j.value("job_id", ""), uuid) && + std::regex_match(j.value("attachment_id", ""), uuid); +} + +void verify_ready(S3Client& s3, const Attachment& a) { + std::int64_t size = 0; + std::string etag; + if (!s3.stat_object(a.s3_key, size, etag) || size != a.size_bytes) { + throw std::runtime_error("ready original missing"); + } + bool thumbnail = false; + for (const auto& v : a.variants) { + thumbnail = thumbnail || v.name == "thumbnail"; + if (!s3.stat_object((v.storage_key.empty() ? attachment_variant_key(a.chat_id, a.id, v.name) : v.storage_key), size, etag) || + size != v.size_bytes) throw std::runtime_error("ready variant missing"); + } + if (!thumbnail) throw std::runtime_error("ready thumbnail missing"); +} +} // namespace + +int main() { + telemetry::Runtime telemetry_runtime("messenger-worker"); + telemetry::gauge("worker.capacity", 1); + std::signal(SIGTERM, stop); + std::signal(SIGINT, stop); + try { + if (sodium_init() < 0) return 1; + const RetryPolicy retry{ + setting("JOB_MAX_ATTEMPTS", 6, 1, 100), + setting("JOB_RETRY_BASE_MS", 1000, 1, 3600000), + setting("JOB_RETRY_MAX_MS", 60000, 1, 3600000)}; + if (retry.base_delay_ms > retry.max_delay_ms) throw std::runtime_error("invalid retry policy"); + const int timeout = setting("JOB_TIMEOUT_SECONDS", 60, 1, 3600); + const int cleanup_interval = setting("STAGING_CLEANUP_INTERVAL_SECONDS", 60, 1, 86400); + const int retention = setting("STAGING_RETENTION_SECONDS", 86400, 1, 31536000); + const int reclaim_idle = setting("JOB_RECLAIM_IDLE_MS", 5000, 1000, 3600000); + const auto db_url = read_secret_file("DATABASE_URL_FILE"); + { + auto conn = open_pg_connection(db_url, false); + apply_migrations(*conn, "./migrations"); + } + PgPool pg(db_url, 2); + AttachmentRepo attachments(pg); + JobRepo jobs(pg, retry); + const char* broker_file = std::getenv("BROKER_URL_FILE"); + RedisPool redis(read_secret_file( + broker_file && *broker_file ? "BROKER_URL_FILE" : "CACHE_URL_FILE"), 2); + AttachmentQueue queue(redis); + S3Client s3(S3Client::from_env()); + char random[33]; + unsigned char entropy[16]; + randombytes_buf(entropy, sizeof(entropy)); + sodium_bin2hex(random, sizeof(random), entropy, sizeof(entropy)); + const std::string consumer = "worker-" + std::string(random); + std::clog << "worker started consumer=" << consumer << " max_attempts=" << retry.max_attempts << '\n'; + StagingCleaner cleaner(pg, s3, retention); + Watchdog watchdog(timeout); + ObservabilityMonitor monitor(db_url, false); + auto next_sweep = std::chrono::steady_clock::now(); + while (!stop_requested) { + try { + if (std::chrono::steady_clock::now() >= next_sweep) { + next_sweep = std::chrono::steady_clock::now() + std::chrono::seconds(cleanup_interval); + Deadline deadline(watchdog); + cleaner.sweep(); + } + queue.ensure_group(); + const auto message = queue.read(consumer, reclaim_idle); + if (!message) continue; + nlohmann::json j; + bool valid = false; + try { + j = nlohmann::json::parse(message->payload); + valid = valid_job(j); + } catch (const nlohmann::json::exception&) {} + if (!valid) { + telemetry::event("worker.job.invalid", true); + queue.reject(message->stream_id); + continue; + } + auto context_field = [&](const char* name) { + auto i = j.find(name); + return i != j.end() && i->is_string() && i->get_ref().size() <= 512 + ? i->get() : std::string{}; + }; + telemetry::Job observation(context_field("traceparent"), context_field("tracestate")); + const std::string id = j.at("attachment_id").get(); + Deadline deadline(watchdog); + const auto result = jobs.run(j.at("job_id").get(), id, + j.at("pipeline_version").get(), j.at("attempt").get(), [&](const JobInput& input) { + const auto a = attachments.find_by_id(id); + if (!a) throw std::runtime_error("attachment missing"); + std::string original; + original.reserve(a->size_bytes); + s3.get_object(input.source_key, [&](const char* data, std::size_t n) { + if (original.size() > static_cast(a->size_bytes) || + n > static_cast(a->size_bytes) - original.size()) { + throw InvalidImage("source_mismatch"); + } + original.append(data, n); + }); + if (original.size() != static_cast(a->size_bytes) || + sha256(original) != a->sha256) throw InvalidImage("source_mismatch"); + const auto images = make_variants(std::vector(original.begin(), original.end()), input.pipeline_version); + const std::string prefix = pipeline_prefix(a->chat_id, a->id, input.pipeline_version); + const std::string key = prefix + "original"; + // Publish verified bytes even if a presigned staging key changes. + std::istringstream source(original); + s3.put_object(key, source, original.size(), a->content_type); + nlohmann::json variants = nlohmann::json::array(); + for (const auto& v : images) { + std::istringstream body(v.image.bytes); + const std::string variant_key = prefix + v.name + (v.content_type == "image/webp" ? ".webp" : ".jpg"); + s3.put_object(variant_key, body, + v.image.bytes.size(), v.content_type); + variants.push_back({{"name", v.name}, {"content_type", v.content_type}, + {"size_bytes", v.image.bytes.size()}, {"sha256", sha256(v.image.bytes)}, + {"width", v.image.width}, {"height", v.image.height}, {"storage_key", variant_key}}); + } + lab_worker_fault("worker_after_effect", j.at("job_id").get(), input.pipeline_version); + return JobResult{key, variants.dump()}; + }); + observation.finish(result == JobRepo::Result::Scheduled ? "retry" : + result == JobRepo::Result::Busy ? "busy" : + result == JobRepo::Result::Missing ? "failed" : "superseded"); + if (result == JobRepo::Result::Missing) { + queue.reject(message->stream_id); + } else if (result == JobRepo::Result::Done) { + const auto a = attachments.find_by_id(id); + observation.finish(a && a->status == "ready" ? "success" : "failed"); + if (a && a->status == "ready") verify_ready(s3, *a); + lab_worker_fault("worker_before_ack", j.at("job_id").get(), j.at("pipeline_version").get()); + queue.ack(message->stream_id); + if (a && a->status == "ready") cleaner.clean("staging/" + a->chat_id + "/" + a->id); + } else if (result == JobRepo::Result::Superseded) { + queue.ack(message->stream_id); + } else if (result == JobRepo::Result::Scheduled) { + // ACK only after the next attempt was committed to outbox. + queue.ack(message->stream_id); + } + // Busy remains pending; an active job is protected by its advisory lock. + } catch (const std::exception&) { + telemetry::event("worker.operation.failed", true); + std::this_thread::sleep_for(std::chrono::seconds(1)); + } + } + return 0; + } catch (const std::exception&) { + std::cerr << "worker initialization failed\n"; + return 1; + } +} diff --git a/student-tests/incidents.py b/student-tests/incidents.py new file mode 100644 index 0000000..19b90a7 --- /dev/null +++ b/student-tests/incidents.py @@ -0,0 +1,178 @@ +#!/usr/bin/env python3 +"""Controlled lab6 failures, with unconditional service recovery and sanitized evidence.""" +import argparse +from datetime import datetime, timezone +import json +import os +from pathlib import Path +import shlex +import subprocess +import sys +import time +import urllib.error +import urllib.parse +import urllib.request + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT / 'tests')) +from client import Client, check +sys.path.insert(0, str(ROOT / 'student-tests')) +from observability import get, eventually + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument('--base-url', default='http://localhost:8080') + parser.add_argument('--prometheus-url', default='http://localhost:9090') + parser.add_argument('--only', choices=['all', 'retry', 'backend'], default='all') + args = parser.parse_args() + compose = shlex.split(os.environ.get('COMPOSE', 'docker compose')) + def command(*cmd): + subprocess.run(compose + list(cmd), cwd=ROOT, check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + def query(expr): + return get(args.prometheus_url + '/api/v1/query?' + urllib.parse.urlencode({'query': expr}))['data']['result'] + def value(expr): + rows = query(expr) + return float(rows[0]['value'][1]) if rows else 0 + def firing(name): + alerts = get(args.prometheus_url + '/api/v1/alerts')['data']['alerts'] + return any(a['labels']['alertname'] == name and a['state'] == 'firing' for a in alerts) + c = Client(args.base_url) + alice, bob, _, chat = c.bootstrap() + events = json.loads((ROOT / "evidence/incidents.json").read_text()) if args.only != "all" else [] + def record(name, **fields): + events.append({'event': name, 'timestamp': datetime.now(timezone.utc).isoformat(), **fields}) + (ROOT / 'evidence/incidents.json').write_text(json.dumps(events, indent=2) + '\n') + print(name, flush=True) + if args.only == "all": + # 1. Durable queue ages while worker is stopped; resume drains the same job. + command('stop', 'worker') + try: + att, _ = c.attachment(alice, chat) + record('worker_stopped_upload_accepted') + eventually(lambda: firing('QueueLagGrowing'), timeout=120) + record('QueueLagGrowing_firing', depth=value('max(queue_depth)'), oldest_seconds=value('max(queue_oldest_age)')) + finally: + command('start', 'worker') + c.wait_ready(bob, att) + eventually(lambda: not firing('QueueLagGrowing') and value('max(queue_depth)') == 0, timeout=90) + record('QueueLagGrowing_resolved_backlog_drained') + # 2. PostgreSQL unavailable: valid authenticated reads must yield 5xx, never successful phantom writes. + command('stop', 'db') + statuses = {} + try: + record('database_stopped') + deadline = time.monotonic() + 100 + while time.monotonic() < deadline: + request = urllib.request.Request(args.base_url + '/api/v1/chats/' + chat['id'] + '/messages', + headers={'Authorization': 'Bearer ' + alice['token']}) + try: + response = urllib.request.urlopen(request, timeout=12) + except urllib.error.HTTPError as error: + response = error + with response: + code = response.status + statuses[str(code)] = statuses.get(str(code), 0) + 1 + if firing('ApiHighErrorRate'): + break + time.sleep(0.5) + check(firing('ApiHighErrorRate'), 'API error alert did not fire') + check(any(int(code) >= 500 for code in statuses), 'No server errors observed') + record('ApiHighErrorRate_firing', response_counts=statuses) + finally: + command('start', 'db') + def recovered(): + return c.call('GET', '/health/ready', schema='Health')['status'] == 200 + eventually(recovered, timeout=90) + # New traffic moves the one-minute failure window out of the rate calculation. + deadline = time.monotonic() + 100 + while time.monotonic() < deadline: + c.call('GET', '/api/v1/chats/' + chat['id'] + '/messages', actor=alice, schema='MessagePage') + if not firing('ApiHighErrorRate'): + break + time.sleep(1) + check(not firing('ApiHighErrorRate'), 'API alert did not resolve') + record('ApiHighErrorRate_resolved_database_recovered') + if args.only != "backend": + # A retriable S3 failure must preserve the upload trace across the next outbox row. + import base64 + import uuid + trace = uuid.uuid4().hex + command('pause', 'worker') + paused = True + try: + content = (ROOT / 'tests/fixtures/sample.png').read_bytes() + att = c.call('POST', '/api/v1/chats/' + chat['id'] + '/attachments?filename=sample.png', 202, + actor=alice, raw=content, headers={'Content-Type': 'image/png', + 'traceparent': '00-' + trace + '-0123456789abcdef-01'}, schema='Attachment')['json'] + auth = os.environ.get('GRAFANA_ADMIN_USER', 'admin') + ':' + (ROOT / 'secrets/grafana_admin_password').read_text().strip() + grafana = os.environ.get('GRAFANA_URL', 'http://localhost:3000') + def retry_observed(): + data = get(grafana + '/api/datasources/proxy/uid/tempo/api/traces/' + trace, auth) + def contains(obj): + if isinstance(obj, dict): + if obj.get('key') == 'job.outcome' and obj.get('value', {}).get('stringValue') == 'retry': + return True + return any(contains(v) for v in obj.values()) + return isinstance(obj, list) and any(contains(v) for v in obj) + return contains(data) + command('stop', 'minio') + command('unpause', 'worker') + paused = False + eventually(retry_observed, timeout=45) + record('s3_failure_scheduled_retry', trace_id=trace) + finally: + command('start', 'minio') + if paused: + command('unpause', 'worker') + c.wait_ready(bob, att) + auth = os.environ.get('GRAFANA_ADMIN_USER', 'admin') + ':' + (ROOT / 'secrets/grafana_admin_password').read_text().strip() + grafana = os.environ.get('GRAFANA_URL', 'http://localhost:3000') + def retry_trace(): + data = get(grafana + '/api/datasources/proxy/uid/tempo/api/traces/' + trace, auth) + spans = [] + def walk(obj): + if isinstance(obj, dict): + if 'spanId' in obj and 'name' in obj: + spans.append(obj) + for value_ in obj.values(): + walk(value_) + elif isinstance(obj, list): + for value_ in obj: + walk(value_) + walk(data) + by_id = {s['spanId']: s for s in spans} + # consumer -> enqueue -> publish -> next consumer (all inside the same trace) + for child in spans: + if child['name'] != 'attachment.process': + continue + producer = by_id.get(child.get('parentSpanId'), {}) + enqueue = by_id.get(producer.get('parentSpanId'), {}) + prior = by_id.get(enqueue.get('parentSpanId'), {}) + if producer.get('name') == 'jobs:attachments publish' and enqueue.get('name') == 'attachment.enqueue' and prior.get('name') == 'attachment.process': + return True + return False + eventually(retry_trace) + record('retry_same_trace_ready_verified', trace_id=trace) + # 3. Broken telemetry storage must not break either application process. + before = value('sum(otelcol_exporter_send_failed_spans)') + command('stop', 'tempo', 'loki') + try: + record('tempo_loki_stopped') + att, _ = c.attachment(alice, chat) + c.wait_ready(bob, att) + for _ in range(20): + c.message(alice, chat, 'Synthetic telemetry outage probe') + time.sleep(1) + eventually(lambda: value('sum(otelcol_exporter_send_failed_spans)') > before, timeout=45) + record('telemetry_outage_api_worker_healthy', + failed_span_exports=value('sum(otelcol_exporter_send_failed_spans)')-before, + collector_rss_bytes=value('max(otelcol_process_memory_rss)')) + finally: + command('start', 'tempo', 'loki') + record('tempo_loki_restarted') + print('PASS: worker lag and DB error alerts fired/resolved; API and worker survived telemetry backend outage.') + + +if __name__ == '__main__': + main() diff --git a/student-tests/observability.py b/student-tests/observability.py new file mode 100644 index 0000000..2d3b23a --- /dev/null +++ b/student-tests/observability.py @@ -0,0 +1,133 @@ +#!/usr/bin/env python3 +"""Live lab6 checks. No tokens, message contents or backend dumps are printed.""" +import argparse +import base64 +from datetime import datetime, timezone +import json +import math +import os +from pathlib import Path +import sys +import time +import urllib.error +import urllib.parse +import urllib.request +import uuid + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT / 'tests')) +from client import Client, check + + +def get(url, auth=None): + headers = {'Accept': 'application/json'} + if auth: + headers['Authorization'] = 'Basic ' + base64.b64encode(auth.encode()).decode() + with urllib.request.urlopen(urllib.request.Request(url, headers=headers), timeout=15) as response: + return json.load(response) + + +def eventually(fn, timeout=90): + deadline = time.monotonic() + timeout + while time.monotonic() < deadline: + try: + result = fn() + if result: + return result + except (urllib.error.URLError, AssertionError, KeyError, ValueError): + pass + time.sleep(2) + raise AssertionError('Telemetry check timed out') + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument('--base-url', default='http://localhost:8080') + parser.add_argument('--prometheus-url', default='http://localhost:9090') + parser.add_argument('--grafana-url', default='http://localhost:3000') + parser.add_argument('--output', default='evidence/observability.json') + args = parser.parse_args() + auth = os.environ.get('GRAFANA_ADMIN_USER', 'admin') + ':' + (ROOT / 'secrets/grafana_admin_password').read_text().strip() + proxy = args.grafana_url + '/api/datasources/proxy/uid/' + def prom(query): + return get(args.prometheus_url + '/api/v1/query?' + urllib.parse.urlencode({'query': query}))['data']['result'] + c = Client(args.base_url) + alice, bob, _, chat = c.bootstrap() + trace = uuid.uuid4().hex + parent = '00-' + trace + '-0123456789abcdef-01' + secret_marker = 'private-' + uuid.uuid4().hex + c.message(alice, chat, secret_marker) + content = (ROOT / 'tests/fixtures/sample.png').read_bytes() + att = c.call('POST', '/api/v1/chats/' + chat['id'] + '/attachments?filename=sample.png', 202, + actor=alice, raw=content, headers={'Content-Type': 'image/png', 'traceparent': parent}, schema='Attachment')['json'] + c.wait_ready(bob, att) + def trace_complete(): + data = get(proxy + 'tempo/api/traces/' + trace, auth) + spans = [] + def walk(obj): + if isinstance(obj, dict): + if 'spanId' in obj and 'name' in obj: + spans.append(obj) + for value in obj.values(): + walk(value) + elif isinstance(obj, list): + for value in obj: + walk(value) + walk(data) + names = {span['name'] for span in spans} + return (data, spans) if {'attachment.enqueue', 'jobs:attachments publish', 'attachment.process', 's3.put_object', 'postgresql.publish_ready'} <= names else None + trace_data, spans = eventually(trace_complete) + by_id = {span['spanId']: span for span in spans} + consumer = next(span for span in spans if span['name'] == 'attachment.process') + publish = by_id.get(consumer['parentSpanId']) + check(publish and publish['name'] == 'jobs:attachments publish', 'consumer parent must be producer') + enqueue = by_id.get(publish['parentSpanId']) + check(enqueue and enqueue['name'] == 'attachment.enqueue', 'publish must continue durable outbox context') + server = by_id.get(enqueue['parentSpanId']) + check(server and server['name'].startswith('POST '), 'enqueue parent must be HTTP server') + query = '{service_name=~"messenger-api|messenger-worker"} | trace_id="' + trace + '"' + def correlated_logs(): + result = get(proxy + 'loki/loki/api/v1/query_range?' + urllib.parse.urlencode({'query': query, 'limit': 1000}), auth)['data']['result'] + services = {stream['stream'].get('service_name') for stream in result} + return result if {'messenger-api', 'messenger-worker'} <= services else None + logs = eventually(correlated_logs) + required = ['http_server_requests_total', 'http_server_request_duration_seconds_bucket', 'worker_jobs_total', + 'worker_job_duration_seconds_bucket', 'attachment_ready_duration_seconds_bucket', 'queue_depth', + 'queue_oldest_age', 'db_pool_used', 'db_pool_waiting', 'worker_busy', 'worker_capacity', + 'process_memory_usage', 'process_cpu_time'] + for name in required: + eventually(lambda: prom(name)) + panel_count = 0 + dashboard = get(args.grafana_url + '/api/dashboards/uid/messenger-observability', auth)['dashboard'] + check(len(dashboard['panels']) == len(json.loads((ROOT / 'infra/grafana/dashboards/messenger.json').read_text())['panels']), 'Provisioned dashboard differs') + for panel in dashboard['panels']: + if panel['datasource']['uid'] != 'prometheus': + continue + for target in panel['targets']: + expr = target['expr'].replace('$__rate_interval', '1m') + result = prom(expr) + # Diagnostics are allowed to be absent when no failure has occurred. + if 'otelcol_' not in expr: + result = eventually(lambda: prom(expr), timeout=45) + panel_count += 1 + for item in prom('http_server_requests_total'): + labels = item['metric'] + check(not {'user_id','chat_id','message_id','attachment_id','request_id','filename'} & labels.keys(), 'High cardinality metric label') + check(chat['id'] not in json.dumps(labels), 'Raw chat ID in labels') + # Inspect full recent log/trace data in memory, never save private test values. + all_logs = get(proxy + 'loki/loki/api/v1/query_range?' + urllib.parse.urlencode({ + 'query': '{service_name=~"messenger-api|messenger-worker"}', 'limit': 5000}), auth) + exported = json.dumps([all_logs, trace_data]) + for forbidden in [secret_marker, alice['token'], alice['registration']['password'], base64.b64encode(content).decode()]: + check(forbidden not in exported, 'Private test data leaked to telemetry') + report = {'timestamp': datetime.now(timezone.utc).isoformat(), 'result': 'PASS', 'trace_id': trace, + 'span_names': sorted({s['name'] for s in spans}), 'consumer_parent_is_producer': True, + 'log_services': sorted({s['stream']['service_name'] for s in logs}), + 'metric_names_checked': required, 'dashboard_queries_checked': panel_count, + 'privacy_canaries': 'absent in recent logs and upload trace'} + (ROOT / args.output).write_text(json.dumps(report, indent=2) + '\n') + print('PASS: real API -> outbox -> Redis -> worker -> S3/DB trace, correlated logs, metrics and dashboard queries; privacy canaries absent.') + + +if __name__ == '__main__': + main() diff --git a/student-tests/telemetry_test.cpp b/student-tests/telemetry_test.cpp new file mode 100644 index 0000000..96561ed --- /dev/null +++ b/student-tests/telemetry_test.cpp @@ -0,0 +1,33 @@ +#include "telemetry.hpp" +#include +#include + +int main() { + telemetry::Runtime runtime("messenger-test"); + assert(telemetry::route_template("/api/v1/chats/private-id/messages") == "/api/v1/chats/{chat_id}/messages"); + assert(telemetry::route_template("/secret-token") == "unmatched"); + assert(telemetry::route_template("/api/v1/attachments/private/content") == "/api/v1/attachments/{attachment_id}/content"); + const std::string parent = "00-11223344556677889900aabbccddeeff-0123456789abcdef-01"; + std::string producer; + { + telemetry::Span request("test.server", opentelemetry::trace::SpanKind::kServer, parent); + assert(telemetry::inject().substr(3,32) == parent.substr(3,32)); + { + telemetry::Span publish("test.publish", opentelemetry::trace::SpanKind::kProducer); + producer = telemetry::inject(); + assert(producer.substr(3,32) == parent.substr(3,32)); + assert(producer != parent); + } + assert(telemetry::inject() != producer); + } + { + telemetry::Span consumer("test.consume", opentelemetry::trace::SpanKind::kConsumer, producer); + assert(telemetry::inject().substr(3,32) == parent.substr(3,32)); + } + for (const auto& invalid : {"garbage", "00-00000000000000000000000000000000-0000000000000000-01"}) { + telemetry::Span span("test.invalid", opentelemetry::trace::SpanKind::kConsumer, invalid); + const auto actual = telemetry::inject(); + assert(std::regex_match(actual, std::regex("00-[a-f0-9]{32}-[a-f0-9]{16}-01"))); + assert(actual.substr(3,32) != parent.substr(3,32)); + } +} diff --git a/third_party/stb/README.md b/third_party/stb/README.md new file mode 100644 index 0000000..f54db67 --- /dev/null +++ b/third_party/stb/README.md @@ -0,0 +1,6 @@ +Headers from https://github.com/nothings/stb at the commit in VERSION: +- stb_image.h: PNG/JPEG validation and decoding +- deprecated/stb_image_resize.h: aspect-preserving resize +- stb_image_write.h: JPEG encoding (quality 85) + +Each header includes its upstream license. diff --git a/third_party/stb/VERSION b/third_party/stb/VERSION new file mode 100644 index 0000000..adcd1f5 --- /dev/null +++ b/third_party/stb/VERSION @@ -0,0 +1 @@ +013ac3beddff3dbffafd5177e7972067cd2b5083 diff --git a/third_party/stb/stb_image.h b/third_party/stb/stb_image.h new file mode 100644 index 0000000..9eedabe --- /dev/null +++ b/third_party/stb/stb_image.h @@ -0,0 +1,7988 @@ +/* stb_image - v2.30 - public domain image loader - http://nothings.org/stb + no warranty implied; use at your own risk + + Do this: + #define STB_IMAGE_IMPLEMENTATION + before you include this file in *one* C or C++ file to create the implementation. + + // i.e. it should look like this: + #include ... + #include ... + #include ... + #define STB_IMAGE_IMPLEMENTATION + #include "stb_image.h" + + You can #define STBI_ASSERT(x) before the #include to avoid using assert.h. + And #define STBI_MALLOC, STBI_REALLOC, and STBI_FREE to avoid using malloc,realloc,free + + + QUICK NOTES: + Primarily of interest to game developers and other people who can + avoid problematic images and only need the trivial interface + + JPEG baseline & progressive (12 bpc/arithmetic not supported, same as stock IJG lib) + PNG 1/2/4/8/16-bit-per-channel + + TGA (not sure what subset, if a subset) + BMP non-1bpp, non-RLE + PSD (composited view only, no extra channels, 8/16 bit-per-channel) + + GIF (*comp always reports as 4-channel) + HDR (radiance rgbE format) + PIC (Softimage PIC) + PNM (PPM and PGM binary only) + + Animated GIF still needs a proper API, but here's one way to do it: + http://gist.github.com/urraka/685d9a6340b26b830d49 + + - decode from memory or through FILE (define STBI_NO_STDIO to remove code) + - decode from arbitrary I/O callbacks + - SIMD acceleration on x86/x64 (SSE2) and ARM (NEON) + + Full documentation under "DOCUMENTATION" below. + + +LICENSE + + See end of file for license information. + +RECENT REVISION HISTORY: + + 2.30 (2024-05-31) avoid erroneous gcc warning + 2.29 (2023-05-xx) optimizations + 2.28 (2023-01-29) many error fixes, security errors, just tons of stuff + 2.27 (2021-07-11) document stbi_info better, 16-bit PNM support, bug fixes + 2.26 (2020-07-13) many minor fixes + 2.25 (2020-02-02) fix warnings + 2.24 (2020-02-02) fix warnings; thread-local failure_reason and flip_vertically + 2.23 (2019-08-11) fix clang static analysis warning + 2.22 (2019-03-04) gif fixes, fix warnings + 2.21 (2019-02-25) fix typo in comment + 2.20 (2019-02-07) support utf8 filenames in Windows; fix warnings and platform ifdefs + 2.19 (2018-02-11) fix warning + 2.18 (2018-01-30) fix warnings + 2.17 (2018-01-29) bugfix, 1-bit BMP, 16-bitness query, fix warnings + 2.16 (2017-07-23) all functions have 16-bit variants; optimizations; bugfixes + 2.15 (2017-03-18) fix png-1,2,4; all Imagenet JPGs; no runtime SSE detection on GCC + 2.14 (2017-03-03) remove deprecated STBI_JPEG_OLD; fixes for Imagenet JPGs + 2.13 (2016-12-04) experimental 16-bit API, only for PNG so far; fixes + 2.12 (2016-04-02) fix typo in 2.11 PSD fix that caused crashes + 2.11 (2016-04-02) 16-bit PNGS; enable SSE2 in non-gcc x64 + RGB-format JPEG; remove white matting in PSD; + allocate large structures on the stack; + correct channel count for PNG & BMP + 2.10 (2016-01-22) avoid warning introduced in 2.09 + 2.09 (2016-01-16) 16-bit TGA; comments in PNM files; STBI_REALLOC_SIZED + + See end of file for full revision history. + + + ============================ Contributors ========================= + + Image formats Extensions, features + Sean Barrett (jpeg, png, bmp) Jetro Lauha (stbi_info) + Nicolas Schulz (hdr, psd) Martin "SpartanJ" Golini (stbi_info) + Jonathan Dummer (tga) James "moose2000" Brown (iPhone PNG) + Jean-Marc Lienher (gif) Ben "Disch" Wenger (io callbacks) + Tom Seddon (pic) Omar Cornut (1/2/4-bit PNG) + Thatcher Ulrich (psd) Nicolas Guillemot (vertical flip) + Ken Miller (pgm, ppm) Richard Mitton (16-bit PSD) + github:urraka (animated gif) Junggon Kim (PNM comments) + Christopher Forseth (animated gif) Daniel Gibson (16-bit TGA) + socks-the-fox (16-bit PNG) + Jeremy Sawicki (handle all ImageNet JPGs) + Optimizations & bugfixes Mikhail Morozov (1-bit BMP) + Fabian "ryg" Giesen Anael Seghezzi (is-16-bit query) + Arseny Kapoulkine Simon Breuss (16-bit PNM) + John-Mark Allen + Carmelo J Fdez-Aguera + + Bug & warning fixes + Marc LeBlanc David Woo Guillaume George Martins Mozeiko + Christpher Lloyd Jerry Jansson Joseph Thomson Blazej Dariusz Roszkowski + Phil Jordan Dave Moore Roy Eltham + Hayaki Saito Nathan Reed Won Chun + Luke Graham Johan Duparc Nick Verigakis the Horde3D community + Thomas Ruf Ronny Chevalier github:rlyeh + Janez Zemva John Bartholomew Michal Cichon github:romigrou + Jonathan Blow Ken Hamada Tero Hanninen github:svdijk + Eugene Golushkov Laurent Gomila Cort Stratton github:snagar + Aruelien Pocheville Sergio Gonzalez Thibault Reuille github:Zelex + Cass Everitt Ryamond Barbiero github:grim210 + Paul Du Bois Engin Manap Aldo Culquicondor github:sammyhw + Philipp Wiesemann Dale Weiler Oriol Ferrer Mesia github:phprus + Josh Tobin Neil Bickford Matthew Gregan github:poppolopoppo + Julian Raschke Gregory Mullen Christian Floisand github:darealshinji + Baldur Karlsson Kevin Schmidt JR Smith github:Michaelangel007 + Brad Weinberger Matvey Cherevko github:mosra + Luca Sas Alexander Veselov Zack Middleton [reserved] + Ryan C. Gordon [reserved] [reserved] + DO NOT ADD YOUR NAME HERE + + Jacko Dirks + + To add your name to the credits, pick a random blank space in the middle and fill it. + 80% of merge conflicts on stb PRs are due to people adding their name at the end + of the credits. +*/ + +#ifndef STBI_INCLUDE_STB_IMAGE_H +#define STBI_INCLUDE_STB_IMAGE_H + +// DOCUMENTATION +// +// Limitations: +// - no 12-bit-per-channel JPEG +// - no JPEGs with arithmetic coding +// - GIF always returns *comp=4 +// +// Basic usage (see HDR discussion below for HDR usage): +// int x,y,n; +// unsigned char *data = stbi_load(filename, &x, &y, &n, 0); +// // ... process data if not NULL ... +// // ... x = width, y = height, n = # 8-bit components per pixel ... +// // ... replace '0' with '1'..'4' to force that many components per pixel +// // ... but 'n' will always be the number that it would have been if you said 0 +// stbi_image_free(data); +// +// Standard parameters: +// int *x -- outputs image width in pixels +// int *y -- outputs image height in pixels +// int *channels_in_file -- outputs # of image components in image file +// int desired_channels -- if non-zero, # of image components requested in result +// +// The return value from an image loader is an 'unsigned char *' which points +// to the pixel data, or NULL on an allocation failure or if the image is +// corrupt or invalid. The pixel data consists of *y scanlines of *x pixels, +// with each pixel consisting of N interleaved 8-bit components; the first +// pixel pointed to is top-left-most in the image. There is no padding between +// image scanlines or between pixels, regardless of format. The number of +// components N is 'desired_channels' if desired_channels is non-zero, or +// *channels_in_file otherwise. If desired_channels is non-zero, +// *channels_in_file has the number of components that _would_ have been +// output otherwise. E.g. if you set desired_channels to 4, you will always +// get RGBA output, but you can check *channels_in_file to see if it's trivially +// opaque because e.g. there were only 3 channels in the source image. +// +// An output image with N components has the following components interleaved +// in this order in each pixel: +// +// N=#comp components +// 1 grey +// 2 grey, alpha +// 3 red, green, blue +// 4 red, green, blue, alpha +// +// If image loading fails for any reason, the return value will be NULL, +// and *x, *y, *channels_in_file will be unchanged. The function +// stbi_failure_reason() can be queried for an extremely brief, end-user +// unfriendly explanation of why the load failed. Define STBI_NO_FAILURE_STRINGS +// to avoid compiling these strings at all, and STBI_FAILURE_USERMSG to get slightly +// more user-friendly ones. +// +// Paletted PNG, BMP, GIF, and PIC images are automatically depalettized. +// +// To query the width, height and component count of an image without having to +// decode the full file, you can use the stbi_info family of functions: +// +// int x,y,n,ok; +// ok = stbi_info(filename, &x, &y, &n); +// // returns ok=1 and sets x, y, n if image is a supported format, +// // 0 otherwise. +// +// Note that stb_image pervasively uses ints in its public API for sizes, +// including sizes of memory buffers. This is now part of the API and thus +// hard to change without causing breakage. As a result, the various image +// loaders all have certain limits on image size; these differ somewhat +// by format but generally boil down to either just under 2GB or just under +// 1GB. When the decoded image would be larger than this, stb_image decoding +// will fail. +// +// Additionally, stb_image will reject image files that have any of their +// dimensions set to a larger value than the configurable STBI_MAX_DIMENSIONS, +// which defaults to 2**24 = 16777216 pixels. Due to the above memory limit, +// the only way to have an image with such dimensions load correctly +// is for it to have a rather extreme aspect ratio. Either way, the +// assumption here is that such larger images are likely to be malformed +// or malicious. If you do need to load an image with individual dimensions +// larger than that, and it still fits in the overall size limit, you can +// #define STBI_MAX_DIMENSIONS on your own to be something larger. +// +// =========================================================================== +// +// UNICODE: +// +// If compiling for Windows and you wish to use Unicode filenames, compile +// with +// #define STBI_WINDOWS_UTF8 +// and pass utf8-encoded filenames. Call stbi_convert_wchar_to_utf8 to convert +// Windows wchar_t filenames to utf8. +// +// =========================================================================== +// +// Philosophy +// +// stb libraries are designed with the following priorities: +// +// 1. easy to use +// 2. easy to maintain +// 3. good performance +// +// Sometimes I let "good performance" creep up in priority over "easy to maintain", +// and for best performance I may provide less-easy-to-use APIs that give higher +// performance, in addition to the easy-to-use ones. Nevertheless, it's important +// to keep in mind that from the standpoint of you, a client of this library, +// all you care about is #1 and #3, and stb libraries DO NOT emphasize #3 above all. +// +// Some secondary priorities arise directly from the first two, some of which +// provide more explicit reasons why performance can't be emphasized. +// +// - Portable ("ease of use") +// - Small source code footprint ("easy to maintain") +// - No dependencies ("ease of use") +// +// =========================================================================== +// +// I/O callbacks +// +// I/O callbacks allow you to read from arbitrary sources, like packaged +// files or some other source. Data read from callbacks are processed +// through a small internal buffer (currently 128 bytes) to try to reduce +// overhead. +// +// The three functions you must define are "read" (reads some bytes of data), +// "skip" (skips some bytes of data), "eof" (reports if the stream is at the end). +// +// =========================================================================== +// +// SIMD support +// +// The JPEG decoder will try to automatically use SIMD kernels on x86 when +// supported by the compiler. For ARM Neon support, you must explicitly +// request it. +// +// (The old do-it-yourself SIMD API is no longer supported in the current +// code.) +// +// On x86, SSE2 will automatically be used when available based on a run-time +// test; if not, the generic C versions are used as a fall-back. On ARM targets, +// the typical path is to have separate builds for NEON and non-NEON devices +// (at least this is true for iOS and Android). Therefore, the NEON support is +// toggled by a build flag: define STBI_NEON to get NEON loops. +// +// If for some reason you do not want to use any of SIMD code, or if +// you have issues compiling it, you can disable it entirely by +// defining STBI_NO_SIMD. +// +// =========================================================================== +// +// HDR image support (disable by defining STBI_NO_HDR) +// +// stb_image supports loading HDR images in general, and currently the Radiance +// .HDR file format specifically. You can still load any file through the existing +// interface; if you attempt to load an HDR file, it will be automatically remapped +// to LDR, assuming gamma 2.2 and an arbitrary scale factor defaulting to 1; +// both of these constants can be reconfigured through this interface: +// +// stbi_hdr_to_ldr_gamma(2.2f); +// stbi_hdr_to_ldr_scale(1.0f); +// +// (note, do not use _inverse_ constants; stbi_image will invert them +// appropriately). +// +// Additionally, there is a new, parallel interface for loading files as +// (linear) floats to preserve the full dynamic range: +// +// float *data = stbi_loadf(filename, &x, &y, &n, 0); +// +// If you load LDR images through this interface, those images will +// be promoted to floating point values, run through the inverse of +// constants corresponding to the above: +// +// stbi_ldr_to_hdr_scale(1.0f); +// stbi_ldr_to_hdr_gamma(2.2f); +// +// Finally, given a filename (or an open file or memory block--see header +// file for details) containing image data, you can query for the "most +// appropriate" interface to use (that is, whether the image is HDR or +// not), using: +// +// stbi_is_hdr(char *filename); +// +// =========================================================================== +// +// iPhone PNG support: +// +// We optionally support converting iPhone-formatted PNGs (which store +// premultiplied BGRA) back to RGB, even though they're internally encoded +// differently. To enable this conversion, call +// stbi_convert_iphone_png_to_rgb(1). +// +// Call stbi_set_unpremultiply_on_load(1) as well to force a divide per +// pixel to remove any premultiplied alpha *only* if the image file explicitly +// says there's premultiplied data (currently only happens in iPhone images, +// and only if iPhone convert-to-rgb processing is on). +// +// =========================================================================== +// +// ADDITIONAL CONFIGURATION +// +// - You can suppress implementation of any of the decoders to reduce +// your code footprint by #defining one or more of the following +// symbols before creating the implementation. +// +// STBI_NO_JPEG +// STBI_NO_PNG +// STBI_NO_BMP +// STBI_NO_PSD +// STBI_NO_TGA +// STBI_NO_GIF +// STBI_NO_HDR +// STBI_NO_PIC +// STBI_NO_PNM (.ppm and .pgm) +// +// - You can request *only* certain decoders and suppress all other ones +// (this will be more forward-compatible, as addition of new decoders +// doesn't require you to disable them explicitly): +// +// STBI_ONLY_JPEG +// STBI_ONLY_PNG +// STBI_ONLY_BMP +// STBI_ONLY_PSD +// STBI_ONLY_TGA +// STBI_ONLY_GIF +// STBI_ONLY_HDR +// STBI_ONLY_PIC +// STBI_ONLY_PNM (.ppm and .pgm) +// +// - If you use STBI_NO_PNG (or _ONLY_ without PNG), and you still +// want the zlib decoder to be available, #define STBI_SUPPORT_ZLIB +// +// - If you define STBI_MAX_DIMENSIONS, stb_image will reject images greater +// than that size (in either width or height) without further processing. +// This is to let programs in the wild set an upper bound to prevent +// denial-of-service attacks on untrusted data, as one could generate a +// valid image of gigantic dimensions and force stb_image to allocate a +// huge block of memory and spend disproportionate time decoding it. By +// default this is set to (1 << 24), which is 16777216, but that's still +// very big. + +#ifndef STBI_NO_STDIO +#include +#endif // STBI_NO_STDIO + +#define STBI_VERSION 1 + +enum +{ + STBI_default = 0, // only used for desired_channels + + STBI_grey = 1, + STBI_grey_alpha = 2, + STBI_rgb = 3, + STBI_rgb_alpha = 4 +}; + +#include +typedef unsigned char stbi_uc; +typedef unsigned short stbi_us; + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef STBIDEF +#ifdef STB_IMAGE_STATIC +#define STBIDEF static +#else +#define STBIDEF extern +#endif +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// PRIMARY API - works on images of any type +// + +// +// load image by filename, open file, or memory buffer +// + +typedef struct +{ + int (*read) (void *user,char *data,int size); // fill 'data' with 'size' bytes. return number of bytes actually read + void (*skip) (void *user,int n); // skip the next 'n' bytes, or 'unget' the last -n bytes if negative + int (*eof) (void *user); // returns nonzero if we are at end of file/data +} stbi_io_callbacks; + +//////////////////////////////////// +// +// 8-bits-per-channel interface +// + +STBIDEF stbi_uc *stbi_load_from_memory (stbi_uc const *buffer, int len , int *x, int *y, int *channels_in_file, int desired_channels); +STBIDEF stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk , void *user, int *x, int *y, int *channels_in_file, int desired_channels); + +#ifndef STBI_NO_STDIO +STBIDEF stbi_uc *stbi_load (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels); +STBIDEF stbi_uc *stbi_load_from_file (FILE *f, int *x, int *y, int *channels_in_file, int desired_channels); +// for stbi_load_from_file, file pointer is left pointing immediately after image +#endif + +#ifndef STBI_NO_GIF +STBIDEF stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp); +#endif + +#ifdef STBI_WINDOWS_UTF8 +STBIDEF int stbi_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input); +#endif + +//////////////////////////////////// +// +// 16-bits-per-channel interface +// + +STBIDEF stbi_us *stbi_load_16_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels); +STBIDEF stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels); + +#ifndef STBI_NO_STDIO +STBIDEF stbi_us *stbi_load_16 (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels); +STBIDEF stbi_us *stbi_load_from_file_16(FILE *f, int *x, int *y, int *channels_in_file, int desired_channels); +#endif + +//////////////////////////////////// +// +// float-per-channel interface +// +#ifndef STBI_NO_LINEAR + STBIDEF float *stbi_loadf_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels); + STBIDEF float *stbi_loadf_from_callbacks (stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels); + + #ifndef STBI_NO_STDIO + STBIDEF float *stbi_loadf (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels); + STBIDEF float *stbi_loadf_from_file (FILE *f, int *x, int *y, int *channels_in_file, int desired_channels); + #endif +#endif + +#ifndef STBI_NO_HDR + STBIDEF void stbi_hdr_to_ldr_gamma(float gamma); + STBIDEF void stbi_hdr_to_ldr_scale(float scale); +#endif // STBI_NO_HDR + +#ifndef STBI_NO_LINEAR + STBIDEF void stbi_ldr_to_hdr_gamma(float gamma); + STBIDEF void stbi_ldr_to_hdr_scale(float scale); +#endif // STBI_NO_LINEAR + +// stbi_is_hdr is always defined, but always returns false if STBI_NO_HDR +STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user); +STBIDEF int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len); +#ifndef STBI_NO_STDIO +STBIDEF int stbi_is_hdr (char const *filename); +STBIDEF int stbi_is_hdr_from_file(FILE *f); +#endif // STBI_NO_STDIO + + +// get a VERY brief reason for failure +// on most compilers (and ALL modern mainstream compilers) this is threadsafe +STBIDEF const char *stbi_failure_reason (void); + +// free the loaded image -- this is just free() +STBIDEF void stbi_image_free (void *retval_from_stbi_load); + +// get image dimensions & components without fully decoding +STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp); +STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp); +STBIDEF int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len); +STBIDEF int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *clbk, void *user); + +#ifndef STBI_NO_STDIO +STBIDEF int stbi_info (char const *filename, int *x, int *y, int *comp); +STBIDEF int stbi_info_from_file (FILE *f, int *x, int *y, int *comp); +STBIDEF int stbi_is_16_bit (char const *filename); +STBIDEF int stbi_is_16_bit_from_file(FILE *f); +#endif + + + +// for image formats that explicitly notate that they have premultiplied alpha, +// we just return the colors as stored in the file. set this flag to force +// unpremultiplication. results are undefined if the unpremultiply overflow. +STBIDEF void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply); + +// indicate whether we should process iphone images back to canonical format, +// or just pass them through "as-is" +STBIDEF void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert); + +// flip the image vertically, so the first pixel in the output array is the bottom left +STBIDEF void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip); + +// as above, but only applies to images loaded on the thread that calls the function +// this function is only available if your compiler supports thread-local variables; +// calling it will fail to link if your compiler doesn't +STBIDEF void stbi_set_unpremultiply_on_load_thread(int flag_true_if_should_unpremultiply); +STBIDEF void stbi_convert_iphone_png_to_rgb_thread(int flag_true_if_should_convert); +STBIDEF void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip); + +// ZLIB client - used by PNG, available for other purposes + +STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen); +STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header); +STBIDEF char *stbi_zlib_decode_malloc(const char *buffer, int len, int *outlen); +STBIDEF int stbi_zlib_decode_buffer(char *obuffer, int olen, const char *ibuffer, int ilen); + +STBIDEF char *stbi_zlib_decode_noheader_malloc(const char *buffer, int len, int *outlen); +STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen); + + +#ifdef __cplusplus +} +#endif + +// +// +//// end header file ///////////////////////////////////////////////////// +#endif // STBI_INCLUDE_STB_IMAGE_H + +#ifdef STB_IMAGE_IMPLEMENTATION + +#if defined(STBI_ONLY_JPEG) || defined(STBI_ONLY_PNG) || defined(STBI_ONLY_BMP) \ + || defined(STBI_ONLY_TGA) || defined(STBI_ONLY_GIF) || defined(STBI_ONLY_PSD) \ + || defined(STBI_ONLY_HDR) || defined(STBI_ONLY_PIC) || defined(STBI_ONLY_PNM) \ + || defined(STBI_ONLY_ZLIB) + #ifndef STBI_ONLY_JPEG + #define STBI_NO_JPEG + #endif + #ifndef STBI_ONLY_PNG + #define STBI_NO_PNG + #endif + #ifndef STBI_ONLY_BMP + #define STBI_NO_BMP + #endif + #ifndef STBI_ONLY_PSD + #define STBI_NO_PSD + #endif + #ifndef STBI_ONLY_TGA + #define STBI_NO_TGA + #endif + #ifndef STBI_ONLY_GIF + #define STBI_NO_GIF + #endif + #ifndef STBI_ONLY_HDR + #define STBI_NO_HDR + #endif + #ifndef STBI_ONLY_PIC + #define STBI_NO_PIC + #endif + #ifndef STBI_ONLY_PNM + #define STBI_NO_PNM + #endif +#endif + +#if defined(STBI_NO_PNG) && !defined(STBI_SUPPORT_ZLIB) && !defined(STBI_NO_ZLIB) +#define STBI_NO_ZLIB +#endif + + +#include +#include // ptrdiff_t on osx +#include +#include +#include + +#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) +#include // ldexp, pow +#endif + +#ifndef STBI_NO_STDIO +#include +#endif + +#ifndef STBI_ASSERT +#include +#define STBI_ASSERT(x) assert(x) +#endif + +#ifdef __cplusplus +#define STBI_EXTERN extern "C" +#else +#define STBI_EXTERN extern +#endif + + +#ifndef _MSC_VER + #ifdef __cplusplus + #define stbi_inline inline + #else + #define stbi_inline + #endif +#else + #define stbi_inline __forceinline +#endif + +#ifndef STBI_NO_THREAD_LOCALS + #if defined(__cplusplus) && __cplusplus >= 201103L + #define STBI_THREAD_LOCAL thread_local + #elif defined(__GNUC__) && __GNUC__ < 5 + #define STBI_THREAD_LOCAL __thread + #elif defined(_MSC_VER) + #define STBI_THREAD_LOCAL __declspec(thread) + #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_THREADS__) + #define STBI_THREAD_LOCAL _Thread_local + #endif + + #ifndef STBI_THREAD_LOCAL + #if defined(__GNUC__) + #define STBI_THREAD_LOCAL __thread + #endif + #endif +#endif + +#if defined(_MSC_VER) || defined(__SYMBIAN32__) +typedef unsigned short stbi__uint16; +typedef signed short stbi__int16; +typedef unsigned int stbi__uint32; +typedef signed int stbi__int32; +#else +#include +typedef uint16_t stbi__uint16; +typedef int16_t stbi__int16; +typedef uint32_t stbi__uint32; +typedef int32_t stbi__int32; +#endif + +// should produce compiler error if size is wrong +typedef unsigned char validate_uint32[sizeof(stbi__uint32)==4 ? 1 : -1]; + +#ifdef _MSC_VER +#define STBI_NOTUSED(v) (void)(v) +#else +#define STBI_NOTUSED(v) (void)sizeof(v) +#endif + +#ifdef _MSC_VER +#define STBI_HAS_LROTL +#endif + +#ifdef STBI_HAS_LROTL + #define stbi_lrot(x,y) _lrotl(x,y) +#else + #define stbi_lrot(x,y) (((x) << (y)) | ((x) >> (-(y) & 31))) +#endif + +#if defined(STBI_MALLOC) && defined(STBI_FREE) && (defined(STBI_REALLOC) || defined(STBI_REALLOC_SIZED)) +// ok +#elif !defined(STBI_MALLOC) && !defined(STBI_FREE) && !defined(STBI_REALLOC) && !defined(STBI_REALLOC_SIZED) +// ok +#else +#error "Must define all or none of STBI_MALLOC, STBI_FREE, and STBI_REALLOC (or STBI_REALLOC_SIZED)." +#endif + +#ifndef STBI_MALLOC +#define STBI_MALLOC(sz) malloc(sz) +#define STBI_REALLOC(p,newsz) realloc(p,newsz) +#define STBI_FREE(p) free(p) +#endif + +#ifndef STBI_REALLOC_SIZED +#define STBI_REALLOC_SIZED(p,oldsz,newsz) STBI_REALLOC(p,newsz) +#endif + +// x86/x64 detection +#if defined(__x86_64__) || defined(_M_X64) +#define STBI__X64_TARGET +#elif defined(__i386) || defined(_M_IX86) +#define STBI__X86_TARGET +#endif + +#if defined(__GNUC__) && defined(STBI__X86_TARGET) && !defined(__SSE2__) && !defined(STBI_NO_SIMD) +// gcc doesn't support sse2 intrinsics unless you compile with -msse2, +// which in turn means it gets to use SSE2 everywhere. This is unfortunate, +// but previous attempts to provide the SSE2 functions with runtime +// detection caused numerous issues. The way architecture extensions are +// exposed in GCC/Clang is, sadly, not really suited for one-file libs. +// New behavior: if compiled with -msse2, we use SSE2 without any +// detection; if not, we don't use it at all. +#define STBI_NO_SIMD +#endif + +#if defined(__MINGW32__) && defined(STBI__X86_TARGET) && !defined(STBI_MINGW_ENABLE_SSE2) && !defined(STBI_NO_SIMD) +// Note that __MINGW32__ doesn't actually mean 32-bit, so we have to avoid STBI__X64_TARGET +// +// 32-bit MinGW wants ESP to be 16-byte aligned, but this is not in the +// Windows ABI and VC++ as well as Windows DLLs don't maintain that invariant. +// As a result, enabling SSE2 on 32-bit MinGW is dangerous when not +// simultaneously enabling "-mstackrealign". +// +// See https://github.com/nothings/stb/issues/81 for more information. +// +// So default to no SSE2 on 32-bit MinGW. If you've read this far and added +// -mstackrealign to your build settings, feel free to #define STBI_MINGW_ENABLE_SSE2. +#define STBI_NO_SIMD +#endif + +#if !defined(STBI_NO_SIMD) && (defined(STBI__X86_TARGET) || defined(STBI__X64_TARGET)) +#define STBI_SSE2 +#include + +#ifdef _MSC_VER + +#if _MSC_VER >= 1400 // not VC6 +#include // __cpuid +static int stbi__cpuid3(void) +{ + int info[4]; + __cpuid(info,1); + return info[3]; +} +#else +static int stbi__cpuid3(void) +{ + int res; + __asm { + mov eax,1 + cpuid + mov res,edx + } + return res; +} +#endif + +#define STBI_SIMD_ALIGN(type, name) __declspec(align(16)) type name + +#if !defined(STBI_NO_JPEG) && defined(STBI_SSE2) +static int stbi__sse2_available(void) +{ + int info3 = stbi__cpuid3(); + return ((info3 >> 26) & 1) != 0; +} +#endif + +#else // assume GCC-style if not VC++ +#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16))) + +#if !defined(STBI_NO_JPEG) && defined(STBI_SSE2) +static int stbi__sse2_available(void) +{ + // If we're even attempting to compile this on GCC/Clang, that means + // -msse2 is on, which means the compiler is allowed to use SSE2 + // instructions at will, and so are we. + return 1; +} +#endif + +#endif +#endif + +// ARM NEON +#if defined(STBI_NO_SIMD) && defined(STBI_NEON) +#undef STBI_NEON +#endif + +#ifdef STBI_NEON +#include +#ifdef _MSC_VER +#define STBI_SIMD_ALIGN(type, name) __declspec(align(16)) type name +#else +#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16))) +#endif +#endif + +#ifndef STBI_SIMD_ALIGN +#define STBI_SIMD_ALIGN(type, name) type name +#endif + +#ifndef STBI_MAX_DIMENSIONS +#define STBI_MAX_DIMENSIONS (1 << 24) +#endif + +/////////////////////////////////////////////// +// +// stbi__context struct and start_xxx functions + +// stbi__context structure is our basic context used by all images, so it +// contains all the IO context, plus some basic image information +typedef struct +{ + stbi__uint32 img_x, img_y; + int img_n, img_out_n; + + stbi_io_callbacks io; + void *io_user_data; + + int read_from_callbacks; + int buflen; + stbi_uc buffer_start[128]; + int callback_already_read; + + stbi_uc *img_buffer, *img_buffer_end; + stbi_uc *img_buffer_original, *img_buffer_original_end; +} stbi__context; + + +static void stbi__refill_buffer(stbi__context *s); + +// initialize a memory-decode context +static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len) +{ + s->io.read = NULL; + s->read_from_callbacks = 0; + s->callback_already_read = 0; + s->img_buffer = s->img_buffer_original = (stbi_uc *) buffer; + s->img_buffer_end = s->img_buffer_original_end = (stbi_uc *) buffer+len; +} + +// initialize a callback-based context +static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user) +{ + s->io = *c; + s->io_user_data = user; + s->buflen = sizeof(s->buffer_start); + s->read_from_callbacks = 1; + s->callback_already_read = 0; + s->img_buffer = s->img_buffer_original = s->buffer_start; + stbi__refill_buffer(s); + s->img_buffer_original_end = s->img_buffer_end; +} + +#ifndef STBI_NO_STDIO + +static int stbi__stdio_read(void *user, char *data, int size) +{ + return (int) fread(data,1,size,(FILE*) user); +} + +static void stbi__stdio_skip(void *user, int n) +{ + int ch; + fseek((FILE*) user, n, SEEK_CUR); + ch = fgetc((FILE*) user); /* have to read a byte to reset feof()'s flag */ + if (ch != EOF) { + ungetc(ch, (FILE *) user); /* push byte back onto stream if valid. */ + } +} + +static int stbi__stdio_eof(void *user) +{ + return feof((FILE*) user) || ferror((FILE *) user); +} + +static stbi_io_callbacks stbi__stdio_callbacks = +{ + stbi__stdio_read, + stbi__stdio_skip, + stbi__stdio_eof, +}; + +static void stbi__start_file(stbi__context *s, FILE *f) +{ + stbi__start_callbacks(s, &stbi__stdio_callbacks, (void *) f); +} + +//static void stop_file(stbi__context *s) { } + +#endif // !STBI_NO_STDIO + +static void stbi__rewind(stbi__context *s) +{ + // conceptually rewind SHOULD rewind to the beginning of the stream, + // but we just rewind to the beginning of the initial buffer, because + // we only use it after doing 'test', which only ever looks at at most 92 bytes + s->img_buffer = s->img_buffer_original; + s->img_buffer_end = s->img_buffer_original_end; +} + +enum +{ + STBI_ORDER_RGB, + STBI_ORDER_BGR +}; + +typedef struct +{ + int bits_per_channel; + int num_channels; + int channel_order; +} stbi__result_info; + +#ifndef STBI_NO_JPEG +static int stbi__jpeg_test(stbi__context *s); +static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PNG +static int stbi__png_test(stbi__context *s); +static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp); +static int stbi__png_is16(stbi__context *s); +#endif + +#ifndef STBI_NO_BMP +static int stbi__bmp_test(stbi__context *s); +static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_TGA +static int stbi__tga_test(stbi__context *s); +static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PSD +static int stbi__psd_test(stbi__context *s); +static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc); +static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp); +static int stbi__psd_is16(stbi__context *s); +#endif + +#ifndef STBI_NO_HDR +static int stbi__hdr_test(stbi__context *s); +static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PIC +static int stbi__pic_test(stbi__context *s); +static void *stbi__pic_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_GIF +static int stbi__gif_test(stbi__context *s); +static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp); +static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PNM +static int stbi__pnm_test(stbi__context *s); +static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp); +static int stbi__pnm_is16(stbi__context *s); +#endif + +static +#ifdef STBI_THREAD_LOCAL +STBI_THREAD_LOCAL +#endif +const char *stbi__g_failure_reason; + +STBIDEF const char *stbi_failure_reason(void) +{ + return stbi__g_failure_reason; +} + +#ifndef STBI_NO_FAILURE_STRINGS +static int stbi__err(const char *str) +{ + stbi__g_failure_reason = str; + return 0; +} +#endif + +static void *stbi__malloc(size_t size) +{ + return STBI_MALLOC(size); +} + +// stb_image uses ints pervasively, including for offset calculations. +// therefore the largest decoded image size we can support with the +// current code, even on 64-bit targets, is INT_MAX. this is not a +// significant limitation for the intended use case. +// +// we do, however, need to make sure our size calculations don't +// overflow. hence a few helper functions for size calculations that +// multiply integers together, making sure that they're non-negative +// and no overflow occurs. + +// return 1 if the sum is valid, 0 on overflow. +// negative terms are considered invalid. +static int stbi__addsizes_valid(int a, int b) +{ + if (b < 0) return 0; + // now 0 <= b <= INT_MAX, hence also + // 0 <= INT_MAX - b <= INTMAX. + // And "a + b <= INT_MAX" (which might overflow) is the + // same as a <= INT_MAX - b (no overflow) + return a <= INT_MAX - b; +} + +// returns 1 if the product is valid, 0 on overflow. +// negative factors are considered invalid. +static int stbi__mul2sizes_valid(int a, int b) +{ + if (a < 0 || b < 0) return 0; + if (b == 0) return 1; // mul-by-0 is always safe + // portable way to check for no overflows in a*b + return a <= INT_MAX/b; +} + +#if !defined(STBI_NO_JPEG) || !defined(STBI_NO_PNG) || !defined(STBI_NO_TGA) || !defined(STBI_NO_HDR) +// returns 1 if "a*b + add" has no negative terms/factors and doesn't overflow +static int stbi__mad2sizes_valid(int a, int b, int add) +{ + return stbi__mul2sizes_valid(a, b) && stbi__addsizes_valid(a*b, add); +} +#endif + +// returns 1 if "a*b*c + add" has no negative terms/factors and doesn't overflow +static int stbi__mad3sizes_valid(int a, int b, int c, int add) +{ + return stbi__mul2sizes_valid(a, b) && stbi__mul2sizes_valid(a*b, c) && + stbi__addsizes_valid(a*b*c, add); +} + +// returns 1 if "a*b*c*d + add" has no negative terms/factors and doesn't overflow +#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) || !defined(STBI_NO_PNM) +static int stbi__mad4sizes_valid(int a, int b, int c, int d, int add) +{ + return stbi__mul2sizes_valid(a, b) && stbi__mul2sizes_valid(a*b, c) && + stbi__mul2sizes_valid(a*b*c, d) && stbi__addsizes_valid(a*b*c*d, add); +} +#endif + +#if !defined(STBI_NO_JPEG) || !defined(STBI_NO_PNG) || !defined(STBI_NO_TGA) || !defined(STBI_NO_HDR) +// mallocs with size overflow checking +static void *stbi__malloc_mad2(int a, int b, int add) +{ + if (!stbi__mad2sizes_valid(a, b, add)) return NULL; + return stbi__malloc(a*b + add); +} +#endif + +static void *stbi__malloc_mad3(int a, int b, int c, int add) +{ + if (!stbi__mad3sizes_valid(a, b, c, add)) return NULL; + return stbi__malloc(a*b*c + add); +} + +#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) || !defined(STBI_NO_PNM) +static void *stbi__malloc_mad4(int a, int b, int c, int d, int add) +{ + if (!stbi__mad4sizes_valid(a, b, c, d, add)) return NULL; + return stbi__malloc(a*b*c*d + add); +} +#endif + +// returns 1 if the sum of two signed ints is valid (between -2^31 and 2^31-1 inclusive), 0 on overflow. +static int stbi__addints_valid(int a, int b) +{ + if ((a >= 0) != (b >= 0)) return 1; // a and b have different signs, so no overflow + if (a < 0 && b < 0) return a >= INT_MIN - b; // same as a + b >= INT_MIN; INT_MIN - b cannot overflow since b < 0. + return a <= INT_MAX - b; +} + +// returns 1 if the product of two ints fits in a signed short, 0 on overflow. +static int stbi__mul2shorts_valid(int a, int b) +{ + if (b == 0 || b == -1) return 1; // multiplication by 0 is always 0; check for -1 so SHRT_MIN/b doesn't overflow + if ((a >= 0) == (b >= 0)) return a <= SHRT_MAX/b; // product is positive, so similar to mul2sizes_valid + if (b < 0) return a <= SHRT_MIN / b; // same as a * b >= SHRT_MIN + return a >= SHRT_MIN / b; +} + +// stbi__err - error +// stbi__errpf - error returning pointer to float +// stbi__errpuc - error returning pointer to unsigned char + +#ifdef STBI_NO_FAILURE_STRINGS + #define stbi__err(x,y) 0 +#elif defined(STBI_FAILURE_USERMSG) + #define stbi__err(x,y) stbi__err(y) +#else + #define stbi__err(x,y) stbi__err(x) +#endif + +#define stbi__errpf(x,y) ((float *)(size_t) (stbi__err(x,y)?NULL:NULL)) +#define stbi__errpuc(x,y) ((unsigned char *)(size_t) (stbi__err(x,y)?NULL:NULL)) + +STBIDEF void stbi_image_free(void *retval_from_stbi_load) +{ + STBI_FREE(retval_from_stbi_load); +} + +#ifndef STBI_NO_LINEAR +static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp); +#endif + +#ifndef STBI_NO_HDR +static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp); +#endif + +static int stbi__vertically_flip_on_load_global = 0; + +STBIDEF void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip) +{ + stbi__vertically_flip_on_load_global = flag_true_if_should_flip; +} + +#ifndef STBI_THREAD_LOCAL +#define stbi__vertically_flip_on_load stbi__vertically_flip_on_load_global +#else +static STBI_THREAD_LOCAL int stbi__vertically_flip_on_load_local, stbi__vertically_flip_on_load_set; + +STBIDEF void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip) +{ + stbi__vertically_flip_on_load_local = flag_true_if_should_flip; + stbi__vertically_flip_on_load_set = 1; +} + +#define stbi__vertically_flip_on_load (stbi__vertically_flip_on_load_set \ + ? stbi__vertically_flip_on_load_local \ + : stbi__vertically_flip_on_load_global) +#endif // STBI_THREAD_LOCAL + +static void *stbi__load_main(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc) +{ + memset(ri, 0, sizeof(*ri)); // make sure it's initialized if we add new fields + ri->bits_per_channel = 8; // default is 8 so most paths don't have to be changed + ri->channel_order = STBI_ORDER_RGB; // all current input & output are this, but this is here so we can add BGR order + ri->num_channels = 0; + + // test the formats with a very explicit header first (at least a FOURCC + // or distinctive magic number first) + #ifndef STBI_NO_PNG + if (stbi__png_test(s)) return stbi__png_load(s,x,y,comp,req_comp, ri); + #endif + #ifndef STBI_NO_BMP + if (stbi__bmp_test(s)) return stbi__bmp_load(s,x,y,comp,req_comp, ri); + #endif + #ifndef STBI_NO_GIF + if (stbi__gif_test(s)) return stbi__gif_load(s,x,y,comp,req_comp, ri); + #endif + #ifndef STBI_NO_PSD + if (stbi__psd_test(s)) return stbi__psd_load(s,x,y,comp,req_comp, ri, bpc); + #else + STBI_NOTUSED(bpc); + #endif + #ifndef STBI_NO_PIC + if (stbi__pic_test(s)) return stbi__pic_load(s,x,y,comp,req_comp, ri); + #endif + + // then the formats that can end up attempting to load with just 1 or 2 + // bytes matching expectations; these are prone to false positives, so + // try them later + #ifndef STBI_NO_JPEG + if (stbi__jpeg_test(s)) return stbi__jpeg_load(s,x,y,comp,req_comp, ri); + #endif + #ifndef STBI_NO_PNM + if (stbi__pnm_test(s)) return stbi__pnm_load(s,x,y,comp,req_comp, ri); + #endif + + #ifndef STBI_NO_HDR + if (stbi__hdr_test(s)) { + float *hdr = stbi__hdr_load(s, x,y,comp,req_comp, ri); + return stbi__hdr_to_ldr(hdr, *x, *y, req_comp ? req_comp : *comp); + } + #endif + + #ifndef STBI_NO_TGA + // test tga last because it's a crappy test! + if (stbi__tga_test(s)) + return stbi__tga_load(s,x,y,comp,req_comp, ri); + #endif + + return stbi__errpuc("unknown image type", "Image not of any known type, or corrupt"); +} + +static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels) +{ + int i; + int img_len = w * h * channels; + stbi_uc *reduced; + + reduced = (stbi_uc *) stbi__malloc(img_len); + if (reduced == NULL) return stbi__errpuc("outofmem", "Out of memory"); + + for (i = 0; i < img_len; ++i) + reduced[i] = (stbi_uc)((orig[i] >> 8) & 0xFF); // top half of each byte is sufficient approx of 16->8 bit scaling + + STBI_FREE(orig); + return reduced; +} + +static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels) +{ + int i; + int img_len = w * h * channels; + stbi__uint16 *enlarged; + + enlarged = (stbi__uint16 *) stbi__malloc(img_len*2); + if (enlarged == NULL) return (stbi__uint16 *) stbi__errpuc("outofmem", "Out of memory"); + + for (i = 0; i < img_len; ++i) + enlarged[i] = (stbi__uint16)((orig[i] << 8) + orig[i]); // replicate to high and low byte, maps 0->0, 255->0xffff + + STBI_FREE(orig); + return enlarged; +} + +static void stbi__vertical_flip(void *image, int w, int h, int bytes_per_pixel) +{ + int row; + size_t bytes_per_row = (size_t)w * bytes_per_pixel; + stbi_uc temp[2048]; + stbi_uc *bytes = (stbi_uc *)image; + + for (row = 0; row < (h>>1); row++) { + stbi_uc *row0 = bytes + row*bytes_per_row; + stbi_uc *row1 = bytes + (h - row - 1)*bytes_per_row; + // swap row0 with row1 + size_t bytes_left = bytes_per_row; + while (bytes_left) { + size_t bytes_copy = (bytes_left < sizeof(temp)) ? bytes_left : sizeof(temp); + memcpy(temp, row0, bytes_copy); + memcpy(row0, row1, bytes_copy); + memcpy(row1, temp, bytes_copy); + row0 += bytes_copy; + row1 += bytes_copy; + bytes_left -= bytes_copy; + } + } +} + +#ifndef STBI_NO_GIF +static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel) +{ + int slice; + int slice_size = w * h * bytes_per_pixel; + + stbi_uc *bytes = (stbi_uc *)image; + for (slice = 0; slice < z; ++slice) { + stbi__vertical_flip(bytes, w, h, bytes_per_pixel); + bytes += slice_size; + } +} +#endif + +static unsigned char *stbi__load_and_postprocess_8bit(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + stbi__result_info ri; + void *result = stbi__load_main(s, x, y, comp, req_comp, &ri, 8); + + if (result == NULL) + return NULL; + + // it is the responsibility of the loaders to make sure we get either 8 or 16 bit. + STBI_ASSERT(ri.bits_per_channel == 8 || ri.bits_per_channel == 16); + + if (ri.bits_per_channel != 8) { + result = stbi__convert_16_to_8((stbi__uint16 *) result, *x, *y, req_comp == 0 ? *comp : req_comp); + ri.bits_per_channel = 8; + } + + // @TODO: move stbi__convert_format to here + + if (stbi__vertically_flip_on_load) { + int channels = req_comp ? req_comp : *comp; + stbi__vertical_flip(result, *x, *y, channels * sizeof(stbi_uc)); + } + + return (unsigned char *) result; +} + +static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + stbi__result_info ri; + void *result = stbi__load_main(s, x, y, comp, req_comp, &ri, 16); + + if (result == NULL) + return NULL; + + // it is the responsibility of the loaders to make sure we get either 8 or 16 bit. + STBI_ASSERT(ri.bits_per_channel == 8 || ri.bits_per_channel == 16); + + if (ri.bits_per_channel != 16) { + result = stbi__convert_8_to_16((stbi_uc *) result, *x, *y, req_comp == 0 ? *comp : req_comp); + ri.bits_per_channel = 16; + } + + // @TODO: move stbi__convert_format16 to here + // @TODO: special case RGB-to-Y (and RGBA-to-YA) for 8-bit-to-16-bit case to keep more precision + + if (stbi__vertically_flip_on_load) { + int channels = req_comp ? req_comp : *comp; + stbi__vertical_flip(result, *x, *y, channels * sizeof(stbi__uint16)); + } + + return (stbi__uint16 *) result; +} + +#if !defined(STBI_NO_HDR) && !defined(STBI_NO_LINEAR) +static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp) +{ + if (stbi__vertically_flip_on_load && result != NULL) { + int channels = req_comp ? req_comp : *comp; + stbi__vertical_flip(result, *x, *y, channels * sizeof(float)); + } +} +#endif + +#ifndef STBI_NO_STDIO + +#if defined(_WIN32) && defined(STBI_WINDOWS_UTF8) +STBI_EXTERN __declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int cp, unsigned long flags, const char *str, int cbmb, wchar_t *widestr, int cchwide); +STBI_EXTERN __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int cp, unsigned long flags, const wchar_t *widestr, int cchwide, char *str, int cbmb, const char *defchar, int *used_default); +#endif + +#if defined(_WIN32) && defined(STBI_WINDOWS_UTF8) +STBIDEF int stbi_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input) +{ + return WideCharToMultiByte(65001 /* UTF8 */, 0, input, -1, buffer, (int) bufferlen, NULL, NULL); +} +#endif + +static FILE *stbi__fopen(char const *filename, char const *mode) +{ + FILE *f; +#if defined(_WIN32) && defined(STBI_WINDOWS_UTF8) + wchar_t wMode[64]; + wchar_t wFilename[1024]; + if (0 == MultiByteToWideChar(65001 /* UTF8 */, 0, filename, -1, wFilename, sizeof(wFilename)/sizeof(*wFilename))) + return 0; + + if (0 == MultiByteToWideChar(65001 /* UTF8 */, 0, mode, -1, wMode, sizeof(wMode)/sizeof(*wMode))) + return 0; + +#if defined(_MSC_VER) && _MSC_VER >= 1400 + if (0 != _wfopen_s(&f, wFilename, wMode)) + f = 0; +#else + f = _wfopen(wFilename, wMode); +#endif + +#elif defined(_MSC_VER) && _MSC_VER >= 1400 + if (0 != fopen_s(&f, filename, mode)) + f=0; +#else + f = fopen(filename, mode); +#endif + return f; +} + + +STBIDEF stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp) +{ + FILE *f = stbi__fopen(filename, "rb"); + unsigned char *result; + if (!f) return stbi__errpuc("can't fopen", "Unable to open file"); + result = stbi_load_from_file(f,x,y,comp,req_comp); + fclose(f); + return result; +} + +STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp) +{ + unsigned char *result; + stbi__context s; + stbi__start_file(&s,f); + result = stbi__load_and_postprocess_8bit(&s,x,y,comp,req_comp); + if (result) { + // need to 'unget' all the characters in the IO buffer + fseek(f, - (int) (s.img_buffer_end - s.img_buffer), SEEK_CUR); + } + return result; +} + +STBIDEF stbi__uint16 *stbi_load_from_file_16(FILE *f, int *x, int *y, int *comp, int req_comp) +{ + stbi__uint16 *result; + stbi__context s; + stbi__start_file(&s,f); + result = stbi__load_and_postprocess_16bit(&s,x,y,comp,req_comp); + if (result) { + // need to 'unget' all the characters in the IO buffer + fseek(f, - (int) (s.img_buffer_end - s.img_buffer), SEEK_CUR); + } + return result; +} + +STBIDEF stbi_us *stbi_load_16(char const *filename, int *x, int *y, int *comp, int req_comp) +{ + FILE *f = stbi__fopen(filename, "rb"); + stbi__uint16 *result; + if (!f) return (stbi_us *) stbi__errpuc("can't fopen", "Unable to open file"); + result = stbi_load_from_file_16(f,x,y,comp,req_comp); + fclose(f); + return result; +} + + +#endif //!STBI_NO_STDIO + +STBIDEF stbi_us *stbi_load_16_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__load_and_postprocess_16bit(&s,x,y,channels_in_file,desired_channels); +} + +STBIDEF stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *)clbk, user); + return stbi__load_and_postprocess_16bit(&s,x,y,channels_in_file,desired_channels); +} + +STBIDEF stbi_uc *stbi_load_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__load_and_postprocess_8bit(&s,x,y,comp,req_comp); +} + +STBIDEF stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user); + return stbi__load_and_postprocess_8bit(&s,x,y,comp,req_comp); +} + +#ifndef STBI_NO_GIF +STBIDEF stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp) +{ + unsigned char *result; + stbi__context s; + stbi__start_mem(&s,buffer,len); + + result = (unsigned char*) stbi__load_gif_main(&s, delays, x, y, z, comp, req_comp); + if (stbi__vertically_flip_on_load) { + stbi__vertical_flip_slices( result, *x, *y, *z, *comp ); + } + + return result; +} +#endif + +#ifndef STBI_NO_LINEAR +static float *stbi__loadf_main(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + unsigned char *data; + #ifndef STBI_NO_HDR + if (stbi__hdr_test(s)) { + stbi__result_info ri; + float *hdr_data = stbi__hdr_load(s,x,y,comp,req_comp, &ri); + if (hdr_data) + stbi__float_postprocess(hdr_data,x,y,comp,req_comp); + return hdr_data; + } + #endif + data = stbi__load_and_postprocess_8bit(s, x, y, comp, req_comp); + if (data) + return stbi__ldr_to_hdr(data, *x, *y, req_comp ? req_comp : *comp); + return stbi__errpf("unknown image type", "Image not of any known type, or corrupt"); +} + +STBIDEF float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__loadf_main(&s,x,y,comp,req_comp); +} + +STBIDEF float *stbi_loadf_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user); + return stbi__loadf_main(&s,x,y,comp,req_comp); +} + +#ifndef STBI_NO_STDIO +STBIDEF float *stbi_loadf(char const *filename, int *x, int *y, int *comp, int req_comp) +{ + float *result; + FILE *f = stbi__fopen(filename, "rb"); + if (!f) return stbi__errpf("can't fopen", "Unable to open file"); + result = stbi_loadf_from_file(f,x,y,comp,req_comp); + fclose(f); + return result; +} + +STBIDEF float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_file(&s,f); + return stbi__loadf_main(&s,x,y,comp,req_comp); +} +#endif // !STBI_NO_STDIO + +#endif // !STBI_NO_LINEAR + +// these is-hdr-or-not is defined independent of whether STBI_NO_LINEAR is +// defined, for API simplicity; if STBI_NO_LINEAR is defined, it always +// reports false! + +STBIDEF int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len) +{ + #ifndef STBI_NO_HDR + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__hdr_test(&s); + #else + STBI_NOTUSED(buffer); + STBI_NOTUSED(len); + return 0; + #endif +} + +#ifndef STBI_NO_STDIO +STBIDEF int stbi_is_hdr (char const *filename) +{ + FILE *f = stbi__fopen(filename, "rb"); + int result=0; + if (f) { + result = stbi_is_hdr_from_file(f); + fclose(f); + } + return result; +} + +STBIDEF int stbi_is_hdr_from_file(FILE *f) +{ + #ifndef STBI_NO_HDR + long pos = ftell(f); + int res; + stbi__context s; + stbi__start_file(&s,f); + res = stbi__hdr_test(&s); + fseek(f, pos, SEEK_SET); + return res; + #else + STBI_NOTUSED(f); + return 0; + #endif +} +#endif // !STBI_NO_STDIO + +STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user) +{ + #ifndef STBI_NO_HDR + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user); + return stbi__hdr_test(&s); + #else + STBI_NOTUSED(clbk); + STBI_NOTUSED(user); + return 0; + #endif +} + +#ifndef STBI_NO_LINEAR +static float stbi__l2h_gamma=2.2f, stbi__l2h_scale=1.0f; + +STBIDEF void stbi_ldr_to_hdr_gamma(float gamma) { stbi__l2h_gamma = gamma; } +STBIDEF void stbi_ldr_to_hdr_scale(float scale) { stbi__l2h_scale = scale; } +#endif + +static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f; + +STBIDEF void stbi_hdr_to_ldr_gamma(float gamma) { stbi__h2l_gamma_i = 1/gamma; } +STBIDEF void stbi_hdr_to_ldr_scale(float scale) { stbi__h2l_scale_i = 1/scale; } + + +////////////////////////////////////////////////////////////////////////////// +// +// Common code used by all image loaders +// + +enum +{ + STBI__SCAN_load=0, + STBI__SCAN_type, + STBI__SCAN_header +}; + +static void stbi__refill_buffer(stbi__context *s) +{ + int n = (s->io.read)(s->io_user_data,(char*)s->buffer_start,s->buflen); + s->callback_already_read += (int) (s->img_buffer - s->img_buffer_original); + if (n == 0) { + // at end of file, treat same as if from memory, but need to handle case + // where s->img_buffer isn't pointing to safe memory, e.g. 0-byte file + s->read_from_callbacks = 0; + s->img_buffer = s->buffer_start; + s->img_buffer_end = s->buffer_start+1; + *s->img_buffer = 0; + } else { + s->img_buffer = s->buffer_start; + s->img_buffer_end = s->buffer_start + n; + } +} + +stbi_inline static stbi_uc stbi__get8(stbi__context *s) +{ + if (s->img_buffer < s->img_buffer_end) + return *s->img_buffer++; + if (s->read_from_callbacks) { + stbi__refill_buffer(s); + return *s->img_buffer++; + } + return 0; +} + +#if defined(STBI_NO_JPEG) && defined(STBI_NO_HDR) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM) +// nothing +#else +stbi_inline static int stbi__at_eof(stbi__context *s) +{ + if (s->io.read) { + if (!(s->io.eof)(s->io_user_data)) return 0; + // if feof() is true, check if buffer = end + // special case: we've only got the special 0 character at the end + if (s->read_from_callbacks == 0) return 1; + } + + return s->img_buffer >= s->img_buffer_end; +} +#endif + +#if defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC) +// nothing +#else +static void stbi__skip(stbi__context *s, int n) +{ + if (n == 0) return; // already there! + if (n < 0) { + s->img_buffer = s->img_buffer_end; + return; + } + if (s->io.read) { + int blen = (int) (s->img_buffer_end - s->img_buffer); + if (blen < n) { + s->img_buffer = s->img_buffer_end; + (s->io.skip)(s->io_user_data, n - blen); + return; + } + } + s->img_buffer += n; +} +#endif + +#if defined(STBI_NO_PNG) && defined(STBI_NO_TGA) && defined(STBI_NO_HDR) && defined(STBI_NO_PNM) +// nothing +#else +static int stbi__getn(stbi__context *s, stbi_uc *buffer, int n) +{ + if (s->io.read) { + int blen = (int) (s->img_buffer_end - s->img_buffer); + if (blen < n) { + int res, count; + + memcpy(buffer, s->img_buffer, blen); + + count = (s->io.read)(s->io_user_data, (char*) buffer + blen, n - blen); + res = (count == (n-blen)); + s->img_buffer = s->img_buffer_end; + return res; + } + } + + if (s->img_buffer+n <= s->img_buffer_end) { + memcpy(buffer, s->img_buffer, n); + s->img_buffer += n; + return 1; + } else + return 0; +} +#endif + +#if defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_PSD) && defined(STBI_NO_PIC) +// nothing +#else +static int stbi__get16be(stbi__context *s) +{ + int z = stbi__get8(s); + return (z << 8) + stbi__get8(s); +} +#endif + +#if defined(STBI_NO_PNG) && defined(STBI_NO_PSD) && defined(STBI_NO_PIC) +// nothing +#else +static stbi__uint32 stbi__get32be(stbi__context *s) +{ + stbi__uint32 z = stbi__get16be(s); + return (z << 16) + stbi__get16be(s); +} +#endif + +#if defined(STBI_NO_BMP) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) +// nothing +#else +static int stbi__get16le(stbi__context *s) +{ + int z = stbi__get8(s); + return z + (stbi__get8(s) << 8); +} +#endif + +#ifndef STBI_NO_BMP +static stbi__uint32 stbi__get32le(stbi__context *s) +{ + stbi__uint32 z = stbi__get16le(s); + z += (stbi__uint32)stbi__get16le(s) << 16; + return z; +} +#endif + +#define STBI__BYTECAST(x) ((stbi_uc) ((x) & 255)) // truncate int to byte without warnings + +#if defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM) +// nothing +#else +////////////////////////////////////////////////////////////////////////////// +// +// generic converter from built-in img_n to req_comp +// individual types do this automatically as much as possible (e.g. jpeg +// does all cases internally since it needs to colorspace convert anyway, +// and it never has alpha, so very few cases ). png can automatically +// interleave an alpha=255 channel, but falls back to this for other cases +// +// assume data buffer is malloced, so malloc a new one and free that one +// only failure mode is malloc failing + +static stbi_uc stbi__compute_y(int r, int g, int b) +{ + return (stbi_uc) (((r*77) + (g*150) + (29*b)) >> 8); +} +#endif + +#if defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM) +// nothing +#else +static unsigned char *stbi__convert_format(unsigned char *data, int img_n, int req_comp, unsigned int x, unsigned int y) +{ + int i,j; + unsigned char *good; + + if (req_comp == img_n) return data; + STBI_ASSERT(req_comp >= 1 && req_comp <= 4); + + good = (unsigned char *) stbi__malloc_mad3(req_comp, x, y, 0); + if (good == NULL) { + STBI_FREE(data); + return stbi__errpuc("outofmem", "Out of memory"); + } + + for (j=0; j < (int) y; ++j) { + unsigned char *src = data + j * x * img_n ; + unsigned char *dest = good + j * x * req_comp; + + #define STBI__COMBO(a,b) ((a)*8+(b)) + #define STBI__CASE(a,b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b) + // convert source image with img_n components to one with req_comp components; + // avoid switch per pixel, so use switch per scanline and massive macros + switch (STBI__COMBO(img_n, req_comp)) { + STBI__CASE(1,2) { dest[0]=src[0]; dest[1]=255; } break; + STBI__CASE(1,3) { dest[0]=dest[1]=dest[2]=src[0]; } break; + STBI__CASE(1,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=255; } break; + STBI__CASE(2,1) { dest[0]=src[0]; } break; + STBI__CASE(2,3) { dest[0]=dest[1]=dest[2]=src[0]; } break; + STBI__CASE(2,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=src[1]; } break; + STBI__CASE(3,4) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2];dest[3]=255; } break; + STBI__CASE(3,1) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); } break; + STBI__CASE(3,2) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); dest[1] = 255; } break; + STBI__CASE(4,1) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); } break; + STBI__CASE(4,2) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); dest[1] = src[3]; } break; + STBI__CASE(4,3) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2]; } break; + default: STBI_ASSERT(0); STBI_FREE(data); STBI_FREE(good); return stbi__errpuc("unsupported", "Unsupported format conversion"); + } + #undef STBI__CASE + } + + STBI_FREE(data); + return good; +} +#endif + +#if defined(STBI_NO_PNG) && defined(STBI_NO_PSD) +// nothing +#else +static stbi__uint16 stbi__compute_y_16(int r, int g, int b) +{ + return (stbi__uint16) (((r*77) + (g*150) + (29*b)) >> 8); +} +#endif + +#if defined(STBI_NO_PNG) && defined(STBI_NO_PSD) +// nothing +#else +static stbi__uint16 *stbi__convert_format16(stbi__uint16 *data, int img_n, int req_comp, unsigned int x, unsigned int y) +{ + int i,j; + stbi__uint16 *good; + + if (req_comp == img_n) return data; + STBI_ASSERT(req_comp >= 1 && req_comp <= 4); + + good = (stbi__uint16 *) stbi__malloc(req_comp * x * y * 2); + if (good == NULL) { + STBI_FREE(data); + return (stbi__uint16 *) stbi__errpuc("outofmem", "Out of memory"); + } + + for (j=0; j < (int) y; ++j) { + stbi__uint16 *src = data + j * x * img_n ; + stbi__uint16 *dest = good + j * x * req_comp; + + #define STBI__COMBO(a,b) ((a)*8+(b)) + #define STBI__CASE(a,b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b) + // convert source image with img_n components to one with req_comp components; + // avoid switch per pixel, so use switch per scanline and massive macros + switch (STBI__COMBO(img_n, req_comp)) { + STBI__CASE(1,2) { dest[0]=src[0]; dest[1]=0xffff; } break; + STBI__CASE(1,3) { dest[0]=dest[1]=dest[2]=src[0]; } break; + STBI__CASE(1,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=0xffff; } break; + STBI__CASE(2,1) { dest[0]=src[0]; } break; + STBI__CASE(2,3) { dest[0]=dest[1]=dest[2]=src[0]; } break; + STBI__CASE(2,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=src[1]; } break; + STBI__CASE(3,4) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2];dest[3]=0xffff; } break; + STBI__CASE(3,1) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); } break; + STBI__CASE(3,2) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); dest[1] = 0xffff; } break; + STBI__CASE(4,1) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); } break; + STBI__CASE(4,2) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); dest[1] = src[3]; } break; + STBI__CASE(4,3) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2]; } break; + default: STBI_ASSERT(0); STBI_FREE(data); STBI_FREE(good); return (stbi__uint16*) stbi__errpuc("unsupported", "Unsupported format conversion"); + } + #undef STBI__CASE + } + + STBI_FREE(data); + return good; +} +#endif + +#ifndef STBI_NO_LINEAR +static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp) +{ + int i,k,n; + float *output; + if (!data) return NULL; + output = (float *) stbi__malloc_mad4(x, y, comp, sizeof(float), 0); + if (output == NULL) { STBI_FREE(data); return stbi__errpf("outofmem", "Out of memory"); } + // compute number of non-alpha components + if (comp & 1) n = comp; else n = comp-1; + for (i=0; i < x*y; ++i) { + for (k=0; k < n; ++k) { + output[i*comp + k] = (float) (pow(data[i*comp+k]/255.0f, stbi__l2h_gamma) * stbi__l2h_scale); + } + } + if (n < comp) { + for (i=0; i < x*y; ++i) { + output[i*comp + n] = data[i*comp + n]/255.0f; + } + } + STBI_FREE(data); + return output; +} +#endif + +#ifndef STBI_NO_HDR +#define stbi__float2int(x) ((int) (x)) +static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp) +{ + int i,k,n; + stbi_uc *output; + if (!data) return NULL; + output = (stbi_uc *) stbi__malloc_mad3(x, y, comp, 0); + if (output == NULL) { STBI_FREE(data); return stbi__errpuc("outofmem", "Out of memory"); } + // compute number of non-alpha components + if (comp & 1) n = comp; else n = comp-1; + for (i=0; i < x*y; ++i) { + for (k=0; k < n; ++k) { + float z = (float) pow(data[i*comp+k]*stbi__h2l_scale_i, stbi__h2l_gamma_i) * 255 + 0.5f; + if (z < 0) z = 0; + if (z > 255) z = 255; + output[i*comp + k] = (stbi_uc) stbi__float2int(z); + } + if (k < comp) { + float z = data[i*comp+k] * 255 + 0.5f; + if (z < 0) z = 0; + if (z > 255) z = 255; + output[i*comp + k] = (stbi_uc) stbi__float2int(z); + } + } + STBI_FREE(data); + return output; +} +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// "baseline" JPEG/JFIF decoder +// +// simple implementation +// - doesn't support delayed output of y-dimension +// - simple interface (only one output format: 8-bit interleaved RGB) +// - doesn't try to recover corrupt jpegs +// - doesn't allow partial loading, loading multiple at once +// - still fast on x86 (copying globals into locals doesn't help x86) +// - allocates lots of intermediate memory (full size of all components) +// - non-interleaved case requires this anyway +// - allows good upsampling (see next) +// high-quality +// - upsampled channels are bilinearly interpolated, even across blocks +// - quality integer IDCT derived from IJG's 'slow' +// performance +// - fast huffman; reasonable integer IDCT +// - some SIMD kernels for common paths on targets with SSE2/NEON +// - uses a lot of intermediate memory, could cache poorly + +#ifndef STBI_NO_JPEG + +// huffman decoding acceleration +#define FAST_BITS 9 // larger handles more cases; smaller stomps less cache + +typedef struct +{ + stbi_uc fast[1 << FAST_BITS]; + // weirdly, repacking this into AoS is a 10% speed loss, instead of a win + stbi__uint16 code[256]; + stbi_uc values[256]; + stbi_uc size[257]; + unsigned int maxcode[18]; + int delta[17]; // old 'firstsymbol' - old 'firstcode' +} stbi__huffman; + +typedef struct +{ + stbi__context *s; + stbi__huffman huff_dc[4]; + stbi__huffman huff_ac[4]; + stbi__uint16 dequant[4][64]; + stbi__int16 fast_ac[4][1 << FAST_BITS]; + +// sizes for components, interleaved MCUs + int img_h_max, img_v_max; + int img_mcu_x, img_mcu_y; + int img_mcu_w, img_mcu_h; + +// definition of jpeg image component + struct + { + int id; + int h,v; + int tq; + int hd,ha; + int dc_pred; + + int x,y,w2,h2; + stbi_uc *data; + void *raw_data, *raw_coeff; + stbi_uc *linebuf; + short *coeff; // progressive only + int coeff_w, coeff_h; // number of 8x8 coefficient blocks + } img_comp[4]; + + stbi__uint32 code_buffer; // jpeg entropy-coded buffer + int code_bits; // number of valid bits + unsigned char marker; // marker seen while filling entropy buffer + int nomore; // flag if we saw a marker so must stop + + int progressive; + int spec_start; + int spec_end; + int succ_high; + int succ_low; + int eob_run; + int jfif; + int app14_color_transform; // Adobe APP14 tag + int rgb; + + int scan_n, order[4]; + int restart_interval, todo; + +// kernels + void (*idct_block_kernel)(stbi_uc *out, int out_stride, short data[64]); + void (*YCbCr_to_RGB_kernel)(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step); + stbi_uc *(*resample_row_hv_2_kernel)(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs); +} stbi__jpeg; + +static int stbi__build_huffman(stbi__huffman *h, int *count) +{ + int i,j,k=0; + unsigned int code; + // build size list for each symbol (from JPEG spec) + for (i=0; i < 16; ++i) { + for (j=0; j < count[i]; ++j) { + h->size[k++] = (stbi_uc) (i+1); + if(k >= 257) return stbi__err("bad size list","Corrupt JPEG"); + } + } + h->size[k] = 0; + + // compute actual symbols (from jpeg spec) + code = 0; + k = 0; + for(j=1; j <= 16; ++j) { + // compute delta to add to code to compute symbol id + h->delta[j] = k - code; + if (h->size[k] == j) { + while (h->size[k] == j) + h->code[k++] = (stbi__uint16) (code++); + if (code-1 >= (1u << j)) return stbi__err("bad code lengths","Corrupt JPEG"); + } + // compute largest code + 1 for this size, preshifted as needed later + h->maxcode[j] = code << (16-j); + code <<= 1; + } + h->maxcode[j] = 0xffffffff; + + // build non-spec acceleration table; 255 is flag for not-accelerated + memset(h->fast, 255, 1 << FAST_BITS); + for (i=0; i < k; ++i) { + int s = h->size[i]; + if (s <= FAST_BITS) { + int c = h->code[i] << (FAST_BITS-s); + int m = 1 << (FAST_BITS-s); + for (j=0; j < m; ++j) { + h->fast[c+j] = (stbi_uc) i; + } + } + } + return 1; +} + +// build a table that decodes both magnitude and value of small ACs in +// one go. +static void stbi__build_fast_ac(stbi__int16 *fast_ac, stbi__huffman *h) +{ + int i; + for (i=0; i < (1 << FAST_BITS); ++i) { + stbi_uc fast = h->fast[i]; + fast_ac[i] = 0; + if (fast < 255) { + int rs = h->values[fast]; + int run = (rs >> 4) & 15; + int magbits = rs & 15; + int len = h->size[fast]; + + if (magbits && len + magbits <= FAST_BITS) { + // magnitude code followed by receive_extend code + int k = ((i << len) & ((1 << FAST_BITS) - 1)) >> (FAST_BITS - magbits); + int m = 1 << (magbits - 1); + if (k < m) k += (~0U << magbits) + 1; + // if the result is small enough, we can fit it in fast_ac table + if (k >= -128 && k <= 127) + fast_ac[i] = (stbi__int16) ((k * 256) + (run * 16) + (len + magbits)); + } + } + } +} + +static void stbi__grow_buffer_unsafe(stbi__jpeg *j) +{ + do { + unsigned int b = j->nomore ? 0 : stbi__get8(j->s); + if (b == 0xff) { + int c = stbi__get8(j->s); + while (c == 0xff) c = stbi__get8(j->s); // consume fill bytes + if (c != 0) { + j->marker = (unsigned char) c; + j->nomore = 1; + return; + } + } + j->code_buffer |= b << (24 - j->code_bits); + j->code_bits += 8; + } while (j->code_bits <= 24); +} + +// (1 << n) - 1 +static const stbi__uint32 stbi__bmask[17]={0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535}; + +// decode a jpeg huffman value from the bitstream +stbi_inline static int stbi__jpeg_huff_decode(stbi__jpeg *j, stbi__huffman *h) +{ + unsigned int temp; + int c,k; + + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + + // look at the top FAST_BITS and determine what symbol ID it is, + // if the code is <= FAST_BITS + c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1); + k = h->fast[c]; + if (k < 255) { + int s = h->size[k]; + if (s > j->code_bits) + return -1; + j->code_buffer <<= s; + j->code_bits -= s; + return h->values[k]; + } + + // naive test is to shift the code_buffer down so k bits are + // valid, then test against maxcode. To speed this up, we've + // preshifted maxcode left so that it has (16-k) 0s at the + // end; in other words, regardless of the number of bits, it + // wants to be compared against something shifted to have 16; + // that way we don't need to shift inside the loop. + temp = j->code_buffer >> 16; + for (k=FAST_BITS+1 ; ; ++k) + if (temp < h->maxcode[k]) + break; + if (k == 17) { + // error! code not found + j->code_bits -= 16; + return -1; + } + + if (k > j->code_bits) + return -1; + + // convert the huffman code to the symbol id + c = ((j->code_buffer >> (32 - k)) & stbi__bmask[k]) + h->delta[k]; + if(c < 0 || c >= 256) // symbol id out of bounds! + return -1; + STBI_ASSERT((((j->code_buffer) >> (32 - h->size[c])) & stbi__bmask[h->size[c]]) == h->code[c]); + + // convert the id to a symbol + j->code_bits -= k; + j->code_buffer <<= k; + return h->values[c]; +} + +// bias[n] = (-1<code_bits < n) stbi__grow_buffer_unsafe(j); + if (j->code_bits < n) return 0; // ran out of bits from stream, return 0s intead of continuing + + sgn = j->code_buffer >> 31; // sign bit always in MSB; 0 if MSB clear (positive), 1 if MSB set (negative) + k = stbi_lrot(j->code_buffer, n); + j->code_buffer = k & ~stbi__bmask[n]; + k &= stbi__bmask[n]; + j->code_bits -= n; + return k + (stbi__jbias[n] & (sgn - 1)); +} + +// get some unsigned bits +stbi_inline static int stbi__jpeg_get_bits(stbi__jpeg *j, int n) +{ + unsigned int k; + if (j->code_bits < n) stbi__grow_buffer_unsafe(j); + if (j->code_bits < n) return 0; // ran out of bits from stream, return 0s intead of continuing + k = stbi_lrot(j->code_buffer, n); + j->code_buffer = k & ~stbi__bmask[n]; + k &= stbi__bmask[n]; + j->code_bits -= n; + return k; +} + +stbi_inline static int stbi__jpeg_get_bit(stbi__jpeg *j) +{ + unsigned int k; + if (j->code_bits < 1) stbi__grow_buffer_unsafe(j); + if (j->code_bits < 1) return 0; // ran out of bits from stream, return 0s intead of continuing + k = j->code_buffer; + j->code_buffer <<= 1; + --j->code_bits; + return k & 0x80000000; +} + +// given a value that's at position X in the zigzag stream, +// where does it appear in the 8x8 matrix coded as row-major? +static const stbi_uc stbi__jpeg_dezigzag[64+15] = +{ + 0, 1, 8, 16, 9, 2, 3, 10, + 17, 24, 32, 25, 18, 11, 4, 5, + 12, 19, 26, 33, 40, 48, 41, 34, + 27, 20, 13, 6, 7, 14, 21, 28, + 35, 42, 49, 56, 57, 50, 43, 36, + 29, 22, 15, 23, 30, 37, 44, 51, + 58, 59, 52, 45, 38, 31, 39, 46, + 53, 60, 61, 54, 47, 55, 62, 63, + // let corrupt input sample past end + 63, 63, 63, 63, 63, 63, 63, 63, + 63, 63, 63, 63, 63, 63, 63 +}; + +// decode one 64-entry block-- +static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64], stbi__huffman *hdc, stbi__huffman *hac, stbi__int16 *fac, int b, stbi__uint16 *dequant) +{ + int diff,dc,k; + int t; + + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + t = stbi__jpeg_huff_decode(j, hdc); + if (t < 0 || t > 15) return stbi__err("bad huffman code","Corrupt JPEG"); + + // 0 all the ac values now so we can do it 32-bits at a time + memset(data,0,64*sizeof(data[0])); + + diff = t ? stbi__extend_receive(j, t) : 0; + if (!stbi__addints_valid(j->img_comp[b].dc_pred, diff)) return stbi__err("bad delta","Corrupt JPEG"); + dc = j->img_comp[b].dc_pred + diff; + j->img_comp[b].dc_pred = dc; + if (!stbi__mul2shorts_valid(dc, dequant[0])) return stbi__err("can't merge dc and ac", "Corrupt JPEG"); + data[0] = (short) (dc * dequant[0]); + + // decode AC components, see JPEG spec + k = 1; + do { + unsigned int zig; + int c,r,s; + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1); + r = fac[c]; + if (r) { // fast-AC path + k += (r >> 4) & 15; // run + s = r & 15; // combined length + if (s > j->code_bits) return stbi__err("bad huffman code", "Combined length longer than code bits available"); + j->code_buffer <<= s; + j->code_bits -= s; + // decode into unzigzag'd location + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) ((r >> 8) * dequant[zig]); + } else { + int rs = stbi__jpeg_huff_decode(j, hac); + if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG"); + s = rs & 15; + r = rs >> 4; + if (s == 0) { + if (rs != 0xf0) break; // end block + k += 16; + } else { + k += r; + // decode into unzigzag'd location + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) (stbi__extend_receive(j,s) * dequant[zig]); + } + } + } while (k < 64); + return 1; +} + +static int stbi__jpeg_decode_block_prog_dc(stbi__jpeg *j, short data[64], stbi__huffman *hdc, int b) +{ + int diff,dc; + int t; + if (j->spec_end != 0) return stbi__err("can't merge dc and ac", "Corrupt JPEG"); + + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + + if (j->succ_high == 0) { + // first scan for DC coefficient, must be first + memset(data,0,64*sizeof(data[0])); // 0 all the ac values now + t = stbi__jpeg_huff_decode(j, hdc); + if (t < 0 || t > 15) return stbi__err("can't merge dc and ac", "Corrupt JPEG"); + diff = t ? stbi__extend_receive(j, t) : 0; + + if (!stbi__addints_valid(j->img_comp[b].dc_pred, diff)) return stbi__err("bad delta", "Corrupt JPEG"); + dc = j->img_comp[b].dc_pred + diff; + j->img_comp[b].dc_pred = dc; + if (!stbi__mul2shorts_valid(dc, 1 << j->succ_low)) return stbi__err("can't merge dc and ac", "Corrupt JPEG"); + data[0] = (short) (dc * (1 << j->succ_low)); + } else { + // refinement scan for DC coefficient + if (stbi__jpeg_get_bit(j)) + data[0] += (short) (1 << j->succ_low); + } + return 1; +} + +// @OPTIMIZE: store non-zigzagged during the decode passes, +// and only de-zigzag when dequantizing +static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__huffman *hac, stbi__int16 *fac) +{ + int k; + if (j->spec_start == 0) return stbi__err("can't merge dc and ac", "Corrupt JPEG"); + + if (j->succ_high == 0) { + int shift = j->succ_low; + + if (j->eob_run) { + --j->eob_run; + return 1; + } + + k = j->spec_start; + do { + unsigned int zig; + int c,r,s; + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1); + r = fac[c]; + if (r) { // fast-AC path + k += (r >> 4) & 15; // run + s = r & 15; // combined length + if (s > j->code_bits) return stbi__err("bad huffman code", "Combined length longer than code bits available"); + j->code_buffer <<= s; + j->code_bits -= s; + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) ((r >> 8) * (1 << shift)); + } else { + int rs = stbi__jpeg_huff_decode(j, hac); + if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG"); + s = rs & 15; + r = rs >> 4; + if (s == 0) { + if (r < 15) { + j->eob_run = (1 << r); + if (r) + j->eob_run += stbi__jpeg_get_bits(j, r); + --j->eob_run; + break; + } + k += 16; + } else { + k += r; + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) (stbi__extend_receive(j,s) * (1 << shift)); + } + } + } while (k <= j->spec_end); + } else { + // refinement scan for these AC coefficients + + short bit = (short) (1 << j->succ_low); + + if (j->eob_run) { + --j->eob_run; + for (k = j->spec_start; k <= j->spec_end; ++k) { + short *p = &data[stbi__jpeg_dezigzag[k]]; + if (*p != 0) + if (stbi__jpeg_get_bit(j)) + if ((*p & bit)==0) { + if (*p > 0) + *p += bit; + else + *p -= bit; + } + } + } else { + k = j->spec_start; + do { + int r,s; + int rs = stbi__jpeg_huff_decode(j, hac); // @OPTIMIZE see if we can use the fast path here, advance-by-r is so slow, eh + if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG"); + s = rs & 15; + r = rs >> 4; + if (s == 0) { + if (r < 15) { + j->eob_run = (1 << r) - 1; + if (r) + j->eob_run += stbi__jpeg_get_bits(j, r); + r = 64; // force end of block + } else { + // r=15 s=0 should write 16 0s, so we just do + // a run of 15 0s and then write s (which is 0), + // so we don't have to do anything special here + } + } else { + if (s != 1) return stbi__err("bad huffman code", "Corrupt JPEG"); + // sign bit + if (stbi__jpeg_get_bit(j)) + s = bit; + else + s = -bit; + } + + // advance by r + while (k <= j->spec_end) { + short *p = &data[stbi__jpeg_dezigzag[k++]]; + if (*p != 0) { + if (stbi__jpeg_get_bit(j)) + if ((*p & bit)==0) { + if (*p > 0) + *p += bit; + else + *p -= bit; + } + } else { + if (r == 0) { + *p = (short) s; + break; + } + --r; + } + } + } while (k <= j->spec_end); + } + } + return 1; +} + +// take a -128..127 value and stbi__clamp it and convert to 0..255 +stbi_inline static stbi_uc stbi__clamp(int x) +{ + // trick to use a single test to catch both cases + if ((unsigned int) x > 255) { + if (x < 0) return 0; + if (x > 255) return 255; + } + return (stbi_uc) x; +} + +#define stbi__f2f(x) ((int) (((x) * 4096 + 0.5))) +#define stbi__fsh(x) ((x) * 4096) + +// derived from jidctint -- DCT_ISLOW +#define STBI__IDCT_1D(s0,s1,s2,s3,s4,s5,s6,s7) \ + int t0,t1,t2,t3,p1,p2,p3,p4,p5,x0,x1,x2,x3; \ + p2 = s2; \ + p3 = s6; \ + p1 = (p2+p3) * stbi__f2f(0.5411961f); \ + t2 = p1 + p3*stbi__f2f(-1.847759065f); \ + t3 = p1 + p2*stbi__f2f( 0.765366865f); \ + p2 = s0; \ + p3 = s4; \ + t0 = stbi__fsh(p2+p3); \ + t1 = stbi__fsh(p2-p3); \ + x0 = t0+t3; \ + x3 = t0-t3; \ + x1 = t1+t2; \ + x2 = t1-t2; \ + t0 = s7; \ + t1 = s5; \ + t2 = s3; \ + t3 = s1; \ + p3 = t0+t2; \ + p4 = t1+t3; \ + p1 = t0+t3; \ + p2 = t1+t2; \ + p5 = (p3+p4)*stbi__f2f( 1.175875602f); \ + t0 = t0*stbi__f2f( 0.298631336f); \ + t1 = t1*stbi__f2f( 2.053119869f); \ + t2 = t2*stbi__f2f( 3.072711026f); \ + t3 = t3*stbi__f2f( 1.501321110f); \ + p1 = p5 + p1*stbi__f2f(-0.899976223f); \ + p2 = p5 + p2*stbi__f2f(-2.562915447f); \ + p3 = p3*stbi__f2f(-1.961570560f); \ + p4 = p4*stbi__f2f(-0.390180644f); \ + t3 += p1+p4; \ + t2 += p2+p3; \ + t1 += p2+p4; \ + t0 += p1+p3; + +static void stbi__idct_block(stbi_uc *out, int out_stride, short data[64]) +{ + int i,val[64],*v=val; + stbi_uc *o; + short *d = data; + + // columns + for (i=0; i < 8; ++i,++d, ++v) { + // if all zeroes, shortcut -- this avoids dequantizing 0s and IDCTing + if (d[ 8]==0 && d[16]==0 && d[24]==0 && d[32]==0 + && d[40]==0 && d[48]==0 && d[56]==0) { + // no shortcut 0 seconds + // (1|2|3|4|5|6|7)==0 0 seconds + // all separate -0.047 seconds + // 1 && 2|3 && 4|5 && 6|7: -0.047 seconds + int dcterm = d[0]*4; + v[0] = v[8] = v[16] = v[24] = v[32] = v[40] = v[48] = v[56] = dcterm; + } else { + STBI__IDCT_1D(d[ 0],d[ 8],d[16],d[24],d[32],d[40],d[48],d[56]) + // constants scaled things up by 1<<12; let's bring them back + // down, but keep 2 extra bits of precision + x0 += 512; x1 += 512; x2 += 512; x3 += 512; + v[ 0] = (x0+t3) >> 10; + v[56] = (x0-t3) >> 10; + v[ 8] = (x1+t2) >> 10; + v[48] = (x1-t2) >> 10; + v[16] = (x2+t1) >> 10; + v[40] = (x2-t1) >> 10; + v[24] = (x3+t0) >> 10; + v[32] = (x3-t0) >> 10; + } + } + + for (i=0, v=val, o=out; i < 8; ++i,v+=8,o+=out_stride) { + // no fast case since the first 1D IDCT spread components out + STBI__IDCT_1D(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7]) + // constants scaled things up by 1<<12, plus we had 1<<2 from first + // loop, plus horizontal and vertical each scale by sqrt(8) so together + // we've got an extra 1<<3, so 1<<17 total we need to remove. + // so we want to round that, which means adding 0.5 * 1<<17, + // aka 65536. Also, we'll end up with -128 to 127 that we want + // to encode as 0..255 by adding 128, so we'll add that before the shift + x0 += 65536 + (128<<17); + x1 += 65536 + (128<<17); + x2 += 65536 + (128<<17); + x3 += 65536 + (128<<17); + // tried computing the shifts into temps, or'ing the temps to see + // if any were out of range, but that was slower + o[0] = stbi__clamp((x0+t3) >> 17); + o[7] = stbi__clamp((x0-t3) >> 17); + o[1] = stbi__clamp((x1+t2) >> 17); + o[6] = stbi__clamp((x1-t2) >> 17); + o[2] = stbi__clamp((x2+t1) >> 17); + o[5] = stbi__clamp((x2-t1) >> 17); + o[3] = stbi__clamp((x3+t0) >> 17); + o[4] = stbi__clamp((x3-t0) >> 17); + } +} + +#ifdef STBI_SSE2 +// sse2 integer IDCT. not the fastest possible implementation but it +// produces bit-identical results to the generic C version so it's +// fully "transparent". +static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64]) +{ + // This is constructed to match our regular (generic) integer IDCT exactly. + __m128i row0, row1, row2, row3, row4, row5, row6, row7; + __m128i tmp; + + // dot product constant: even elems=x, odd elems=y + #define dct_const(x,y) _mm_setr_epi16((x),(y),(x),(y),(x),(y),(x),(y)) + + // out(0) = c0[even]*x + c0[odd]*y (c0, x, y 16-bit, out 32-bit) + // out(1) = c1[even]*x + c1[odd]*y + #define dct_rot(out0,out1, x,y,c0,c1) \ + __m128i c0##lo = _mm_unpacklo_epi16((x),(y)); \ + __m128i c0##hi = _mm_unpackhi_epi16((x),(y)); \ + __m128i out0##_l = _mm_madd_epi16(c0##lo, c0); \ + __m128i out0##_h = _mm_madd_epi16(c0##hi, c0); \ + __m128i out1##_l = _mm_madd_epi16(c0##lo, c1); \ + __m128i out1##_h = _mm_madd_epi16(c0##hi, c1) + + // out = in << 12 (in 16-bit, out 32-bit) + #define dct_widen(out, in) \ + __m128i out##_l = _mm_srai_epi32(_mm_unpacklo_epi16(_mm_setzero_si128(), (in)), 4); \ + __m128i out##_h = _mm_srai_epi32(_mm_unpackhi_epi16(_mm_setzero_si128(), (in)), 4) + + // wide add + #define dct_wadd(out, a, b) \ + __m128i out##_l = _mm_add_epi32(a##_l, b##_l); \ + __m128i out##_h = _mm_add_epi32(a##_h, b##_h) + + // wide sub + #define dct_wsub(out, a, b) \ + __m128i out##_l = _mm_sub_epi32(a##_l, b##_l); \ + __m128i out##_h = _mm_sub_epi32(a##_h, b##_h) + + // butterfly a/b, add bias, then shift by "s" and pack + #define dct_bfly32o(out0, out1, a,b,bias,s) \ + { \ + __m128i abiased_l = _mm_add_epi32(a##_l, bias); \ + __m128i abiased_h = _mm_add_epi32(a##_h, bias); \ + dct_wadd(sum, abiased, b); \ + dct_wsub(dif, abiased, b); \ + out0 = _mm_packs_epi32(_mm_srai_epi32(sum_l, s), _mm_srai_epi32(sum_h, s)); \ + out1 = _mm_packs_epi32(_mm_srai_epi32(dif_l, s), _mm_srai_epi32(dif_h, s)); \ + } + + // 8-bit interleave step (for transposes) + #define dct_interleave8(a, b) \ + tmp = a; \ + a = _mm_unpacklo_epi8(a, b); \ + b = _mm_unpackhi_epi8(tmp, b) + + // 16-bit interleave step (for transposes) + #define dct_interleave16(a, b) \ + tmp = a; \ + a = _mm_unpacklo_epi16(a, b); \ + b = _mm_unpackhi_epi16(tmp, b) + + #define dct_pass(bias,shift) \ + { \ + /* even part */ \ + dct_rot(t2e,t3e, row2,row6, rot0_0,rot0_1); \ + __m128i sum04 = _mm_add_epi16(row0, row4); \ + __m128i dif04 = _mm_sub_epi16(row0, row4); \ + dct_widen(t0e, sum04); \ + dct_widen(t1e, dif04); \ + dct_wadd(x0, t0e, t3e); \ + dct_wsub(x3, t0e, t3e); \ + dct_wadd(x1, t1e, t2e); \ + dct_wsub(x2, t1e, t2e); \ + /* odd part */ \ + dct_rot(y0o,y2o, row7,row3, rot2_0,rot2_1); \ + dct_rot(y1o,y3o, row5,row1, rot3_0,rot3_1); \ + __m128i sum17 = _mm_add_epi16(row1, row7); \ + __m128i sum35 = _mm_add_epi16(row3, row5); \ + dct_rot(y4o,y5o, sum17,sum35, rot1_0,rot1_1); \ + dct_wadd(x4, y0o, y4o); \ + dct_wadd(x5, y1o, y5o); \ + dct_wadd(x6, y2o, y5o); \ + dct_wadd(x7, y3o, y4o); \ + dct_bfly32o(row0,row7, x0,x7,bias,shift); \ + dct_bfly32o(row1,row6, x1,x6,bias,shift); \ + dct_bfly32o(row2,row5, x2,x5,bias,shift); \ + dct_bfly32o(row3,row4, x3,x4,bias,shift); \ + } + + __m128i rot0_0 = dct_const(stbi__f2f(0.5411961f), stbi__f2f(0.5411961f) + stbi__f2f(-1.847759065f)); + __m128i rot0_1 = dct_const(stbi__f2f(0.5411961f) + stbi__f2f( 0.765366865f), stbi__f2f(0.5411961f)); + __m128i rot1_0 = dct_const(stbi__f2f(1.175875602f) + stbi__f2f(-0.899976223f), stbi__f2f(1.175875602f)); + __m128i rot1_1 = dct_const(stbi__f2f(1.175875602f), stbi__f2f(1.175875602f) + stbi__f2f(-2.562915447f)); + __m128i rot2_0 = dct_const(stbi__f2f(-1.961570560f) + stbi__f2f( 0.298631336f), stbi__f2f(-1.961570560f)); + __m128i rot2_1 = dct_const(stbi__f2f(-1.961570560f), stbi__f2f(-1.961570560f) + stbi__f2f( 3.072711026f)); + __m128i rot3_0 = dct_const(stbi__f2f(-0.390180644f) + stbi__f2f( 2.053119869f), stbi__f2f(-0.390180644f)); + __m128i rot3_1 = dct_const(stbi__f2f(-0.390180644f), stbi__f2f(-0.390180644f) + stbi__f2f( 1.501321110f)); + + // rounding biases in column/row passes, see stbi__idct_block for explanation. + __m128i bias_0 = _mm_set1_epi32(512); + __m128i bias_1 = _mm_set1_epi32(65536 + (128<<17)); + + // load + row0 = _mm_load_si128((const __m128i *) (data + 0*8)); + row1 = _mm_load_si128((const __m128i *) (data + 1*8)); + row2 = _mm_load_si128((const __m128i *) (data + 2*8)); + row3 = _mm_load_si128((const __m128i *) (data + 3*8)); + row4 = _mm_load_si128((const __m128i *) (data + 4*8)); + row5 = _mm_load_si128((const __m128i *) (data + 5*8)); + row6 = _mm_load_si128((const __m128i *) (data + 6*8)); + row7 = _mm_load_si128((const __m128i *) (data + 7*8)); + + // column pass + dct_pass(bias_0, 10); + + { + // 16bit 8x8 transpose pass 1 + dct_interleave16(row0, row4); + dct_interleave16(row1, row5); + dct_interleave16(row2, row6); + dct_interleave16(row3, row7); + + // transpose pass 2 + dct_interleave16(row0, row2); + dct_interleave16(row1, row3); + dct_interleave16(row4, row6); + dct_interleave16(row5, row7); + + // transpose pass 3 + dct_interleave16(row0, row1); + dct_interleave16(row2, row3); + dct_interleave16(row4, row5); + dct_interleave16(row6, row7); + } + + // row pass + dct_pass(bias_1, 17); + + { + // pack + __m128i p0 = _mm_packus_epi16(row0, row1); // a0a1a2a3...a7b0b1b2b3...b7 + __m128i p1 = _mm_packus_epi16(row2, row3); + __m128i p2 = _mm_packus_epi16(row4, row5); + __m128i p3 = _mm_packus_epi16(row6, row7); + + // 8bit 8x8 transpose pass 1 + dct_interleave8(p0, p2); // a0e0a1e1... + dct_interleave8(p1, p3); // c0g0c1g1... + + // transpose pass 2 + dct_interleave8(p0, p1); // a0c0e0g0... + dct_interleave8(p2, p3); // b0d0f0h0... + + // transpose pass 3 + dct_interleave8(p0, p2); // a0b0c0d0... + dct_interleave8(p1, p3); // a4b4c4d4... + + // store + _mm_storel_epi64((__m128i *) out, p0); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p0, 0x4e)); out += out_stride; + _mm_storel_epi64((__m128i *) out, p2); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p2, 0x4e)); out += out_stride; + _mm_storel_epi64((__m128i *) out, p1); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p1, 0x4e)); out += out_stride; + _mm_storel_epi64((__m128i *) out, p3); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p3, 0x4e)); + } + +#undef dct_const +#undef dct_rot +#undef dct_widen +#undef dct_wadd +#undef dct_wsub +#undef dct_bfly32o +#undef dct_interleave8 +#undef dct_interleave16 +#undef dct_pass +} + +#endif // STBI_SSE2 + +#ifdef STBI_NEON + +// NEON integer IDCT. should produce bit-identical +// results to the generic C version. +static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64]) +{ + int16x8_t row0, row1, row2, row3, row4, row5, row6, row7; + + int16x4_t rot0_0 = vdup_n_s16(stbi__f2f(0.5411961f)); + int16x4_t rot0_1 = vdup_n_s16(stbi__f2f(-1.847759065f)); + int16x4_t rot0_2 = vdup_n_s16(stbi__f2f( 0.765366865f)); + int16x4_t rot1_0 = vdup_n_s16(stbi__f2f( 1.175875602f)); + int16x4_t rot1_1 = vdup_n_s16(stbi__f2f(-0.899976223f)); + int16x4_t rot1_2 = vdup_n_s16(stbi__f2f(-2.562915447f)); + int16x4_t rot2_0 = vdup_n_s16(stbi__f2f(-1.961570560f)); + int16x4_t rot2_1 = vdup_n_s16(stbi__f2f(-0.390180644f)); + int16x4_t rot3_0 = vdup_n_s16(stbi__f2f( 0.298631336f)); + int16x4_t rot3_1 = vdup_n_s16(stbi__f2f( 2.053119869f)); + int16x4_t rot3_2 = vdup_n_s16(stbi__f2f( 3.072711026f)); + int16x4_t rot3_3 = vdup_n_s16(stbi__f2f( 1.501321110f)); + +#define dct_long_mul(out, inq, coeff) \ + int32x4_t out##_l = vmull_s16(vget_low_s16(inq), coeff); \ + int32x4_t out##_h = vmull_s16(vget_high_s16(inq), coeff) + +#define dct_long_mac(out, acc, inq, coeff) \ + int32x4_t out##_l = vmlal_s16(acc##_l, vget_low_s16(inq), coeff); \ + int32x4_t out##_h = vmlal_s16(acc##_h, vget_high_s16(inq), coeff) + +#define dct_widen(out, inq) \ + int32x4_t out##_l = vshll_n_s16(vget_low_s16(inq), 12); \ + int32x4_t out##_h = vshll_n_s16(vget_high_s16(inq), 12) + +// wide add +#define dct_wadd(out, a, b) \ + int32x4_t out##_l = vaddq_s32(a##_l, b##_l); \ + int32x4_t out##_h = vaddq_s32(a##_h, b##_h) + +// wide sub +#define dct_wsub(out, a, b) \ + int32x4_t out##_l = vsubq_s32(a##_l, b##_l); \ + int32x4_t out##_h = vsubq_s32(a##_h, b##_h) + +// butterfly a/b, then shift using "shiftop" by "s" and pack +#define dct_bfly32o(out0,out1, a,b,shiftop,s) \ + { \ + dct_wadd(sum, a, b); \ + dct_wsub(dif, a, b); \ + out0 = vcombine_s16(shiftop(sum_l, s), shiftop(sum_h, s)); \ + out1 = vcombine_s16(shiftop(dif_l, s), shiftop(dif_h, s)); \ + } + +#define dct_pass(shiftop, shift) \ + { \ + /* even part */ \ + int16x8_t sum26 = vaddq_s16(row2, row6); \ + dct_long_mul(p1e, sum26, rot0_0); \ + dct_long_mac(t2e, p1e, row6, rot0_1); \ + dct_long_mac(t3e, p1e, row2, rot0_2); \ + int16x8_t sum04 = vaddq_s16(row0, row4); \ + int16x8_t dif04 = vsubq_s16(row0, row4); \ + dct_widen(t0e, sum04); \ + dct_widen(t1e, dif04); \ + dct_wadd(x0, t0e, t3e); \ + dct_wsub(x3, t0e, t3e); \ + dct_wadd(x1, t1e, t2e); \ + dct_wsub(x2, t1e, t2e); \ + /* odd part */ \ + int16x8_t sum15 = vaddq_s16(row1, row5); \ + int16x8_t sum17 = vaddq_s16(row1, row7); \ + int16x8_t sum35 = vaddq_s16(row3, row5); \ + int16x8_t sum37 = vaddq_s16(row3, row7); \ + int16x8_t sumodd = vaddq_s16(sum17, sum35); \ + dct_long_mul(p5o, sumodd, rot1_0); \ + dct_long_mac(p1o, p5o, sum17, rot1_1); \ + dct_long_mac(p2o, p5o, sum35, rot1_2); \ + dct_long_mul(p3o, sum37, rot2_0); \ + dct_long_mul(p4o, sum15, rot2_1); \ + dct_wadd(sump13o, p1o, p3o); \ + dct_wadd(sump24o, p2o, p4o); \ + dct_wadd(sump23o, p2o, p3o); \ + dct_wadd(sump14o, p1o, p4o); \ + dct_long_mac(x4, sump13o, row7, rot3_0); \ + dct_long_mac(x5, sump24o, row5, rot3_1); \ + dct_long_mac(x6, sump23o, row3, rot3_2); \ + dct_long_mac(x7, sump14o, row1, rot3_3); \ + dct_bfly32o(row0,row7, x0,x7,shiftop,shift); \ + dct_bfly32o(row1,row6, x1,x6,shiftop,shift); \ + dct_bfly32o(row2,row5, x2,x5,shiftop,shift); \ + dct_bfly32o(row3,row4, x3,x4,shiftop,shift); \ + } + + // load + row0 = vld1q_s16(data + 0*8); + row1 = vld1q_s16(data + 1*8); + row2 = vld1q_s16(data + 2*8); + row3 = vld1q_s16(data + 3*8); + row4 = vld1q_s16(data + 4*8); + row5 = vld1q_s16(data + 5*8); + row6 = vld1q_s16(data + 6*8); + row7 = vld1q_s16(data + 7*8); + + // add DC bias + row0 = vaddq_s16(row0, vsetq_lane_s16(1024, vdupq_n_s16(0), 0)); + + // column pass + dct_pass(vrshrn_n_s32, 10); + + // 16bit 8x8 transpose + { +// these three map to a single VTRN.16, VTRN.32, and VSWP, respectively. +// whether compilers actually get this is another story, sadly. +#define dct_trn16(x, y) { int16x8x2_t t = vtrnq_s16(x, y); x = t.val[0]; y = t.val[1]; } +#define dct_trn32(x, y) { int32x4x2_t t = vtrnq_s32(vreinterpretq_s32_s16(x), vreinterpretq_s32_s16(y)); x = vreinterpretq_s16_s32(t.val[0]); y = vreinterpretq_s16_s32(t.val[1]); } +#define dct_trn64(x, y) { int16x8_t x0 = x; int16x8_t y0 = y; x = vcombine_s16(vget_low_s16(x0), vget_low_s16(y0)); y = vcombine_s16(vget_high_s16(x0), vget_high_s16(y0)); } + + // pass 1 + dct_trn16(row0, row1); // a0b0a2b2a4b4a6b6 + dct_trn16(row2, row3); + dct_trn16(row4, row5); + dct_trn16(row6, row7); + + // pass 2 + dct_trn32(row0, row2); // a0b0c0d0a4b4c4d4 + dct_trn32(row1, row3); + dct_trn32(row4, row6); + dct_trn32(row5, row7); + + // pass 3 + dct_trn64(row0, row4); // a0b0c0d0e0f0g0h0 + dct_trn64(row1, row5); + dct_trn64(row2, row6); + dct_trn64(row3, row7); + +#undef dct_trn16 +#undef dct_trn32 +#undef dct_trn64 + } + + // row pass + // vrshrn_n_s32 only supports shifts up to 16, we need + // 17. so do a non-rounding shift of 16 first then follow + // up with a rounding shift by 1. + dct_pass(vshrn_n_s32, 16); + + { + // pack and round + uint8x8_t p0 = vqrshrun_n_s16(row0, 1); + uint8x8_t p1 = vqrshrun_n_s16(row1, 1); + uint8x8_t p2 = vqrshrun_n_s16(row2, 1); + uint8x8_t p3 = vqrshrun_n_s16(row3, 1); + uint8x8_t p4 = vqrshrun_n_s16(row4, 1); + uint8x8_t p5 = vqrshrun_n_s16(row5, 1); + uint8x8_t p6 = vqrshrun_n_s16(row6, 1); + uint8x8_t p7 = vqrshrun_n_s16(row7, 1); + + // again, these can translate into one instruction, but often don't. +#define dct_trn8_8(x, y) { uint8x8x2_t t = vtrn_u8(x, y); x = t.val[0]; y = t.val[1]; } +#define dct_trn8_16(x, y) { uint16x4x2_t t = vtrn_u16(vreinterpret_u16_u8(x), vreinterpret_u16_u8(y)); x = vreinterpret_u8_u16(t.val[0]); y = vreinterpret_u8_u16(t.val[1]); } +#define dct_trn8_32(x, y) { uint32x2x2_t t = vtrn_u32(vreinterpret_u32_u8(x), vreinterpret_u32_u8(y)); x = vreinterpret_u8_u32(t.val[0]); y = vreinterpret_u8_u32(t.val[1]); } + + // sadly can't use interleaved stores here since we only write + // 8 bytes to each scan line! + + // 8x8 8-bit transpose pass 1 + dct_trn8_8(p0, p1); + dct_trn8_8(p2, p3); + dct_trn8_8(p4, p5); + dct_trn8_8(p6, p7); + + // pass 2 + dct_trn8_16(p0, p2); + dct_trn8_16(p1, p3); + dct_trn8_16(p4, p6); + dct_trn8_16(p5, p7); + + // pass 3 + dct_trn8_32(p0, p4); + dct_trn8_32(p1, p5); + dct_trn8_32(p2, p6); + dct_trn8_32(p3, p7); + + // store + vst1_u8(out, p0); out += out_stride; + vst1_u8(out, p1); out += out_stride; + vst1_u8(out, p2); out += out_stride; + vst1_u8(out, p3); out += out_stride; + vst1_u8(out, p4); out += out_stride; + vst1_u8(out, p5); out += out_stride; + vst1_u8(out, p6); out += out_stride; + vst1_u8(out, p7); + +#undef dct_trn8_8 +#undef dct_trn8_16 +#undef dct_trn8_32 + } + +#undef dct_long_mul +#undef dct_long_mac +#undef dct_widen +#undef dct_wadd +#undef dct_wsub +#undef dct_bfly32o +#undef dct_pass +} + +#endif // STBI_NEON + +#define STBI__MARKER_none 0xff +// if there's a pending marker from the entropy stream, return that +// otherwise, fetch from the stream and get a marker. if there's no +// marker, return 0xff, which is never a valid marker value +static stbi_uc stbi__get_marker(stbi__jpeg *j) +{ + stbi_uc x; + if (j->marker != STBI__MARKER_none) { x = j->marker; j->marker = STBI__MARKER_none; return x; } + x = stbi__get8(j->s); + if (x != 0xff) return STBI__MARKER_none; + while (x == 0xff) + x = stbi__get8(j->s); // consume repeated 0xff fill bytes + return x; +} + +// in each scan, we'll have scan_n components, and the order +// of the components is specified by order[] +#define STBI__RESTART(x) ((x) >= 0xd0 && (x) <= 0xd7) + +// after a restart interval, stbi__jpeg_reset the entropy decoder and +// the dc prediction +static void stbi__jpeg_reset(stbi__jpeg *j) +{ + j->code_bits = 0; + j->code_buffer = 0; + j->nomore = 0; + j->img_comp[0].dc_pred = j->img_comp[1].dc_pred = j->img_comp[2].dc_pred = j->img_comp[3].dc_pred = 0; + j->marker = STBI__MARKER_none; + j->todo = j->restart_interval ? j->restart_interval : 0x7fffffff; + j->eob_run = 0; + // no more than 1<<31 MCUs if no restart_interal? that's plenty safe, + // since we don't even allow 1<<30 pixels +} + +static int stbi__parse_entropy_coded_data(stbi__jpeg *z) +{ + stbi__jpeg_reset(z); + if (!z->progressive) { + if (z->scan_n == 1) { + int i,j; + STBI_SIMD_ALIGN(short, data[64]); + int n = z->order[0]; + // non-interleaved data, we just need to process one block at a time, + // in trivial scanline order + // number of blocks to do just depends on how many actual "pixels" this + // component has, independent of interleaved MCU blocking and such + int w = (z->img_comp[n].x+7) >> 3; + int h = (z->img_comp[n].y+7) >> 3; + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) { + int ha = z->img_comp[n].ha; + if (!stbi__jpeg_decode_block(z, data, z->huff_dc+z->img_comp[n].hd, z->huff_ac+ha, z->fast_ac[ha], n, z->dequant[z->img_comp[n].tq])) return 0; + z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*j*8+i*8, z->img_comp[n].w2, data); + // every data block is an MCU, so countdown the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + // if it's NOT a restart, then just bail, so we get corrupt data + // rather than no data + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } else { // interleaved + int i,j,k,x,y; + STBI_SIMD_ALIGN(short, data[64]); + for (j=0; j < z->img_mcu_y; ++j) { + for (i=0; i < z->img_mcu_x; ++i) { + // scan an interleaved mcu... process scan_n components in order + for (k=0; k < z->scan_n; ++k) { + int n = z->order[k]; + // scan out an mcu's worth of this component; that's just determined + // by the basic H and V specified for the component + for (y=0; y < z->img_comp[n].v; ++y) { + for (x=0; x < z->img_comp[n].h; ++x) { + int x2 = (i*z->img_comp[n].h + x)*8; + int y2 = (j*z->img_comp[n].v + y)*8; + int ha = z->img_comp[n].ha; + if (!stbi__jpeg_decode_block(z, data, z->huff_dc+z->img_comp[n].hd, z->huff_ac+ha, z->fast_ac[ha], n, z->dequant[z->img_comp[n].tq])) return 0; + z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*y2+x2, z->img_comp[n].w2, data); + } + } + } + // after all interleaved components, that's an interleaved MCU, + // so now count down the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } + } else { + if (z->scan_n == 1) { + int i,j; + int n = z->order[0]; + // non-interleaved data, we just need to process one block at a time, + // in trivial scanline order + // number of blocks to do just depends on how many actual "pixels" this + // component has, independent of interleaved MCU blocking and such + int w = (z->img_comp[n].x+7) >> 3; + int h = (z->img_comp[n].y+7) >> 3; + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) { + short *data = z->img_comp[n].coeff + 64 * (i + j * z->img_comp[n].coeff_w); + if (z->spec_start == 0) { + if (!stbi__jpeg_decode_block_prog_dc(z, data, &z->huff_dc[z->img_comp[n].hd], n)) + return 0; + } else { + int ha = z->img_comp[n].ha; + if (!stbi__jpeg_decode_block_prog_ac(z, data, &z->huff_ac[ha], z->fast_ac[ha])) + return 0; + } + // every data block is an MCU, so countdown the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } else { // interleaved + int i,j,k,x,y; + for (j=0; j < z->img_mcu_y; ++j) { + for (i=0; i < z->img_mcu_x; ++i) { + // scan an interleaved mcu... process scan_n components in order + for (k=0; k < z->scan_n; ++k) { + int n = z->order[k]; + // scan out an mcu's worth of this component; that's just determined + // by the basic H and V specified for the component + for (y=0; y < z->img_comp[n].v; ++y) { + for (x=0; x < z->img_comp[n].h; ++x) { + int x2 = (i*z->img_comp[n].h + x); + int y2 = (j*z->img_comp[n].v + y); + short *data = z->img_comp[n].coeff + 64 * (x2 + y2 * z->img_comp[n].coeff_w); + if (!stbi__jpeg_decode_block_prog_dc(z, data, &z->huff_dc[z->img_comp[n].hd], n)) + return 0; + } + } + } + // after all interleaved components, that's an interleaved MCU, + // so now count down the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } + } +} + +static void stbi__jpeg_dequantize(short *data, stbi__uint16 *dequant) +{ + int i; + for (i=0; i < 64; ++i) + data[i] *= dequant[i]; +} + +static void stbi__jpeg_finish(stbi__jpeg *z) +{ + if (z->progressive) { + // dequantize and idct the data + int i,j,n; + for (n=0; n < z->s->img_n; ++n) { + int w = (z->img_comp[n].x+7) >> 3; + int h = (z->img_comp[n].y+7) >> 3; + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) { + short *data = z->img_comp[n].coeff + 64 * (i + j * z->img_comp[n].coeff_w); + stbi__jpeg_dequantize(data, z->dequant[z->img_comp[n].tq]); + z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*j*8+i*8, z->img_comp[n].w2, data); + } + } + } + } +} + +static int stbi__process_marker(stbi__jpeg *z, int m) +{ + int L; + switch (m) { + case STBI__MARKER_none: // no marker found + return stbi__err("expected marker","Corrupt JPEG"); + + case 0xDD: // DRI - specify restart interval + if (stbi__get16be(z->s) != 4) return stbi__err("bad DRI len","Corrupt JPEG"); + z->restart_interval = stbi__get16be(z->s); + return 1; + + case 0xDB: // DQT - define quantization table + L = stbi__get16be(z->s)-2; + while (L > 0) { + int q = stbi__get8(z->s); + int p = q >> 4, sixteen = (p != 0); + int t = q & 15,i; + if (p != 0 && p != 1) return stbi__err("bad DQT type","Corrupt JPEG"); + if (t > 3) return stbi__err("bad DQT table","Corrupt JPEG"); + + for (i=0; i < 64; ++i) + z->dequant[t][stbi__jpeg_dezigzag[i]] = (stbi__uint16)(sixteen ? stbi__get16be(z->s) : stbi__get8(z->s)); + L -= (sixteen ? 129 : 65); + } + return L==0; + + case 0xC4: // DHT - define huffman table + L = stbi__get16be(z->s)-2; + while (L > 0) { + stbi_uc *v; + int sizes[16],i,n=0; + int q = stbi__get8(z->s); + int tc = q >> 4; + int th = q & 15; + if (tc > 1 || th > 3) return stbi__err("bad DHT header","Corrupt JPEG"); + for (i=0; i < 16; ++i) { + sizes[i] = stbi__get8(z->s); + n += sizes[i]; + } + if(n > 256) return stbi__err("bad DHT header","Corrupt JPEG"); // Loop over i < n would write past end of values! + L -= 17; + if (tc == 0) { + if (!stbi__build_huffman(z->huff_dc+th, sizes)) return 0; + v = z->huff_dc[th].values; + } else { + if (!stbi__build_huffman(z->huff_ac+th, sizes)) return 0; + v = z->huff_ac[th].values; + } + for (i=0; i < n; ++i) + v[i] = stbi__get8(z->s); + if (tc != 0) + stbi__build_fast_ac(z->fast_ac[th], z->huff_ac + th); + L -= n; + } + return L==0; + } + + // check for comment block or APP blocks + if ((m >= 0xE0 && m <= 0xEF) || m == 0xFE) { + L = stbi__get16be(z->s); + if (L < 2) { + if (m == 0xFE) + return stbi__err("bad COM len","Corrupt JPEG"); + else + return stbi__err("bad APP len","Corrupt JPEG"); + } + L -= 2; + + if (m == 0xE0 && L >= 5) { // JFIF APP0 segment + static const unsigned char tag[5] = {'J','F','I','F','\0'}; + int ok = 1; + int i; + for (i=0; i < 5; ++i) + if (stbi__get8(z->s) != tag[i]) + ok = 0; + L -= 5; + if (ok) + z->jfif = 1; + } else if (m == 0xEE && L >= 12) { // Adobe APP14 segment + static const unsigned char tag[6] = {'A','d','o','b','e','\0'}; + int ok = 1; + int i; + for (i=0; i < 6; ++i) + if (stbi__get8(z->s) != tag[i]) + ok = 0; + L -= 6; + if (ok) { + stbi__get8(z->s); // version + stbi__get16be(z->s); // flags0 + stbi__get16be(z->s); // flags1 + z->app14_color_transform = stbi__get8(z->s); // color transform + L -= 6; + } + } + + stbi__skip(z->s, L); + return 1; + } + + return stbi__err("unknown marker","Corrupt JPEG"); +} + +// after we see SOS +static int stbi__process_scan_header(stbi__jpeg *z) +{ + int i; + int Ls = stbi__get16be(z->s); + z->scan_n = stbi__get8(z->s); + if (z->scan_n < 1 || z->scan_n > 4 || z->scan_n > (int) z->s->img_n) return stbi__err("bad SOS component count","Corrupt JPEG"); + if (Ls != 6+2*z->scan_n) return stbi__err("bad SOS len","Corrupt JPEG"); + for (i=0; i < z->scan_n; ++i) { + int id = stbi__get8(z->s), which; + int q = stbi__get8(z->s); + for (which = 0; which < z->s->img_n; ++which) + if (z->img_comp[which].id == id) + break; + if (which == z->s->img_n) return 0; // no match + z->img_comp[which].hd = q >> 4; if (z->img_comp[which].hd > 3) return stbi__err("bad DC huff","Corrupt JPEG"); + z->img_comp[which].ha = q & 15; if (z->img_comp[which].ha > 3) return stbi__err("bad AC huff","Corrupt JPEG"); + z->order[i] = which; + } + + { + int aa; + z->spec_start = stbi__get8(z->s); + z->spec_end = stbi__get8(z->s); // should be 63, but might be 0 + aa = stbi__get8(z->s); + z->succ_high = (aa >> 4); + z->succ_low = (aa & 15); + if (z->progressive) { + if (z->spec_start > 63 || z->spec_end > 63 || z->spec_start > z->spec_end || z->succ_high > 13 || z->succ_low > 13) + return stbi__err("bad SOS", "Corrupt JPEG"); + } else { + if (z->spec_start != 0) return stbi__err("bad SOS","Corrupt JPEG"); + if (z->succ_high != 0 || z->succ_low != 0) return stbi__err("bad SOS","Corrupt JPEG"); + z->spec_end = 63; + } + } + + return 1; +} + +static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why) +{ + int i; + for (i=0; i < ncomp; ++i) { + if (z->img_comp[i].raw_data) { + STBI_FREE(z->img_comp[i].raw_data); + z->img_comp[i].raw_data = NULL; + z->img_comp[i].data = NULL; + } + if (z->img_comp[i].raw_coeff) { + STBI_FREE(z->img_comp[i].raw_coeff); + z->img_comp[i].raw_coeff = 0; + z->img_comp[i].coeff = 0; + } + if (z->img_comp[i].linebuf) { + STBI_FREE(z->img_comp[i].linebuf); + z->img_comp[i].linebuf = NULL; + } + } + return why; +} + +static int stbi__process_frame_header(stbi__jpeg *z, int scan) +{ + stbi__context *s = z->s; + int Lf,p,i,q, h_max=1,v_max=1,c; + Lf = stbi__get16be(s); if (Lf < 11) return stbi__err("bad SOF len","Corrupt JPEG"); // JPEG + p = stbi__get8(s); if (p != 8) return stbi__err("only 8-bit","JPEG format not supported: 8-bit only"); // JPEG baseline + s->img_y = stbi__get16be(s); if (s->img_y == 0) return stbi__err("no header height", "JPEG format not supported: delayed height"); // Legal, but we don't handle it--but neither does IJG + s->img_x = stbi__get16be(s); if (s->img_x == 0) return stbi__err("0 width","Corrupt JPEG"); // JPEG requires + if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + if (s->img_x > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + c = stbi__get8(s); + if (c != 3 && c != 1 && c != 4) return stbi__err("bad component count","Corrupt JPEG"); + s->img_n = c; + for (i=0; i < c; ++i) { + z->img_comp[i].data = NULL; + z->img_comp[i].linebuf = NULL; + } + + if (Lf != 8+3*s->img_n) return stbi__err("bad SOF len","Corrupt JPEG"); + + z->rgb = 0; + for (i=0; i < s->img_n; ++i) { + static const unsigned char rgb[3] = { 'R', 'G', 'B' }; + z->img_comp[i].id = stbi__get8(s); + if (s->img_n == 3 && z->img_comp[i].id == rgb[i]) + ++z->rgb; + q = stbi__get8(s); + z->img_comp[i].h = (q >> 4); if (!z->img_comp[i].h || z->img_comp[i].h > 4) return stbi__err("bad H","Corrupt JPEG"); + z->img_comp[i].v = q & 15; if (!z->img_comp[i].v || z->img_comp[i].v > 4) return stbi__err("bad V","Corrupt JPEG"); + z->img_comp[i].tq = stbi__get8(s); if (z->img_comp[i].tq > 3) return stbi__err("bad TQ","Corrupt JPEG"); + } + + if (scan != STBI__SCAN_load) return 1; + + if (!stbi__mad3sizes_valid(s->img_x, s->img_y, s->img_n, 0)) return stbi__err("too large", "Image too large to decode"); + + for (i=0; i < s->img_n; ++i) { + if (z->img_comp[i].h > h_max) h_max = z->img_comp[i].h; + if (z->img_comp[i].v > v_max) v_max = z->img_comp[i].v; + } + + // check that plane subsampling factors are integer ratios; our resamplers can't deal with fractional ratios + // and I've never seen a non-corrupted JPEG file actually use them + for (i=0; i < s->img_n; ++i) { + if (h_max % z->img_comp[i].h != 0) return stbi__err("bad H","Corrupt JPEG"); + if (v_max % z->img_comp[i].v != 0) return stbi__err("bad V","Corrupt JPEG"); + } + + // compute interleaved mcu info + z->img_h_max = h_max; + z->img_v_max = v_max; + z->img_mcu_w = h_max * 8; + z->img_mcu_h = v_max * 8; + // these sizes can't be more than 17 bits + z->img_mcu_x = (s->img_x + z->img_mcu_w-1) / z->img_mcu_w; + z->img_mcu_y = (s->img_y + z->img_mcu_h-1) / z->img_mcu_h; + + for (i=0; i < s->img_n; ++i) { + // number of effective pixels (e.g. for non-interleaved MCU) + z->img_comp[i].x = (s->img_x * z->img_comp[i].h + h_max-1) / h_max; + z->img_comp[i].y = (s->img_y * z->img_comp[i].v + v_max-1) / v_max; + // to simplify generation, we'll allocate enough memory to decode + // the bogus oversized data from using interleaved MCUs and their + // big blocks (e.g. a 16x16 iMCU on an image of width 33); we won't + // discard the extra data until colorspace conversion + // + // img_mcu_x, img_mcu_y: <=17 bits; comp[i].h and .v are <=4 (checked earlier) + // so these muls can't overflow with 32-bit ints (which we require) + z->img_comp[i].w2 = z->img_mcu_x * z->img_comp[i].h * 8; + z->img_comp[i].h2 = z->img_mcu_y * z->img_comp[i].v * 8; + z->img_comp[i].coeff = 0; + z->img_comp[i].raw_coeff = 0; + z->img_comp[i].linebuf = NULL; + z->img_comp[i].raw_data = stbi__malloc_mad2(z->img_comp[i].w2, z->img_comp[i].h2, 15); + if (z->img_comp[i].raw_data == NULL) + return stbi__free_jpeg_components(z, i+1, stbi__err("outofmem", "Out of memory")); + // align blocks for idct using mmx/sse + z->img_comp[i].data = (stbi_uc*) (((size_t) z->img_comp[i].raw_data + 15) & ~15); + if (z->progressive) { + // w2, h2 are multiples of 8 (see above) + z->img_comp[i].coeff_w = z->img_comp[i].w2 / 8; + z->img_comp[i].coeff_h = z->img_comp[i].h2 / 8; + z->img_comp[i].raw_coeff = stbi__malloc_mad3(z->img_comp[i].w2, z->img_comp[i].h2, sizeof(short), 15); + if (z->img_comp[i].raw_coeff == NULL) + return stbi__free_jpeg_components(z, i+1, stbi__err("outofmem", "Out of memory")); + z->img_comp[i].coeff = (short*) (((size_t) z->img_comp[i].raw_coeff + 15) & ~15); + } + } + + return 1; +} + +// use comparisons since in some cases we handle more than one case (e.g. SOF) +#define stbi__DNL(x) ((x) == 0xdc) +#define stbi__SOI(x) ((x) == 0xd8) +#define stbi__EOI(x) ((x) == 0xd9) +#define stbi__SOF(x) ((x) == 0xc0 || (x) == 0xc1 || (x) == 0xc2) +#define stbi__SOS(x) ((x) == 0xda) + +#define stbi__SOF_progressive(x) ((x) == 0xc2) + +static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan) +{ + int m; + z->jfif = 0; + z->app14_color_transform = -1; // valid values are 0,1,2 + z->marker = STBI__MARKER_none; // initialize cached marker to empty + m = stbi__get_marker(z); + if (!stbi__SOI(m)) return stbi__err("no SOI","Corrupt JPEG"); + if (scan == STBI__SCAN_type) return 1; + m = stbi__get_marker(z); + while (!stbi__SOF(m)) { + if (!stbi__process_marker(z,m)) return 0; + m = stbi__get_marker(z); + while (m == STBI__MARKER_none) { + // some files have extra padding after their blocks, so ok, we'll scan + if (stbi__at_eof(z->s)) return stbi__err("no SOF", "Corrupt JPEG"); + m = stbi__get_marker(z); + } + } + z->progressive = stbi__SOF_progressive(m); + if (!stbi__process_frame_header(z, scan)) return 0; + return 1; +} + +static stbi_uc stbi__skip_jpeg_junk_at_end(stbi__jpeg *j) +{ + // some JPEGs have junk at end, skip over it but if we find what looks + // like a valid marker, resume there + while (!stbi__at_eof(j->s)) { + stbi_uc x = stbi__get8(j->s); + while (x == 0xff) { // might be a marker + if (stbi__at_eof(j->s)) return STBI__MARKER_none; + x = stbi__get8(j->s); + if (x != 0x00 && x != 0xff) { + // not a stuffed zero or lead-in to another marker, looks + // like an actual marker, return it + return x; + } + // stuffed zero has x=0 now which ends the loop, meaning we go + // back to regular scan loop. + // repeated 0xff keeps trying to read the next byte of the marker. + } + } + return STBI__MARKER_none; +} + +// decode image to YCbCr format +static int stbi__decode_jpeg_image(stbi__jpeg *j) +{ + int m; + for (m = 0; m < 4; m++) { + j->img_comp[m].raw_data = NULL; + j->img_comp[m].raw_coeff = NULL; + } + j->restart_interval = 0; + if (!stbi__decode_jpeg_header(j, STBI__SCAN_load)) return 0; + m = stbi__get_marker(j); + while (!stbi__EOI(m)) { + if (stbi__SOS(m)) { + if (!stbi__process_scan_header(j)) return 0; + if (!stbi__parse_entropy_coded_data(j)) return 0; + if (j->marker == STBI__MARKER_none ) { + j->marker = stbi__skip_jpeg_junk_at_end(j); + // if we reach eof without hitting a marker, stbi__get_marker() below will fail and we'll eventually return 0 + } + m = stbi__get_marker(j); + if (STBI__RESTART(m)) + m = stbi__get_marker(j); + } else if (stbi__DNL(m)) { + int Ld = stbi__get16be(j->s); + stbi__uint32 NL = stbi__get16be(j->s); + if (Ld != 4) return stbi__err("bad DNL len", "Corrupt JPEG"); + if (NL != j->s->img_y) return stbi__err("bad DNL height", "Corrupt JPEG"); + m = stbi__get_marker(j); + } else { + if (!stbi__process_marker(j, m)) return 1; + m = stbi__get_marker(j); + } + } + if (j->progressive) + stbi__jpeg_finish(j); + return 1; +} + +// static jfif-centered resampling (across block boundaries) + +typedef stbi_uc *(*resample_row_func)(stbi_uc *out, stbi_uc *in0, stbi_uc *in1, + int w, int hs); + +#define stbi__div4(x) ((stbi_uc) ((x) >> 2)) + +static stbi_uc *resample_row_1(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + STBI_NOTUSED(out); + STBI_NOTUSED(in_far); + STBI_NOTUSED(w); + STBI_NOTUSED(hs); + return in_near; +} + +static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate two samples vertically for every one in input + int i; + STBI_NOTUSED(hs); + for (i=0; i < w; ++i) + out[i] = stbi__div4(3*in_near[i] + in_far[i] + 2); + return out; +} + +static stbi_uc* stbi__resample_row_h_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate two samples horizontally for every one in input + int i; + stbi_uc *input = in_near; + + if (w == 1) { + // if only one sample, can't do any interpolation + out[0] = out[1] = input[0]; + return out; + } + + out[0] = input[0]; + out[1] = stbi__div4(input[0]*3 + input[1] + 2); + for (i=1; i < w-1; ++i) { + int n = 3*input[i]+2; + out[i*2+0] = stbi__div4(n+input[i-1]); + out[i*2+1] = stbi__div4(n+input[i+1]); + } + out[i*2+0] = stbi__div4(input[w-2]*3 + input[w-1] + 2); + out[i*2+1] = input[w-1]; + + STBI_NOTUSED(in_far); + STBI_NOTUSED(hs); + + return out; +} + +#define stbi__div16(x) ((stbi_uc) ((x) >> 4)) + +static stbi_uc *stbi__resample_row_hv_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate 2x2 samples for every one in input + int i,t0,t1; + if (w == 1) { + out[0] = out[1] = stbi__div4(3*in_near[0] + in_far[0] + 2); + return out; + } + + t1 = 3*in_near[0] + in_far[0]; + out[0] = stbi__div4(t1+2); + for (i=1; i < w; ++i) { + t0 = t1; + t1 = 3*in_near[i]+in_far[i]; + out[i*2-1] = stbi__div16(3*t0 + t1 + 8); + out[i*2 ] = stbi__div16(3*t1 + t0 + 8); + } + out[w*2-1] = stbi__div4(t1+2); + + STBI_NOTUSED(hs); + + return out; +} + +#if defined(STBI_SSE2) || defined(STBI_NEON) +static stbi_uc *stbi__resample_row_hv_2_simd(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate 2x2 samples for every one in input + int i=0,t0,t1; + + if (w == 1) { + out[0] = out[1] = stbi__div4(3*in_near[0] + in_far[0] + 2); + return out; + } + + t1 = 3*in_near[0] + in_far[0]; + // process groups of 8 pixels for as long as we can. + // note we can't handle the last pixel in a row in this loop + // because we need to handle the filter boundary conditions. + for (; i < ((w-1) & ~7); i += 8) { +#if defined(STBI_SSE2) + // load and perform the vertical filtering pass + // this uses 3*x + y = 4*x + (y - x) + __m128i zero = _mm_setzero_si128(); + __m128i farb = _mm_loadl_epi64((__m128i *) (in_far + i)); + __m128i nearb = _mm_loadl_epi64((__m128i *) (in_near + i)); + __m128i farw = _mm_unpacklo_epi8(farb, zero); + __m128i nearw = _mm_unpacklo_epi8(nearb, zero); + __m128i diff = _mm_sub_epi16(farw, nearw); + __m128i nears = _mm_slli_epi16(nearw, 2); + __m128i curr = _mm_add_epi16(nears, diff); // current row + + // horizontal filter works the same based on shifted vers of current + // row. "prev" is current row shifted right by 1 pixel; we need to + // insert the previous pixel value (from t1). + // "next" is current row shifted left by 1 pixel, with first pixel + // of next block of 8 pixels added in. + __m128i prv0 = _mm_slli_si128(curr, 2); + __m128i nxt0 = _mm_srli_si128(curr, 2); + __m128i prev = _mm_insert_epi16(prv0, t1, 0); + __m128i next = _mm_insert_epi16(nxt0, 3*in_near[i+8] + in_far[i+8], 7); + + // horizontal filter, polyphase implementation since it's convenient: + // even pixels = 3*cur + prev = cur*4 + (prev - cur) + // odd pixels = 3*cur + next = cur*4 + (next - cur) + // note the shared term. + __m128i bias = _mm_set1_epi16(8); + __m128i curs = _mm_slli_epi16(curr, 2); + __m128i prvd = _mm_sub_epi16(prev, curr); + __m128i nxtd = _mm_sub_epi16(next, curr); + __m128i curb = _mm_add_epi16(curs, bias); + __m128i even = _mm_add_epi16(prvd, curb); + __m128i odd = _mm_add_epi16(nxtd, curb); + + // interleave even and odd pixels, then undo scaling. + __m128i int0 = _mm_unpacklo_epi16(even, odd); + __m128i int1 = _mm_unpackhi_epi16(even, odd); + __m128i de0 = _mm_srli_epi16(int0, 4); + __m128i de1 = _mm_srli_epi16(int1, 4); + + // pack and write output + __m128i outv = _mm_packus_epi16(de0, de1); + _mm_storeu_si128((__m128i *) (out + i*2), outv); +#elif defined(STBI_NEON) + // load and perform the vertical filtering pass + // this uses 3*x + y = 4*x + (y - x) + uint8x8_t farb = vld1_u8(in_far + i); + uint8x8_t nearb = vld1_u8(in_near + i); + int16x8_t diff = vreinterpretq_s16_u16(vsubl_u8(farb, nearb)); + int16x8_t nears = vreinterpretq_s16_u16(vshll_n_u8(nearb, 2)); + int16x8_t curr = vaddq_s16(nears, diff); // current row + + // horizontal filter works the same based on shifted vers of current + // row. "prev" is current row shifted right by 1 pixel; we need to + // insert the previous pixel value (from t1). + // "next" is current row shifted left by 1 pixel, with first pixel + // of next block of 8 pixels added in. + int16x8_t prv0 = vextq_s16(curr, curr, 7); + int16x8_t nxt0 = vextq_s16(curr, curr, 1); + int16x8_t prev = vsetq_lane_s16(t1, prv0, 0); + int16x8_t next = vsetq_lane_s16(3*in_near[i+8] + in_far[i+8], nxt0, 7); + + // horizontal filter, polyphase implementation since it's convenient: + // even pixels = 3*cur + prev = cur*4 + (prev - cur) + // odd pixels = 3*cur + next = cur*4 + (next - cur) + // note the shared term. + int16x8_t curs = vshlq_n_s16(curr, 2); + int16x8_t prvd = vsubq_s16(prev, curr); + int16x8_t nxtd = vsubq_s16(next, curr); + int16x8_t even = vaddq_s16(curs, prvd); + int16x8_t odd = vaddq_s16(curs, nxtd); + + // undo scaling and round, then store with even/odd phases interleaved + uint8x8x2_t o; + o.val[0] = vqrshrun_n_s16(even, 4); + o.val[1] = vqrshrun_n_s16(odd, 4); + vst2_u8(out + i*2, o); +#endif + + // "previous" value for next iter + t1 = 3*in_near[i+7] + in_far[i+7]; + } + + t0 = t1; + t1 = 3*in_near[i] + in_far[i]; + out[i*2] = stbi__div16(3*t1 + t0 + 8); + + for (++i; i < w; ++i) { + t0 = t1; + t1 = 3*in_near[i]+in_far[i]; + out[i*2-1] = stbi__div16(3*t0 + t1 + 8); + out[i*2 ] = stbi__div16(3*t1 + t0 + 8); + } + out[w*2-1] = stbi__div4(t1+2); + + STBI_NOTUSED(hs); + + return out; +} +#endif + +static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // resample with nearest-neighbor + int i,j; + STBI_NOTUSED(in_far); + for (i=0; i < w; ++i) + for (j=0; j < hs; ++j) + out[i*hs+j] = in_near[i]; + return out; +} + +// this is a reduced-precision calculation of YCbCr-to-RGB introduced +// to make sure the code produces the same results in both SIMD and scalar +#define stbi__float2fixed(x) (((int) ((x) * 4096.0f + 0.5f)) << 8) +static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step) +{ + int i; + for (i=0; i < count; ++i) { + int y_fixed = (y[i] << 20) + (1<<19); // rounding + int r,g,b; + int cr = pcr[i] - 128; + int cb = pcb[i] - 128; + r = y_fixed + cr* stbi__float2fixed(1.40200f); + g = y_fixed + (cr*-stbi__float2fixed(0.71414f)) + ((cb*-stbi__float2fixed(0.34414f)) & 0xffff0000); + b = y_fixed + cb* stbi__float2fixed(1.77200f); + r >>= 20; + g >>= 20; + b >>= 20; + if ((unsigned) r > 255) { if (r < 0) r = 0; else r = 255; } + if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; } + if ((unsigned) b > 255) { if (b < 0) b = 0; else b = 255; } + out[0] = (stbi_uc)r; + out[1] = (stbi_uc)g; + out[2] = (stbi_uc)b; + out[3] = 255; + out += step; + } +} + +#if defined(STBI_SSE2) || defined(STBI_NEON) +static void stbi__YCbCr_to_RGB_simd(stbi_uc *out, stbi_uc const *y, stbi_uc const *pcb, stbi_uc const *pcr, int count, int step) +{ + int i = 0; + +#ifdef STBI_SSE2 + // step == 3 is pretty ugly on the final interleave, and i'm not convinced + // it's useful in practice (you wouldn't use it for textures, for example). + // so just accelerate step == 4 case. + if (step == 4) { + // this is a fairly straightforward implementation and not super-optimized. + __m128i signflip = _mm_set1_epi8(-0x80); + __m128i cr_const0 = _mm_set1_epi16( (short) ( 1.40200f*4096.0f+0.5f)); + __m128i cr_const1 = _mm_set1_epi16( - (short) ( 0.71414f*4096.0f+0.5f)); + __m128i cb_const0 = _mm_set1_epi16( - (short) ( 0.34414f*4096.0f+0.5f)); + __m128i cb_const1 = _mm_set1_epi16( (short) ( 1.77200f*4096.0f+0.5f)); + __m128i y_bias = _mm_set1_epi8((char) (unsigned char) 128); + __m128i xw = _mm_set1_epi16(255); // alpha channel + + for (; i+7 < count; i += 8) { + // load + __m128i y_bytes = _mm_loadl_epi64((__m128i *) (y+i)); + __m128i cr_bytes = _mm_loadl_epi64((__m128i *) (pcr+i)); + __m128i cb_bytes = _mm_loadl_epi64((__m128i *) (pcb+i)); + __m128i cr_biased = _mm_xor_si128(cr_bytes, signflip); // -128 + __m128i cb_biased = _mm_xor_si128(cb_bytes, signflip); // -128 + + // unpack to short (and left-shift cr, cb by 8) + __m128i yw = _mm_unpacklo_epi8(y_bias, y_bytes); + __m128i crw = _mm_unpacklo_epi8(_mm_setzero_si128(), cr_biased); + __m128i cbw = _mm_unpacklo_epi8(_mm_setzero_si128(), cb_biased); + + // color transform + __m128i yws = _mm_srli_epi16(yw, 4); + __m128i cr0 = _mm_mulhi_epi16(cr_const0, crw); + __m128i cb0 = _mm_mulhi_epi16(cb_const0, cbw); + __m128i cb1 = _mm_mulhi_epi16(cbw, cb_const1); + __m128i cr1 = _mm_mulhi_epi16(crw, cr_const1); + __m128i rws = _mm_add_epi16(cr0, yws); + __m128i gwt = _mm_add_epi16(cb0, yws); + __m128i bws = _mm_add_epi16(yws, cb1); + __m128i gws = _mm_add_epi16(gwt, cr1); + + // descale + __m128i rw = _mm_srai_epi16(rws, 4); + __m128i bw = _mm_srai_epi16(bws, 4); + __m128i gw = _mm_srai_epi16(gws, 4); + + // back to byte, set up for transpose + __m128i brb = _mm_packus_epi16(rw, bw); + __m128i gxb = _mm_packus_epi16(gw, xw); + + // transpose to interleave channels + __m128i t0 = _mm_unpacklo_epi8(brb, gxb); + __m128i t1 = _mm_unpackhi_epi8(brb, gxb); + __m128i o0 = _mm_unpacklo_epi16(t0, t1); + __m128i o1 = _mm_unpackhi_epi16(t0, t1); + + // store + _mm_storeu_si128((__m128i *) (out + 0), o0); + _mm_storeu_si128((__m128i *) (out + 16), o1); + out += 32; + } + } +#endif + +#ifdef STBI_NEON + // in this version, step=3 support would be easy to add. but is there demand? + if (step == 4) { + // this is a fairly straightforward implementation and not super-optimized. + uint8x8_t signflip = vdup_n_u8(0x80); + int16x8_t cr_const0 = vdupq_n_s16( (short) ( 1.40200f*4096.0f+0.5f)); + int16x8_t cr_const1 = vdupq_n_s16( - (short) ( 0.71414f*4096.0f+0.5f)); + int16x8_t cb_const0 = vdupq_n_s16( - (short) ( 0.34414f*4096.0f+0.5f)); + int16x8_t cb_const1 = vdupq_n_s16( (short) ( 1.77200f*4096.0f+0.5f)); + + for (; i+7 < count; i += 8) { + // load + uint8x8_t y_bytes = vld1_u8(y + i); + uint8x8_t cr_bytes = vld1_u8(pcr + i); + uint8x8_t cb_bytes = vld1_u8(pcb + i); + int8x8_t cr_biased = vreinterpret_s8_u8(vsub_u8(cr_bytes, signflip)); + int8x8_t cb_biased = vreinterpret_s8_u8(vsub_u8(cb_bytes, signflip)); + + // expand to s16 + int16x8_t yws = vreinterpretq_s16_u16(vshll_n_u8(y_bytes, 4)); + int16x8_t crw = vshll_n_s8(cr_biased, 7); + int16x8_t cbw = vshll_n_s8(cb_biased, 7); + + // color transform + int16x8_t cr0 = vqdmulhq_s16(crw, cr_const0); + int16x8_t cb0 = vqdmulhq_s16(cbw, cb_const0); + int16x8_t cr1 = vqdmulhq_s16(crw, cr_const1); + int16x8_t cb1 = vqdmulhq_s16(cbw, cb_const1); + int16x8_t rws = vaddq_s16(yws, cr0); + int16x8_t gws = vaddq_s16(vaddq_s16(yws, cb0), cr1); + int16x8_t bws = vaddq_s16(yws, cb1); + + // undo scaling, round, convert to byte + uint8x8x4_t o; + o.val[0] = vqrshrun_n_s16(rws, 4); + o.val[1] = vqrshrun_n_s16(gws, 4); + o.val[2] = vqrshrun_n_s16(bws, 4); + o.val[3] = vdup_n_u8(255); + + // store, interleaving r/g/b/a + vst4_u8(out, o); + out += 8*4; + } + } +#endif + + for (; i < count; ++i) { + int y_fixed = (y[i] << 20) + (1<<19); // rounding + int r,g,b; + int cr = pcr[i] - 128; + int cb = pcb[i] - 128; + r = y_fixed + cr* stbi__float2fixed(1.40200f); + g = y_fixed + cr*-stbi__float2fixed(0.71414f) + ((cb*-stbi__float2fixed(0.34414f)) & 0xffff0000); + b = y_fixed + cb* stbi__float2fixed(1.77200f); + r >>= 20; + g >>= 20; + b >>= 20; + if ((unsigned) r > 255) { if (r < 0) r = 0; else r = 255; } + if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; } + if ((unsigned) b > 255) { if (b < 0) b = 0; else b = 255; } + out[0] = (stbi_uc)r; + out[1] = (stbi_uc)g; + out[2] = (stbi_uc)b; + out[3] = 255; + out += step; + } +} +#endif + +// set up the kernels +static void stbi__setup_jpeg(stbi__jpeg *j) +{ + j->idct_block_kernel = stbi__idct_block; + j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_row; + j->resample_row_hv_2_kernel = stbi__resample_row_hv_2; + +#ifdef STBI_SSE2 + if (stbi__sse2_available()) { + j->idct_block_kernel = stbi__idct_simd; + j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd; + j->resample_row_hv_2_kernel = stbi__resample_row_hv_2_simd; + } +#endif + +#ifdef STBI_NEON + j->idct_block_kernel = stbi__idct_simd; + j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd; + j->resample_row_hv_2_kernel = stbi__resample_row_hv_2_simd; +#endif +} + +// clean up the temporary component buffers +static void stbi__cleanup_jpeg(stbi__jpeg *j) +{ + stbi__free_jpeg_components(j, j->s->img_n, 0); +} + +typedef struct +{ + resample_row_func resample; + stbi_uc *line0,*line1; + int hs,vs; // expansion factor in each axis + int w_lores; // horizontal pixels pre-expansion + int ystep; // how far through vertical expansion we are + int ypos; // which pre-expansion row we're on +} stbi__resample; + +// fast 0..255 * 0..255 => 0..255 rounded multiplication +static stbi_uc stbi__blinn_8x8(stbi_uc x, stbi_uc y) +{ + unsigned int t = x*y + 128; + return (stbi_uc) ((t + (t >>8)) >> 8); +} + +static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp, int req_comp) +{ + int n, decode_n, is_rgb; + z->s->img_n = 0; // make stbi__cleanup_jpeg safe + + // validate req_comp + if (req_comp < 0 || req_comp > 4) return stbi__errpuc("bad req_comp", "Internal error"); + + // load a jpeg image from whichever source, but leave in YCbCr format + if (!stbi__decode_jpeg_image(z)) { stbi__cleanup_jpeg(z); return NULL; } + + // determine actual number of components to generate + n = req_comp ? req_comp : z->s->img_n >= 3 ? 3 : 1; + + is_rgb = z->s->img_n == 3 && (z->rgb == 3 || (z->app14_color_transform == 0 && !z->jfif)); + + if (z->s->img_n == 3 && n < 3 && !is_rgb) + decode_n = 1; + else + decode_n = z->s->img_n; + + // nothing to do if no components requested; check this now to avoid + // accessing uninitialized coutput[0] later + if (decode_n <= 0) { stbi__cleanup_jpeg(z); return NULL; } + + // resample and color-convert + { + int k; + unsigned int i,j; + stbi_uc *output; + stbi_uc *coutput[4] = { NULL, NULL, NULL, NULL }; + + stbi__resample res_comp[4]; + + for (k=0; k < decode_n; ++k) { + stbi__resample *r = &res_comp[k]; + + // allocate line buffer big enough for upsampling off the edges + // with upsample factor of 4 + z->img_comp[k].linebuf = (stbi_uc *) stbi__malloc(z->s->img_x + 3); + if (!z->img_comp[k].linebuf) { stbi__cleanup_jpeg(z); return stbi__errpuc("outofmem", "Out of memory"); } + + r->hs = z->img_h_max / z->img_comp[k].h; + r->vs = z->img_v_max / z->img_comp[k].v; + r->ystep = r->vs >> 1; + r->w_lores = (z->s->img_x + r->hs-1) / r->hs; + r->ypos = 0; + r->line0 = r->line1 = z->img_comp[k].data; + + if (r->hs == 1 && r->vs == 1) r->resample = resample_row_1; + else if (r->hs == 1 && r->vs == 2) r->resample = stbi__resample_row_v_2; + else if (r->hs == 2 && r->vs == 1) r->resample = stbi__resample_row_h_2; + else if (r->hs == 2 && r->vs == 2) r->resample = z->resample_row_hv_2_kernel; + else r->resample = stbi__resample_row_generic; + } + + // can't error after this so, this is safe + output = (stbi_uc *) stbi__malloc_mad3(n, z->s->img_x, z->s->img_y, 1); + if (!output) { stbi__cleanup_jpeg(z); return stbi__errpuc("outofmem", "Out of memory"); } + + // now go ahead and resample + for (j=0; j < z->s->img_y; ++j) { + stbi_uc *out = output + n * z->s->img_x * j; + for (k=0; k < decode_n; ++k) { + stbi__resample *r = &res_comp[k]; + int y_bot = r->ystep >= (r->vs >> 1); + coutput[k] = r->resample(z->img_comp[k].linebuf, + y_bot ? r->line1 : r->line0, + y_bot ? r->line0 : r->line1, + r->w_lores, r->hs); + if (++r->ystep >= r->vs) { + r->ystep = 0; + r->line0 = r->line1; + if (++r->ypos < z->img_comp[k].y) + r->line1 += z->img_comp[k].w2; + } + } + if (n >= 3) { + stbi_uc *y = coutput[0]; + if (z->s->img_n == 3) { + if (is_rgb) { + for (i=0; i < z->s->img_x; ++i) { + out[0] = y[i]; + out[1] = coutput[1][i]; + out[2] = coutput[2][i]; + out[3] = 255; + out += n; + } + } else { + z->YCbCr_to_RGB_kernel(out, y, coutput[1], coutput[2], z->s->img_x, n); + } + } else if (z->s->img_n == 4) { + if (z->app14_color_transform == 0) { // CMYK + for (i=0; i < z->s->img_x; ++i) { + stbi_uc m = coutput[3][i]; + out[0] = stbi__blinn_8x8(coutput[0][i], m); + out[1] = stbi__blinn_8x8(coutput[1][i], m); + out[2] = stbi__blinn_8x8(coutput[2][i], m); + out[3] = 255; + out += n; + } + } else if (z->app14_color_transform == 2) { // YCCK + z->YCbCr_to_RGB_kernel(out, y, coutput[1], coutput[2], z->s->img_x, n); + for (i=0; i < z->s->img_x; ++i) { + stbi_uc m = coutput[3][i]; + out[0] = stbi__blinn_8x8(255 - out[0], m); + out[1] = stbi__blinn_8x8(255 - out[1], m); + out[2] = stbi__blinn_8x8(255 - out[2], m); + out += n; + } + } else { // YCbCr + alpha? Ignore the fourth channel for now + z->YCbCr_to_RGB_kernel(out, y, coutput[1], coutput[2], z->s->img_x, n); + } + } else + for (i=0; i < z->s->img_x; ++i) { + out[0] = out[1] = out[2] = y[i]; + out[3] = 255; // not used if n==3 + out += n; + } + } else { + if (is_rgb) { + if (n == 1) + for (i=0; i < z->s->img_x; ++i) + *out++ = stbi__compute_y(coutput[0][i], coutput[1][i], coutput[2][i]); + else { + for (i=0; i < z->s->img_x; ++i, out += 2) { + out[0] = stbi__compute_y(coutput[0][i], coutput[1][i], coutput[2][i]); + out[1] = 255; + } + } + } else if (z->s->img_n == 4 && z->app14_color_transform == 0) { + for (i=0; i < z->s->img_x; ++i) { + stbi_uc m = coutput[3][i]; + stbi_uc r = stbi__blinn_8x8(coutput[0][i], m); + stbi_uc g = stbi__blinn_8x8(coutput[1][i], m); + stbi_uc b = stbi__blinn_8x8(coutput[2][i], m); + out[0] = stbi__compute_y(r, g, b); + out[1] = 255; + out += n; + } + } else if (z->s->img_n == 4 && z->app14_color_transform == 2) { + for (i=0; i < z->s->img_x; ++i) { + out[0] = stbi__blinn_8x8(255 - coutput[0][i], coutput[3][i]); + out[1] = 255; + out += n; + } + } else { + stbi_uc *y = coutput[0]; + if (n == 1) + for (i=0; i < z->s->img_x; ++i) out[i] = y[i]; + else + for (i=0; i < z->s->img_x; ++i) { *out++ = y[i]; *out++ = 255; } + } + } + } + stbi__cleanup_jpeg(z); + *out_x = z->s->img_x; + *out_y = z->s->img_y; + if (comp) *comp = z->s->img_n >= 3 ? 3 : 1; // report original components, not output + return output; + } +} + +static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + unsigned char* result; + stbi__jpeg* j = (stbi__jpeg*) stbi__malloc(sizeof(stbi__jpeg)); + if (!j) return stbi__errpuc("outofmem", "Out of memory"); + memset(j, 0, sizeof(stbi__jpeg)); + STBI_NOTUSED(ri); + j->s = s; + stbi__setup_jpeg(j); + result = load_jpeg_image(j, x,y,comp,req_comp); + STBI_FREE(j); + return result; +} + +static int stbi__jpeg_test(stbi__context *s) +{ + int r; + stbi__jpeg* j = (stbi__jpeg*)stbi__malloc(sizeof(stbi__jpeg)); + if (!j) return stbi__err("outofmem", "Out of memory"); + memset(j, 0, sizeof(stbi__jpeg)); + j->s = s; + stbi__setup_jpeg(j); + r = stbi__decode_jpeg_header(j, STBI__SCAN_type); + stbi__rewind(s); + STBI_FREE(j); + return r; +} + +static int stbi__jpeg_info_raw(stbi__jpeg *j, int *x, int *y, int *comp) +{ + if (!stbi__decode_jpeg_header(j, STBI__SCAN_header)) { + stbi__rewind( j->s ); + return 0; + } + if (x) *x = j->s->img_x; + if (y) *y = j->s->img_y; + if (comp) *comp = j->s->img_n >= 3 ? 3 : 1; + return 1; +} + +static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp) +{ + int result; + stbi__jpeg* j = (stbi__jpeg*) (stbi__malloc(sizeof(stbi__jpeg))); + if (!j) return stbi__err("outofmem", "Out of memory"); + memset(j, 0, sizeof(stbi__jpeg)); + j->s = s; + result = stbi__jpeg_info_raw(j, x, y, comp); + STBI_FREE(j); + return result; +} +#endif + +// public domain zlib decode v0.2 Sean Barrett 2006-11-18 +// simple implementation +// - all input must be provided in an upfront buffer +// - all output is written to a single output buffer (can malloc/realloc) +// performance +// - fast huffman + +#ifndef STBI_NO_ZLIB + +// fast-way is faster to check than jpeg huffman, but slow way is slower +#define STBI__ZFAST_BITS 9 // accelerate all cases in default tables +#define STBI__ZFAST_MASK ((1 << STBI__ZFAST_BITS) - 1) +#define STBI__ZNSYMS 288 // number of symbols in literal/length alphabet + +// zlib-style huffman encoding +// (jpegs packs from left, zlib from right, so can't share code) +typedef struct +{ + stbi__uint16 fast[1 << STBI__ZFAST_BITS]; + stbi__uint16 firstcode[16]; + int maxcode[17]; + stbi__uint16 firstsymbol[16]; + stbi_uc size[STBI__ZNSYMS]; + stbi__uint16 value[STBI__ZNSYMS]; +} stbi__zhuffman; + +stbi_inline static int stbi__bitreverse16(int n) +{ + n = ((n & 0xAAAA) >> 1) | ((n & 0x5555) << 1); + n = ((n & 0xCCCC) >> 2) | ((n & 0x3333) << 2); + n = ((n & 0xF0F0) >> 4) | ((n & 0x0F0F) << 4); + n = ((n & 0xFF00) >> 8) | ((n & 0x00FF) << 8); + return n; +} + +stbi_inline static int stbi__bit_reverse(int v, int bits) +{ + STBI_ASSERT(bits <= 16); + // to bit reverse n bits, reverse 16 and shift + // e.g. 11 bits, bit reverse and shift away 5 + return stbi__bitreverse16(v) >> (16-bits); +} + +static int stbi__zbuild_huffman(stbi__zhuffman *z, const stbi_uc *sizelist, int num) +{ + int i,k=0; + int code, next_code[16], sizes[17]; + + // DEFLATE spec for generating codes + memset(sizes, 0, sizeof(sizes)); + memset(z->fast, 0, sizeof(z->fast)); + for (i=0; i < num; ++i) + ++sizes[sizelist[i]]; + sizes[0] = 0; + for (i=1; i < 16; ++i) + if (sizes[i] > (1 << i)) + return stbi__err("bad sizes", "Corrupt PNG"); + code = 0; + for (i=1; i < 16; ++i) { + next_code[i] = code; + z->firstcode[i] = (stbi__uint16) code; + z->firstsymbol[i] = (stbi__uint16) k; + code = (code + sizes[i]); + if (sizes[i]) + if (code-1 >= (1 << i)) return stbi__err("bad codelengths","Corrupt PNG"); + z->maxcode[i] = code << (16-i); // preshift for inner loop + code <<= 1; + k += sizes[i]; + } + z->maxcode[16] = 0x10000; // sentinel + for (i=0; i < num; ++i) { + int s = sizelist[i]; + if (s) { + int c = next_code[s] - z->firstcode[s] + z->firstsymbol[s]; + stbi__uint16 fastv = (stbi__uint16) ((s << 9) | i); + z->size [c] = (stbi_uc ) s; + z->value[c] = (stbi__uint16) i; + if (s <= STBI__ZFAST_BITS) { + int j = stbi__bit_reverse(next_code[s],s); + while (j < (1 << STBI__ZFAST_BITS)) { + z->fast[j] = fastv; + j += (1 << s); + } + } + ++next_code[s]; + } + } + return 1; +} + +// zlib-from-memory implementation for PNG reading +// because PNG allows splitting the zlib stream arbitrarily, +// and it's annoying structurally to have PNG call ZLIB call PNG, +// we require PNG read all the IDATs and combine them into a single +// memory buffer + +typedef struct +{ + stbi_uc *zbuffer, *zbuffer_end; + int num_bits; + int hit_zeof_once; + stbi__uint32 code_buffer; + + char *zout; + char *zout_start; + char *zout_end; + int z_expandable; + + stbi__zhuffman z_length, z_distance; +} stbi__zbuf; + +stbi_inline static int stbi__zeof(stbi__zbuf *z) +{ + return (z->zbuffer >= z->zbuffer_end); +} + +stbi_inline static stbi_uc stbi__zget8(stbi__zbuf *z) +{ + return stbi__zeof(z) ? 0 : *z->zbuffer++; +} + +static void stbi__fill_bits(stbi__zbuf *z) +{ + do { + if (z->code_buffer >= (1U << z->num_bits)) { + z->zbuffer = z->zbuffer_end; /* treat this as EOF so we fail. */ + return; + } + z->code_buffer |= (unsigned int) stbi__zget8(z) << z->num_bits; + z->num_bits += 8; + } while (z->num_bits <= 24); +} + +stbi_inline static unsigned int stbi__zreceive(stbi__zbuf *z, int n) +{ + unsigned int k; + if (z->num_bits < n) stbi__fill_bits(z); + k = z->code_buffer & ((1 << n) - 1); + z->code_buffer >>= n; + z->num_bits -= n; + return k; +} + +static int stbi__zhuffman_decode_slowpath(stbi__zbuf *a, stbi__zhuffman *z) +{ + int b,s,k; + // not resolved by fast table, so compute it the slow way + // use jpeg approach, which requires MSbits at top + k = stbi__bit_reverse(a->code_buffer, 16); + for (s=STBI__ZFAST_BITS+1; ; ++s) + if (k < z->maxcode[s]) + break; + if (s >= 16) return -1; // invalid code! + // code size is s, so: + b = (k >> (16-s)) - z->firstcode[s] + z->firstsymbol[s]; + if (b >= STBI__ZNSYMS) return -1; // some data was corrupt somewhere! + if (z->size[b] != s) return -1; // was originally an assert, but report failure instead. + a->code_buffer >>= s; + a->num_bits -= s; + return z->value[b]; +} + +stbi_inline static int stbi__zhuffman_decode(stbi__zbuf *a, stbi__zhuffman *z) +{ + int b,s; + if (a->num_bits < 16) { + if (stbi__zeof(a)) { + if (!a->hit_zeof_once) { + // This is the first time we hit eof, insert 16 extra padding btis + // to allow us to keep going; if we actually consume any of them + // though, that is invalid data. This is caught later. + a->hit_zeof_once = 1; + a->num_bits += 16; // add 16 implicit zero bits + } else { + // We already inserted our extra 16 padding bits and are again + // out, this stream is actually prematurely terminated. + return -1; + } + } else { + stbi__fill_bits(a); + } + } + b = z->fast[a->code_buffer & STBI__ZFAST_MASK]; + if (b) { + s = b >> 9; + a->code_buffer >>= s; + a->num_bits -= s; + return b & 511; + } + return stbi__zhuffman_decode_slowpath(a, z); +} + +static int stbi__zexpand(stbi__zbuf *z, char *zout, int n) // need to make room for n bytes +{ + char *q; + unsigned int cur, limit, old_limit; + z->zout = zout; + if (!z->z_expandable) return stbi__err("output buffer limit","Corrupt PNG"); + cur = (unsigned int) (z->zout - z->zout_start); + limit = old_limit = (unsigned) (z->zout_end - z->zout_start); + if (UINT_MAX - cur < (unsigned) n) return stbi__err("outofmem", "Out of memory"); + while (cur + n > limit) { + if(limit > UINT_MAX / 2) return stbi__err("outofmem", "Out of memory"); + limit *= 2; + } + q = (char *) STBI_REALLOC_SIZED(z->zout_start, old_limit, limit); + STBI_NOTUSED(old_limit); + if (q == NULL) return stbi__err("outofmem", "Out of memory"); + z->zout_start = q; + z->zout = q + cur; + z->zout_end = q + limit; + return 1; +} + +static const int stbi__zlength_base[31] = { + 3,4,5,6,7,8,9,10,11,13, + 15,17,19,23,27,31,35,43,51,59, + 67,83,99,115,131,163,195,227,258,0,0 }; + +static const int stbi__zlength_extra[31]= +{ 0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0 }; + +static const int stbi__zdist_base[32] = { 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193, +257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0}; + +static const int stbi__zdist_extra[32] = +{ 0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13}; + +static int stbi__parse_huffman_block(stbi__zbuf *a) +{ + char *zout = a->zout; + for(;;) { + int z = stbi__zhuffman_decode(a, &a->z_length); + if (z < 256) { + if (z < 0) return stbi__err("bad huffman code","Corrupt PNG"); // error in huffman codes + if (zout >= a->zout_end) { + if (!stbi__zexpand(a, zout, 1)) return 0; + zout = a->zout; + } + *zout++ = (char) z; + } else { + stbi_uc *p; + int len,dist; + if (z == 256) { + a->zout = zout; + if (a->hit_zeof_once && a->num_bits < 16) { + // The first time we hit zeof, we inserted 16 extra zero bits into our bit + // buffer so the decoder can just do its speculative decoding. But if we + // actually consumed any of those bits (which is the case when num_bits < 16), + // the stream actually read past the end so it is malformed. + return stbi__err("unexpected end","Corrupt PNG"); + } + return 1; + } + if (z >= 286) return stbi__err("bad huffman code","Corrupt PNG"); // per DEFLATE, length codes 286 and 287 must not appear in compressed data + z -= 257; + len = stbi__zlength_base[z]; + if (stbi__zlength_extra[z]) len += stbi__zreceive(a, stbi__zlength_extra[z]); + z = stbi__zhuffman_decode(a, &a->z_distance); + if (z < 0 || z >= 30) return stbi__err("bad huffman code","Corrupt PNG"); // per DEFLATE, distance codes 30 and 31 must not appear in compressed data + dist = stbi__zdist_base[z]; + if (stbi__zdist_extra[z]) dist += stbi__zreceive(a, stbi__zdist_extra[z]); + if (zout - a->zout_start < dist) return stbi__err("bad dist","Corrupt PNG"); + if (len > a->zout_end - zout) { + if (!stbi__zexpand(a, zout, len)) return 0; + zout = a->zout; + } + p = (stbi_uc *) (zout - dist); + if (dist == 1) { // run of one byte; common in images. + stbi_uc v = *p; + if (len) { do *zout++ = v; while (--len); } + } else { + if (len) { do *zout++ = *p++; while (--len); } + } + } + } +} + +static int stbi__compute_huffman_codes(stbi__zbuf *a) +{ + static const stbi_uc length_dezigzag[19] = { 16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15 }; + stbi__zhuffman z_codelength; + stbi_uc lencodes[286+32+137];//padding for maximum single op + stbi_uc codelength_sizes[19]; + int i,n; + + int hlit = stbi__zreceive(a,5) + 257; + int hdist = stbi__zreceive(a,5) + 1; + int hclen = stbi__zreceive(a,4) + 4; + int ntot = hlit + hdist; + + memset(codelength_sizes, 0, sizeof(codelength_sizes)); + for (i=0; i < hclen; ++i) { + int s = stbi__zreceive(a,3); + codelength_sizes[length_dezigzag[i]] = (stbi_uc) s; + } + if (!stbi__zbuild_huffman(&z_codelength, codelength_sizes, 19)) return 0; + + n = 0; + while (n < ntot) { + int c = stbi__zhuffman_decode(a, &z_codelength); + if (c < 0 || c >= 19) return stbi__err("bad codelengths", "Corrupt PNG"); + if (c < 16) + lencodes[n++] = (stbi_uc) c; + else { + stbi_uc fill = 0; + if (c == 16) { + c = stbi__zreceive(a,2)+3; + if (n == 0) return stbi__err("bad codelengths", "Corrupt PNG"); + fill = lencodes[n-1]; + } else if (c == 17) { + c = stbi__zreceive(a,3)+3; + } else if (c == 18) { + c = stbi__zreceive(a,7)+11; + } else { + return stbi__err("bad codelengths", "Corrupt PNG"); + } + if (ntot - n < c) return stbi__err("bad codelengths", "Corrupt PNG"); + memset(lencodes+n, fill, c); + n += c; + } + } + if (n != ntot) return stbi__err("bad codelengths","Corrupt PNG"); + if (!stbi__zbuild_huffman(&a->z_length, lencodes, hlit)) return 0; + if (!stbi__zbuild_huffman(&a->z_distance, lencodes+hlit, hdist)) return 0; + return 1; +} + +static int stbi__parse_uncompressed_block(stbi__zbuf *a) +{ + stbi_uc header[4]; + int len,nlen,k; + if (a->num_bits & 7) + stbi__zreceive(a, a->num_bits & 7); // discard + // drain the bit-packed data into header + k = 0; + while (a->num_bits > 0) { + header[k++] = (stbi_uc) (a->code_buffer & 255); // suppress MSVC run-time check + a->code_buffer >>= 8; + a->num_bits -= 8; + } + if (a->num_bits < 0) return stbi__err("zlib corrupt","Corrupt PNG"); + // now fill header the normal way + while (k < 4) + header[k++] = stbi__zget8(a); + len = header[1] * 256 + header[0]; + nlen = header[3] * 256 + header[2]; + if (nlen != (len ^ 0xffff)) return stbi__err("zlib corrupt","Corrupt PNG"); + if (a->zbuffer + len > a->zbuffer_end) return stbi__err("read past buffer","Corrupt PNG"); + if (a->zout + len > a->zout_end) + if (!stbi__zexpand(a, a->zout, len)) return 0; + memcpy(a->zout, a->zbuffer, len); + a->zbuffer += len; + a->zout += len; + return 1; +} + +static int stbi__parse_zlib_header(stbi__zbuf *a) +{ + int cmf = stbi__zget8(a); + int cm = cmf & 15; + /* int cinfo = cmf >> 4; */ + int flg = stbi__zget8(a); + if (stbi__zeof(a)) return stbi__err("bad zlib header","Corrupt PNG"); // zlib spec + if ((cmf*256+flg) % 31 != 0) return stbi__err("bad zlib header","Corrupt PNG"); // zlib spec + if (flg & 32) return stbi__err("no preset dict","Corrupt PNG"); // preset dictionary not allowed in png + if (cm != 8) return stbi__err("bad compression","Corrupt PNG"); // DEFLATE required for png + // window = 1 << (8 + cinfo)... but who cares, we fully buffer output + return 1; +} + +static const stbi_uc stbi__zdefault_length[STBI__ZNSYMS] = +{ + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, + 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, + 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, + 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, + 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8 +}; +static const stbi_uc stbi__zdefault_distance[32] = +{ + 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 +}; +/* +Init algorithm: +{ + int i; // use <= to match clearly with spec + for (i=0; i <= 143; ++i) stbi__zdefault_length[i] = 8; + for ( ; i <= 255; ++i) stbi__zdefault_length[i] = 9; + for ( ; i <= 279; ++i) stbi__zdefault_length[i] = 7; + for ( ; i <= 287; ++i) stbi__zdefault_length[i] = 8; + + for (i=0; i <= 31; ++i) stbi__zdefault_distance[i] = 5; +} +*/ + +static int stbi__parse_zlib(stbi__zbuf *a, int parse_header) +{ + int final, type; + if (parse_header) + if (!stbi__parse_zlib_header(a)) return 0; + a->num_bits = 0; + a->code_buffer = 0; + a->hit_zeof_once = 0; + do { + final = stbi__zreceive(a,1); + type = stbi__zreceive(a,2); + if (type == 0) { + if (!stbi__parse_uncompressed_block(a)) return 0; + } else if (type == 3) { + return 0; + } else { + if (type == 1) { + // use fixed code lengths + if (!stbi__zbuild_huffman(&a->z_length , stbi__zdefault_length , STBI__ZNSYMS)) return 0; + if (!stbi__zbuild_huffman(&a->z_distance, stbi__zdefault_distance, 32)) return 0; + } else { + if (!stbi__compute_huffman_codes(a)) return 0; + } + if (!stbi__parse_huffman_block(a)) return 0; + } + } while (!final); + return 1; +} + +static int stbi__do_zlib(stbi__zbuf *a, char *obuf, int olen, int exp, int parse_header) +{ + a->zout_start = obuf; + a->zout = obuf; + a->zout_end = obuf + olen; + a->z_expandable = exp; + + return stbi__parse_zlib(a, parse_header); +} + +STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen) +{ + stbi__zbuf a; + char *p = (char *) stbi__malloc(initial_size); + if (p == NULL) return NULL; + a.zbuffer = (stbi_uc *) buffer; + a.zbuffer_end = (stbi_uc *) buffer + len; + if (stbi__do_zlib(&a, p, initial_size, 1, 1)) { + if (outlen) *outlen = (int) (a.zout - a.zout_start); + return a.zout_start; + } else { + STBI_FREE(a.zout_start); + return NULL; + } +} + +STBIDEF char *stbi_zlib_decode_malloc(char const *buffer, int len, int *outlen) +{ + return stbi_zlib_decode_malloc_guesssize(buffer, len, 16384, outlen); +} + +STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header) +{ + stbi__zbuf a; + char *p = (char *) stbi__malloc(initial_size); + if (p == NULL) return NULL; + a.zbuffer = (stbi_uc *) buffer; + a.zbuffer_end = (stbi_uc *) buffer + len; + if (stbi__do_zlib(&a, p, initial_size, 1, parse_header)) { + if (outlen) *outlen = (int) (a.zout - a.zout_start); + return a.zout_start; + } else { + STBI_FREE(a.zout_start); + return NULL; + } +} + +STBIDEF int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen) +{ + stbi__zbuf a; + a.zbuffer = (stbi_uc *) ibuffer; + a.zbuffer_end = (stbi_uc *) ibuffer + ilen; + if (stbi__do_zlib(&a, obuffer, olen, 0, 1)) + return (int) (a.zout - a.zout_start); + else + return -1; +} + +STBIDEF char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen) +{ + stbi__zbuf a; + char *p = (char *) stbi__malloc(16384); + if (p == NULL) return NULL; + a.zbuffer = (stbi_uc *) buffer; + a.zbuffer_end = (stbi_uc *) buffer+len; + if (stbi__do_zlib(&a, p, 16384, 1, 0)) { + if (outlen) *outlen = (int) (a.zout - a.zout_start); + return a.zout_start; + } else { + STBI_FREE(a.zout_start); + return NULL; + } +} + +STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen) +{ + stbi__zbuf a; + a.zbuffer = (stbi_uc *) ibuffer; + a.zbuffer_end = (stbi_uc *) ibuffer + ilen; + if (stbi__do_zlib(&a, obuffer, olen, 0, 0)) + return (int) (a.zout - a.zout_start); + else + return -1; +} +#endif + +// public domain "baseline" PNG decoder v0.10 Sean Barrett 2006-11-18 +// simple implementation +// - only 8-bit samples +// - no CRC checking +// - allocates lots of intermediate memory +// - avoids problem of streaming data between subsystems +// - avoids explicit window management +// performance +// - uses stb_zlib, a PD zlib implementation with fast huffman decoding + +#ifndef STBI_NO_PNG +typedef struct +{ + stbi__uint32 length; + stbi__uint32 type; +} stbi__pngchunk; + +static stbi__pngchunk stbi__get_chunk_header(stbi__context *s) +{ + stbi__pngchunk c; + c.length = stbi__get32be(s); + c.type = stbi__get32be(s); + return c; +} + +static int stbi__check_png_header(stbi__context *s) +{ + static const stbi_uc png_sig[8] = { 137,80,78,71,13,10,26,10 }; + int i; + for (i=0; i < 8; ++i) + if (stbi__get8(s) != png_sig[i]) return stbi__err("bad png sig","Not a PNG"); + return 1; +} + +typedef struct +{ + stbi__context *s; + stbi_uc *idata, *expanded, *out; + int depth; +} stbi__png; + + +enum { + STBI__F_none=0, + STBI__F_sub=1, + STBI__F_up=2, + STBI__F_avg=3, + STBI__F_paeth=4, + // synthetic filter used for first scanline to avoid needing a dummy row of 0s + STBI__F_avg_first +}; + +static stbi_uc first_row_filter[5] = +{ + STBI__F_none, + STBI__F_sub, + STBI__F_none, + STBI__F_avg_first, + STBI__F_sub // Paeth with b=c=0 turns out to be equivalent to sub +}; + +static int stbi__paeth(int a, int b, int c) +{ + // This formulation looks very different from the reference in the PNG spec, but is + // actually equivalent and has favorable data dependencies and admits straightforward + // generation of branch-free code, which helps performance significantly. + int thresh = c*3 - (a + b); + int lo = a < b ? a : b; + int hi = a < b ? b : a; + int t0 = (hi <= thresh) ? lo : c; + int t1 = (thresh <= lo) ? hi : t0; + return t1; +} + +static const stbi_uc stbi__depth_scale_table[9] = { 0, 0xff, 0x55, 0, 0x11, 0,0,0, 0x01 }; + +// adds an extra all-255 alpha channel +// dest == src is legal +// img_n must be 1 or 3 +static void stbi__create_png_alpha_expand8(stbi_uc *dest, stbi_uc *src, stbi__uint32 x, int img_n) +{ + int i; + // must process data backwards since we allow dest==src + if (img_n == 1) { + for (i=x-1; i >= 0; --i) { + dest[i*2+1] = 255; + dest[i*2+0] = src[i]; + } + } else { + STBI_ASSERT(img_n == 3); + for (i=x-1; i >= 0; --i) { + dest[i*4+3] = 255; + dest[i*4+2] = src[i*3+2]; + dest[i*4+1] = src[i*3+1]; + dest[i*4+0] = src[i*3+0]; + } + } +} + +// create the png data from post-deflated data +static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color) +{ + int bytes = (depth == 16 ? 2 : 1); + stbi__context *s = a->s; + stbi__uint32 i,j,stride = x*out_n*bytes; + stbi__uint32 img_len, img_width_bytes; + stbi_uc *filter_buf; + int all_ok = 1; + int k; + int img_n = s->img_n; // copy it into a local for later + + int output_bytes = out_n*bytes; + int filter_bytes = img_n*bytes; + int width = x; + + STBI_ASSERT(out_n == s->img_n || out_n == s->img_n+1); + a->out = (stbi_uc *) stbi__malloc_mad3(x, y, output_bytes, 0); // extra bytes to write off the end into + if (!a->out) return stbi__err("outofmem", "Out of memory"); + + // note: error exits here don't need to clean up a->out individually, + // stbi__do_png always does on error. + if (!stbi__mad3sizes_valid(img_n, x, depth, 7)) return stbi__err("too large", "Corrupt PNG"); + img_width_bytes = (((img_n * x * depth) + 7) >> 3); + if (!stbi__mad2sizes_valid(img_width_bytes, y, img_width_bytes)) return stbi__err("too large", "Corrupt PNG"); + img_len = (img_width_bytes + 1) * y; + + // we used to check for exact match between raw_len and img_len on non-interlaced PNGs, + // but issue #276 reported a PNG in the wild that had extra data at the end (all zeros), + // so just check for raw_len < img_len always. + if (raw_len < img_len) return stbi__err("not enough pixels","Corrupt PNG"); + + // Allocate two scan lines worth of filter workspace buffer. + filter_buf = (stbi_uc *) stbi__malloc_mad2(img_width_bytes, 2, 0); + if (!filter_buf) return stbi__err("outofmem", "Out of memory"); + + // Filtering for low-bit-depth images + if (depth < 8) { + filter_bytes = 1; + width = img_width_bytes; + } + + for (j=0; j < y; ++j) { + // cur/prior filter buffers alternate + stbi_uc *cur = filter_buf + (j & 1)*img_width_bytes; + stbi_uc *prior = filter_buf + (~j & 1)*img_width_bytes; + stbi_uc *dest = a->out + stride*j; + int nk = width * filter_bytes; + int filter = *raw++; + + // check filter type + if (filter > 4) { + all_ok = stbi__err("invalid filter","Corrupt PNG"); + break; + } + + // if first row, use special filter that doesn't sample previous row + if (j == 0) filter = first_row_filter[filter]; + + // perform actual filtering + switch (filter) { + case STBI__F_none: + memcpy(cur, raw, nk); + break; + case STBI__F_sub: + memcpy(cur, raw, filter_bytes); + for (k = filter_bytes; k < nk; ++k) + cur[k] = STBI__BYTECAST(raw[k] + cur[k-filter_bytes]); + break; + case STBI__F_up: + for (k = 0; k < nk; ++k) + cur[k] = STBI__BYTECAST(raw[k] + prior[k]); + break; + case STBI__F_avg: + for (k = 0; k < filter_bytes; ++k) + cur[k] = STBI__BYTECAST(raw[k] + (prior[k]>>1)); + for (k = filter_bytes; k < nk; ++k) + cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-filter_bytes])>>1)); + break; + case STBI__F_paeth: + for (k = 0; k < filter_bytes; ++k) + cur[k] = STBI__BYTECAST(raw[k] + prior[k]); // prior[k] == stbi__paeth(0,prior[k],0) + for (k = filter_bytes; k < nk; ++k) + cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes], prior[k], prior[k-filter_bytes])); + break; + case STBI__F_avg_first: + memcpy(cur, raw, filter_bytes); + for (k = filter_bytes; k < nk; ++k) + cur[k] = STBI__BYTECAST(raw[k] + (cur[k-filter_bytes] >> 1)); + break; + } + + raw += nk; + + // expand decoded bits in cur to dest, also adding an extra alpha channel if desired + if (depth < 8) { + stbi_uc scale = (color == 0) ? stbi__depth_scale_table[depth] : 1; // scale grayscale values to 0..255 range + stbi_uc *in = cur; + stbi_uc *out = dest; + stbi_uc inb = 0; + stbi__uint32 nsmp = x*img_n; + + // expand bits to bytes first + if (depth == 4) { + for (i=0; i < nsmp; ++i) { + if ((i & 1) == 0) inb = *in++; + *out++ = scale * (inb >> 4); + inb <<= 4; + } + } else if (depth == 2) { + for (i=0; i < nsmp; ++i) { + if ((i & 3) == 0) inb = *in++; + *out++ = scale * (inb >> 6); + inb <<= 2; + } + } else { + STBI_ASSERT(depth == 1); + for (i=0; i < nsmp; ++i) { + if ((i & 7) == 0) inb = *in++; + *out++ = scale * (inb >> 7); + inb <<= 1; + } + } + + // insert alpha=255 values if desired + if (img_n != out_n) + stbi__create_png_alpha_expand8(dest, dest, x, img_n); + } else if (depth == 8) { + if (img_n == out_n) + memcpy(dest, cur, x*img_n); + else + stbi__create_png_alpha_expand8(dest, cur, x, img_n); + } else if (depth == 16) { + // convert the image data from big-endian to platform-native + stbi__uint16 *dest16 = (stbi__uint16*)dest; + stbi__uint32 nsmp = x*img_n; + + if (img_n == out_n) { + for (i = 0; i < nsmp; ++i, ++dest16, cur += 2) + *dest16 = (cur[0] << 8) | cur[1]; + } else { + STBI_ASSERT(img_n+1 == out_n); + if (img_n == 1) { + for (i = 0; i < x; ++i, dest16 += 2, cur += 2) { + dest16[0] = (cur[0] << 8) | cur[1]; + dest16[1] = 0xffff; + } + } else { + STBI_ASSERT(img_n == 3); + for (i = 0; i < x; ++i, dest16 += 4, cur += 6) { + dest16[0] = (cur[0] << 8) | cur[1]; + dest16[1] = (cur[2] << 8) | cur[3]; + dest16[2] = (cur[4] << 8) | cur[5]; + dest16[3] = 0xffff; + } + } + } + } + } + + STBI_FREE(filter_buf); + if (!all_ok) return 0; + + return 1; +} + +static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint32 image_data_len, int out_n, int depth, int color, int interlaced) +{ + int bytes = (depth == 16 ? 2 : 1); + int out_bytes = out_n * bytes; + stbi_uc *final; + int p; + if (!interlaced) + return stbi__create_png_image_raw(a, image_data, image_data_len, out_n, a->s->img_x, a->s->img_y, depth, color); + + // de-interlacing + final = (stbi_uc *) stbi__malloc_mad3(a->s->img_x, a->s->img_y, out_bytes, 0); + if (!final) return stbi__err("outofmem", "Out of memory"); + for (p=0; p < 7; ++p) { + int xorig[] = { 0,4,0,2,0,1,0 }; + int yorig[] = { 0,0,4,0,2,0,1 }; + int xspc[] = { 8,8,4,4,2,2,1 }; + int yspc[] = { 8,8,8,4,4,2,2 }; + int i,j,x,y; + // pass1_x[4] = 0, pass1_x[5] = 1, pass1_x[12] = 1 + x = (a->s->img_x - xorig[p] + xspc[p]-1) / xspc[p]; + y = (a->s->img_y - yorig[p] + yspc[p]-1) / yspc[p]; + if (x && y) { + stbi__uint32 img_len = ((((a->s->img_n * x * depth) + 7) >> 3) + 1) * y; + if (!stbi__create_png_image_raw(a, image_data, image_data_len, out_n, x, y, depth, color)) { + STBI_FREE(final); + return 0; + } + for (j=0; j < y; ++j) { + for (i=0; i < x; ++i) { + int out_y = j*yspc[p]+yorig[p]; + int out_x = i*xspc[p]+xorig[p]; + memcpy(final + out_y*a->s->img_x*out_bytes + out_x*out_bytes, + a->out + (j*x+i)*out_bytes, out_bytes); + } + } + STBI_FREE(a->out); + image_data += img_len; + image_data_len -= img_len; + } + } + a->out = final; + + return 1; +} + +static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n) +{ + stbi__context *s = z->s; + stbi__uint32 i, pixel_count = s->img_x * s->img_y; + stbi_uc *p = z->out; + + // compute color-based transparency, assuming we've + // already got 255 as the alpha value in the output + STBI_ASSERT(out_n == 2 || out_n == 4); + + if (out_n == 2) { + for (i=0; i < pixel_count; ++i) { + p[1] = (p[0] == tc[0] ? 0 : 255); + p += 2; + } + } else { + for (i=0; i < pixel_count; ++i) { + if (p[0] == tc[0] && p[1] == tc[1] && p[2] == tc[2]) + p[3] = 0; + p += 4; + } + } + return 1; +} + +static int stbi__compute_transparency16(stbi__png *z, stbi__uint16 tc[3], int out_n) +{ + stbi__context *s = z->s; + stbi__uint32 i, pixel_count = s->img_x * s->img_y; + stbi__uint16 *p = (stbi__uint16*) z->out; + + // compute color-based transparency, assuming we've + // already got 65535 as the alpha value in the output + STBI_ASSERT(out_n == 2 || out_n == 4); + + if (out_n == 2) { + for (i = 0; i < pixel_count; ++i) { + p[1] = (p[0] == tc[0] ? 0 : 65535); + p += 2; + } + } else { + for (i = 0; i < pixel_count; ++i) { + if (p[0] == tc[0] && p[1] == tc[1] && p[2] == tc[2]) + p[3] = 0; + p += 4; + } + } + return 1; +} + +static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n) +{ + stbi__uint32 i, pixel_count = a->s->img_x * a->s->img_y; + stbi_uc *p, *temp_out, *orig = a->out; + + p = (stbi_uc *) stbi__malloc_mad2(pixel_count, pal_img_n, 0); + if (p == NULL) return stbi__err("outofmem", "Out of memory"); + + // between here and free(out) below, exitting would leak + temp_out = p; + + if (pal_img_n == 3) { + for (i=0; i < pixel_count; ++i) { + int n = orig[i]*4; + p[0] = palette[n ]; + p[1] = palette[n+1]; + p[2] = palette[n+2]; + p += 3; + } + } else { + for (i=0; i < pixel_count; ++i) { + int n = orig[i]*4; + p[0] = palette[n ]; + p[1] = palette[n+1]; + p[2] = palette[n+2]; + p[3] = palette[n+3]; + p += 4; + } + } + STBI_FREE(a->out); + a->out = temp_out; + + STBI_NOTUSED(len); + + return 1; +} + +static int stbi__unpremultiply_on_load_global = 0; +static int stbi__de_iphone_flag_global = 0; + +STBIDEF void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply) +{ + stbi__unpremultiply_on_load_global = flag_true_if_should_unpremultiply; +} + +STBIDEF void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert) +{ + stbi__de_iphone_flag_global = flag_true_if_should_convert; +} + +#ifndef STBI_THREAD_LOCAL +#define stbi__unpremultiply_on_load stbi__unpremultiply_on_load_global +#define stbi__de_iphone_flag stbi__de_iphone_flag_global +#else +static STBI_THREAD_LOCAL int stbi__unpremultiply_on_load_local, stbi__unpremultiply_on_load_set; +static STBI_THREAD_LOCAL int stbi__de_iphone_flag_local, stbi__de_iphone_flag_set; + +STBIDEF void stbi_set_unpremultiply_on_load_thread(int flag_true_if_should_unpremultiply) +{ + stbi__unpremultiply_on_load_local = flag_true_if_should_unpremultiply; + stbi__unpremultiply_on_load_set = 1; +} + +STBIDEF void stbi_convert_iphone_png_to_rgb_thread(int flag_true_if_should_convert) +{ + stbi__de_iphone_flag_local = flag_true_if_should_convert; + stbi__de_iphone_flag_set = 1; +} + +#define stbi__unpremultiply_on_load (stbi__unpremultiply_on_load_set \ + ? stbi__unpremultiply_on_load_local \ + : stbi__unpremultiply_on_load_global) +#define stbi__de_iphone_flag (stbi__de_iphone_flag_set \ + ? stbi__de_iphone_flag_local \ + : stbi__de_iphone_flag_global) +#endif // STBI_THREAD_LOCAL + +static void stbi__de_iphone(stbi__png *z) +{ + stbi__context *s = z->s; + stbi__uint32 i, pixel_count = s->img_x * s->img_y; + stbi_uc *p = z->out; + + if (s->img_out_n == 3) { // convert bgr to rgb + for (i=0; i < pixel_count; ++i) { + stbi_uc t = p[0]; + p[0] = p[2]; + p[2] = t; + p += 3; + } + } else { + STBI_ASSERT(s->img_out_n == 4); + if (stbi__unpremultiply_on_load) { + // convert bgr to rgb and unpremultiply + for (i=0; i < pixel_count; ++i) { + stbi_uc a = p[3]; + stbi_uc t = p[0]; + if (a) { + stbi_uc half = a / 2; + p[0] = (p[2] * 255 + half) / a; + p[1] = (p[1] * 255 + half) / a; + p[2] = ( t * 255 + half) / a; + } else { + p[0] = p[2]; + p[2] = t; + } + p += 4; + } + } else { + // convert bgr to rgb + for (i=0; i < pixel_count; ++i) { + stbi_uc t = p[0]; + p[0] = p[2]; + p[2] = t; + p += 4; + } + } + } +} + +#define STBI__PNG_TYPE(a,b,c,d) (((unsigned) (a) << 24) + ((unsigned) (b) << 16) + ((unsigned) (c) << 8) + (unsigned) (d)) + +static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp) +{ + stbi_uc palette[1024], pal_img_n=0; + stbi_uc has_trans=0, tc[3]={0}; + stbi__uint16 tc16[3]; + stbi__uint32 ioff=0, idata_limit=0, i, pal_len=0; + int first=1,k,interlace=0, color=0, is_iphone=0; + stbi__context *s = z->s; + + z->expanded = NULL; + z->idata = NULL; + z->out = NULL; + + if (!stbi__check_png_header(s)) return 0; + + if (scan == STBI__SCAN_type) return 1; + + for (;;) { + stbi__pngchunk c = stbi__get_chunk_header(s); + switch (c.type) { + case STBI__PNG_TYPE('C','g','B','I'): + is_iphone = 1; + stbi__skip(s, c.length); + break; + case STBI__PNG_TYPE('I','H','D','R'): { + int comp,filter; + if (!first) return stbi__err("multiple IHDR","Corrupt PNG"); + first = 0; + if (c.length != 13) return stbi__err("bad IHDR len","Corrupt PNG"); + s->img_x = stbi__get32be(s); + s->img_y = stbi__get32be(s); + if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + if (s->img_x > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + z->depth = stbi__get8(s); if (z->depth != 1 && z->depth != 2 && z->depth != 4 && z->depth != 8 && z->depth != 16) return stbi__err("1/2/4/8/16-bit only","PNG not supported: 1/2/4/8/16-bit only"); + color = stbi__get8(s); if (color > 6) return stbi__err("bad ctype","Corrupt PNG"); + if (color == 3 && z->depth == 16) return stbi__err("bad ctype","Corrupt PNG"); + if (color == 3) pal_img_n = 3; else if (color & 1) return stbi__err("bad ctype","Corrupt PNG"); + comp = stbi__get8(s); if (comp) return stbi__err("bad comp method","Corrupt PNG"); + filter= stbi__get8(s); if (filter) return stbi__err("bad filter method","Corrupt PNG"); + interlace = stbi__get8(s); if (interlace>1) return stbi__err("bad interlace method","Corrupt PNG"); + if (!s->img_x || !s->img_y) return stbi__err("0-pixel image","Corrupt PNG"); + if (!pal_img_n) { + s->img_n = (color & 2 ? 3 : 1) + (color & 4 ? 1 : 0); + if ((1 << 30) / s->img_x / s->img_n < s->img_y) return stbi__err("too large", "Image too large to decode"); + } else { + // if paletted, then pal_n is our final components, and + // img_n is # components to decompress/filter. + s->img_n = 1; + if ((1 << 30) / s->img_x / 4 < s->img_y) return stbi__err("too large","Corrupt PNG"); + } + // even with SCAN_header, have to scan to see if we have a tRNS + break; + } + + case STBI__PNG_TYPE('P','L','T','E'): { + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (c.length > 256*3) return stbi__err("invalid PLTE","Corrupt PNG"); + pal_len = c.length / 3; + if (pal_len * 3 != c.length) return stbi__err("invalid PLTE","Corrupt PNG"); + for (i=0; i < pal_len; ++i) { + palette[i*4+0] = stbi__get8(s); + palette[i*4+1] = stbi__get8(s); + palette[i*4+2] = stbi__get8(s); + palette[i*4+3] = 255; + } + break; + } + + case STBI__PNG_TYPE('t','R','N','S'): { + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (z->idata) return stbi__err("tRNS after IDAT","Corrupt PNG"); + if (pal_img_n) { + if (scan == STBI__SCAN_header) { s->img_n = 4; return 1; } + if (pal_len == 0) return stbi__err("tRNS before PLTE","Corrupt PNG"); + if (c.length > pal_len) return stbi__err("bad tRNS len","Corrupt PNG"); + pal_img_n = 4; + for (i=0; i < c.length; ++i) + palette[i*4+3] = stbi__get8(s); + } else { + if (!(s->img_n & 1)) return stbi__err("tRNS with alpha","Corrupt PNG"); + if (c.length != (stbi__uint32) s->img_n*2) return stbi__err("bad tRNS len","Corrupt PNG"); + has_trans = 1; + // non-paletted with tRNS = constant alpha. if header-scanning, we can stop now. + if (scan == STBI__SCAN_header) { ++s->img_n; return 1; } + if (z->depth == 16) { + for (k = 0; k < s->img_n && k < 3; ++k) // extra loop test to suppress false GCC warning + tc16[k] = (stbi__uint16)stbi__get16be(s); // copy the values as-is + } else { + for (k = 0; k < s->img_n && k < 3; ++k) + tc[k] = (stbi_uc)(stbi__get16be(s) & 255) * stbi__depth_scale_table[z->depth]; // non 8-bit images will be larger + } + } + break; + } + + case STBI__PNG_TYPE('I','D','A','T'): { + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (pal_img_n && !pal_len) return stbi__err("no PLTE","Corrupt PNG"); + if (scan == STBI__SCAN_header) { + // header scan definitely stops at first IDAT + if (pal_img_n) + s->img_n = pal_img_n; + return 1; + } + if (c.length > (1u << 30)) return stbi__err("IDAT size limit", "IDAT section larger than 2^30 bytes"); + if ((int)(ioff + c.length) < (int)ioff) return 0; + if (ioff + c.length > idata_limit) { + stbi__uint32 idata_limit_old = idata_limit; + stbi_uc *p; + if (idata_limit == 0) idata_limit = c.length > 4096 ? c.length : 4096; + while (ioff + c.length > idata_limit) + idata_limit *= 2; + STBI_NOTUSED(idata_limit_old); + p = (stbi_uc *) STBI_REALLOC_SIZED(z->idata, idata_limit_old, idata_limit); if (p == NULL) return stbi__err("outofmem", "Out of memory"); + z->idata = p; + } + if (!stbi__getn(s, z->idata+ioff,c.length)) return stbi__err("outofdata","Corrupt PNG"); + ioff += c.length; + break; + } + + case STBI__PNG_TYPE('I','E','N','D'): { + stbi__uint32 raw_len, bpl; + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (scan != STBI__SCAN_load) return 1; + if (z->idata == NULL) return stbi__err("no IDAT","Corrupt PNG"); + // initial guess for decoded data size to avoid unnecessary reallocs + bpl = (s->img_x * z->depth + 7) / 8; // bytes per line, per component + raw_len = bpl * s->img_y * s->img_n /* pixels */ + s->img_y /* filter mode per row */; + z->expanded = (stbi_uc *) stbi_zlib_decode_malloc_guesssize_headerflag((char *) z->idata, ioff, raw_len, (int *) &raw_len, !is_iphone); + if (z->expanded == NULL) return 0; // zlib should set error + STBI_FREE(z->idata); z->idata = NULL; + if ((req_comp == s->img_n+1 && req_comp != 3 && !pal_img_n) || has_trans) + s->img_out_n = s->img_n+1; + else + s->img_out_n = s->img_n; + if (!stbi__create_png_image(z, z->expanded, raw_len, s->img_out_n, z->depth, color, interlace)) return 0; + if (has_trans) { + if (z->depth == 16) { + if (!stbi__compute_transparency16(z, tc16, s->img_out_n)) return 0; + } else { + if (!stbi__compute_transparency(z, tc, s->img_out_n)) return 0; + } + } + if (is_iphone && stbi__de_iphone_flag && s->img_out_n > 2) + stbi__de_iphone(z); + if (pal_img_n) { + // pal_img_n == 3 or 4 + s->img_n = pal_img_n; // record the actual colors we had + s->img_out_n = pal_img_n; + if (req_comp >= 3) s->img_out_n = req_comp; + if (!stbi__expand_png_palette(z, palette, pal_len, s->img_out_n)) + return 0; + } else if (has_trans) { + // non-paletted image with tRNS -> source image has (constant) alpha + ++s->img_n; + } + STBI_FREE(z->expanded); z->expanded = NULL; + // end of PNG chunk, read and skip CRC + stbi__get32be(s); + return 1; + } + + default: + // if critical, fail + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if ((c.type & (1 << 29)) == 0) { + #ifndef STBI_NO_FAILURE_STRINGS + // not threadsafe + static char invalid_chunk[] = "XXXX PNG chunk not known"; + invalid_chunk[0] = STBI__BYTECAST(c.type >> 24); + invalid_chunk[1] = STBI__BYTECAST(c.type >> 16); + invalid_chunk[2] = STBI__BYTECAST(c.type >> 8); + invalid_chunk[3] = STBI__BYTECAST(c.type >> 0); + #endif + return stbi__err(invalid_chunk, "PNG not supported: unknown PNG chunk type"); + } + stbi__skip(s, c.length); + break; + } + // end of PNG chunk, read and skip CRC + stbi__get32be(s); + } +} + +static void *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req_comp, stbi__result_info *ri) +{ + void *result=NULL; + if (req_comp < 0 || req_comp > 4) return stbi__errpuc("bad req_comp", "Internal error"); + if (stbi__parse_png_file(p, STBI__SCAN_load, req_comp)) { + if (p->depth <= 8) + ri->bits_per_channel = 8; + else if (p->depth == 16) + ri->bits_per_channel = 16; + else + return stbi__errpuc("bad bits_per_channel", "PNG not supported: unsupported color depth"); + result = p->out; + p->out = NULL; + if (req_comp && req_comp != p->s->img_out_n) { + if (ri->bits_per_channel == 8) + result = stbi__convert_format((unsigned char *) result, p->s->img_out_n, req_comp, p->s->img_x, p->s->img_y); + else + result = stbi__convert_format16((stbi__uint16 *) result, p->s->img_out_n, req_comp, p->s->img_x, p->s->img_y); + p->s->img_out_n = req_comp; + if (result == NULL) return result; + } + *x = p->s->img_x; + *y = p->s->img_y; + if (n) *n = p->s->img_n; + } + STBI_FREE(p->out); p->out = NULL; + STBI_FREE(p->expanded); p->expanded = NULL; + STBI_FREE(p->idata); p->idata = NULL; + + return result; +} + +static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + stbi__png p; + p.s = s; + return stbi__do_png(&p, x,y,comp,req_comp, ri); +} + +static int stbi__png_test(stbi__context *s) +{ + int r; + r = stbi__check_png_header(s); + stbi__rewind(s); + return r; +} + +static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp) +{ + if (!stbi__parse_png_file(p, STBI__SCAN_header, 0)) { + stbi__rewind( p->s ); + return 0; + } + if (x) *x = p->s->img_x; + if (y) *y = p->s->img_y; + if (comp) *comp = p->s->img_n; + return 1; +} + +static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp) +{ + stbi__png p; + p.s = s; + return stbi__png_info_raw(&p, x, y, comp); +} + +static int stbi__png_is16(stbi__context *s) +{ + stbi__png p; + p.s = s; + if (!stbi__png_info_raw(&p, NULL, NULL, NULL)) + return 0; + if (p.depth != 16) { + stbi__rewind(p.s); + return 0; + } + return 1; +} +#endif + +// Microsoft/Windows BMP image + +#ifndef STBI_NO_BMP +static int stbi__bmp_test_raw(stbi__context *s) +{ + int r; + int sz; + if (stbi__get8(s) != 'B') return 0; + if (stbi__get8(s) != 'M') return 0; + stbi__get32le(s); // discard filesize + stbi__get16le(s); // discard reserved + stbi__get16le(s); // discard reserved + stbi__get32le(s); // discard data offset + sz = stbi__get32le(s); + r = (sz == 12 || sz == 40 || sz == 56 || sz == 108 || sz == 124); + return r; +} + +static int stbi__bmp_test(stbi__context *s) +{ + int r = stbi__bmp_test_raw(s); + stbi__rewind(s); + return r; +} + + +// returns 0..31 for the highest set bit +static int stbi__high_bit(unsigned int z) +{ + int n=0; + if (z == 0) return -1; + if (z >= 0x10000) { n += 16; z >>= 16; } + if (z >= 0x00100) { n += 8; z >>= 8; } + if (z >= 0x00010) { n += 4; z >>= 4; } + if (z >= 0x00004) { n += 2; z >>= 2; } + if (z >= 0x00002) { n += 1;/* >>= 1;*/ } + return n; +} + +static int stbi__bitcount(unsigned int a) +{ + a = (a & 0x55555555) + ((a >> 1) & 0x55555555); // max 2 + a = (a & 0x33333333) + ((a >> 2) & 0x33333333); // max 4 + a = (a + (a >> 4)) & 0x0f0f0f0f; // max 8 per 4, now 8 bits + a = (a + (a >> 8)); // max 16 per 8 bits + a = (a + (a >> 16)); // max 32 per 8 bits + return a & 0xff; +} + +// extract an arbitrarily-aligned N-bit value (N=bits) +// from v, and then make it 8-bits long and fractionally +// extend it to full full range. +static int stbi__shiftsigned(unsigned int v, int shift, int bits) +{ + static unsigned int mul_table[9] = { + 0, + 0xff/*0b11111111*/, 0x55/*0b01010101*/, 0x49/*0b01001001*/, 0x11/*0b00010001*/, + 0x21/*0b00100001*/, 0x41/*0b01000001*/, 0x81/*0b10000001*/, 0x01/*0b00000001*/, + }; + static unsigned int shift_table[9] = { + 0, 0,0,1,0,2,4,6,0, + }; + if (shift < 0) + v <<= -shift; + else + v >>= shift; + STBI_ASSERT(v < 256); + v >>= (8-bits); + STBI_ASSERT(bits >= 0 && bits <= 8); + return (int) ((unsigned) v * mul_table[bits]) >> shift_table[bits]; +} + +typedef struct +{ + int bpp, offset, hsz; + unsigned int mr,mg,mb,ma, all_a; + int extra_read; +} stbi__bmp_data; + +static int stbi__bmp_set_mask_defaults(stbi__bmp_data *info, int compress) +{ + // BI_BITFIELDS specifies masks explicitly, don't override + if (compress == 3) + return 1; + + if (compress == 0) { + if (info->bpp == 16) { + info->mr = 31u << 10; + info->mg = 31u << 5; + info->mb = 31u << 0; + } else if (info->bpp == 32) { + info->mr = 0xffu << 16; + info->mg = 0xffu << 8; + info->mb = 0xffu << 0; + info->ma = 0xffu << 24; + info->all_a = 0; // if all_a is 0 at end, then we loaded alpha channel but it was all 0 + } else { + // otherwise, use defaults, which is all-0 + info->mr = info->mg = info->mb = info->ma = 0; + } + return 1; + } + return 0; // error +} + +static void *stbi__bmp_parse_header(stbi__context *s, stbi__bmp_data *info) +{ + int hsz; + if (stbi__get8(s) != 'B' || stbi__get8(s) != 'M') return stbi__errpuc("not BMP", "Corrupt BMP"); + stbi__get32le(s); // discard filesize + stbi__get16le(s); // discard reserved + stbi__get16le(s); // discard reserved + info->offset = stbi__get32le(s); + info->hsz = hsz = stbi__get32le(s); + info->mr = info->mg = info->mb = info->ma = 0; + info->extra_read = 14; + + if (info->offset < 0) return stbi__errpuc("bad BMP", "bad BMP"); + + if (hsz != 12 && hsz != 40 && hsz != 56 && hsz != 108 && hsz != 124) return stbi__errpuc("unknown BMP", "BMP type not supported: unknown"); + if (hsz == 12) { + s->img_x = stbi__get16le(s); + s->img_y = stbi__get16le(s); + } else { + s->img_x = stbi__get32le(s); + s->img_y = stbi__get32le(s); + } + if (stbi__get16le(s) != 1) return stbi__errpuc("bad BMP", "bad BMP"); + info->bpp = stbi__get16le(s); + if (hsz != 12) { + int compress = stbi__get32le(s); + if (compress == 1 || compress == 2) return stbi__errpuc("BMP RLE", "BMP type not supported: RLE"); + if (compress >= 4) return stbi__errpuc("BMP JPEG/PNG", "BMP type not supported: unsupported compression"); // this includes PNG/JPEG modes + if (compress == 3 && info->bpp != 16 && info->bpp != 32) return stbi__errpuc("bad BMP", "bad BMP"); // bitfields requires 16 or 32 bits/pixel + stbi__get32le(s); // discard sizeof + stbi__get32le(s); // discard hres + stbi__get32le(s); // discard vres + stbi__get32le(s); // discard colorsused + stbi__get32le(s); // discard max important + if (hsz == 40 || hsz == 56) { + if (hsz == 56) { + stbi__get32le(s); + stbi__get32le(s); + stbi__get32le(s); + stbi__get32le(s); + } + if (info->bpp == 16 || info->bpp == 32) { + if (compress == 0) { + stbi__bmp_set_mask_defaults(info, compress); + } else if (compress == 3) { + info->mr = stbi__get32le(s); + info->mg = stbi__get32le(s); + info->mb = stbi__get32le(s); + info->extra_read += 12; + // not documented, but generated by photoshop and handled by mspaint + if (info->mr == info->mg && info->mg == info->mb) { + // ?!?!? + return stbi__errpuc("bad BMP", "bad BMP"); + } + } else + return stbi__errpuc("bad BMP", "bad BMP"); + } + } else { + // V4/V5 header + int i; + if (hsz != 108 && hsz != 124) + return stbi__errpuc("bad BMP", "bad BMP"); + info->mr = stbi__get32le(s); + info->mg = stbi__get32le(s); + info->mb = stbi__get32le(s); + info->ma = stbi__get32le(s); + if (compress != 3) // override mr/mg/mb unless in BI_BITFIELDS mode, as per docs + stbi__bmp_set_mask_defaults(info, compress); + stbi__get32le(s); // discard color space + for (i=0; i < 12; ++i) + stbi__get32le(s); // discard color space parameters + if (hsz == 124) { + stbi__get32le(s); // discard rendering intent + stbi__get32le(s); // discard offset of profile data + stbi__get32le(s); // discard size of profile data + stbi__get32le(s); // discard reserved + } + } + } + return (void *) 1; +} + + +static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + stbi_uc *out; + unsigned int mr=0,mg=0,mb=0,ma=0, all_a; + stbi_uc pal[256][4]; + int psize=0,i,j,width; + int flip_vertically, pad, target; + stbi__bmp_data info; + STBI_NOTUSED(ri); + + info.all_a = 255; + if (stbi__bmp_parse_header(s, &info) == NULL) + return NULL; // error code already set + + flip_vertically = ((int) s->img_y) > 0; + s->img_y = abs((int) s->img_y); + + if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + if (s->img_x > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + + mr = info.mr; + mg = info.mg; + mb = info.mb; + ma = info.ma; + all_a = info.all_a; + + if (info.hsz == 12) { + if (info.bpp < 24) + psize = (info.offset - info.extra_read - 24) / 3; + } else { + if (info.bpp < 16) + psize = (info.offset - info.extra_read - info.hsz) >> 2; + } + if (psize == 0) { + // accept some number of extra bytes after the header, but if the offset points either to before + // the header ends or implies a large amount of extra data, reject the file as malformed + int bytes_read_so_far = s->callback_already_read + (int)(s->img_buffer - s->img_buffer_original); + int header_limit = 1024; // max we actually read is below 256 bytes currently. + int extra_data_limit = 256*4; // what ordinarily goes here is a palette; 256 entries*4 bytes is its max size. + if (bytes_read_so_far <= 0 || bytes_read_so_far > header_limit) { + return stbi__errpuc("bad header", "Corrupt BMP"); + } + // we established that bytes_read_so_far is positive and sensible. + // the first half of this test rejects offsets that are either too small positives, or + // negative, and guarantees that info.offset >= bytes_read_so_far > 0. this in turn + // ensures the number computed in the second half of the test can't overflow. + if (info.offset < bytes_read_so_far || info.offset - bytes_read_so_far > extra_data_limit) { + return stbi__errpuc("bad offset", "Corrupt BMP"); + } else { + stbi__skip(s, info.offset - bytes_read_so_far); + } + } + + if (info.bpp == 24 && ma == 0xff000000) + s->img_n = 3; + else + s->img_n = ma ? 4 : 3; + if (req_comp && req_comp >= 3) // we can directly decode 3 or 4 + target = req_comp; + else + target = s->img_n; // if they want monochrome, we'll post-convert + + // sanity-check size + if (!stbi__mad3sizes_valid(target, s->img_x, s->img_y, 0)) + return stbi__errpuc("too large", "Corrupt BMP"); + + out = (stbi_uc *) stbi__malloc_mad3(target, s->img_x, s->img_y, 0); + if (!out) return stbi__errpuc("outofmem", "Out of memory"); + if (info.bpp < 16) { + int z=0; + if (psize == 0 || psize > 256) { STBI_FREE(out); return stbi__errpuc("invalid", "Corrupt BMP"); } + for (i=0; i < psize; ++i) { + pal[i][2] = stbi__get8(s); + pal[i][1] = stbi__get8(s); + pal[i][0] = stbi__get8(s); + if (info.hsz != 12) stbi__get8(s); + pal[i][3] = 255; + } + stbi__skip(s, info.offset - info.extra_read - info.hsz - psize * (info.hsz == 12 ? 3 : 4)); + if (info.bpp == 1) width = (s->img_x + 7) >> 3; + else if (info.bpp == 4) width = (s->img_x + 1) >> 1; + else if (info.bpp == 8) width = s->img_x; + else { STBI_FREE(out); return stbi__errpuc("bad bpp", "Corrupt BMP"); } + pad = (-width)&3; + if (info.bpp == 1) { + for (j=0; j < (int) s->img_y; ++j) { + int bit_offset = 7, v = stbi__get8(s); + for (i=0; i < (int) s->img_x; ++i) { + int color = (v>>bit_offset)&0x1; + out[z++] = pal[color][0]; + out[z++] = pal[color][1]; + out[z++] = pal[color][2]; + if (target == 4) out[z++] = 255; + if (i+1 == (int) s->img_x) break; + if((--bit_offset) < 0) { + bit_offset = 7; + v = stbi__get8(s); + } + } + stbi__skip(s, pad); + } + } else { + for (j=0; j < (int) s->img_y; ++j) { + for (i=0; i < (int) s->img_x; i += 2) { + int v=stbi__get8(s),v2=0; + if (info.bpp == 4) { + v2 = v & 15; + v >>= 4; + } + out[z++] = pal[v][0]; + out[z++] = pal[v][1]; + out[z++] = pal[v][2]; + if (target == 4) out[z++] = 255; + if (i+1 == (int) s->img_x) break; + v = (info.bpp == 8) ? stbi__get8(s) : v2; + out[z++] = pal[v][0]; + out[z++] = pal[v][1]; + out[z++] = pal[v][2]; + if (target == 4) out[z++] = 255; + } + stbi__skip(s, pad); + } + } + } else { + int rshift=0,gshift=0,bshift=0,ashift=0,rcount=0,gcount=0,bcount=0,acount=0; + int z = 0; + int easy=0; + stbi__skip(s, info.offset - info.extra_read - info.hsz); + if (info.bpp == 24) width = 3 * s->img_x; + else if (info.bpp == 16) width = 2*s->img_x; + else /* bpp = 32 and pad = 0 */ width=0; + pad = (-width) & 3; + if (info.bpp == 24) { + easy = 1; + } else if (info.bpp == 32) { + if (mb == 0xff && mg == 0xff00 && mr == 0x00ff0000 && ma == 0xff000000) + easy = 2; + } + if (!easy) { + if (!mr || !mg || !mb) { STBI_FREE(out); return stbi__errpuc("bad masks", "Corrupt BMP"); } + // right shift amt to put high bit in position #7 + rshift = stbi__high_bit(mr)-7; rcount = stbi__bitcount(mr); + gshift = stbi__high_bit(mg)-7; gcount = stbi__bitcount(mg); + bshift = stbi__high_bit(mb)-7; bcount = stbi__bitcount(mb); + ashift = stbi__high_bit(ma)-7; acount = stbi__bitcount(ma); + if (rcount > 8 || gcount > 8 || bcount > 8 || acount > 8) { STBI_FREE(out); return stbi__errpuc("bad masks", "Corrupt BMP"); } + } + for (j=0; j < (int) s->img_y; ++j) { + if (easy) { + for (i=0; i < (int) s->img_x; ++i) { + unsigned char a; + out[z+2] = stbi__get8(s); + out[z+1] = stbi__get8(s); + out[z+0] = stbi__get8(s); + z += 3; + a = (easy == 2 ? stbi__get8(s) : 255); + all_a |= a; + if (target == 4) out[z++] = a; + } + } else { + int bpp = info.bpp; + for (i=0; i < (int) s->img_x; ++i) { + stbi__uint32 v = (bpp == 16 ? (stbi__uint32) stbi__get16le(s) : stbi__get32le(s)); + unsigned int a; + out[z++] = STBI__BYTECAST(stbi__shiftsigned(v & mr, rshift, rcount)); + out[z++] = STBI__BYTECAST(stbi__shiftsigned(v & mg, gshift, gcount)); + out[z++] = STBI__BYTECAST(stbi__shiftsigned(v & mb, bshift, bcount)); + a = (ma ? stbi__shiftsigned(v & ma, ashift, acount) : 255); + all_a |= a; + if (target == 4) out[z++] = STBI__BYTECAST(a); + } + } + stbi__skip(s, pad); + } + } + + // if alpha channel is all 0s, replace with all 255s + if (target == 4 && all_a == 0) + for (i=4*s->img_x*s->img_y-1; i >= 0; i -= 4) + out[i] = 255; + + if (flip_vertically) { + stbi_uc t; + for (j=0; j < (int) s->img_y>>1; ++j) { + stbi_uc *p1 = out + j *s->img_x*target; + stbi_uc *p2 = out + (s->img_y-1-j)*s->img_x*target; + for (i=0; i < (int) s->img_x*target; ++i) { + t = p1[i]; p1[i] = p2[i]; p2[i] = t; + } + } + } + + if (req_comp && req_comp != target) { + out = stbi__convert_format(out, target, req_comp, s->img_x, s->img_y); + if (out == NULL) return out; // stbi__convert_format frees input on failure + } + + *x = s->img_x; + *y = s->img_y; + if (comp) *comp = s->img_n; + return out; +} +#endif + +// Targa Truevision - TGA +// by Jonathan Dummer +#ifndef STBI_NO_TGA +// returns STBI_rgb or whatever, 0 on error +static int stbi__tga_get_comp(int bits_per_pixel, int is_grey, int* is_rgb16) +{ + // only RGB or RGBA (incl. 16bit) or grey allowed + if (is_rgb16) *is_rgb16 = 0; + switch(bits_per_pixel) { + case 8: return STBI_grey; + case 16: if(is_grey) return STBI_grey_alpha; + // fallthrough + case 15: if(is_rgb16) *is_rgb16 = 1; + return STBI_rgb; + case 24: // fallthrough + case 32: return bits_per_pixel/8; + default: return 0; + } +} + +static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp) +{ + int tga_w, tga_h, tga_comp, tga_image_type, tga_bits_per_pixel, tga_colormap_bpp; + int sz, tga_colormap_type; + stbi__get8(s); // discard Offset + tga_colormap_type = stbi__get8(s); // colormap type + if( tga_colormap_type > 1 ) { + stbi__rewind(s); + return 0; // only RGB or indexed allowed + } + tga_image_type = stbi__get8(s); // image type + if ( tga_colormap_type == 1 ) { // colormapped (paletted) image + if (tga_image_type != 1 && tga_image_type != 9) { + stbi__rewind(s); + return 0; + } + stbi__skip(s,4); // skip index of first colormap entry and number of entries + sz = stbi__get8(s); // check bits per palette color entry + if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) { + stbi__rewind(s); + return 0; + } + stbi__skip(s,4); // skip image x and y origin + tga_colormap_bpp = sz; + } else { // "normal" image w/o colormap - only RGB or grey allowed, +/- RLE + if ( (tga_image_type != 2) && (tga_image_type != 3) && (tga_image_type != 10) && (tga_image_type != 11) ) { + stbi__rewind(s); + return 0; // only RGB or grey allowed, +/- RLE + } + stbi__skip(s,9); // skip colormap specification and image x/y origin + tga_colormap_bpp = 0; + } + tga_w = stbi__get16le(s); + if( tga_w < 1 ) { + stbi__rewind(s); + return 0; // test width + } + tga_h = stbi__get16le(s); + if( tga_h < 1 ) { + stbi__rewind(s); + return 0; // test height + } + tga_bits_per_pixel = stbi__get8(s); // bits per pixel + stbi__get8(s); // ignore alpha bits + if (tga_colormap_bpp != 0) { + if((tga_bits_per_pixel != 8) && (tga_bits_per_pixel != 16)) { + // when using a colormap, tga_bits_per_pixel is the size of the indexes + // I don't think anything but 8 or 16bit indexes makes sense + stbi__rewind(s); + return 0; + } + tga_comp = stbi__tga_get_comp(tga_colormap_bpp, 0, NULL); + } else { + tga_comp = stbi__tga_get_comp(tga_bits_per_pixel, (tga_image_type == 3) || (tga_image_type == 11), NULL); + } + if(!tga_comp) { + stbi__rewind(s); + return 0; + } + if (x) *x = tga_w; + if (y) *y = tga_h; + if (comp) *comp = tga_comp; + return 1; // seems to have passed everything +} + +static int stbi__tga_test(stbi__context *s) +{ + int res = 0; + int sz, tga_color_type; + stbi__get8(s); // discard Offset + tga_color_type = stbi__get8(s); // color type + if ( tga_color_type > 1 ) goto errorEnd; // only RGB or indexed allowed + sz = stbi__get8(s); // image type + if ( tga_color_type == 1 ) { // colormapped (paletted) image + if (sz != 1 && sz != 9) goto errorEnd; // colortype 1 demands image type 1 or 9 + stbi__skip(s,4); // skip index of first colormap entry and number of entries + sz = stbi__get8(s); // check bits per palette color entry + if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) goto errorEnd; + stbi__skip(s,4); // skip image x and y origin + } else { // "normal" image w/o colormap + if ( (sz != 2) && (sz != 3) && (sz != 10) && (sz != 11) ) goto errorEnd; // only RGB or grey allowed, +/- RLE + stbi__skip(s,9); // skip colormap specification and image x/y origin + } + if ( stbi__get16le(s) < 1 ) goto errorEnd; // test width + if ( stbi__get16le(s) < 1 ) goto errorEnd; // test height + sz = stbi__get8(s); // bits per pixel + if ( (tga_color_type == 1) && (sz != 8) && (sz != 16) ) goto errorEnd; // for colormapped images, bpp is size of an index + if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) goto errorEnd; + + res = 1; // if we got this far, everything's good and we can return 1 instead of 0 + +errorEnd: + stbi__rewind(s); + return res; +} + +// read 16bit value and convert to 24bit RGB +static void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out) +{ + stbi__uint16 px = (stbi__uint16)stbi__get16le(s); + stbi__uint16 fiveBitMask = 31; + // we have 3 channels with 5bits each + int r = (px >> 10) & fiveBitMask; + int g = (px >> 5) & fiveBitMask; + int b = px & fiveBitMask; + // Note that this saves the data in RGB(A) order, so it doesn't need to be swapped later + out[0] = (stbi_uc)((r * 255)/31); + out[1] = (stbi_uc)((g * 255)/31); + out[2] = (stbi_uc)((b * 255)/31); + + // some people claim that the most significant bit might be used for alpha + // (possibly if an alpha-bit is set in the "image descriptor byte") + // but that only made 16bit test images completely translucent.. + // so let's treat all 15 and 16bit TGAs as RGB with no alpha. +} + +static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + // read in the TGA header stuff + int tga_offset = stbi__get8(s); + int tga_indexed = stbi__get8(s); + int tga_image_type = stbi__get8(s); + int tga_is_RLE = 0; + int tga_palette_start = stbi__get16le(s); + int tga_palette_len = stbi__get16le(s); + int tga_palette_bits = stbi__get8(s); + int tga_x_origin = stbi__get16le(s); + int tga_y_origin = stbi__get16le(s); + int tga_width = stbi__get16le(s); + int tga_height = stbi__get16le(s); + int tga_bits_per_pixel = stbi__get8(s); + int tga_comp, tga_rgb16=0; + int tga_inverted = stbi__get8(s); + // int tga_alpha_bits = tga_inverted & 15; // the 4 lowest bits - unused (useless?) + // image data + unsigned char *tga_data; + unsigned char *tga_palette = NULL; + int i, j; + unsigned char raw_data[4] = {0}; + int RLE_count = 0; + int RLE_repeating = 0; + int read_next_pixel = 1; + STBI_NOTUSED(ri); + STBI_NOTUSED(tga_x_origin); // @TODO + STBI_NOTUSED(tga_y_origin); // @TODO + + if (tga_height > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + if (tga_width > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + + // do a tiny bit of precessing + if ( tga_image_type >= 8 ) + { + tga_image_type -= 8; + tga_is_RLE = 1; + } + tga_inverted = 1 - ((tga_inverted >> 5) & 1); + + // If I'm paletted, then I'll use the number of bits from the palette + if ( tga_indexed ) tga_comp = stbi__tga_get_comp(tga_palette_bits, 0, &tga_rgb16); + else tga_comp = stbi__tga_get_comp(tga_bits_per_pixel, (tga_image_type == 3), &tga_rgb16); + + if(!tga_comp) // shouldn't really happen, stbi__tga_test() should have ensured basic consistency + return stbi__errpuc("bad format", "Can't find out TGA pixelformat"); + + // tga info + *x = tga_width; + *y = tga_height; + if (comp) *comp = tga_comp; + + if (!stbi__mad3sizes_valid(tga_width, tga_height, tga_comp, 0)) + return stbi__errpuc("too large", "Corrupt TGA"); + + tga_data = (unsigned char*)stbi__malloc_mad3(tga_width, tga_height, tga_comp, 0); + if (!tga_data) return stbi__errpuc("outofmem", "Out of memory"); + + // skip to the data's starting position (offset usually = 0) + stbi__skip(s, tga_offset ); + + if ( !tga_indexed && !tga_is_RLE && !tga_rgb16 ) { + for (i=0; i < tga_height; ++i) { + int row = tga_inverted ? tga_height -i - 1 : i; + stbi_uc *tga_row = tga_data + row*tga_width*tga_comp; + stbi__getn(s, tga_row, tga_width * tga_comp); + } + } else { + // do I need to load a palette? + if ( tga_indexed) + { + if (tga_palette_len == 0) { /* you have to have at least one entry! */ + STBI_FREE(tga_data); + return stbi__errpuc("bad palette", "Corrupt TGA"); + } + + // any data to skip? (offset usually = 0) + stbi__skip(s, tga_palette_start ); + // load the palette + tga_palette = (unsigned char*)stbi__malloc_mad2(tga_palette_len, tga_comp, 0); + if (!tga_palette) { + STBI_FREE(tga_data); + return stbi__errpuc("outofmem", "Out of memory"); + } + if (tga_rgb16) { + stbi_uc *pal_entry = tga_palette; + STBI_ASSERT(tga_comp == STBI_rgb); + for (i=0; i < tga_palette_len; ++i) { + stbi__tga_read_rgb16(s, pal_entry); + pal_entry += tga_comp; + } + } else if (!stbi__getn(s, tga_palette, tga_palette_len * tga_comp)) { + STBI_FREE(tga_data); + STBI_FREE(tga_palette); + return stbi__errpuc("bad palette", "Corrupt TGA"); + } + } + // load the data + for (i=0; i < tga_width * tga_height; ++i) + { + // if I'm in RLE mode, do I need to get a RLE stbi__pngchunk? + if ( tga_is_RLE ) + { + if ( RLE_count == 0 ) + { + // yep, get the next byte as a RLE command + int RLE_cmd = stbi__get8(s); + RLE_count = 1 + (RLE_cmd & 127); + RLE_repeating = RLE_cmd >> 7; + read_next_pixel = 1; + } else if ( !RLE_repeating ) + { + read_next_pixel = 1; + } + } else + { + read_next_pixel = 1; + } + // OK, if I need to read a pixel, do it now + if ( read_next_pixel ) + { + // load however much data we did have + if ( tga_indexed ) + { + // read in index, then perform the lookup + int pal_idx = (tga_bits_per_pixel == 8) ? stbi__get8(s) : stbi__get16le(s); + if ( pal_idx >= tga_palette_len ) { + // invalid index + pal_idx = 0; + } + pal_idx *= tga_comp; + for (j = 0; j < tga_comp; ++j) { + raw_data[j] = tga_palette[pal_idx+j]; + } + } else if(tga_rgb16) { + STBI_ASSERT(tga_comp == STBI_rgb); + stbi__tga_read_rgb16(s, raw_data); + } else { + // read in the data raw + for (j = 0; j < tga_comp; ++j) { + raw_data[j] = stbi__get8(s); + } + } + // clear the reading flag for the next pixel + read_next_pixel = 0; + } // end of reading a pixel + + // copy data + for (j = 0; j < tga_comp; ++j) + tga_data[i*tga_comp+j] = raw_data[j]; + + // in case we're in RLE mode, keep counting down + --RLE_count; + } + // do I need to invert the image? + if ( tga_inverted ) + { + for (j = 0; j*2 < tga_height; ++j) + { + int index1 = j * tga_width * tga_comp; + int index2 = (tga_height - 1 - j) * tga_width * tga_comp; + for (i = tga_width * tga_comp; i > 0; --i) + { + unsigned char temp = tga_data[index1]; + tga_data[index1] = tga_data[index2]; + tga_data[index2] = temp; + ++index1; + ++index2; + } + } + } + // clear my palette, if I had one + if ( tga_palette != NULL ) + { + STBI_FREE( tga_palette ); + } + } + + // swap RGB - if the source data was RGB16, it already is in the right order + if (tga_comp >= 3 && !tga_rgb16) + { + unsigned char* tga_pixel = tga_data; + for (i=0; i < tga_width * tga_height; ++i) + { + unsigned char temp = tga_pixel[0]; + tga_pixel[0] = tga_pixel[2]; + tga_pixel[2] = temp; + tga_pixel += tga_comp; + } + } + + // convert to target component count + if (req_comp && req_comp != tga_comp) + tga_data = stbi__convert_format(tga_data, tga_comp, req_comp, tga_width, tga_height); + + // the things I do to get rid of an error message, and yet keep + // Microsoft's C compilers happy... [8^( + tga_palette_start = tga_palette_len = tga_palette_bits = + tga_x_origin = tga_y_origin = 0; + STBI_NOTUSED(tga_palette_start); + // OK, done + return tga_data; +} +#endif + +// ************************************************************************************************* +// Photoshop PSD loader -- PD by Thatcher Ulrich, integration by Nicolas Schulz, tweaked by STB + +#ifndef STBI_NO_PSD +static int stbi__psd_test(stbi__context *s) +{ + int r = (stbi__get32be(s) == 0x38425053); + stbi__rewind(s); + return r; +} + +static int stbi__psd_decode_rle(stbi__context *s, stbi_uc *p, int pixelCount) +{ + int count, nleft, len; + + count = 0; + while ((nleft = pixelCount - count) > 0) { + len = stbi__get8(s); + if (len == 128) { + // No-op. + } else if (len < 128) { + // Copy next len+1 bytes literally. + len++; + if (len > nleft) return 0; // corrupt data + count += len; + while (len) { + *p = stbi__get8(s); + p += 4; + len--; + } + } else if (len > 128) { + stbi_uc val; + // Next -len+1 bytes in the dest are replicated from next source byte. + // (Interpret len as a negative 8-bit int.) + len = 257 - len; + if (len > nleft) return 0; // corrupt data + val = stbi__get8(s); + count += len; + while (len) { + *p = val; + p += 4; + len--; + } + } + } + + return 1; +} + +static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc) +{ + int pixelCount; + int channelCount, compression; + int channel, i; + int bitdepth; + int w,h; + stbi_uc *out; + STBI_NOTUSED(ri); + + // Check identifier + if (stbi__get32be(s) != 0x38425053) // "8BPS" + return stbi__errpuc("not PSD", "Corrupt PSD image"); + + // Check file type version. + if (stbi__get16be(s) != 1) + return stbi__errpuc("wrong version", "Unsupported version of PSD image"); + + // Skip 6 reserved bytes. + stbi__skip(s, 6 ); + + // Read the number of channels (R, G, B, A, etc). + channelCount = stbi__get16be(s); + if (channelCount < 0 || channelCount > 16) + return stbi__errpuc("wrong channel count", "Unsupported number of channels in PSD image"); + + // Read the rows and columns of the image. + h = stbi__get32be(s); + w = stbi__get32be(s); + + if (h > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + if (w > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + + // Make sure the depth is 8 bits. + bitdepth = stbi__get16be(s); + if (bitdepth != 8 && bitdepth != 16) + return stbi__errpuc("unsupported bit depth", "PSD bit depth is not 8 or 16 bit"); + + // Make sure the color mode is RGB. + // Valid options are: + // 0: Bitmap + // 1: Grayscale + // 2: Indexed color + // 3: RGB color + // 4: CMYK color + // 7: Multichannel + // 8: Duotone + // 9: Lab color + if (stbi__get16be(s) != 3) + return stbi__errpuc("wrong color format", "PSD is not in RGB color format"); + + // Skip the Mode Data. (It's the palette for indexed color; other info for other modes.) + stbi__skip(s,stbi__get32be(s) ); + + // Skip the image resources. (resolution, pen tool paths, etc) + stbi__skip(s, stbi__get32be(s) ); + + // Skip the reserved data. + stbi__skip(s, stbi__get32be(s) ); + + // Find out if the data is compressed. + // Known values: + // 0: no compression + // 1: RLE compressed + compression = stbi__get16be(s); + if (compression > 1) + return stbi__errpuc("bad compression", "PSD has an unknown compression format"); + + // Check size + if (!stbi__mad3sizes_valid(4, w, h, 0)) + return stbi__errpuc("too large", "Corrupt PSD"); + + // Create the destination image. + + if (!compression && bitdepth == 16 && bpc == 16) { + out = (stbi_uc *) stbi__malloc_mad3(8, w, h, 0); + ri->bits_per_channel = 16; + } else + out = (stbi_uc *) stbi__malloc(4 * w*h); + + if (!out) return stbi__errpuc("outofmem", "Out of memory"); + pixelCount = w*h; + + // Initialize the data to zero. + //memset( out, 0, pixelCount * 4 ); + + // Finally, the image data. + if (compression) { + // RLE as used by .PSD and .TIFF + // Loop until you get the number of unpacked bytes you are expecting: + // Read the next source byte into n. + // If n is between 0 and 127 inclusive, copy the next n+1 bytes literally. + // Else if n is between -127 and -1 inclusive, copy the next byte -n+1 times. + // Else if n is 128, noop. + // Endloop + + // The RLE-compressed data is preceded by a 2-byte data count for each row in the data, + // which we're going to just skip. + stbi__skip(s, h * channelCount * 2 ); + + // Read the RLE data by channel. + for (channel = 0; channel < 4; channel++) { + stbi_uc *p; + + p = out+channel; + if (channel >= channelCount) { + // Fill this channel with default data. + for (i = 0; i < pixelCount; i++, p += 4) + *p = (channel == 3 ? 255 : 0); + } else { + // Read the RLE data. + if (!stbi__psd_decode_rle(s, p, pixelCount)) { + STBI_FREE(out); + return stbi__errpuc("corrupt", "bad RLE data"); + } + } + } + + } else { + // We're at the raw image data. It's each channel in order (Red, Green, Blue, Alpha, ...) + // where each channel consists of an 8-bit (or 16-bit) value for each pixel in the image. + + // Read the data by channel. + for (channel = 0; channel < 4; channel++) { + if (channel >= channelCount) { + // Fill this channel with default data. + if (bitdepth == 16 && bpc == 16) { + stbi__uint16 *q = ((stbi__uint16 *) out) + channel; + stbi__uint16 val = channel == 3 ? 65535 : 0; + for (i = 0; i < pixelCount; i++, q += 4) + *q = val; + } else { + stbi_uc *p = out+channel; + stbi_uc val = channel == 3 ? 255 : 0; + for (i = 0; i < pixelCount; i++, p += 4) + *p = val; + } + } else { + if (ri->bits_per_channel == 16) { // output bpc + stbi__uint16 *q = ((stbi__uint16 *) out) + channel; + for (i = 0; i < pixelCount; i++, q += 4) + *q = (stbi__uint16) stbi__get16be(s); + } else { + stbi_uc *p = out+channel; + if (bitdepth == 16) { // input bpc + for (i = 0; i < pixelCount; i++, p += 4) + *p = (stbi_uc) (stbi__get16be(s) >> 8); + } else { + for (i = 0; i < pixelCount; i++, p += 4) + *p = stbi__get8(s); + } + } + } + } + } + + // remove weird white matte from PSD + if (channelCount >= 4) { + if (ri->bits_per_channel == 16) { + for (i=0; i < w*h; ++i) { + stbi__uint16 *pixel = (stbi__uint16 *) out + 4*i; + if (pixel[3] != 0 && pixel[3] != 65535) { + float a = pixel[3] / 65535.0f; + float ra = 1.0f / a; + float inv_a = 65535.0f * (1 - ra); + pixel[0] = (stbi__uint16) (pixel[0]*ra + inv_a); + pixel[1] = (stbi__uint16) (pixel[1]*ra + inv_a); + pixel[2] = (stbi__uint16) (pixel[2]*ra + inv_a); + } + } + } else { + for (i=0; i < w*h; ++i) { + unsigned char *pixel = out + 4*i; + if (pixel[3] != 0 && pixel[3] != 255) { + float a = pixel[3] / 255.0f; + float ra = 1.0f / a; + float inv_a = 255.0f * (1 - ra); + pixel[0] = (unsigned char) (pixel[0]*ra + inv_a); + pixel[1] = (unsigned char) (pixel[1]*ra + inv_a); + pixel[2] = (unsigned char) (pixel[2]*ra + inv_a); + } + } + } + } + + // convert to desired output format + if (req_comp && req_comp != 4) { + if (ri->bits_per_channel == 16) + out = (stbi_uc *) stbi__convert_format16((stbi__uint16 *) out, 4, req_comp, w, h); + else + out = stbi__convert_format(out, 4, req_comp, w, h); + if (out == NULL) return out; // stbi__convert_format frees input on failure + } + + if (comp) *comp = 4; + *y = h; + *x = w; + + return out; +} +#endif + +// ************************************************************************************************* +// Softimage PIC loader +// by Tom Seddon +// +// See http://softimage.wiki.softimage.com/index.php/INFO:_PIC_file_format +// See http://ozviz.wasp.uwa.edu.au/~pbourke/dataformats/softimagepic/ + +#ifndef STBI_NO_PIC +static int stbi__pic_is4(stbi__context *s,const char *str) +{ + int i; + for (i=0; i<4; ++i) + if (stbi__get8(s) != (stbi_uc)str[i]) + return 0; + + return 1; +} + +static int stbi__pic_test_core(stbi__context *s) +{ + int i; + + if (!stbi__pic_is4(s,"\x53\x80\xF6\x34")) + return 0; + + for(i=0;i<84;++i) + stbi__get8(s); + + if (!stbi__pic_is4(s,"PICT")) + return 0; + + return 1; +} + +typedef struct +{ + stbi_uc size,type,channel; +} stbi__pic_packet; + +static stbi_uc *stbi__readval(stbi__context *s, int channel, stbi_uc *dest) +{ + int mask=0x80, i; + + for (i=0; i<4; ++i, mask>>=1) { + if (channel & mask) { + if (stbi__at_eof(s)) return stbi__errpuc("bad file","PIC file too short"); + dest[i]=stbi__get8(s); + } + } + + return dest; +} + +static void stbi__copyval(int channel,stbi_uc *dest,const stbi_uc *src) +{ + int mask=0x80,i; + + for (i=0;i<4; ++i, mask>>=1) + if (channel&mask) + dest[i]=src[i]; +} + +static stbi_uc *stbi__pic_load_core(stbi__context *s,int width,int height,int *comp, stbi_uc *result) +{ + int act_comp=0,num_packets=0,y,chained; + stbi__pic_packet packets[10]; + + // this will (should...) cater for even some bizarre stuff like having data + // for the same channel in multiple packets. + do { + stbi__pic_packet *packet; + + if (num_packets==sizeof(packets)/sizeof(packets[0])) + return stbi__errpuc("bad format","too many packets"); + + packet = &packets[num_packets++]; + + chained = stbi__get8(s); + packet->size = stbi__get8(s); + packet->type = stbi__get8(s); + packet->channel = stbi__get8(s); + + act_comp |= packet->channel; + + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (reading packets)"); + if (packet->size != 8) return stbi__errpuc("bad format","packet isn't 8bpp"); + } while (chained); + + *comp = (act_comp & 0x10 ? 4 : 3); // has alpha channel? + + for(y=0; ytype) { + default: + return stbi__errpuc("bad format","packet has bad compression type"); + + case 0: {//uncompressed + int x; + + for(x=0;xchannel,dest)) + return 0; + break; + } + + case 1://Pure RLE + { + int left=width, i; + + while (left>0) { + stbi_uc count,value[4]; + + count=stbi__get8(s); + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (pure read count)"); + + if (count > left) + count = (stbi_uc) left; + + if (!stbi__readval(s,packet->channel,value)) return 0; + + for(i=0; ichannel,dest,value); + left -= count; + } + } + break; + + case 2: {//Mixed RLE + int left=width; + while (left>0) { + int count = stbi__get8(s), i; + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (mixed read count)"); + + if (count >= 128) { // Repeated + stbi_uc value[4]; + + if (count==128) + count = stbi__get16be(s); + else + count -= 127; + if (count > left) + return stbi__errpuc("bad file","scanline overrun"); + + if (!stbi__readval(s,packet->channel,value)) + return 0; + + for(i=0;ichannel,dest,value); + } else { // Raw + ++count; + if (count>left) return stbi__errpuc("bad file","scanline overrun"); + + for(i=0;ichannel,dest)) + return 0; + } + left-=count; + } + break; + } + } + } + } + + return result; +} + +static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp, stbi__result_info *ri) +{ + stbi_uc *result; + int i, x,y, internal_comp; + STBI_NOTUSED(ri); + + if (!comp) comp = &internal_comp; + + for (i=0; i<92; ++i) + stbi__get8(s); + + x = stbi__get16be(s); + y = stbi__get16be(s); + + if (y > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + if (x > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (pic header)"); + if (!stbi__mad3sizes_valid(x, y, 4, 0)) return stbi__errpuc("too large", "PIC image too large to decode"); + + stbi__get32be(s); //skip `ratio' + stbi__get16be(s); //skip `fields' + stbi__get16be(s); //skip `pad' + + // intermediate buffer is RGBA + result = (stbi_uc *) stbi__malloc_mad3(x, y, 4, 0); + if (!result) return stbi__errpuc("outofmem", "Out of memory"); + memset(result, 0xff, x*y*4); + + if (!stbi__pic_load_core(s,x,y,comp, result)) { + STBI_FREE(result); + result=0; + } + *px = x; + *py = y; + if (req_comp == 0) req_comp = *comp; + result=stbi__convert_format(result,4,req_comp,x,y); + + return result; +} + +static int stbi__pic_test(stbi__context *s) +{ + int r = stbi__pic_test_core(s); + stbi__rewind(s); + return r; +} +#endif + +// ************************************************************************************************* +// GIF loader -- public domain by Jean-Marc Lienher -- simplified/shrunk by stb + +#ifndef STBI_NO_GIF +typedef struct +{ + stbi__int16 prefix; + stbi_uc first; + stbi_uc suffix; +} stbi__gif_lzw; + +typedef struct +{ + int w,h; + stbi_uc *out; // output buffer (always 4 components) + stbi_uc *background; // The current "background" as far as a gif is concerned + stbi_uc *history; + int flags, bgindex, ratio, transparent, eflags; + stbi_uc pal[256][4]; + stbi_uc lpal[256][4]; + stbi__gif_lzw codes[8192]; + stbi_uc *color_table; + int parse, step; + int lflags; + int start_x, start_y; + int max_x, max_y; + int cur_x, cur_y; + int line_size; + int delay; +} stbi__gif; + +static int stbi__gif_test_raw(stbi__context *s) +{ + int sz; + if (stbi__get8(s) != 'G' || stbi__get8(s) != 'I' || stbi__get8(s) != 'F' || stbi__get8(s) != '8') return 0; + sz = stbi__get8(s); + if (sz != '9' && sz != '7') return 0; + if (stbi__get8(s) != 'a') return 0; + return 1; +} + +static int stbi__gif_test(stbi__context *s) +{ + int r = stbi__gif_test_raw(s); + stbi__rewind(s); + return r; +} + +static void stbi__gif_parse_colortable(stbi__context *s, stbi_uc pal[256][4], int num_entries, int transp) +{ + int i; + for (i=0; i < num_entries; ++i) { + pal[i][2] = stbi__get8(s); + pal[i][1] = stbi__get8(s); + pal[i][0] = stbi__get8(s); + pal[i][3] = transp == i ? 0 : 255; + } +} + +static int stbi__gif_header(stbi__context *s, stbi__gif *g, int *comp, int is_info) +{ + stbi_uc version; + if (stbi__get8(s) != 'G' || stbi__get8(s) != 'I' || stbi__get8(s) != 'F' || stbi__get8(s) != '8') + return stbi__err("not GIF", "Corrupt GIF"); + + version = stbi__get8(s); + if (version != '7' && version != '9') return stbi__err("not GIF", "Corrupt GIF"); + if (stbi__get8(s) != 'a') return stbi__err("not GIF", "Corrupt GIF"); + + stbi__g_failure_reason = ""; + g->w = stbi__get16le(s); + g->h = stbi__get16le(s); + g->flags = stbi__get8(s); + g->bgindex = stbi__get8(s); + g->ratio = stbi__get8(s); + g->transparent = -1; + + if (g->w > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + if (g->h > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + + if (comp != 0) *comp = 4; // can't actually tell whether it's 3 or 4 until we parse the comments + + if (is_info) return 1; + + if (g->flags & 0x80) + stbi__gif_parse_colortable(s,g->pal, 2 << (g->flags & 7), -1); + + return 1; +} + +static int stbi__gif_info_raw(stbi__context *s, int *x, int *y, int *comp) +{ + stbi__gif* g = (stbi__gif*) stbi__malloc(sizeof(stbi__gif)); + if (!g) return stbi__err("outofmem", "Out of memory"); + if (!stbi__gif_header(s, g, comp, 1)) { + STBI_FREE(g); + stbi__rewind( s ); + return 0; + } + if (x) *x = g->w; + if (y) *y = g->h; + STBI_FREE(g); + return 1; +} + +static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code) +{ + stbi_uc *p, *c; + int idx; + + // recurse to decode the prefixes, since the linked-list is backwards, + // and working backwards through an interleaved image would be nasty + if (g->codes[code].prefix >= 0) + stbi__out_gif_code(g, g->codes[code].prefix); + + if (g->cur_y >= g->max_y) return; + + idx = g->cur_x + g->cur_y; + p = &g->out[idx]; + g->history[idx / 4] = 1; + + c = &g->color_table[g->codes[code].suffix * 4]; + if (c[3] > 128) { // don't render transparent pixels; + p[0] = c[2]; + p[1] = c[1]; + p[2] = c[0]; + p[3] = c[3]; + } + g->cur_x += 4; + + if (g->cur_x >= g->max_x) { + g->cur_x = g->start_x; + g->cur_y += g->step; + + while (g->cur_y >= g->max_y && g->parse > 0) { + g->step = (1 << g->parse) * g->line_size; + g->cur_y = g->start_y + (g->step >> 1); + --g->parse; + } + } +} + +static stbi_uc *stbi__process_gif_raster(stbi__context *s, stbi__gif *g) +{ + stbi_uc lzw_cs; + stbi__int32 len, init_code; + stbi__uint32 first; + stbi__int32 codesize, codemask, avail, oldcode, bits, valid_bits, clear; + stbi__gif_lzw *p; + + lzw_cs = stbi__get8(s); + if (lzw_cs > 12) return NULL; + clear = 1 << lzw_cs; + first = 1; + codesize = lzw_cs + 1; + codemask = (1 << codesize) - 1; + bits = 0; + valid_bits = 0; + for (init_code = 0; init_code < clear; init_code++) { + g->codes[init_code].prefix = -1; + g->codes[init_code].first = (stbi_uc) init_code; + g->codes[init_code].suffix = (stbi_uc) init_code; + } + + // support no starting clear code + avail = clear+2; + oldcode = -1; + + len = 0; + for(;;) { + if (valid_bits < codesize) { + if (len == 0) { + len = stbi__get8(s); // start new block + if (len == 0) + return g->out; + } + --len; + bits |= (stbi__int32) stbi__get8(s) << valid_bits; + valid_bits += 8; + } else { + stbi__int32 code = bits & codemask; + bits >>= codesize; + valid_bits -= codesize; + // @OPTIMIZE: is there some way we can accelerate the non-clear path? + if (code == clear) { // clear code + codesize = lzw_cs + 1; + codemask = (1 << codesize) - 1; + avail = clear + 2; + oldcode = -1; + first = 0; + } else if (code == clear + 1) { // end of stream code + stbi__skip(s, len); + while ((len = stbi__get8(s)) > 0) + stbi__skip(s,len); + return g->out; + } else if (code <= avail) { + if (first) { + return stbi__errpuc("no clear code", "Corrupt GIF"); + } + + if (oldcode >= 0) { + p = &g->codes[avail++]; + if (avail > 8192) { + return stbi__errpuc("too many codes", "Corrupt GIF"); + } + + p->prefix = (stbi__int16) oldcode; + p->first = g->codes[oldcode].first; + p->suffix = (code == avail) ? p->first : g->codes[code].first; + } else if (code == avail) + return stbi__errpuc("illegal code in raster", "Corrupt GIF"); + + stbi__out_gif_code(g, (stbi__uint16) code); + + if ((avail & codemask) == 0 && avail <= 0x0FFF) { + codesize++; + codemask = (1 << codesize) - 1; + } + + oldcode = code; + } else { + return stbi__errpuc("illegal code in raster", "Corrupt GIF"); + } + } + } +} + +// this function is designed to support animated gifs, although stb_image doesn't support it +// two back is the image from two frames ago, used for a very specific disposal format +static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp, stbi_uc *two_back) +{ + int dispose; + int first_frame; + int pi; + int pcount; + STBI_NOTUSED(req_comp); + + // on first frame, any non-written pixels get the background colour (non-transparent) + first_frame = 0; + if (g->out == 0) { + if (!stbi__gif_header(s, g, comp,0)) return 0; // stbi__g_failure_reason set by stbi__gif_header + if (!stbi__mad3sizes_valid(4, g->w, g->h, 0)) + return stbi__errpuc("too large", "GIF image is too large"); + pcount = g->w * g->h; + g->out = (stbi_uc *) stbi__malloc(4 * pcount); + g->background = (stbi_uc *) stbi__malloc(4 * pcount); + g->history = (stbi_uc *) stbi__malloc(pcount); + if (!g->out || !g->background || !g->history) + return stbi__errpuc("outofmem", "Out of memory"); + + // image is treated as "transparent" at the start - ie, nothing overwrites the current background; + // background colour is only used for pixels that are not rendered first frame, after that "background" + // color refers to the color that was there the previous frame. + memset(g->out, 0x00, 4 * pcount); + memset(g->background, 0x00, 4 * pcount); // state of the background (starts transparent) + memset(g->history, 0x00, pcount); // pixels that were affected previous frame + first_frame = 1; + } else { + // second frame - how do we dispose of the previous one? + dispose = (g->eflags & 0x1C) >> 2; + pcount = g->w * g->h; + + if ((dispose == 3) && (two_back == 0)) { + dispose = 2; // if I don't have an image to revert back to, default to the old background + } + + if (dispose == 3) { // use previous graphic + for (pi = 0; pi < pcount; ++pi) { + if (g->history[pi]) { + memcpy( &g->out[pi * 4], &two_back[pi * 4], 4 ); + } + } + } else if (dispose == 2) { + // restore what was changed last frame to background before that frame; + for (pi = 0; pi < pcount; ++pi) { + if (g->history[pi]) { + memcpy( &g->out[pi * 4], &g->background[pi * 4], 4 ); + } + } + } else { + // This is a non-disposal case eithe way, so just + // leave the pixels as is, and they will become the new background + // 1: do not dispose + // 0: not specified. + } + + // background is what out is after the undoing of the previou frame; + memcpy( g->background, g->out, 4 * g->w * g->h ); + } + + // clear my history; + memset( g->history, 0x00, g->w * g->h ); // pixels that were affected previous frame + + for (;;) { + int tag = stbi__get8(s); + switch (tag) { + case 0x2C: /* Image Descriptor */ + { + stbi__int32 x, y, w, h; + stbi_uc *o; + + x = stbi__get16le(s); + y = stbi__get16le(s); + w = stbi__get16le(s); + h = stbi__get16le(s); + if (((x + w) > (g->w)) || ((y + h) > (g->h))) + return stbi__errpuc("bad Image Descriptor", "Corrupt GIF"); + + g->line_size = g->w * 4; + g->start_x = x * 4; + g->start_y = y * g->line_size; + g->max_x = g->start_x + w * 4; + g->max_y = g->start_y + h * g->line_size; + g->cur_x = g->start_x; + g->cur_y = g->start_y; + + // if the width of the specified rectangle is 0, that means + // we may not see *any* pixels or the image is malformed; + // to make sure this is caught, move the current y down to + // max_y (which is what out_gif_code checks). + if (w == 0) + g->cur_y = g->max_y; + + g->lflags = stbi__get8(s); + + if (g->lflags & 0x40) { + g->step = 8 * g->line_size; // first interlaced spacing + g->parse = 3; + } else { + g->step = g->line_size; + g->parse = 0; + } + + if (g->lflags & 0x80) { + stbi__gif_parse_colortable(s,g->lpal, 2 << (g->lflags & 7), g->eflags & 0x01 ? g->transparent : -1); + g->color_table = (stbi_uc *) g->lpal; + } else if (g->flags & 0x80) { + g->color_table = (stbi_uc *) g->pal; + } else + return stbi__errpuc("missing color table", "Corrupt GIF"); + + o = stbi__process_gif_raster(s, g); + if (!o) return NULL; + + // if this was the first frame, + pcount = g->w * g->h; + if (first_frame && (g->bgindex > 0)) { + // if first frame, any pixel not drawn to gets the background color + for (pi = 0; pi < pcount; ++pi) { + if (g->history[pi] == 0) { + g->pal[g->bgindex][3] = 255; // just in case it was made transparent, undo that; It will be reset next frame if need be; + memcpy( &g->out[pi * 4], &g->pal[g->bgindex], 4 ); + } + } + } + + return o; + } + + case 0x21: // Comment Extension. + { + int len; + int ext = stbi__get8(s); + if (ext == 0xF9) { // Graphic Control Extension. + len = stbi__get8(s); + if (len == 4) { + g->eflags = stbi__get8(s); + g->delay = 10 * stbi__get16le(s); // delay - 1/100th of a second, saving as 1/1000ths. + + // unset old transparent + if (g->transparent >= 0) { + g->pal[g->transparent][3] = 255; + } + if (g->eflags & 0x01) { + g->transparent = stbi__get8(s); + if (g->transparent >= 0) { + g->pal[g->transparent][3] = 0; + } + } else { + // don't need transparent + stbi__skip(s, 1); + g->transparent = -1; + } + } else { + stbi__skip(s, len); + break; + } + } + while ((len = stbi__get8(s)) != 0) { + stbi__skip(s, len); + } + break; + } + + case 0x3B: // gif stream termination code + return (stbi_uc *) s; // using '1' causes warning on some compilers + + default: + return stbi__errpuc("unknown code", "Corrupt GIF"); + } + } +} + +static void *stbi__load_gif_main_outofmem(stbi__gif *g, stbi_uc *out, int **delays) +{ + STBI_FREE(g->out); + STBI_FREE(g->history); + STBI_FREE(g->background); + + if (out) STBI_FREE(out); + if (delays && *delays) STBI_FREE(*delays); + return stbi__errpuc("outofmem", "Out of memory"); +} + +static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp) +{ + if (stbi__gif_test(s)) { + int layers = 0; + stbi_uc *u = 0; + stbi_uc *out = 0; + stbi_uc *two_back = 0; + stbi__gif g; + int stride; + int out_size = 0; + int delays_size = 0; + + STBI_NOTUSED(out_size); + STBI_NOTUSED(delays_size); + + memset(&g, 0, sizeof(g)); + if (delays) { + *delays = 0; + } + + do { + u = stbi__gif_load_next(s, &g, comp, req_comp, two_back); + if (u == (stbi_uc *) s) u = 0; // end of animated gif marker + + if (u) { + *x = g.w; + *y = g.h; + ++layers; + stride = g.w * g.h * 4; + + if (out) { + void *tmp = (stbi_uc*) STBI_REALLOC_SIZED( out, out_size, layers * stride ); + if (!tmp) + return stbi__load_gif_main_outofmem(&g, out, delays); + else { + out = (stbi_uc*) tmp; + out_size = layers * stride; + } + + if (delays) { + int *new_delays = (int*) STBI_REALLOC_SIZED( *delays, delays_size, sizeof(int) * layers ); + if (!new_delays) + return stbi__load_gif_main_outofmem(&g, out, delays); + *delays = new_delays; + delays_size = layers * sizeof(int); + } + } else { + out = (stbi_uc*)stbi__malloc( layers * stride ); + if (!out) + return stbi__load_gif_main_outofmem(&g, out, delays); + out_size = layers * stride; + if (delays) { + *delays = (int*) stbi__malloc( layers * sizeof(int) ); + if (!*delays) + return stbi__load_gif_main_outofmem(&g, out, delays); + delays_size = layers * sizeof(int); + } + } + memcpy( out + ((layers - 1) * stride), u, stride ); + if (layers >= 2) { + two_back = out - 2 * stride; + } + + if (delays) { + (*delays)[layers - 1U] = g.delay; + } + } + } while (u != 0); + + // free temp buffer; + STBI_FREE(g.out); + STBI_FREE(g.history); + STBI_FREE(g.background); + + // do the final conversion after loading everything; + if (req_comp && req_comp != 4) + out = stbi__convert_format(out, 4, req_comp, layers * g.w, g.h); + + *z = layers; + return out; + } else { + return stbi__errpuc("not GIF", "Image was not as a gif type."); + } +} + +static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + stbi_uc *u = 0; + stbi__gif g; + memset(&g, 0, sizeof(g)); + STBI_NOTUSED(ri); + + u = stbi__gif_load_next(s, &g, comp, req_comp, 0); + if (u == (stbi_uc *) s) u = 0; // end of animated gif marker + if (u) { + *x = g.w; + *y = g.h; + + // moved conversion to after successful load so that the same + // can be done for multiple frames. + if (req_comp && req_comp != 4) + u = stbi__convert_format(u, 4, req_comp, g.w, g.h); + } else if (g.out) { + // if there was an error and we allocated an image buffer, free it! + STBI_FREE(g.out); + } + + // free buffers needed for multiple frame loading; + STBI_FREE(g.history); + STBI_FREE(g.background); + + return u; +} + +static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp) +{ + return stbi__gif_info_raw(s,x,y,comp); +} +#endif + +// ************************************************************************************************* +// Radiance RGBE HDR loader +// originally by Nicolas Schulz +#ifndef STBI_NO_HDR +static int stbi__hdr_test_core(stbi__context *s, const char *signature) +{ + int i; + for (i=0; signature[i]; ++i) + if (stbi__get8(s) != signature[i]) + return 0; + stbi__rewind(s); + return 1; +} + +static int stbi__hdr_test(stbi__context* s) +{ + int r = stbi__hdr_test_core(s, "#?RADIANCE\n"); + stbi__rewind(s); + if(!r) { + r = stbi__hdr_test_core(s, "#?RGBE\n"); + stbi__rewind(s); + } + return r; +} + +#define STBI__HDR_BUFLEN 1024 +static char *stbi__hdr_gettoken(stbi__context *z, char *buffer) +{ + int len=0; + char c = '\0'; + + c = (char) stbi__get8(z); + + while (!stbi__at_eof(z) && c != '\n') { + buffer[len++] = c; + if (len == STBI__HDR_BUFLEN-1) { + // flush to end of line + while (!stbi__at_eof(z) && stbi__get8(z) != '\n') + ; + break; + } + c = (char) stbi__get8(z); + } + + buffer[len] = 0; + return buffer; +} + +static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp) +{ + if ( input[3] != 0 ) { + float f1; + // Exponent + f1 = (float) ldexp(1.0f, input[3] - (int)(128 + 8)); + if (req_comp <= 2) + output[0] = (input[0] + input[1] + input[2]) * f1 / 3; + else { + output[0] = input[0] * f1; + output[1] = input[1] * f1; + output[2] = input[2] * f1; + } + if (req_comp == 2) output[1] = 1; + if (req_comp == 4) output[3] = 1; + } else { + switch (req_comp) { + case 4: output[3] = 1; /* fallthrough */ + case 3: output[0] = output[1] = output[2] = 0; + break; + case 2: output[1] = 1; /* fallthrough */ + case 1: output[0] = 0; + break; + } + } +} + +static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + char buffer[STBI__HDR_BUFLEN]; + char *token; + int valid = 0; + int width, height; + stbi_uc *scanline; + float *hdr_data; + int len; + unsigned char count, value; + int i, j, k, c1,c2, z; + const char *headerToken; + STBI_NOTUSED(ri); + + // Check identifier + headerToken = stbi__hdr_gettoken(s,buffer); + if (strcmp(headerToken, "#?RADIANCE") != 0 && strcmp(headerToken, "#?RGBE") != 0) + return stbi__errpf("not HDR", "Corrupt HDR image"); + + // Parse header + for(;;) { + token = stbi__hdr_gettoken(s,buffer); + if (token[0] == 0) break; + if (strcmp(token, "FORMAT=32-bit_rle_rgbe") == 0) valid = 1; + } + + if (!valid) return stbi__errpf("unsupported format", "Unsupported HDR format"); + + // Parse width and height + // can't use sscanf() if we're not using stdio! + token = stbi__hdr_gettoken(s,buffer); + if (strncmp(token, "-Y ", 3)) return stbi__errpf("unsupported data layout", "Unsupported HDR format"); + token += 3; + height = (int) strtol(token, &token, 10); + while (*token == ' ') ++token; + if (strncmp(token, "+X ", 3)) return stbi__errpf("unsupported data layout", "Unsupported HDR format"); + token += 3; + width = (int) strtol(token, NULL, 10); + + if (height > STBI_MAX_DIMENSIONS) return stbi__errpf("too large","Very large image (corrupt?)"); + if (width > STBI_MAX_DIMENSIONS) return stbi__errpf("too large","Very large image (corrupt?)"); + + *x = width; + *y = height; + + if (comp) *comp = 3; + if (req_comp == 0) req_comp = 3; + + if (!stbi__mad4sizes_valid(width, height, req_comp, sizeof(float), 0)) + return stbi__errpf("too large", "HDR image is too large"); + + // Read data + hdr_data = (float *) stbi__malloc_mad4(width, height, req_comp, sizeof(float), 0); + if (!hdr_data) + return stbi__errpf("outofmem", "Out of memory"); + + // Load image data + // image data is stored as some number of sca + if ( width < 8 || width >= 32768) { + // Read flat data + for (j=0; j < height; ++j) { + for (i=0; i < width; ++i) { + stbi_uc rgbe[4]; + main_decode_loop: + stbi__getn(s, rgbe, 4); + stbi__hdr_convert(hdr_data + j * width * req_comp + i * req_comp, rgbe, req_comp); + } + } + } else { + // Read RLE-encoded data + scanline = NULL; + + for (j = 0; j < height; ++j) { + c1 = stbi__get8(s); + c2 = stbi__get8(s); + len = stbi__get8(s); + if (c1 != 2 || c2 != 2 || (len & 0x80)) { + // not run-length encoded, so we have to actually use THIS data as a decoded + // pixel (note this can't be a valid pixel--one of RGB must be >= 128) + stbi_uc rgbe[4]; + rgbe[0] = (stbi_uc) c1; + rgbe[1] = (stbi_uc) c2; + rgbe[2] = (stbi_uc) len; + rgbe[3] = (stbi_uc) stbi__get8(s); + stbi__hdr_convert(hdr_data, rgbe, req_comp); + i = 1; + j = 0; + STBI_FREE(scanline); + goto main_decode_loop; // yes, this makes no sense + } + len <<= 8; + len |= stbi__get8(s); + if (len != width) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("invalid decoded scanline length", "corrupt HDR"); } + if (scanline == NULL) { + scanline = (stbi_uc *) stbi__malloc_mad2(width, 4, 0); + if (!scanline) { + STBI_FREE(hdr_data); + return stbi__errpf("outofmem", "Out of memory"); + } + } + + for (k = 0; k < 4; ++k) { + int nleft; + i = 0; + while ((nleft = width - i) > 0) { + count = stbi__get8(s); + if (count > 128) { + // Run + value = stbi__get8(s); + count -= 128; + if ((count == 0) || (count > nleft)) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); } + for (z = 0; z < count; ++z) + scanline[i++ * 4 + k] = value; + } else { + // Dump + if ((count == 0) || (count > nleft)) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); } + for (z = 0; z < count; ++z) + scanline[i++ * 4 + k] = stbi__get8(s); + } + } + } + for (i=0; i < width; ++i) + stbi__hdr_convert(hdr_data+(j*width + i)*req_comp, scanline + i*4, req_comp); + } + if (scanline) + STBI_FREE(scanline); + } + + return hdr_data; +} + +static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp) +{ + char buffer[STBI__HDR_BUFLEN]; + char *token; + int valid = 0; + int dummy; + + if (!x) x = &dummy; + if (!y) y = &dummy; + if (!comp) comp = &dummy; + + if (stbi__hdr_test(s) == 0) { + stbi__rewind( s ); + return 0; + } + + for(;;) { + token = stbi__hdr_gettoken(s,buffer); + if (token[0] == 0) break; + if (strcmp(token, "FORMAT=32-bit_rle_rgbe") == 0) valid = 1; + } + + if (!valid) { + stbi__rewind( s ); + return 0; + } + token = stbi__hdr_gettoken(s,buffer); + if (strncmp(token, "-Y ", 3)) { + stbi__rewind( s ); + return 0; + } + token += 3; + *y = (int) strtol(token, &token, 10); + while (*token == ' ') ++token; + if (strncmp(token, "+X ", 3)) { + stbi__rewind( s ); + return 0; + } + token += 3; + *x = (int) strtol(token, NULL, 10); + *comp = 3; + return 1; +} +#endif // STBI_NO_HDR + +#ifndef STBI_NO_BMP +static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp) +{ + void *p; + stbi__bmp_data info; + + info.all_a = 255; + p = stbi__bmp_parse_header(s, &info); + if (p == NULL) { + stbi__rewind( s ); + return 0; + } + if (x) *x = s->img_x; + if (y) *y = s->img_y; + if (comp) { + if (info.bpp == 24 && info.ma == 0xff000000) + *comp = 3; + else + *comp = info.ma ? 4 : 3; + } + return 1; +} +#endif + +#ifndef STBI_NO_PSD +static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp) +{ + int channelCount, dummy, depth; + if (!x) x = &dummy; + if (!y) y = &dummy; + if (!comp) comp = &dummy; + if (stbi__get32be(s) != 0x38425053) { + stbi__rewind( s ); + return 0; + } + if (stbi__get16be(s) != 1) { + stbi__rewind( s ); + return 0; + } + stbi__skip(s, 6); + channelCount = stbi__get16be(s); + if (channelCount < 0 || channelCount > 16) { + stbi__rewind( s ); + return 0; + } + *y = stbi__get32be(s); + *x = stbi__get32be(s); + depth = stbi__get16be(s); + if (depth != 8 && depth != 16) { + stbi__rewind( s ); + return 0; + } + if (stbi__get16be(s) != 3) { + stbi__rewind( s ); + return 0; + } + *comp = 4; + return 1; +} + +static int stbi__psd_is16(stbi__context *s) +{ + int channelCount, depth; + if (stbi__get32be(s) != 0x38425053) { + stbi__rewind( s ); + return 0; + } + if (stbi__get16be(s) != 1) { + stbi__rewind( s ); + return 0; + } + stbi__skip(s, 6); + channelCount = stbi__get16be(s); + if (channelCount < 0 || channelCount > 16) { + stbi__rewind( s ); + return 0; + } + STBI_NOTUSED(stbi__get32be(s)); + STBI_NOTUSED(stbi__get32be(s)); + depth = stbi__get16be(s); + if (depth != 16) { + stbi__rewind( s ); + return 0; + } + return 1; +} +#endif + +#ifndef STBI_NO_PIC +static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp) +{ + int act_comp=0,num_packets=0,chained,dummy; + stbi__pic_packet packets[10]; + + if (!x) x = &dummy; + if (!y) y = &dummy; + if (!comp) comp = &dummy; + + if (!stbi__pic_is4(s,"\x53\x80\xF6\x34")) { + stbi__rewind(s); + return 0; + } + + stbi__skip(s, 88); + + *x = stbi__get16be(s); + *y = stbi__get16be(s); + if (stbi__at_eof(s)) { + stbi__rewind( s); + return 0; + } + if ( (*x) != 0 && (1 << 28) / (*x) < (*y)) { + stbi__rewind( s ); + return 0; + } + + stbi__skip(s, 8); + + do { + stbi__pic_packet *packet; + + if (num_packets==sizeof(packets)/sizeof(packets[0])) + return 0; + + packet = &packets[num_packets++]; + chained = stbi__get8(s); + packet->size = stbi__get8(s); + packet->type = stbi__get8(s); + packet->channel = stbi__get8(s); + act_comp |= packet->channel; + + if (stbi__at_eof(s)) { + stbi__rewind( s ); + return 0; + } + if (packet->size != 8) { + stbi__rewind( s ); + return 0; + } + } while (chained); + + *comp = (act_comp & 0x10 ? 4 : 3); + + return 1; +} +#endif + +// ************************************************************************************************* +// Portable Gray Map and Portable Pixel Map loader +// by Ken Miller +// +// PGM: http://netpbm.sourceforge.net/doc/pgm.html +// PPM: http://netpbm.sourceforge.net/doc/ppm.html +// +// Known limitations: +// Does not support comments in the header section +// Does not support ASCII image data (formats P2 and P3) + +#ifndef STBI_NO_PNM + +static int stbi__pnm_test(stbi__context *s) +{ + char p, t; + p = (char) stbi__get8(s); + t = (char) stbi__get8(s); + if (p != 'P' || (t != '5' && t != '6')) { + stbi__rewind( s ); + return 0; + } + return 1; +} + +static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + stbi_uc *out; + STBI_NOTUSED(ri); + + ri->bits_per_channel = stbi__pnm_info(s, (int *)&s->img_x, (int *)&s->img_y, (int *)&s->img_n); + if (ri->bits_per_channel == 0) + return 0; + + if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + if (s->img_x > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + + *x = s->img_x; + *y = s->img_y; + if (comp) *comp = s->img_n; + + if (!stbi__mad4sizes_valid(s->img_n, s->img_x, s->img_y, ri->bits_per_channel / 8, 0)) + return stbi__errpuc("too large", "PNM too large"); + + out = (stbi_uc *) stbi__malloc_mad4(s->img_n, s->img_x, s->img_y, ri->bits_per_channel / 8, 0); + if (!out) return stbi__errpuc("outofmem", "Out of memory"); + if (!stbi__getn(s, out, s->img_n * s->img_x * s->img_y * (ri->bits_per_channel / 8))) { + STBI_FREE(out); + return stbi__errpuc("bad PNM", "PNM file truncated"); + } + + if (req_comp && req_comp != s->img_n) { + if (ri->bits_per_channel == 16) { + out = (stbi_uc *) stbi__convert_format16((stbi__uint16 *) out, s->img_n, req_comp, s->img_x, s->img_y); + } else { + out = stbi__convert_format(out, s->img_n, req_comp, s->img_x, s->img_y); + } + if (out == NULL) return out; // stbi__convert_format frees input on failure + } + return out; +} + +static int stbi__pnm_isspace(char c) +{ + return c == ' ' || c == '\t' || c == '\n' || c == '\v' || c == '\f' || c == '\r'; +} + +static void stbi__pnm_skip_whitespace(stbi__context *s, char *c) +{ + for (;;) { + while (!stbi__at_eof(s) && stbi__pnm_isspace(*c)) + *c = (char) stbi__get8(s); + + if (stbi__at_eof(s) || *c != '#') + break; + + while (!stbi__at_eof(s) && *c != '\n' && *c != '\r' ) + *c = (char) stbi__get8(s); + } +} + +static int stbi__pnm_isdigit(char c) +{ + return c >= '0' && c <= '9'; +} + +static int stbi__pnm_getinteger(stbi__context *s, char *c) +{ + int value = 0; + + while (!stbi__at_eof(s) && stbi__pnm_isdigit(*c)) { + value = value*10 + (*c - '0'); + *c = (char) stbi__get8(s); + if((value > 214748364) || (value == 214748364 && *c > '7')) + return stbi__err("integer parse overflow", "Parsing an integer in the PPM header overflowed a 32-bit int"); + } + + return value; +} + +static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp) +{ + int maxv, dummy; + char c, p, t; + + if (!x) x = &dummy; + if (!y) y = &dummy; + if (!comp) comp = &dummy; + + stbi__rewind(s); + + // Get identifier + p = (char) stbi__get8(s); + t = (char) stbi__get8(s); + if (p != 'P' || (t != '5' && t != '6')) { + stbi__rewind(s); + return 0; + } + + *comp = (t == '6') ? 3 : 1; // '5' is 1-component .pgm; '6' is 3-component .ppm + + c = (char) stbi__get8(s); + stbi__pnm_skip_whitespace(s, &c); + + *x = stbi__pnm_getinteger(s, &c); // read width + if(*x == 0) + return stbi__err("invalid width", "PPM image header had zero or overflowing width"); + stbi__pnm_skip_whitespace(s, &c); + + *y = stbi__pnm_getinteger(s, &c); // read height + if (*y == 0) + return stbi__err("invalid width", "PPM image header had zero or overflowing width"); + stbi__pnm_skip_whitespace(s, &c); + + maxv = stbi__pnm_getinteger(s, &c); // read max value + if (maxv > 65535) + return stbi__err("max value > 65535", "PPM image supports only 8-bit and 16-bit images"); + else if (maxv > 255) + return 16; + else + return 8; +} + +static int stbi__pnm_is16(stbi__context *s) +{ + if (stbi__pnm_info(s, NULL, NULL, NULL) == 16) + return 1; + return 0; +} +#endif + +static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp) +{ + #ifndef STBI_NO_JPEG + if (stbi__jpeg_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PNG + if (stbi__png_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_GIF + if (stbi__gif_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_BMP + if (stbi__bmp_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PSD + if (stbi__psd_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PIC + if (stbi__pic_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PNM + if (stbi__pnm_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_HDR + if (stbi__hdr_info(s, x, y, comp)) return 1; + #endif + + // test tga last because it's a crappy test! + #ifndef STBI_NO_TGA + if (stbi__tga_info(s, x, y, comp)) + return 1; + #endif + return stbi__err("unknown image type", "Image not of any known type, or corrupt"); +} + +static int stbi__is_16_main(stbi__context *s) +{ + #ifndef STBI_NO_PNG + if (stbi__png_is16(s)) return 1; + #endif + + #ifndef STBI_NO_PSD + if (stbi__psd_is16(s)) return 1; + #endif + + #ifndef STBI_NO_PNM + if (stbi__pnm_is16(s)) return 1; + #endif + return 0; +} + +#ifndef STBI_NO_STDIO +STBIDEF int stbi_info(char const *filename, int *x, int *y, int *comp) +{ + FILE *f = stbi__fopen(filename, "rb"); + int result; + if (!f) return stbi__err("can't fopen", "Unable to open file"); + result = stbi_info_from_file(f, x, y, comp); + fclose(f); + return result; +} + +STBIDEF int stbi_info_from_file(FILE *f, int *x, int *y, int *comp) +{ + int r; + stbi__context s; + long pos = ftell(f); + stbi__start_file(&s, f); + r = stbi__info_main(&s,x,y,comp); + fseek(f,pos,SEEK_SET); + return r; +} + +STBIDEF int stbi_is_16_bit(char const *filename) +{ + FILE *f = stbi__fopen(filename, "rb"); + int result; + if (!f) return stbi__err("can't fopen", "Unable to open file"); + result = stbi_is_16_bit_from_file(f); + fclose(f); + return result; +} + +STBIDEF int stbi_is_16_bit_from_file(FILE *f) +{ + int r; + stbi__context s; + long pos = ftell(f); + stbi__start_file(&s, f); + r = stbi__is_16_main(&s); + fseek(f,pos,SEEK_SET); + return r; +} +#endif // !STBI_NO_STDIO + +STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__info_main(&s,x,y,comp); +} + +STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int *x, int *y, int *comp) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) c, user); + return stbi__info_main(&s,x,y,comp); +} + +STBIDEF int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__is_16_main(&s); +} + +STBIDEF int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *c, void *user) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) c, user); + return stbi__is_16_main(&s); +} + +#endif // STB_IMAGE_IMPLEMENTATION + +/* + revision history: + 2.20 (2019-02-07) support utf8 filenames in Windows; fix warnings and platform ifdefs + 2.19 (2018-02-11) fix warning + 2.18 (2018-01-30) fix warnings + 2.17 (2018-01-29) change sbti__shiftsigned to avoid clang -O2 bug + 1-bit BMP + *_is_16_bit api + avoid warnings + 2.16 (2017-07-23) all functions have 16-bit variants; + STBI_NO_STDIO works again; + compilation fixes; + fix rounding in unpremultiply; + optimize vertical flip; + disable raw_len validation; + documentation fixes + 2.15 (2017-03-18) fix png-1,2,4 bug; now all Imagenet JPGs decode; + warning fixes; disable run-time SSE detection on gcc; + uniform handling of optional "return" values; + thread-safe initialization of zlib tables + 2.14 (2017-03-03) remove deprecated STBI_JPEG_OLD; fixes for Imagenet JPGs + 2.13 (2016-11-29) add 16-bit API, only supported for PNG right now + 2.12 (2016-04-02) fix typo in 2.11 PSD fix that caused crashes + 2.11 (2016-04-02) allocate large structures on the stack + remove white matting for transparent PSD + fix reported channel count for PNG & BMP + re-enable SSE2 in non-gcc 64-bit + support RGB-formatted JPEG + read 16-bit PNGs (only as 8-bit) + 2.10 (2016-01-22) avoid warning introduced in 2.09 by STBI_REALLOC_SIZED + 2.09 (2016-01-16) allow comments in PNM files + 16-bit-per-pixel TGA (not bit-per-component) + info() for TGA could break due to .hdr handling + info() for BMP to shares code instead of sloppy parse + can use STBI_REALLOC_SIZED if allocator doesn't support realloc + code cleanup + 2.08 (2015-09-13) fix to 2.07 cleanup, reading RGB PSD as RGBA + 2.07 (2015-09-13) fix compiler warnings + partial animated GIF support + limited 16-bpc PSD support + #ifdef unused functions + bug with < 92 byte PIC,PNM,HDR,TGA + 2.06 (2015-04-19) fix bug where PSD returns wrong '*comp' value + 2.05 (2015-04-19) fix bug in progressive JPEG handling, fix warning + 2.04 (2015-04-15) try to re-enable SIMD on MinGW 64-bit + 2.03 (2015-04-12) extra corruption checking (mmozeiko) + stbi_set_flip_vertically_on_load (nguillemot) + fix NEON support; fix mingw support + 2.02 (2015-01-19) fix incorrect assert, fix warning + 2.01 (2015-01-17) fix various warnings; suppress SIMD on gcc 32-bit without -msse2 + 2.00b (2014-12-25) fix STBI_MALLOC in progressive JPEG + 2.00 (2014-12-25) optimize JPG, including x86 SSE2 & NEON SIMD (ryg) + progressive JPEG (stb) + PGM/PPM support (Ken Miller) + STBI_MALLOC,STBI_REALLOC,STBI_FREE + GIF bugfix -- seemingly never worked + STBI_NO_*, STBI_ONLY_* + 1.48 (2014-12-14) fix incorrectly-named assert() + 1.47 (2014-12-14) 1/2/4-bit PNG support, both direct and paletted (Omar Cornut & stb) + optimize PNG (ryg) + fix bug in interlaced PNG with user-specified channel count (stb) + 1.46 (2014-08-26) + fix broken tRNS chunk (colorkey-style transparency) in non-paletted PNG + 1.45 (2014-08-16) + fix MSVC-ARM internal compiler error by wrapping malloc + 1.44 (2014-08-07) + various warning fixes from Ronny Chevalier + 1.43 (2014-07-15) + fix MSVC-only compiler problem in code changed in 1.42 + 1.42 (2014-07-09) + don't define _CRT_SECURE_NO_WARNINGS (affects user code) + fixes to stbi__cleanup_jpeg path + added STBI_ASSERT to avoid requiring assert.h + 1.41 (2014-06-25) + fix search&replace from 1.36 that messed up comments/error messages + 1.40 (2014-06-22) + fix gcc struct-initialization warning + 1.39 (2014-06-15) + fix to TGA optimization when req_comp != number of components in TGA; + fix to GIF loading because BMP wasn't rewinding (whoops, no GIFs in my test suite) + add support for BMP version 5 (more ignored fields) + 1.38 (2014-06-06) + suppress MSVC warnings on integer casts truncating values + fix accidental rename of 'skip' field of I/O + 1.37 (2014-06-04) + remove duplicate typedef + 1.36 (2014-06-03) + convert to header file single-file library + if de-iphone isn't set, load iphone images color-swapped instead of returning NULL + 1.35 (2014-05-27) + various warnings + fix broken STBI_SIMD path + fix bug where stbi_load_from_file no longer left file pointer in correct place + fix broken non-easy path for 32-bit BMP (possibly never used) + TGA optimization by Arseny Kapoulkine + 1.34 (unknown) + use STBI_NOTUSED in stbi__resample_row_generic(), fix one more leak in tga failure case + 1.33 (2011-07-14) + make stbi_is_hdr work in STBI_NO_HDR (as specified), minor compiler-friendly improvements + 1.32 (2011-07-13) + support for "info" function for all supported filetypes (SpartanJ) + 1.31 (2011-06-20) + a few more leak fixes, bug in PNG handling (SpartanJ) + 1.30 (2011-06-11) + added ability to load files via callbacks to accomidate custom input streams (Ben Wenger) + removed deprecated format-specific test/load functions + removed support for installable file formats (stbi_loader) -- would have been broken for IO callbacks anyway + error cases in bmp and tga give messages and don't leak (Raymond Barbiero, grisha) + fix inefficiency in decoding 32-bit BMP (David Woo) + 1.29 (2010-08-16) + various warning fixes from Aurelien Pocheville + 1.28 (2010-08-01) + fix bug in GIF palette transparency (SpartanJ) + 1.27 (2010-08-01) + cast-to-stbi_uc to fix warnings + 1.26 (2010-07-24) + fix bug in file buffering for PNG reported by SpartanJ + 1.25 (2010-07-17) + refix trans_data warning (Won Chun) + 1.24 (2010-07-12) + perf improvements reading from files on platforms with lock-heavy fgetc() + minor perf improvements for jpeg + deprecated type-specific functions so we'll get feedback if they're needed + attempt to fix trans_data warning (Won Chun) + 1.23 fixed bug in iPhone support + 1.22 (2010-07-10) + removed image *writing* support + stbi_info support from Jetro Lauha + GIF support from Jean-Marc Lienher + iPhone PNG-extensions from James Brown + warning-fixes from Nicolas Schulz and Janez Zemva (i.stbi__err. Janez (U+017D)emva) + 1.21 fix use of 'stbi_uc' in header (reported by jon blow) + 1.20 added support for Softimage PIC, by Tom Seddon + 1.19 bug in interlaced PNG corruption check (found by ryg) + 1.18 (2008-08-02) + fix a threading bug (local mutable static) + 1.17 support interlaced PNG + 1.16 major bugfix - stbi__convert_format converted one too many pixels + 1.15 initialize some fields for thread safety + 1.14 fix threadsafe conversion bug + header-file-only version (#define STBI_HEADER_FILE_ONLY before including) + 1.13 threadsafe + 1.12 const qualifiers in the API + 1.11 Support installable IDCT, colorspace conversion routines + 1.10 Fixes for 64-bit (don't use "unsigned long") + optimized upsampling by Fabian "ryg" Giesen + 1.09 Fix format-conversion for PSD code (bad global variables!) + 1.08 Thatcher Ulrich's PSD code integrated by Nicolas Schulz + 1.07 attempt to fix C++ warning/errors again + 1.06 attempt to fix C++ warning/errors again + 1.05 fix TGA loading to return correct *comp and use good luminance calc + 1.04 default float alpha is 1, not 255; use 'void *' for stbi_image_free + 1.03 bugfixes to STBI_NO_STDIO, STBI_NO_HDR + 1.02 support for (subset of) HDR files, float interface for preferred access to them + 1.01 fix bug: possible bug in handling right-side up bmps... not sure + fix bug: the stbi__bmp_load() and stbi__tga_load() functions didn't work at all + 1.00 interface to zlib that skips zlib header + 0.99 correct handling of alpha in palette + 0.98 TGA loader by lonesock; dynamically add loaders (untested) + 0.97 jpeg errors on too large a file; also catch another malloc failure + 0.96 fix detection of invalid v value - particleman@mollyrocket forum + 0.95 during header scan, seek to markers in case of padding + 0.94 STBI_NO_STDIO to disable stdio usage; rename all #defines the same + 0.93 handle jpegtran output; verbose errors + 0.92 read 4,8,16,24,32-bit BMP files of several formats + 0.91 output 24-bit Windows 3.0 BMP files + 0.90 fix a few more warnings; bump version number to approach 1.0 + 0.61 bugfixes due to Marc LeBlanc, Christopher Lloyd + 0.60 fix compiling as c++ + 0.59 fix warnings: merge Dave Moore's -Wall fixes + 0.58 fix bug: zlib uncompressed mode len/nlen was wrong endian + 0.57 fix bug: jpg last huffman symbol before marker was >9 bits but less than 16 available + 0.56 fix bug: zlib uncompressed mode len vs. nlen + 0.55 fix bug: restart_interval not initialized to 0 + 0.54 allow NULL for 'int *comp' + 0.53 fix bug in png 3->4; speedup png decoding + 0.52 png handles req_comp=3,4 directly; minor cleanup; jpeg comments + 0.51 obey req_comp requests, 1-component jpegs return as 1-component, + on 'test' only check type, not whether we support this variant + 0.50 (2006-11-19) + first released version +*/ + + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/third_party/stb/stb_image_resize.h b/third_party/stb/stb_image_resize.h new file mode 100644 index 0000000..ef9e6fe --- /dev/null +++ b/third_party/stb/stb_image_resize.h @@ -0,0 +1,2634 @@ +/* stb_image_resize - v0.97 - public domain image resizing + by Jorge L Rodriguez (@VinoBS) - 2014 + http://github.com/nothings/stb + + Written with emphasis on usability, portability, and efficiency. (No + SIMD or threads, so it be easily outperformed by libs that use those.) + Only scaling and translation is supported, no rotations or shears. + Easy API downsamples w/Mitchell filter, upsamples w/cubic interpolation. + + COMPILING & LINKING + In one C/C++ file that #includes this file, do this: + #define STB_IMAGE_RESIZE_IMPLEMENTATION + before the #include. That will create the implementation in that file. + + QUICKSTART + stbir_resize_uint8( input_pixels , in_w , in_h , 0, + output_pixels, out_w, out_h, 0, num_channels) + stbir_resize_float(...) + stbir_resize_uint8_srgb( input_pixels , in_w , in_h , 0, + output_pixels, out_w, out_h, 0, + num_channels , alpha_chan , 0) + stbir_resize_uint8_srgb_edgemode( + input_pixels , in_w , in_h , 0, + output_pixels, out_w, out_h, 0, + num_channels , alpha_chan , 0, STBIR_EDGE_CLAMP) + // WRAP/REFLECT/ZERO + + FULL API + See the "header file" section of the source for API documentation. + + ADDITIONAL DOCUMENTATION + + SRGB & FLOATING POINT REPRESENTATION + The sRGB functions presume IEEE floating point. If you do not have + IEEE floating point, define STBIR_NON_IEEE_FLOAT. This will use + a slower implementation. + + MEMORY ALLOCATION + The resize functions here perform a single memory allocation using + malloc. To control the memory allocation, before the #include that + triggers the implementation, do: + + #define STBIR_MALLOC(size,context) ... + #define STBIR_FREE(ptr,context) ... + + Each resize function makes exactly one call to malloc/free, so to use + temp memory, store the temp memory in the context and return that. + + ASSERT + Define STBIR_ASSERT(boolval) to override assert() and not use assert.h + + OPTIMIZATION + Define STBIR_SATURATE_INT to compute clamp values in-range using + integer operations instead of float operations. This may be faster + on some platforms. + + DEFAULT FILTERS + For functions which don't provide explicit control over what filters + to use, you can change the compile-time defaults with + + #define STBIR_DEFAULT_FILTER_UPSAMPLE STBIR_FILTER_something + #define STBIR_DEFAULT_FILTER_DOWNSAMPLE STBIR_FILTER_something + + See stbir_filter in the header-file section for the list of filters. + + NEW FILTERS + A number of 1D filter kernels are used. For a list of + supported filters see the stbir_filter enum. To add a new filter, + write a filter function and add it to stbir__filter_info_table. + + PROGRESS + For interactive use with slow resize operations, you can install + a progress-report callback: + + #define STBIR_PROGRESS_REPORT(val) some_func(val) + + The parameter val is a float which goes from 0 to 1 as progress is made. + + For example: + + static void my_progress_report(float progress); + #define STBIR_PROGRESS_REPORT(val) my_progress_report(val) + + #define STB_IMAGE_RESIZE_IMPLEMENTATION + #include "stb_image_resize.h" + + static void my_progress_report(float progress) + { + printf("Progress: %f%%\n", progress*100); + } + + MAX CHANNELS + If your image has more than 64 channels, define STBIR_MAX_CHANNELS + to the max you'll have. + + ALPHA CHANNEL + Most of the resizing functions provide the ability to control how + the alpha channel of an image is processed. The important things + to know about this: + + 1. The best mathematically-behaved version of alpha to use is + called "premultiplied alpha", in which the other color channels + have had the alpha value multiplied in. If you use premultiplied + alpha, linear filtering (such as image resampling done by this + library, or performed in texture units on GPUs) does the "right + thing". While premultiplied alpha is standard in the movie CGI + industry, it is still uncommon in the videogame/real-time world. + + If you linearly filter non-premultiplied alpha, strange effects + occur. (For example, the 50/50 average of 99% transparent bright green + and 1% transparent black produces 50% transparent dark green when + non-premultiplied, whereas premultiplied it produces 50% + transparent near-black. The former introduces green energy + that doesn't exist in the source image.) + + 2. Artists should not edit premultiplied-alpha images; artists + want non-premultiplied alpha images. Thus, art tools generally output + non-premultiplied alpha images. + + 3. You will get best results in most cases by converting images + to premultiplied alpha before processing them mathematically. + + 4. If you pass the flag STBIR_FLAG_ALPHA_PREMULTIPLIED, the + resizer does not do anything special for the alpha channel; + it is resampled identically to other channels. This produces + the correct results for premultiplied-alpha images, but produces + less-than-ideal results for non-premultiplied-alpha images. + + 5. If you do not pass the flag STBIR_FLAG_ALPHA_PREMULTIPLIED, + then the resizer weights the contribution of input pixels + based on their alpha values, or, equivalently, it multiplies + the alpha value into the color channels, resamples, then divides + by the resultant alpha value. Input pixels which have alpha=0 do + not contribute at all to output pixels unless _all_ of the input + pixels affecting that output pixel have alpha=0, in which case + the result for that pixel is the same as it would be without + STBIR_FLAG_ALPHA_PREMULTIPLIED. However, this is only true for + input images in integer formats. For input images in float format, + input pixels with alpha=0 have no effect, and output pixels + which have alpha=0 will be 0 in all channels. (For float images, + you can manually achieve the same result by adding a tiny epsilon + value to the alpha channel of every image, and then subtracting + or clamping it at the end.) + + 6. You can suppress the behavior described in #5 and make + all-0-alpha pixels have 0 in all channels by #defining + STBIR_NO_ALPHA_EPSILON. + + 7. You can separately control whether the alpha channel is + interpreted as linear or affected by the colorspace. By default + it is linear; you almost never want to apply the colorspace. + (For example, graphics hardware does not apply sRGB conversion + to the alpha channel.) + + CONTRIBUTORS + Jorge L Rodriguez: Implementation + Sean Barrett: API design, optimizations + Aras Pranckevicius: bugfix + Nathan Reed: warning fixes + + REVISIONS + 0.97 (2020-02-02) fixed warning + 0.96 (2019-03-04) fixed warnings + 0.95 (2017-07-23) fixed warnings + 0.94 (2017-03-18) fixed warnings + 0.93 (2017-03-03) fixed bug with certain combinations of heights + 0.92 (2017-01-02) fix integer overflow on large (>2GB) images + 0.91 (2016-04-02) fix warnings; fix handling of subpixel regions + 0.90 (2014-09-17) first released version + + LICENSE + See end of file for license information. + + TODO + Don't decode all of the image data when only processing a partial tile + Don't use full-width decode buffers when only processing a partial tile + When processing wide images, break processing into tiles so data fits in L1 cache + Installable filters? + Resize that respects alpha test coverage + (Reference code: FloatImage::alphaTestCoverage and FloatImage::scaleAlphaToCoverage: + https://code.google.com/p/nvidia-texture-tools/source/browse/trunk/src/nvimage/FloatImage.cpp ) +*/ + +#ifndef STBIR_INCLUDE_STB_IMAGE_RESIZE_H +#define STBIR_INCLUDE_STB_IMAGE_RESIZE_H + +#ifdef _MSC_VER +typedef unsigned char stbir_uint8; +typedef unsigned short stbir_uint16; +typedef unsigned int stbir_uint32; +#else +#include +typedef uint8_t stbir_uint8; +typedef uint16_t stbir_uint16; +typedef uint32_t stbir_uint32; +#endif + +#ifndef STBIRDEF +#ifdef STB_IMAGE_RESIZE_STATIC +#define STBIRDEF static +#else +#ifdef __cplusplus +#define STBIRDEF extern "C" +#else +#define STBIRDEF extern +#endif +#endif +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// Easy-to-use API: +// +// * "input pixels" points to an array of image data with 'num_channels' channels (e.g. RGB=3, RGBA=4) +// * input_w is input image width (x-axis), input_h is input image height (y-axis) +// * stride is the offset between successive rows of image data in memory, in bytes. you can +// specify 0 to mean packed continuously in memory +// * alpha channel is treated identically to other channels. +// * colorspace is linear or sRGB as specified by function name +// * returned result is 1 for success or 0 in case of an error. +// #define STBIR_ASSERT() to trigger an assert on parameter validation errors. +// * Memory required grows approximately linearly with input and output size, but with +// discontinuities at input_w == output_w and input_h == output_h. +// * These functions use a "default" resampling filter defined at compile time. To change the filter, +// you can change the compile-time defaults by #defining STBIR_DEFAULT_FILTER_UPSAMPLE +// and STBIR_DEFAULT_FILTER_DOWNSAMPLE, or you can use the medium-complexity API. + +STBIRDEF int stbir_resize_uint8( const unsigned char *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + int num_channels); + +STBIRDEF int stbir_resize_float( const float *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + float *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + int num_channels); + + +// The following functions interpret image data as gamma-corrected sRGB. +// Specify STBIR_ALPHA_CHANNEL_NONE if you have no alpha channel, +// or otherwise provide the index of the alpha channel. Flags value +// of 0 will probably do the right thing if you're not sure what +// the flags mean. + +#define STBIR_ALPHA_CHANNEL_NONE -1 + +// Set this flag if your texture has premultiplied alpha. Otherwise, stbir will +// use alpha-weighted resampling (effectively premultiplying, resampling, +// then unpremultiplying). +#define STBIR_FLAG_ALPHA_PREMULTIPLIED (1 << 0) +// The specified alpha channel should be handled as gamma-corrected value even +// when doing sRGB operations. +#define STBIR_FLAG_ALPHA_USES_COLORSPACE (1 << 1) + +STBIRDEF int stbir_resize_uint8_srgb(const unsigned char *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + int num_channels, int alpha_channel, int flags); + + +typedef enum +{ + STBIR_EDGE_CLAMP = 1, + STBIR_EDGE_REFLECT = 2, + STBIR_EDGE_WRAP = 3, + STBIR_EDGE_ZERO = 4, +} stbir_edge; + +// This function adds the ability to specify how requests to sample off the edge of the image are handled. +STBIRDEF int stbir_resize_uint8_srgb_edgemode(const unsigned char *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + int num_channels, int alpha_channel, int flags, + stbir_edge edge_wrap_mode); + +////////////////////////////////////////////////////////////////////////////// +// +// Medium-complexity API +// +// This extends the easy-to-use API as follows: +// +// * Alpha-channel can be processed separately +// * If alpha_channel is not STBIR_ALPHA_CHANNEL_NONE +// * Alpha channel will not be gamma corrected (unless flags&STBIR_FLAG_GAMMA_CORRECT) +// * Filters will be weighted by alpha channel (unless flags&STBIR_FLAG_ALPHA_PREMULTIPLIED) +// * Filter can be selected explicitly +// * uint16 image type +// * sRGB colorspace available for all types +// * context parameter for passing to STBIR_MALLOC + +typedef enum +{ + STBIR_FILTER_DEFAULT = 0, // use same filter type that easy-to-use API chooses + STBIR_FILTER_BOX = 1, // A trapezoid w/1-pixel wide ramps, same result as box for integer scale ratios + STBIR_FILTER_TRIANGLE = 2, // On upsampling, produces same results as bilinear texture filtering + STBIR_FILTER_CUBICBSPLINE = 3, // The cubic b-spline (aka Mitchell-Netrevalli with B=1,C=0), gaussian-esque + STBIR_FILTER_CATMULLROM = 4, // An interpolating cubic spline + STBIR_FILTER_MITCHELL = 5, // Mitchell-Netrevalli filter with B=1/3, C=1/3 +} stbir_filter; + +typedef enum +{ + STBIR_COLORSPACE_LINEAR, + STBIR_COLORSPACE_SRGB, + + STBIR_MAX_COLORSPACES, +} stbir_colorspace; + +// The following functions are all identical except for the type of the image data + +STBIRDEF int stbir_resize_uint8_generic( const unsigned char *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + int num_channels, int alpha_channel, int flags, + stbir_edge edge_wrap_mode, stbir_filter filter, stbir_colorspace space, + void *alloc_context); + +STBIRDEF int stbir_resize_uint16_generic(const stbir_uint16 *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + stbir_uint16 *output_pixels , int output_w, int output_h, int output_stride_in_bytes, + int num_channels, int alpha_channel, int flags, + stbir_edge edge_wrap_mode, stbir_filter filter, stbir_colorspace space, + void *alloc_context); + +STBIRDEF int stbir_resize_float_generic( const float *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + float *output_pixels , int output_w, int output_h, int output_stride_in_bytes, + int num_channels, int alpha_channel, int flags, + stbir_edge edge_wrap_mode, stbir_filter filter, stbir_colorspace space, + void *alloc_context); + + + +////////////////////////////////////////////////////////////////////////////// +// +// Full-complexity API +// +// This extends the medium API as follows: +// +// * uint32 image type +// * not typesafe +// * separate filter types for each axis +// * separate edge modes for each axis +// * can specify scale explicitly for subpixel correctness +// * can specify image source tile using texture coordinates + +typedef enum +{ + STBIR_TYPE_UINT8 , + STBIR_TYPE_UINT16, + STBIR_TYPE_UINT32, + STBIR_TYPE_FLOAT , + + STBIR_MAX_TYPES +} stbir_datatype; + +STBIRDEF int stbir_resize( const void *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + void *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + stbir_datatype datatype, + int num_channels, int alpha_channel, int flags, + stbir_edge edge_mode_horizontal, stbir_edge edge_mode_vertical, + stbir_filter filter_horizontal, stbir_filter filter_vertical, + stbir_colorspace space, void *alloc_context); + +STBIRDEF int stbir_resize_subpixel(const void *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + void *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + stbir_datatype datatype, + int num_channels, int alpha_channel, int flags, + stbir_edge edge_mode_horizontal, stbir_edge edge_mode_vertical, + stbir_filter filter_horizontal, stbir_filter filter_vertical, + stbir_colorspace space, void *alloc_context, + float x_scale, float y_scale, + float x_offset, float y_offset); + +STBIRDEF int stbir_resize_region( const void *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + void *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + stbir_datatype datatype, + int num_channels, int alpha_channel, int flags, + stbir_edge edge_mode_horizontal, stbir_edge edge_mode_vertical, + stbir_filter filter_horizontal, stbir_filter filter_vertical, + stbir_colorspace space, void *alloc_context, + float s0, float t0, float s1, float t1); +// (s0, t0) & (s1, t1) are the top-left and bottom right corner (uv addressing style: [0, 1]x[0, 1]) of a region of the input image to use. + +// +// +//// end header file ///////////////////////////////////////////////////// +#endif // STBIR_INCLUDE_STB_IMAGE_RESIZE_H + + + + + +#ifdef STB_IMAGE_RESIZE_IMPLEMENTATION + +#ifndef STBIR_ASSERT +#include +#define STBIR_ASSERT(x) assert(x) +#endif + +// For memset +#include + +#include + +#ifndef STBIR_MALLOC +#include +// use comma operator to evaluate c, to avoid "unused parameter" warnings +#define STBIR_MALLOC(size,c) ((void)(c), malloc(size)) +#define STBIR_FREE(ptr,c) ((void)(c), free(ptr)) +#endif + +#ifndef _MSC_VER +#ifdef __cplusplus +#define stbir__inline inline +#else +#define stbir__inline +#endif +#else +#define stbir__inline __forceinline +#endif + + +// should produce compiler error if size is wrong +typedef unsigned char stbir__validate_uint32[sizeof(stbir_uint32) == 4 ? 1 : -1]; + +#ifdef _MSC_VER +#define STBIR__NOTUSED(v) (void)(v) +#else +#define STBIR__NOTUSED(v) (void)sizeof(v) +#endif + +#define STBIR__ARRAY_SIZE(a) (sizeof((a))/sizeof((a)[0])) + +#ifndef STBIR_DEFAULT_FILTER_UPSAMPLE +#define STBIR_DEFAULT_FILTER_UPSAMPLE STBIR_FILTER_CATMULLROM +#endif + +#ifndef STBIR_DEFAULT_FILTER_DOWNSAMPLE +#define STBIR_DEFAULT_FILTER_DOWNSAMPLE STBIR_FILTER_MITCHELL +#endif + +#ifndef STBIR_PROGRESS_REPORT +#define STBIR_PROGRESS_REPORT(float_0_to_1) +#endif + +#ifndef STBIR_MAX_CHANNELS +#define STBIR_MAX_CHANNELS 64 +#endif + +#if STBIR_MAX_CHANNELS > 65536 +#error "Too many channels; STBIR_MAX_CHANNELS must be no more than 65536." +// because we store the indices in 16-bit variables +#endif + +// This value is added to alpha just before premultiplication to avoid +// zeroing out color values. It is equivalent to 2^-80. If you don't want +// that behavior (it may interfere if you have floating point images with +// very small alpha values) then you can define STBIR_NO_ALPHA_EPSILON to +// disable it. +#ifndef STBIR_ALPHA_EPSILON +#define STBIR_ALPHA_EPSILON ((float)1 / (1 << 20) / (1 << 20) / (1 << 20) / (1 << 20)) +#endif + + + +#ifdef _MSC_VER +#define STBIR__UNUSED_PARAM(v) (void)(v) +#else +#define STBIR__UNUSED_PARAM(v) (void)sizeof(v) +#endif + +// must match stbir_datatype +static unsigned char stbir__type_size[] = { + 1, // STBIR_TYPE_UINT8 + 2, // STBIR_TYPE_UINT16 + 4, // STBIR_TYPE_UINT32 + 4, // STBIR_TYPE_FLOAT +}; + +// Kernel function centered at 0 +typedef float (stbir__kernel_fn)(float x, float scale); +typedef float (stbir__support_fn)(float scale); + +typedef struct +{ + stbir__kernel_fn* kernel; + stbir__support_fn* support; +} stbir__filter_info; + +// When upsampling, the contributors are which source pixels contribute. +// When downsampling, the contributors are which destination pixels are contributed to. +typedef struct +{ + int n0; // First contributing pixel + int n1; // Last contributing pixel +} stbir__contributors; + +typedef struct +{ + const void* input_data; + int input_w; + int input_h; + int input_stride_bytes; + + void* output_data; + int output_w; + int output_h; + int output_stride_bytes; + + float s0, t0, s1, t1; + + float horizontal_shift; // Units: output pixels + float vertical_shift; // Units: output pixels + float horizontal_scale; + float vertical_scale; + + int channels; + int alpha_channel; + stbir_uint32 flags; + stbir_datatype type; + stbir_filter horizontal_filter; + stbir_filter vertical_filter; + stbir_edge edge_horizontal; + stbir_edge edge_vertical; + stbir_colorspace colorspace; + + stbir__contributors* horizontal_contributors; + float* horizontal_coefficients; + + stbir__contributors* vertical_contributors; + float* vertical_coefficients; + + int decode_buffer_pixels; + float* decode_buffer; + + float* horizontal_buffer; + + // cache these because ceil/floor are inexplicably showing up in profile + int horizontal_coefficient_width; + int vertical_coefficient_width; + int horizontal_filter_pixel_width; + int vertical_filter_pixel_width; + int horizontal_filter_pixel_margin; + int vertical_filter_pixel_margin; + int horizontal_num_contributors; + int vertical_num_contributors; + + int ring_buffer_length_bytes; // The length of an individual entry in the ring buffer. The total number of ring buffers is stbir__get_filter_pixel_width(filter) + int ring_buffer_num_entries; // Total number of entries in the ring buffer. + int ring_buffer_first_scanline; + int ring_buffer_last_scanline; + int ring_buffer_begin_index; // first_scanline is at this index in the ring buffer + float* ring_buffer; + + float* encode_buffer; // A temporary buffer to store floats so we don't lose precision while we do multiply-adds. + + int horizontal_contributors_size; + int horizontal_coefficients_size; + int vertical_contributors_size; + int vertical_coefficients_size; + int decode_buffer_size; + int horizontal_buffer_size; + int ring_buffer_size; + int encode_buffer_size; +} stbir__info; + + +static const float stbir__max_uint8_as_float = 255.0f; +static const float stbir__max_uint16_as_float = 65535.0f; +static const double stbir__max_uint32_as_float = 4294967295.0; + + +static stbir__inline int stbir__min(int a, int b) +{ + return a < b ? a : b; +} + +static stbir__inline float stbir__saturate(float x) +{ + if (x < 0) + return 0; + + if (x > 1) + return 1; + + return x; +} + +#ifdef STBIR_SATURATE_INT +static stbir__inline stbir_uint8 stbir__saturate8(int x) +{ + if ((unsigned int) x <= 255) + return x; + + if (x < 0) + return 0; + + return 255; +} + +static stbir__inline stbir_uint16 stbir__saturate16(int x) +{ + if ((unsigned int) x <= 65535) + return x; + + if (x < 0) + return 0; + + return 65535; +} +#endif + +static float stbir__srgb_uchar_to_linear_float[256] = { + 0.000000f, 0.000304f, 0.000607f, 0.000911f, 0.001214f, 0.001518f, 0.001821f, 0.002125f, 0.002428f, 0.002732f, 0.003035f, + 0.003347f, 0.003677f, 0.004025f, 0.004391f, 0.004777f, 0.005182f, 0.005605f, 0.006049f, 0.006512f, 0.006995f, 0.007499f, + 0.008023f, 0.008568f, 0.009134f, 0.009721f, 0.010330f, 0.010960f, 0.011612f, 0.012286f, 0.012983f, 0.013702f, 0.014444f, + 0.015209f, 0.015996f, 0.016807f, 0.017642f, 0.018500f, 0.019382f, 0.020289f, 0.021219f, 0.022174f, 0.023153f, 0.024158f, + 0.025187f, 0.026241f, 0.027321f, 0.028426f, 0.029557f, 0.030713f, 0.031896f, 0.033105f, 0.034340f, 0.035601f, 0.036889f, + 0.038204f, 0.039546f, 0.040915f, 0.042311f, 0.043735f, 0.045186f, 0.046665f, 0.048172f, 0.049707f, 0.051269f, 0.052861f, + 0.054480f, 0.056128f, 0.057805f, 0.059511f, 0.061246f, 0.063010f, 0.064803f, 0.066626f, 0.068478f, 0.070360f, 0.072272f, + 0.074214f, 0.076185f, 0.078187f, 0.080220f, 0.082283f, 0.084376f, 0.086500f, 0.088656f, 0.090842f, 0.093059f, 0.095307f, + 0.097587f, 0.099899f, 0.102242f, 0.104616f, 0.107023f, 0.109462f, 0.111932f, 0.114435f, 0.116971f, 0.119538f, 0.122139f, + 0.124772f, 0.127438f, 0.130136f, 0.132868f, 0.135633f, 0.138432f, 0.141263f, 0.144128f, 0.147027f, 0.149960f, 0.152926f, + 0.155926f, 0.158961f, 0.162029f, 0.165132f, 0.168269f, 0.171441f, 0.174647f, 0.177888f, 0.181164f, 0.184475f, 0.187821f, + 0.191202f, 0.194618f, 0.198069f, 0.201556f, 0.205079f, 0.208637f, 0.212231f, 0.215861f, 0.219526f, 0.223228f, 0.226966f, + 0.230740f, 0.234551f, 0.238398f, 0.242281f, 0.246201f, 0.250158f, 0.254152f, 0.258183f, 0.262251f, 0.266356f, 0.270498f, + 0.274677f, 0.278894f, 0.283149f, 0.287441f, 0.291771f, 0.296138f, 0.300544f, 0.304987f, 0.309469f, 0.313989f, 0.318547f, + 0.323143f, 0.327778f, 0.332452f, 0.337164f, 0.341914f, 0.346704f, 0.351533f, 0.356400f, 0.361307f, 0.366253f, 0.371238f, + 0.376262f, 0.381326f, 0.386430f, 0.391573f, 0.396755f, 0.401978f, 0.407240f, 0.412543f, 0.417885f, 0.423268f, 0.428691f, + 0.434154f, 0.439657f, 0.445201f, 0.450786f, 0.456411f, 0.462077f, 0.467784f, 0.473532f, 0.479320f, 0.485150f, 0.491021f, + 0.496933f, 0.502887f, 0.508881f, 0.514918f, 0.520996f, 0.527115f, 0.533276f, 0.539480f, 0.545725f, 0.552011f, 0.558340f, + 0.564712f, 0.571125f, 0.577581f, 0.584078f, 0.590619f, 0.597202f, 0.603827f, 0.610496f, 0.617207f, 0.623960f, 0.630757f, + 0.637597f, 0.644480f, 0.651406f, 0.658375f, 0.665387f, 0.672443f, 0.679543f, 0.686685f, 0.693872f, 0.701102f, 0.708376f, + 0.715694f, 0.723055f, 0.730461f, 0.737911f, 0.745404f, 0.752942f, 0.760525f, 0.768151f, 0.775822f, 0.783538f, 0.791298f, + 0.799103f, 0.806952f, 0.814847f, 0.822786f, 0.830770f, 0.838799f, 0.846873f, 0.854993f, 0.863157f, 0.871367f, 0.879622f, + 0.887923f, 0.896269f, 0.904661f, 0.913099f, 0.921582f, 0.930111f, 0.938686f, 0.947307f, 0.955974f, 0.964686f, 0.973445f, + 0.982251f, 0.991102f, 1.0f +}; + +static float stbir__srgb_to_linear(float f) +{ + if (f <= 0.04045f) + return f / 12.92f; + else + return (float)pow((f + 0.055f) / 1.055f, 2.4f); +} + +static float stbir__linear_to_srgb(float f) +{ + if (f <= 0.0031308f) + return f * 12.92f; + else + return 1.055f * (float)pow(f, 1 / 2.4f) - 0.055f; +} + +#ifndef STBIR_NON_IEEE_FLOAT +// From https://gist.github.com/rygorous/2203834 + +typedef union +{ + stbir_uint32 u; + float f; +} stbir__FP32; + +static const stbir_uint32 fp32_to_srgb8_tab4[104] = { + 0x0073000d, 0x007a000d, 0x0080000d, 0x0087000d, 0x008d000d, 0x0094000d, 0x009a000d, 0x00a1000d, + 0x00a7001a, 0x00b4001a, 0x00c1001a, 0x00ce001a, 0x00da001a, 0x00e7001a, 0x00f4001a, 0x0101001a, + 0x010e0033, 0x01280033, 0x01410033, 0x015b0033, 0x01750033, 0x018f0033, 0x01a80033, 0x01c20033, + 0x01dc0067, 0x020f0067, 0x02430067, 0x02760067, 0x02aa0067, 0x02dd0067, 0x03110067, 0x03440067, + 0x037800ce, 0x03df00ce, 0x044600ce, 0x04ad00ce, 0x051400ce, 0x057b00c5, 0x05dd00bc, 0x063b00b5, + 0x06970158, 0x07420142, 0x07e30130, 0x087b0120, 0x090b0112, 0x09940106, 0x0a1700fc, 0x0a9500f2, + 0x0b0f01cb, 0x0bf401ae, 0x0ccb0195, 0x0d950180, 0x0e56016e, 0x0f0d015e, 0x0fbc0150, 0x10630143, + 0x11070264, 0x1238023e, 0x1357021d, 0x14660201, 0x156601e9, 0x165a01d3, 0x174401c0, 0x182401af, + 0x18fe0331, 0x1a9602fe, 0x1c1502d2, 0x1d7e02ad, 0x1ed4028d, 0x201a0270, 0x21520256, 0x227d0240, + 0x239f0443, 0x25c003fe, 0x27bf03c4, 0x29a10392, 0x2b6a0367, 0x2d1d0341, 0x2ebe031f, 0x304d0300, + 0x31d105b0, 0x34a80555, 0x37520507, 0x39d504c5, 0x3c37048b, 0x3e7c0458, 0x40a8042a, 0x42bd0401, + 0x44c20798, 0x488e071e, 0x4c1c06b6, 0x4f76065d, 0x52a50610, 0x55ac05cc, 0x5892058f, 0x5b590559, + 0x5e0c0a23, 0x631c0980, 0x67db08f6, 0x6c55087f, 0x70940818, 0x74a007bd, 0x787d076c, 0x7c330723, +}; + +static stbir_uint8 stbir__linear_to_srgb_uchar(float in) +{ + static const stbir__FP32 almostone = { 0x3f7fffff }; // 1-eps + static const stbir__FP32 minval = { (127-13) << 23 }; + stbir_uint32 tab,bias,scale,t; + stbir__FP32 f; + + // Clamp to [2^(-13), 1-eps]; these two values map to 0 and 1, respectively. + // The tests are carefully written so that NaNs map to 0, same as in the reference + // implementation. + if (!(in > minval.f)) // written this way to catch NaNs + in = minval.f; + if (in > almostone.f) + in = almostone.f; + + // Do the table lookup and unpack bias, scale + f.f = in; + tab = fp32_to_srgb8_tab4[(f.u - minval.u) >> 20]; + bias = (tab >> 16) << 9; + scale = tab & 0xffff; + + // Grab next-highest mantissa bits and perform linear interpolation + t = (f.u >> 12) & 0xff; + return (unsigned char) ((bias + scale*t) >> 16); +} + +#else +// sRGB transition values, scaled by 1<<28 +static int stbir__srgb_offset_to_linear_scaled[256] = +{ + 0, 40738, 122216, 203693, 285170, 366648, 448125, 529603, + 611080, 692557, 774035, 855852, 942009, 1033024, 1128971, 1229926, + 1335959, 1447142, 1563542, 1685229, 1812268, 1944725, 2082664, 2226148, + 2375238, 2529996, 2690481, 2856753, 3028870, 3206888, 3390865, 3580856, + 3776916, 3979100, 4187460, 4402049, 4622919, 4850123, 5083710, 5323731, + 5570236, 5823273, 6082892, 6349140, 6622065, 6901714, 7188133, 7481369, + 7781466, 8088471, 8402427, 8723380, 9051372, 9386448, 9728650, 10078021, + 10434603, 10798439, 11169569, 11548036, 11933879, 12327139, 12727857, 13136073, + 13551826, 13975156, 14406100, 14844697, 15290987, 15745007, 16206795, 16676389, + 17153826, 17639142, 18132374, 18633560, 19142734, 19659934, 20185196, 20718552, + 21260042, 21809696, 22367554, 22933648, 23508010, 24090680, 24681686, 25281066, + 25888850, 26505076, 27129772, 27762974, 28404716, 29055026, 29713942, 30381490, + 31057708, 31742624, 32436272, 33138682, 33849884, 34569912, 35298800, 36036568, + 36783260, 37538896, 38303512, 39077136, 39859796, 40651528, 41452360, 42262316, + 43081432, 43909732, 44747252, 45594016, 46450052, 47315392, 48190064, 49074096, + 49967516, 50870356, 51782636, 52704392, 53635648, 54576432, 55526772, 56486700, + 57456236, 58435408, 59424248, 60422780, 61431036, 62449032, 63476804, 64514376, + 65561776, 66619028, 67686160, 68763192, 69850160, 70947088, 72053992, 73170912, + 74297864, 75434880, 76581976, 77739184, 78906536, 80084040, 81271736, 82469648, + 83677792, 84896192, 86124888, 87363888, 88613232, 89872928, 91143016, 92423512, + 93714432, 95015816, 96327688, 97650056, 98982952, 100326408, 101680440, 103045072, + 104420320, 105806224, 107202800, 108610064, 110028048, 111456776, 112896264, 114346544, + 115807632, 117279552, 118762328, 120255976, 121760536, 123276016, 124802440, 126339832, + 127888216, 129447616, 131018048, 132599544, 134192112, 135795792, 137410592, 139036528, + 140673648, 142321952, 143981456, 145652208, 147334208, 149027488, 150732064, 152447968, + 154175200, 155913792, 157663776, 159425168, 161197984, 162982240, 164777968, 166585184, + 168403904, 170234160, 172075968, 173929344, 175794320, 177670896, 179559120, 181458992, + 183370528, 185293776, 187228736, 189175424, 191133888, 193104112, 195086128, 197079968, + 199085648, 201103184, 203132592, 205173888, 207227120, 209292272, 211369392, 213458480, + 215559568, 217672656, 219797792, 221934976, 224084240, 226245600, 228419056, 230604656, + 232802400, 235012320, 237234432, 239468736, 241715280, 243974080, 246245120, 248528464, + 250824112, 253132064, 255452368, 257785040, 260130080, 262487520, 264857376, 267239664, +}; + +static stbir_uint8 stbir__linear_to_srgb_uchar(float f) +{ + int x = (int) (f * (1 << 28)); // has headroom so you don't need to clamp + int v = 0; + int i; + + // Refine the guess with a short binary search. + i = v + 128; if (x >= stbir__srgb_offset_to_linear_scaled[i]) v = i; + i = v + 64; if (x >= stbir__srgb_offset_to_linear_scaled[i]) v = i; + i = v + 32; if (x >= stbir__srgb_offset_to_linear_scaled[i]) v = i; + i = v + 16; if (x >= stbir__srgb_offset_to_linear_scaled[i]) v = i; + i = v + 8; if (x >= stbir__srgb_offset_to_linear_scaled[i]) v = i; + i = v + 4; if (x >= stbir__srgb_offset_to_linear_scaled[i]) v = i; + i = v + 2; if (x >= stbir__srgb_offset_to_linear_scaled[i]) v = i; + i = v + 1; if (x >= stbir__srgb_offset_to_linear_scaled[i]) v = i; + + return (stbir_uint8) v; +} +#endif + +static float stbir__filter_trapezoid(float x, float scale) +{ + float halfscale = scale / 2; + float t = 0.5f + halfscale; + STBIR_ASSERT(scale <= 1); + + x = (float)fabs(x); + + if (x >= t) + return 0; + else + { + float r = 0.5f - halfscale; + if (x <= r) + return 1; + else + return (t - x) / scale; + } +} + +static float stbir__support_trapezoid(float scale) +{ + STBIR_ASSERT(scale <= 1); + return 0.5f + scale / 2; +} + +static float stbir__filter_triangle(float x, float s) +{ + STBIR__UNUSED_PARAM(s); + + x = (float)fabs(x); + + if (x <= 1.0f) + return 1 - x; + else + return 0; +} + +static float stbir__filter_cubic(float x, float s) +{ + STBIR__UNUSED_PARAM(s); + + x = (float)fabs(x); + + if (x < 1.0f) + return (4 + x*x*(3*x - 6))/6; + else if (x < 2.0f) + return (8 + x*(-12 + x*(6 - x)))/6; + + return (0.0f); +} + +static float stbir__filter_catmullrom(float x, float s) +{ + STBIR__UNUSED_PARAM(s); + + x = (float)fabs(x); + + if (x < 1.0f) + return 1 - x*x*(2.5f - 1.5f*x); + else if (x < 2.0f) + return 2 - x*(4 + x*(0.5f*x - 2.5f)); + + return (0.0f); +} + +static float stbir__filter_mitchell(float x, float s) +{ + STBIR__UNUSED_PARAM(s); + + x = (float)fabs(x); + + if (x < 1.0f) + return (16 + x*x*(21 * x - 36))/18; + else if (x < 2.0f) + return (32 + x*(-60 + x*(36 - 7*x)))/18; + + return (0.0f); +} + +static float stbir__support_zero(float s) +{ + STBIR__UNUSED_PARAM(s); + return 0; +} + +static float stbir__support_one(float s) +{ + STBIR__UNUSED_PARAM(s); + return 1; +} + +static float stbir__support_two(float s) +{ + STBIR__UNUSED_PARAM(s); + return 2; +} + +static stbir__filter_info stbir__filter_info_table[] = { + { NULL, stbir__support_zero }, + { stbir__filter_trapezoid, stbir__support_trapezoid }, + { stbir__filter_triangle, stbir__support_one }, + { stbir__filter_cubic, stbir__support_two }, + { stbir__filter_catmullrom, stbir__support_two }, + { stbir__filter_mitchell, stbir__support_two }, +}; + +stbir__inline static int stbir__use_upsampling(float ratio) +{ + return ratio > 1; +} + +stbir__inline static int stbir__use_width_upsampling(stbir__info* stbir_info) +{ + return stbir__use_upsampling(stbir_info->horizontal_scale); +} + +stbir__inline static int stbir__use_height_upsampling(stbir__info* stbir_info) +{ + return stbir__use_upsampling(stbir_info->vertical_scale); +} + +// This is the maximum number of input samples that can affect an output sample +// with the given filter +static int stbir__get_filter_pixel_width(stbir_filter filter, float scale) +{ + STBIR_ASSERT(filter != 0); + STBIR_ASSERT(filter < STBIR__ARRAY_SIZE(stbir__filter_info_table)); + + if (stbir__use_upsampling(scale)) + return (int)ceil(stbir__filter_info_table[filter].support(1/scale) * 2); + else + return (int)ceil(stbir__filter_info_table[filter].support(scale) * 2 / scale); +} + +// This is how much to expand buffers to account for filters seeking outside +// the image boundaries. +static int stbir__get_filter_pixel_margin(stbir_filter filter, float scale) +{ + return stbir__get_filter_pixel_width(filter, scale) / 2; +} + +static int stbir__get_coefficient_width(stbir_filter filter, float scale) +{ + if (stbir__use_upsampling(scale)) + return (int)ceil(stbir__filter_info_table[filter].support(1 / scale) * 2); + else + return (int)ceil(stbir__filter_info_table[filter].support(scale) * 2); +} + +static int stbir__get_contributors(float scale, stbir_filter filter, int input_size, int output_size) +{ + if (stbir__use_upsampling(scale)) + return output_size; + else + return (input_size + stbir__get_filter_pixel_margin(filter, scale) * 2); +} + +static int stbir__get_total_horizontal_coefficients(stbir__info* info) +{ + return info->horizontal_num_contributors + * stbir__get_coefficient_width (info->horizontal_filter, info->horizontal_scale); +} + +static int stbir__get_total_vertical_coefficients(stbir__info* info) +{ + return info->vertical_num_contributors + * stbir__get_coefficient_width (info->vertical_filter, info->vertical_scale); +} + +static stbir__contributors* stbir__get_contributor(stbir__contributors* contributors, int n) +{ + return &contributors[n]; +} + +// For perf reasons this code is duplicated in stbir__resample_horizontal_upsample/downsample, +// if you change it here change it there too. +static float* stbir__get_coefficient(float* coefficients, stbir_filter filter, float scale, int n, int c) +{ + int width = stbir__get_coefficient_width(filter, scale); + return &coefficients[width*n + c]; +} + +static int stbir__edge_wrap_slow(stbir_edge edge, int n, int max) +{ + switch (edge) + { + case STBIR_EDGE_ZERO: + return 0; // we'll decode the wrong pixel here, and then overwrite with 0s later + + case STBIR_EDGE_CLAMP: + if (n < 0) + return 0; + + if (n >= max) + return max - 1; + + return n; // NOTREACHED + + case STBIR_EDGE_REFLECT: + { + if (n < 0) + { + if (n < max) + return -n; + else + return max - 1; + } + + if (n >= max) + { + int max2 = max * 2; + if (n >= max2) + return 0; + else + return max2 - n - 1; + } + + return n; // NOTREACHED + } + + case STBIR_EDGE_WRAP: + if (n >= 0) + return (n % max); + else + { + int m = (-n) % max; + + if (m != 0) + m = max - m; + + return (m); + } + // NOTREACHED + + default: + STBIR_ASSERT(!"Unimplemented edge type"); + return 0; + } +} + +stbir__inline static int stbir__edge_wrap(stbir_edge edge, int n, int max) +{ + // avoid per-pixel switch + if (n >= 0 && n < max) + return n; + return stbir__edge_wrap_slow(edge, n, max); +} + +// What input pixels contribute to this output pixel? +static void stbir__calculate_sample_range_upsample(int n, float out_filter_radius, float scale_ratio, float out_shift, int* in_first_pixel, int* in_last_pixel, float* in_center_of_out) +{ + float out_pixel_center = (float)n + 0.5f; + float out_pixel_influence_lowerbound = out_pixel_center - out_filter_radius; + float out_pixel_influence_upperbound = out_pixel_center + out_filter_radius; + + float in_pixel_influence_lowerbound = (out_pixel_influence_lowerbound + out_shift) / scale_ratio; + float in_pixel_influence_upperbound = (out_pixel_influence_upperbound + out_shift) / scale_ratio; + + *in_center_of_out = (out_pixel_center + out_shift) / scale_ratio; + *in_first_pixel = (int)(floor(in_pixel_influence_lowerbound + 0.5)); + *in_last_pixel = (int)(floor(in_pixel_influence_upperbound - 0.5)); +} + +// What output pixels does this input pixel contribute to? +static void stbir__calculate_sample_range_downsample(int n, float in_pixels_radius, float scale_ratio, float out_shift, int* out_first_pixel, int* out_last_pixel, float* out_center_of_in) +{ + float in_pixel_center = (float)n + 0.5f; + float in_pixel_influence_lowerbound = in_pixel_center - in_pixels_radius; + float in_pixel_influence_upperbound = in_pixel_center + in_pixels_radius; + + float out_pixel_influence_lowerbound = in_pixel_influence_lowerbound * scale_ratio - out_shift; + float out_pixel_influence_upperbound = in_pixel_influence_upperbound * scale_ratio - out_shift; + + *out_center_of_in = in_pixel_center * scale_ratio - out_shift; + *out_first_pixel = (int)(floor(out_pixel_influence_lowerbound + 0.5)); + *out_last_pixel = (int)(floor(out_pixel_influence_upperbound - 0.5)); +} + +static void stbir__calculate_coefficients_upsample(stbir_filter filter, float scale, int in_first_pixel, int in_last_pixel, float in_center_of_out, stbir__contributors* contributor, float* coefficient_group) +{ + int i; + float total_filter = 0; + float filter_scale; + + STBIR_ASSERT(in_last_pixel - in_first_pixel <= (int)ceil(stbir__filter_info_table[filter].support(1/scale) * 2)); // Taken directly from stbir__get_coefficient_width() which we can't call because we don't know if we're horizontal or vertical. + + contributor->n0 = in_first_pixel; + contributor->n1 = in_last_pixel; + + STBIR_ASSERT(contributor->n1 >= contributor->n0); + + for (i = 0; i <= in_last_pixel - in_first_pixel; i++) + { + float in_pixel_center = (float)(i + in_first_pixel) + 0.5f; + coefficient_group[i] = stbir__filter_info_table[filter].kernel(in_center_of_out - in_pixel_center, 1 / scale); + + // If the coefficient is zero, skip it. (Don't do the <0 check here, we want the influence of those outside pixels.) + if (i == 0 && !coefficient_group[i]) + { + contributor->n0 = ++in_first_pixel; + i--; + continue; + } + + total_filter += coefficient_group[i]; + } + + // NOTE(fg): Not actually true in general, nor is there any reason to expect it should be. + // It would be true in exact math but is at best approximately true in floating-point math, + // and it would not make sense to try and put actual bounds on this here because it depends + // on the image aspect ratio which can get pretty extreme. + //STBIR_ASSERT(stbir__filter_info_table[filter].kernel((float)(in_last_pixel + 1) + 0.5f - in_center_of_out, 1/scale) == 0); + + STBIR_ASSERT(total_filter > 0.9); + STBIR_ASSERT(total_filter < 1.1f); // Make sure it's not way off. + + // Make sure the sum of all coefficients is 1. + filter_scale = 1 / total_filter; + + for (i = 0; i <= in_last_pixel - in_first_pixel; i++) + coefficient_group[i] *= filter_scale; + + for (i = in_last_pixel - in_first_pixel; i >= 0; i--) + { + if (coefficient_group[i]) + break; + + // This line has no weight. We can skip it. + contributor->n1 = contributor->n0 + i - 1; + } +} + +static void stbir__calculate_coefficients_downsample(stbir_filter filter, float scale_ratio, int out_first_pixel, int out_last_pixel, float out_center_of_in, stbir__contributors* contributor, float* coefficient_group) +{ + int i; + + STBIR_ASSERT(out_last_pixel - out_first_pixel <= (int)ceil(stbir__filter_info_table[filter].support(scale_ratio) * 2)); // Taken directly from stbir__get_coefficient_width() which we can't call because we don't know if we're horizontal or vertical. + + contributor->n0 = out_first_pixel; + contributor->n1 = out_last_pixel; + + STBIR_ASSERT(contributor->n1 >= contributor->n0); + + for (i = 0; i <= out_last_pixel - out_first_pixel; i++) + { + float out_pixel_center = (float)(i + out_first_pixel) + 0.5f; + float x = out_pixel_center - out_center_of_in; + coefficient_group[i] = stbir__filter_info_table[filter].kernel(x, scale_ratio) * scale_ratio; + } + + // NOTE(fg): Not actually true in general, nor is there any reason to expect it should be. + // It would be true in exact math but is at best approximately true in floating-point math, + // and it would not make sense to try and put actual bounds on this here because it depends + // on the image aspect ratio which can get pretty extreme. + //STBIR_ASSERT(stbir__filter_info_table[filter].kernel((float)(out_last_pixel + 1) + 0.5f - out_center_of_in, scale_ratio) == 0); + + for (i = out_last_pixel - out_first_pixel; i >= 0; i--) + { + if (coefficient_group[i]) + break; + + // This line has no weight. We can skip it. + contributor->n1 = contributor->n0 + i - 1; + } +} + +static void stbir__normalize_downsample_coefficients(stbir__contributors* contributors, float* coefficients, stbir_filter filter, float scale_ratio, int input_size, int output_size) +{ + int num_contributors = stbir__get_contributors(scale_ratio, filter, input_size, output_size); + int num_coefficients = stbir__get_coefficient_width(filter, scale_ratio); + int i, j; + int skip; + + for (i = 0; i < output_size; i++) + { + float scale; + float total = 0; + + for (j = 0; j < num_contributors; j++) + { + if (i >= contributors[j].n0 && i <= contributors[j].n1) + { + float coefficient = *stbir__get_coefficient(coefficients, filter, scale_ratio, j, i - contributors[j].n0); + total += coefficient; + } + else if (i < contributors[j].n0) + break; + } + + STBIR_ASSERT(total > 0.9f); + STBIR_ASSERT(total < 1.1f); + + scale = 1 / total; + + for (j = 0; j < num_contributors; j++) + { + if (i >= contributors[j].n0 && i <= contributors[j].n1) + *stbir__get_coefficient(coefficients, filter, scale_ratio, j, i - contributors[j].n0) *= scale; + else if (i < contributors[j].n0) + break; + } + } + + // Optimize: Skip zero coefficients and contributions outside of image bounds. + // Do this after normalizing because normalization depends on the n0/n1 values. + for (j = 0; j < num_contributors; j++) + { + int range, max, width; + + skip = 0; + while (*stbir__get_coefficient(coefficients, filter, scale_ratio, j, skip) == 0) + skip++; + + contributors[j].n0 += skip; + + while (contributors[j].n0 < 0) + { + contributors[j].n0++; + skip++; + } + + range = contributors[j].n1 - contributors[j].n0 + 1; + max = stbir__min(num_coefficients, range); + + width = stbir__get_coefficient_width(filter, scale_ratio); + for (i = 0; i < max; i++) + { + if (i + skip >= width) + break; + + *stbir__get_coefficient(coefficients, filter, scale_ratio, j, i) = *stbir__get_coefficient(coefficients, filter, scale_ratio, j, i + skip); + } + + continue; + } + + // Using min to avoid writing into invalid pixels. + for (i = 0; i < num_contributors; i++) + contributors[i].n1 = stbir__min(contributors[i].n1, output_size - 1); +} + +// Each scan line uses the same kernel values so we should calculate the kernel +// values once and then we can use them for every scan line. +static void stbir__calculate_filters(stbir__contributors* contributors, float* coefficients, stbir_filter filter, float scale_ratio, float shift, int input_size, int output_size) +{ + int n; + int total_contributors = stbir__get_contributors(scale_ratio, filter, input_size, output_size); + + if (stbir__use_upsampling(scale_ratio)) + { + float out_pixels_radius = stbir__filter_info_table[filter].support(1 / scale_ratio) * scale_ratio; + + // Looping through out pixels + for (n = 0; n < total_contributors; n++) + { + float in_center_of_out; // Center of the current out pixel in the in pixel space + int in_first_pixel, in_last_pixel; + + stbir__calculate_sample_range_upsample(n, out_pixels_radius, scale_ratio, shift, &in_first_pixel, &in_last_pixel, &in_center_of_out); + + stbir__calculate_coefficients_upsample(filter, scale_ratio, in_first_pixel, in_last_pixel, in_center_of_out, stbir__get_contributor(contributors, n), stbir__get_coefficient(coefficients, filter, scale_ratio, n, 0)); + } + } + else + { + float in_pixels_radius = stbir__filter_info_table[filter].support(scale_ratio) / scale_ratio; + + // Looping through in pixels + for (n = 0; n < total_contributors; n++) + { + float out_center_of_in; // Center of the current out pixel in the in pixel space + int out_first_pixel, out_last_pixel; + int n_adjusted = n - stbir__get_filter_pixel_margin(filter, scale_ratio); + + stbir__calculate_sample_range_downsample(n_adjusted, in_pixels_radius, scale_ratio, shift, &out_first_pixel, &out_last_pixel, &out_center_of_in); + + stbir__calculate_coefficients_downsample(filter, scale_ratio, out_first_pixel, out_last_pixel, out_center_of_in, stbir__get_contributor(contributors, n), stbir__get_coefficient(coefficients, filter, scale_ratio, n, 0)); + } + + stbir__normalize_downsample_coefficients(contributors, coefficients, filter, scale_ratio, input_size, output_size); + } +} + +static float* stbir__get_decode_buffer(stbir__info* stbir_info) +{ + // The 0 index of the decode buffer starts after the margin. This makes + // it okay to use negative indexes on the decode buffer. + return &stbir_info->decode_buffer[stbir_info->horizontal_filter_pixel_margin * stbir_info->channels]; +} + +#define STBIR__DECODE(type, colorspace) ((int)(type) * (STBIR_MAX_COLORSPACES) + (int)(colorspace)) + +static void stbir__decode_scanline(stbir__info* stbir_info, int n) +{ + int c; + int channels = stbir_info->channels; + int alpha_channel = stbir_info->alpha_channel; + int type = stbir_info->type; + int colorspace = stbir_info->colorspace; + int input_w = stbir_info->input_w; + size_t input_stride_bytes = stbir_info->input_stride_bytes; + float* decode_buffer = stbir__get_decode_buffer(stbir_info); + stbir_edge edge_horizontal = stbir_info->edge_horizontal; + stbir_edge edge_vertical = stbir_info->edge_vertical; + size_t in_buffer_row_offset = stbir__edge_wrap(edge_vertical, n, stbir_info->input_h) * input_stride_bytes; + const void* input_data = (char *) stbir_info->input_data + in_buffer_row_offset; + int max_x = input_w + stbir_info->horizontal_filter_pixel_margin; + int decode = STBIR__DECODE(type, colorspace); + + int x = -stbir_info->horizontal_filter_pixel_margin; + + // special handling for STBIR_EDGE_ZERO because it needs to return an item that doesn't appear in the input, + // and we want to avoid paying overhead on every pixel if not STBIR_EDGE_ZERO + if (edge_vertical == STBIR_EDGE_ZERO && (n < 0 || n >= stbir_info->input_h)) + { + for (; x < max_x; x++) + for (c = 0; c < channels; c++) + decode_buffer[x*channels + c] = 0; + return; + } + + switch (decode) + { + case STBIR__DECODE(STBIR_TYPE_UINT8, STBIR_COLORSPACE_LINEAR): + for (; x < max_x; x++) + { + int decode_pixel_index = x * channels; + int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels; + for (c = 0; c < channels; c++) + decode_buffer[decode_pixel_index + c] = ((float)((const unsigned char*)input_data)[input_pixel_index + c]) / stbir__max_uint8_as_float; + } + break; + + case STBIR__DECODE(STBIR_TYPE_UINT8, STBIR_COLORSPACE_SRGB): + for (; x < max_x; x++) + { + int decode_pixel_index = x * channels; + int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels; + for (c = 0; c < channels; c++) + decode_buffer[decode_pixel_index + c] = stbir__srgb_uchar_to_linear_float[((const unsigned char*)input_data)[input_pixel_index + c]]; + + if (!(stbir_info->flags&STBIR_FLAG_ALPHA_USES_COLORSPACE)) + decode_buffer[decode_pixel_index + alpha_channel] = ((float)((const unsigned char*)input_data)[input_pixel_index + alpha_channel]) / stbir__max_uint8_as_float; + } + break; + + case STBIR__DECODE(STBIR_TYPE_UINT16, STBIR_COLORSPACE_LINEAR): + for (; x < max_x; x++) + { + int decode_pixel_index = x * channels; + int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels; + for (c = 0; c < channels; c++) + decode_buffer[decode_pixel_index + c] = ((float)((const unsigned short*)input_data)[input_pixel_index + c]) / stbir__max_uint16_as_float; + } + break; + + case STBIR__DECODE(STBIR_TYPE_UINT16, STBIR_COLORSPACE_SRGB): + for (; x < max_x; x++) + { + int decode_pixel_index = x * channels; + int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels; + for (c = 0; c < channels; c++) + decode_buffer[decode_pixel_index + c] = stbir__srgb_to_linear(((float)((const unsigned short*)input_data)[input_pixel_index + c]) / stbir__max_uint16_as_float); + + if (!(stbir_info->flags&STBIR_FLAG_ALPHA_USES_COLORSPACE)) + decode_buffer[decode_pixel_index + alpha_channel] = ((float)((const unsigned short*)input_data)[input_pixel_index + alpha_channel]) / stbir__max_uint16_as_float; + } + break; + + case STBIR__DECODE(STBIR_TYPE_UINT32, STBIR_COLORSPACE_LINEAR): + for (; x < max_x; x++) + { + int decode_pixel_index = x * channels; + int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels; + for (c = 0; c < channels; c++) + decode_buffer[decode_pixel_index + c] = (float)(((double)((const unsigned int*)input_data)[input_pixel_index + c]) / stbir__max_uint32_as_float); + } + break; + + case STBIR__DECODE(STBIR_TYPE_UINT32, STBIR_COLORSPACE_SRGB): + for (; x < max_x; x++) + { + int decode_pixel_index = x * channels; + int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels; + for (c = 0; c < channels; c++) + decode_buffer[decode_pixel_index + c] = stbir__srgb_to_linear((float)(((double)((const unsigned int*)input_data)[input_pixel_index + c]) / stbir__max_uint32_as_float)); + + if (!(stbir_info->flags&STBIR_FLAG_ALPHA_USES_COLORSPACE)) + decode_buffer[decode_pixel_index + alpha_channel] = (float)(((double)((const unsigned int*)input_data)[input_pixel_index + alpha_channel]) / stbir__max_uint32_as_float); + } + break; + + case STBIR__DECODE(STBIR_TYPE_FLOAT, STBIR_COLORSPACE_LINEAR): + for (; x < max_x; x++) + { + int decode_pixel_index = x * channels; + int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels; + for (c = 0; c < channels; c++) + decode_buffer[decode_pixel_index + c] = ((const float*)input_data)[input_pixel_index + c]; + } + break; + + case STBIR__DECODE(STBIR_TYPE_FLOAT, STBIR_COLORSPACE_SRGB): + for (; x < max_x; x++) + { + int decode_pixel_index = x * channels; + int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels; + for (c = 0; c < channels; c++) + decode_buffer[decode_pixel_index + c] = stbir__srgb_to_linear(((const float*)input_data)[input_pixel_index + c]); + + if (!(stbir_info->flags&STBIR_FLAG_ALPHA_USES_COLORSPACE)) + decode_buffer[decode_pixel_index + alpha_channel] = ((const float*)input_data)[input_pixel_index + alpha_channel]; + } + + break; + + default: + STBIR_ASSERT(!"Unknown type/colorspace/channels combination."); + break; + } + + if (!(stbir_info->flags & STBIR_FLAG_ALPHA_PREMULTIPLIED)) + { + for (x = -stbir_info->horizontal_filter_pixel_margin; x < max_x; x++) + { + int decode_pixel_index = x * channels; + + // If the alpha value is 0 it will clobber the color values. Make sure it's not. + float alpha = decode_buffer[decode_pixel_index + alpha_channel]; +#ifndef STBIR_NO_ALPHA_EPSILON + if (stbir_info->type != STBIR_TYPE_FLOAT) { + alpha += STBIR_ALPHA_EPSILON; + decode_buffer[decode_pixel_index + alpha_channel] = alpha; + } +#endif + for (c = 0; c < channels; c++) + { + if (c == alpha_channel) + continue; + + decode_buffer[decode_pixel_index + c] *= alpha; + } + } + } + + if (edge_horizontal == STBIR_EDGE_ZERO) + { + for (x = -stbir_info->horizontal_filter_pixel_margin; x < 0; x++) + { + for (c = 0; c < channels; c++) + decode_buffer[x*channels + c] = 0; + } + for (x = input_w; x < max_x; x++) + { + for (c = 0; c < channels; c++) + decode_buffer[x*channels + c] = 0; + } + } +} + +static float* stbir__get_ring_buffer_entry(float* ring_buffer, int index, int ring_buffer_length) +{ + return &ring_buffer[index * ring_buffer_length]; +} + +static float* stbir__add_empty_ring_buffer_entry(stbir__info* stbir_info, int n) +{ + int ring_buffer_index; + float* ring_buffer; + + stbir_info->ring_buffer_last_scanline = n; + + if (stbir_info->ring_buffer_begin_index < 0) + { + ring_buffer_index = stbir_info->ring_buffer_begin_index = 0; + stbir_info->ring_buffer_first_scanline = n; + } + else + { + ring_buffer_index = (stbir_info->ring_buffer_begin_index + (stbir_info->ring_buffer_last_scanline - stbir_info->ring_buffer_first_scanline)) % stbir_info->ring_buffer_num_entries; + STBIR_ASSERT(ring_buffer_index != stbir_info->ring_buffer_begin_index); + } + + ring_buffer = stbir__get_ring_buffer_entry(stbir_info->ring_buffer, ring_buffer_index, stbir_info->ring_buffer_length_bytes / sizeof(float)); + memset(ring_buffer, 0, stbir_info->ring_buffer_length_bytes); + + return ring_buffer; +} + + +static void stbir__resample_horizontal_upsample(stbir__info* stbir_info, float* output_buffer) +{ + int x, k; + int output_w = stbir_info->output_w; + int channels = stbir_info->channels; + float* decode_buffer = stbir__get_decode_buffer(stbir_info); + stbir__contributors* horizontal_contributors = stbir_info->horizontal_contributors; + float* horizontal_coefficients = stbir_info->horizontal_coefficients; + int coefficient_width = stbir_info->horizontal_coefficient_width; + + for (x = 0; x < output_w; x++) + { + int n0 = horizontal_contributors[x].n0; + int n1 = horizontal_contributors[x].n1; + + int out_pixel_index = x * channels; + int coefficient_group = coefficient_width * x; + int coefficient_counter = 0; + + STBIR_ASSERT(n1 >= n0); + STBIR_ASSERT(n0 >= -stbir_info->horizontal_filter_pixel_margin); + STBIR_ASSERT(n1 >= -stbir_info->horizontal_filter_pixel_margin); + STBIR_ASSERT(n0 < stbir_info->input_w + stbir_info->horizontal_filter_pixel_margin); + STBIR_ASSERT(n1 < stbir_info->input_w + stbir_info->horizontal_filter_pixel_margin); + + switch (channels) { + case 1: + for (k = n0; k <= n1; k++) + { + int in_pixel_index = k * 1; + float coefficient = horizontal_coefficients[coefficient_group + coefficient_counter++]; + STBIR_ASSERT(coefficient != 0); + output_buffer[out_pixel_index + 0] += decode_buffer[in_pixel_index + 0] * coefficient; + } + break; + case 2: + for (k = n0; k <= n1; k++) + { + int in_pixel_index = k * 2; + float coefficient = horizontal_coefficients[coefficient_group + coefficient_counter++]; + STBIR_ASSERT(coefficient != 0); + output_buffer[out_pixel_index + 0] += decode_buffer[in_pixel_index + 0] * coefficient; + output_buffer[out_pixel_index + 1] += decode_buffer[in_pixel_index + 1] * coefficient; + } + break; + case 3: + for (k = n0; k <= n1; k++) + { + int in_pixel_index = k * 3; + float coefficient = horizontal_coefficients[coefficient_group + coefficient_counter++]; + STBIR_ASSERT(coefficient != 0); + output_buffer[out_pixel_index + 0] += decode_buffer[in_pixel_index + 0] * coefficient; + output_buffer[out_pixel_index + 1] += decode_buffer[in_pixel_index + 1] * coefficient; + output_buffer[out_pixel_index + 2] += decode_buffer[in_pixel_index + 2] * coefficient; + } + break; + case 4: + for (k = n0; k <= n1; k++) + { + int in_pixel_index = k * 4; + float coefficient = horizontal_coefficients[coefficient_group + coefficient_counter++]; + STBIR_ASSERT(coefficient != 0); + output_buffer[out_pixel_index + 0] += decode_buffer[in_pixel_index + 0] * coefficient; + output_buffer[out_pixel_index + 1] += decode_buffer[in_pixel_index + 1] * coefficient; + output_buffer[out_pixel_index + 2] += decode_buffer[in_pixel_index + 2] * coefficient; + output_buffer[out_pixel_index + 3] += decode_buffer[in_pixel_index + 3] * coefficient; + } + break; + default: + for (k = n0; k <= n1; k++) + { + int in_pixel_index = k * channels; + float coefficient = horizontal_coefficients[coefficient_group + coefficient_counter++]; + int c; + STBIR_ASSERT(coefficient != 0); + for (c = 0; c < channels; c++) + output_buffer[out_pixel_index + c] += decode_buffer[in_pixel_index + c] * coefficient; + } + break; + } + } +} + +static void stbir__resample_horizontal_downsample(stbir__info* stbir_info, float* output_buffer) +{ + int x, k; + int input_w = stbir_info->input_w; + int channels = stbir_info->channels; + float* decode_buffer = stbir__get_decode_buffer(stbir_info); + stbir__contributors* horizontal_contributors = stbir_info->horizontal_contributors; + float* horizontal_coefficients = stbir_info->horizontal_coefficients; + int coefficient_width = stbir_info->horizontal_coefficient_width; + int filter_pixel_margin = stbir_info->horizontal_filter_pixel_margin; + int max_x = input_w + filter_pixel_margin * 2; + + STBIR_ASSERT(!stbir__use_width_upsampling(stbir_info)); + + switch (channels) { + case 1: + for (x = 0; x < max_x; x++) + { + int n0 = horizontal_contributors[x].n0; + int n1 = horizontal_contributors[x].n1; + + int in_x = x - filter_pixel_margin; + int in_pixel_index = in_x * 1; + int max_n = n1; + int coefficient_group = coefficient_width * x; + + for (k = n0; k <= max_n; k++) + { + int out_pixel_index = k * 1; + float coefficient = horizontal_coefficients[coefficient_group + k - n0]; + output_buffer[out_pixel_index + 0] += decode_buffer[in_pixel_index + 0] * coefficient; + } + } + break; + + case 2: + for (x = 0; x < max_x; x++) + { + int n0 = horizontal_contributors[x].n0; + int n1 = horizontal_contributors[x].n1; + + int in_x = x - filter_pixel_margin; + int in_pixel_index = in_x * 2; + int max_n = n1; + int coefficient_group = coefficient_width * x; + + for (k = n0; k <= max_n; k++) + { + int out_pixel_index = k * 2; + float coefficient = horizontal_coefficients[coefficient_group + k - n0]; + output_buffer[out_pixel_index + 0] += decode_buffer[in_pixel_index + 0] * coefficient; + output_buffer[out_pixel_index + 1] += decode_buffer[in_pixel_index + 1] * coefficient; + } + } + break; + + case 3: + for (x = 0; x < max_x; x++) + { + int n0 = horizontal_contributors[x].n0; + int n1 = horizontal_contributors[x].n1; + + int in_x = x - filter_pixel_margin; + int in_pixel_index = in_x * 3; + int max_n = n1; + int coefficient_group = coefficient_width * x; + + for (k = n0; k <= max_n; k++) + { + int out_pixel_index = k * 3; + float coefficient = horizontal_coefficients[coefficient_group + k - n0]; + output_buffer[out_pixel_index + 0] += decode_buffer[in_pixel_index + 0] * coefficient; + output_buffer[out_pixel_index + 1] += decode_buffer[in_pixel_index + 1] * coefficient; + output_buffer[out_pixel_index + 2] += decode_buffer[in_pixel_index + 2] * coefficient; + } + } + break; + + case 4: + for (x = 0; x < max_x; x++) + { + int n0 = horizontal_contributors[x].n0; + int n1 = horizontal_contributors[x].n1; + + int in_x = x - filter_pixel_margin; + int in_pixel_index = in_x * 4; + int max_n = n1; + int coefficient_group = coefficient_width * x; + + for (k = n0; k <= max_n; k++) + { + int out_pixel_index = k * 4; + float coefficient = horizontal_coefficients[coefficient_group + k - n0]; + output_buffer[out_pixel_index + 0] += decode_buffer[in_pixel_index + 0] * coefficient; + output_buffer[out_pixel_index + 1] += decode_buffer[in_pixel_index + 1] * coefficient; + output_buffer[out_pixel_index + 2] += decode_buffer[in_pixel_index + 2] * coefficient; + output_buffer[out_pixel_index + 3] += decode_buffer[in_pixel_index + 3] * coefficient; + } + } + break; + + default: + for (x = 0; x < max_x; x++) + { + int n0 = horizontal_contributors[x].n0; + int n1 = horizontal_contributors[x].n1; + + int in_x = x - filter_pixel_margin; + int in_pixel_index = in_x * channels; + int max_n = n1; + int coefficient_group = coefficient_width * x; + + for (k = n0; k <= max_n; k++) + { + int c; + int out_pixel_index = k * channels; + float coefficient = horizontal_coefficients[coefficient_group + k - n0]; + for (c = 0; c < channels; c++) + output_buffer[out_pixel_index + c] += decode_buffer[in_pixel_index + c] * coefficient; + } + } + break; + } +} + +static void stbir__decode_and_resample_upsample(stbir__info* stbir_info, int n) +{ + // Decode the nth scanline from the source image into the decode buffer. + stbir__decode_scanline(stbir_info, n); + + // Now resample it into the ring buffer. + if (stbir__use_width_upsampling(stbir_info)) + stbir__resample_horizontal_upsample(stbir_info, stbir__add_empty_ring_buffer_entry(stbir_info, n)); + else + stbir__resample_horizontal_downsample(stbir_info, stbir__add_empty_ring_buffer_entry(stbir_info, n)); + + // Now it's sitting in the ring buffer ready to be used as source for the vertical sampling. +} + +static void stbir__decode_and_resample_downsample(stbir__info* stbir_info, int n) +{ + // Decode the nth scanline from the source image into the decode buffer. + stbir__decode_scanline(stbir_info, n); + + memset(stbir_info->horizontal_buffer, 0, stbir_info->output_w * stbir_info->channels * sizeof(float)); + + // Now resample it into the horizontal buffer. + if (stbir__use_width_upsampling(stbir_info)) + stbir__resample_horizontal_upsample(stbir_info, stbir_info->horizontal_buffer); + else + stbir__resample_horizontal_downsample(stbir_info, stbir_info->horizontal_buffer); + + // Now it's sitting in the horizontal buffer ready to be distributed into the ring buffers. +} + +// Get the specified scan line from the ring buffer. +static float* stbir__get_ring_buffer_scanline(int get_scanline, float* ring_buffer, int begin_index, int first_scanline, int ring_buffer_num_entries, int ring_buffer_length) +{ + int ring_buffer_index = (begin_index + (get_scanline - first_scanline)) % ring_buffer_num_entries; + return stbir__get_ring_buffer_entry(ring_buffer, ring_buffer_index, ring_buffer_length); +} + + +static void stbir__encode_scanline(stbir__info* stbir_info, int num_pixels, void *output_buffer, float *encode_buffer, int channels, int alpha_channel, int decode) +{ + int x; + int n; + int num_nonalpha; + stbir_uint16 nonalpha[STBIR_MAX_CHANNELS]; + + if (!(stbir_info->flags&STBIR_FLAG_ALPHA_PREMULTIPLIED)) + { + for (x=0; x < num_pixels; ++x) + { + int pixel_index = x*channels; + + float alpha = encode_buffer[pixel_index + alpha_channel]; + float reciprocal_alpha = alpha ? 1.0f / alpha : 0; + + // unrolling this produced a 1% slowdown upscaling a large RGBA linear-space image on my machine - stb + for (n = 0; n < channels; n++) + if (n != alpha_channel) + encode_buffer[pixel_index + n] *= reciprocal_alpha; + + // We added in a small epsilon to prevent the color channel from being deleted with zero alpha. + // Because we only add it for integer types, it will automatically be discarded on integer + // conversion, so we don't need to subtract it back out (which would be problematic for + // numeric precision reasons). + } + } + + // build a table of all channels that need colorspace correction, so + // we don't perform colorspace correction on channels that don't need it. + for (x = 0, num_nonalpha = 0; x < channels; ++x) + { + if (x != alpha_channel || (stbir_info->flags & STBIR_FLAG_ALPHA_USES_COLORSPACE)) + { + nonalpha[num_nonalpha++] = (stbir_uint16)x; + } + } + + #define STBIR__ROUND_INT(f) ((int) ((f)+0.5)) + #define STBIR__ROUND_UINT(f) ((stbir_uint32) ((f)+0.5)) + + #ifdef STBIR__SATURATE_INT + #define STBIR__ENCODE_LINEAR8(f) stbir__saturate8 (STBIR__ROUND_INT((f) * stbir__max_uint8_as_float )) + #define STBIR__ENCODE_LINEAR16(f) stbir__saturate16(STBIR__ROUND_INT((f) * stbir__max_uint16_as_float)) + #else + #define STBIR__ENCODE_LINEAR8(f) (unsigned char ) STBIR__ROUND_INT(stbir__saturate(f) * stbir__max_uint8_as_float ) + #define STBIR__ENCODE_LINEAR16(f) (unsigned short) STBIR__ROUND_INT(stbir__saturate(f) * stbir__max_uint16_as_float) + #endif + + switch (decode) + { + case STBIR__DECODE(STBIR_TYPE_UINT8, STBIR_COLORSPACE_LINEAR): + for (x=0; x < num_pixels; ++x) + { + int pixel_index = x*channels; + + for (n = 0; n < channels; n++) + { + int index = pixel_index + n; + ((unsigned char*)output_buffer)[index] = STBIR__ENCODE_LINEAR8(encode_buffer[index]); + } + } + break; + + case STBIR__DECODE(STBIR_TYPE_UINT8, STBIR_COLORSPACE_SRGB): + for (x=0; x < num_pixels; ++x) + { + int pixel_index = x*channels; + + for (n = 0; n < num_nonalpha; n++) + { + int index = pixel_index + nonalpha[n]; + ((unsigned char*)output_buffer)[index] = stbir__linear_to_srgb_uchar(encode_buffer[index]); + } + + if (!(stbir_info->flags & STBIR_FLAG_ALPHA_USES_COLORSPACE)) + ((unsigned char *)output_buffer)[pixel_index + alpha_channel] = STBIR__ENCODE_LINEAR8(encode_buffer[pixel_index+alpha_channel]); + } + break; + + case STBIR__DECODE(STBIR_TYPE_UINT16, STBIR_COLORSPACE_LINEAR): + for (x=0; x < num_pixels; ++x) + { + int pixel_index = x*channels; + + for (n = 0; n < channels; n++) + { + int index = pixel_index + n; + ((unsigned short*)output_buffer)[index] = STBIR__ENCODE_LINEAR16(encode_buffer[index]); + } + } + break; + + case STBIR__DECODE(STBIR_TYPE_UINT16, STBIR_COLORSPACE_SRGB): + for (x=0; x < num_pixels; ++x) + { + int pixel_index = x*channels; + + for (n = 0; n < num_nonalpha; n++) + { + int index = pixel_index + nonalpha[n]; + ((unsigned short*)output_buffer)[index] = (unsigned short)STBIR__ROUND_INT(stbir__linear_to_srgb(stbir__saturate(encode_buffer[index])) * stbir__max_uint16_as_float); + } + + if (!(stbir_info->flags&STBIR_FLAG_ALPHA_USES_COLORSPACE)) + ((unsigned short*)output_buffer)[pixel_index + alpha_channel] = STBIR__ENCODE_LINEAR16(encode_buffer[pixel_index + alpha_channel]); + } + + break; + + case STBIR__DECODE(STBIR_TYPE_UINT32, STBIR_COLORSPACE_LINEAR): + for (x=0; x < num_pixels; ++x) + { + int pixel_index = x*channels; + + for (n = 0; n < channels; n++) + { + int index = pixel_index + n; + ((unsigned int*)output_buffer)[index] = (unsigned int)STBIR__ROUND_UINT(((double)stbir__saturate(encode_buffer[index])) * stbir__max_uint32_as_float); + } + } + break; + + case STBIR__DECODE(STBIR_TYPE_UINT32, STBIR_COLORSPACE_SRGB): + for (x=0; x < num_pixels; ++x) + { + int pixel_index = x*channels; + + for (n = 0; n < num_nonalpha; n++) + { + int index = pixel_index + nonalpha[n]; + ((unsigned int*)output_buffer)[index] = (unsigned int)STBIR__ROUND_UINT(((double)stbir__linear_to_srgb(stbir__saturate(encode_buffer[index]))) * stbir__max_uint32_as_float); + } + + if (!(stbir_info->flags&STBIR_FLAG_ALPHA_USES_COLORSPACE)) + ((unsigned int*)output_buffer)[pixel_index + alpha_channel] = (unsigned int)STBIR__ROUND_INT(((double)stbir__saturate(encode_buffer[pixel_index + alpha_channel])) * stbir__max_uint32_as_float); + } + break; + + case STBIR__DECODE(STBIR_TYPE_FLOAT, STBIR_COLORSPACE_LINEAR): + for (x=0; x < num_pixels; ++x) + { + int pixel_index = x*channels; + + for (n = 0; n < channels; n++) + { + int index = pixel_index + n; + ((float*)output_buffer)[index] = encode_buffer[index]; + } + } + break; + + case STBIR__DECODE(STBIR_TYPE_FLOAT, STBIR_COLORSPACE_SRGB): + for (x=0; x < num_pixels; ++x) + { + int pixel_index = x*channels; + + for (n = 0; n < num_nonalpha; n++) + { + int index = pixel_index + nonalpha[n]; + ((float*)output_buffer)[index] = stbir__linear_to_srgb(encode_buffer[index]); + } + + if (!(stbir_info->flags&STBIR_FLAG_ALPHA_USES_COLORSPACE)) + ((float*)output_buffer)[pixel_index + alpha_channel] = encode_buffer[pixel_index + alpha_channel]; + } + break; + + default: + STBIR_ASSERT(!"Unknown type/colorspace/channels combination."); + break; + } +} + +static void stbir__resample_vertical_upsample(stbir__info* stbir_info, int n) +{ + int x, k; + int output_w = stbir_info->output_w; + stbir__contributors* vertical_contributors = stbir_info->vertical_contributors; + float* vertical_coefficients = stbir_info->vertical_coefficients; + int channels = stbir_info->channels; + int alpha_channel = stbir_info->alpha_channel; + int type = stbir_info->type; + int colorspace = stbir_info->colorspace; + int ring_buffer_entries = stbir_info->ring_buffer_num_entries; + void* output_data = stbir_info->output_data; + float* encode_buffer = stbir_info->encode_buffer; + int decode = STBIR__DECODE(type, colorspace); + int coefficient_width = stbir_info->vertical_coefficient_width; + int coefficient_counter; + int contributor = n; + + float* ring_buffer = stbir_info->ring_buffer; + int ring_buffer_begin_index = stbir_info->ring_buffer_begin_index; + int ring_buffer_first_scanline = stbir_info->ring_buffer_first_scanline; + int ring_buffer_length = stbir_info->ring_buffer_length_bytes/sizeof(float); + + int n0,n1, output_row_start; + int coefficient_group = coefficient_width * contributor; + + n0 = vertical_contributors[contributor].n0; + n1 = vertical_contributors[contributor].n1; + + output_row_start = n * stbir_info->output_stride_bytes; + + STBIR_ASSERT(stbir__use_height_upsampling(stbir_info)); + + memset(encode_buffer, 0, output_w * sizeof(float) * channels); + + // I tried reblocking this for better cache usage of encode_buffer + // (using x_outer, k, x_inner), but it lost speed. -- stb + + coefficient_counter = 0; + switch (channels) { + case 1: + for (k = n0; k <= n1; k++) + { + int coefficient_index = coefficient_counter++; + float* ring_buffer_entry = stbir__get_ring_buffer_scanline(k, ring_buffer, ring_buffer_begin_index, ring_buffer_first_scanline, ring_buffer_entries, ring_buffer_length); + float coefficient = vertical_coefficients[coefficient_group + coefficient_index]; + for (x = 0; x < output_w; ++x) + { + int in_pixel_index = x * 1; + encode_buffer[in_pixel_index + 0] += ring_buffer_entry[in_pixel_index + 0] * coefficient; + } + } + break; + case 2: + for (k = n0; k <= n1; k++) + { + int coefficient_index = coefficient_counter++; + float* ring_buffer_entry = stbir__get_ring_buffer_scanline(k, ring_buffer, ring_buffer_begin_index, ring_buffer_first_scanline, ring_buffer_entries, ring_buffer_length); + float coefficient = vertical_coefficients[coefficient_group + coefficient_index]; + for (x = 0; x < output_w; ++x) + { + int in_pixel_index = x * 2; + encode_buffer[in_pixel_index + 0] += ring_buffer_entry[in_pixel_index + 0] * coefficient; + encode_buffer[in_pixel_index + 1] += ring_buffer_entry[in_pixel_index + 1] * coefficient; + } + } + break; + case 3: + for (k = n0; k <= n1; k++) + { + int coefficient_index = coefficient_counter++; + float* ring_buffer_entry = stbir__get_ring_buffer_scanline(k, ring_buffer, ring_buffer_begin_index, ring_buffer_first_scanline, ring_buffer_entries, ring_buffer_length); + float coefficient = vertical_coefficients[coefficient_group + coefficient_index]; + for (x = 0; x < output_w; ++x) + { + int in_pixel_index = x * 3; + encode_buffer[in_pixel_index + 0] += ring_buffer_entry[in_pixel_index + 0] * coefficient; + encode_buffer[in_pixel_index + 1] += ring_buffer_entry[in_pixel_index + 1] * coefficient; + encode_buffer[in_pixel_index + 2] += ring_buffer_entry[in_pixel_index + 2] * coefficient; + } + } + break; + case 4: + for (k = n0; k <= n1; k++) + { + int coefficient_index = coefficient_counter++; + float* ring_buffer_entry = stbir__get_ring_buffer_scanline(k, ring_buffer, ring_buffer_begin_index, ring_buffer_first_scanline, ring_buffer_entries, ring_buffer_length); + float coefficient = vertical_coefficients[coefficient_group + coefficient_index]; + for (x = 0; x < output_w; ++x) + { + int in_pixel_index = x * 4; + encode_buffer[in_pixel_index + 0] += ring_buffer_entry[in_pixel_index + 0] * coefficient; + encode_buffer[in_pixel_index + 1] += ring_buffer_entry[in_pixel_index + 1] * coefficient; + encode_buffer[in_pixel_index + 2] += ring_buffer_entry[in_pixel_index + 2] * coefficient; + encode_buffer[in_pixel_index + 3] += ring_buffer_entry[in_pixel_index + 3] * coefficient; + } + } + break; + default: + for (k = n0; k <= n1; k++) + { + int coefficient_index = coefficient_counter++; + float* ring_buffer_entry = stbir__get_ring_buffer_scanline(k, ring_buffer, ring_buffer_begin_index, ring_buffer_first_scanline, ring_buffer_entries, ring_buffer_length); + float coefficient = vertical_coefficients[coefficient_group + coefficient_index]; + for (x = 0; x < output_w; ++x) + { + int in_pixel_index = x * channels; + int c; + for (c = 0; c < channels; c++) + encode_buffer[in_pixel_index + c] += ring_buffer_entry[in_pixel_index + c] * coefficient; + } + } + break; + } + stbir__encode_scanline(stbir_info, output_w, (char *) output_data + output_row_start, encode_buffer, channels, alpha_channel, decode); +} + +static void stbir__resample_vertical_downsample(stbir__info* stbir_info, int n) +{ + int x, k; + int output_w = stbir_info->output_w; + stbir__contributors* vertical_contributors = stbir_info->vertical_contributors; + float* vertical_coefficients = stbir_info->vertical_coefficients; + int channels = stbir_info->channels; + int ring_buffer_entries = stbir_info->ring_buffer_num_entries; + float* horizontal_buffer = stbir_info->horizontal_buffer; + int coefficient_width = stbir_info->vertical_coefficient_width; + int contributor = n + stbir_info->vertical_filter_pixel_margin; + + float* ring_buffer = stbir_info->ring_buffer; + int ring_buffer_begin_index = stbir_info->ring_buffer_begin_index; + int ring_buffer_first_scanline = stbir_info->ring_buffer_first_scanline; + int ring_buffer_length = stbir_info->ring_buffer_length_bytes/sizeof(float); + int n0,n1; + + n0 = vertical_contributors[contributor].n0; + n1 = vertical_contributors[contributor].n1; + + STBIR_ASSERT(!stbir__use_height_upsampling(stbir_info)); + + for (k = n0; k <= n1; k++) + { + int coefficient_index = k - n0; + int coefficient_group = coefficient_width * contributor; + float coefficient = vertical_coefficients[coefficient_group + coefficient_index]; + + float* ring_buffer_entry = stbir__get_ring_buffer_scanline(k, ring_buffer, ring_buffer_begin_index, ring_buffer_first_scanline, ring_buffer_entries, ring_buffer_length); + + switch (channels) { + case 1: + for (x = 0; x < output_w; x++) + { + int in_pixel_index = x * 1; + ring_buffer_entry[in_pixel_index + 0] += horizontal_buffer[in_pixel_index + 0] * coefficient; + } + break; + case 2: + for (x = 0; x < output_w; x++) + { + int in_pixel_index = x * 2; + ring_buffer_entry[in_pixel_index + 0] += horizontal_buffer[in_pixel_index + 0] * coefficient; + ring_buffer_entry[in_pixel_index + 1] += horizontal_buffer[in_pixel_index + 1] * coefficient; + } + break; + case 3: + for (x = 0; x < output_w; x++) + { + int in_pixel_index = x * 3; + ring_buffer_entry[in_pixel_index + 0] += horizontal_buffer[in_pixel_index + 0] * coefficient; + ring_buffer_entry[in_pixel_index + 1] += horizontal_buffer[in_pixel_index + 1] * coefficient; + ring_buffer_entry[in_pixel_index + 2] += horizontal_buffer[in_pixel_index + 2] * coefficient; + } + break; + case 4: + for (x = 0; x < output_w; x++) + { + int in_pixel_index = x * 4; + ring_buffer_entry[in_pixel_index + 0] += horizontal_buffer[in_pixel_index + 0] * coefficient; + ring_buffer_entry[in_pixel_index + 1] += horizontal_buffer[in_pixel_index + 1] * coefficient; + ring_buffer_entry[in_pixel_index + 2] += horizontal_buffer[in_pixel_index + 2] * coefficient; + ring_buffer_entry[in_pixel_index + 3] += horizontal_buffer[in_pixel_index + 3] * coefficient; + } + break; + default: + for (x = 0; x < output_w; x++) + { + int in_pixel_index = x * channels; + + int c; + for (c = 0; c < channels; c++) + ring_buffer_entry[in_pixel_index + c] += horizontal_buffer[in_pixel_index + c] * coefficient; + } + break; + } + } +} + +static void stbir__buffer_loop_upsample(stbir__info* stbir_info) +{ + int y; + float scale_ratio = stbir_info->vertical_scale; + float out_scanlines_radius = stbir__filter_info_table[stbir_info->vertical_filter].support(1/scale_ratio) * scale_ratio; + + STBIR_ASSERT(stbir__use_height_upsampling(stbir_info)); + + for (y = 0; y < stbir_info->output_h; y++) + { + float in_center_of_out = 0; // Center of the current out scanline in the in scanline space + int in_first_scanline = 0, in_last_scanline = 0; + + stbir__calculate_sample_range_upsample(y, out_scanlines_radius, scale_ratio, stbir_info->vertical_shift, &in_first_scanline, &in_last_scanline, &in_center_of_out); + + STBIR_ASSERT(in_last_scanline - in_first_scanline + 1 <= stbir_info->ring_buffer_num_entries); + + if (stbir_info->ring_buffer_begin_index >= 0) + { + // Get rid of whatever we don't need anymore. + while (in_first_scanline > stbir_info->ring_buffer_first_scanline) + { + if (stbir_info->ring_buffer_first_scanline == stbir_info->ring_buffer_last_scanline) + { + // We just popped the last scanline off the ring buffer. + // Reset it to the empty state. + stbir_info->ring_buffer_begin_index = -1; + stbir_info->ring_buffer_first_scanline = 0; + stbir_info->ring_buffer_last_scanline = 0; + break; + } + else + { + stbir_info->ring_buffer_first_scanline++; + stbir_info->ring_buffer_begin_index = (stbir_info->ring_buffer_begin_index + 1) % stbir_info->ring_buffer_num_entries; + } + } + } + + // Load in new ones. + if (stbir_info->ring_buffer_begin_index < 0) + stbir__decode_and_resample_upsample(stbir_info, in_first_scanline); + + while (in_last_scanline > stbir_info->ring_buffer_last_scanline) + stbir__decode_and_resample_upsample(stbir_info, stbir_info->ring_buffer_last_scanline + 1); + + // Now all buffers should be ready to write a row of vertical sampling. + stbir__resample_vertical_upsample(stbir_info, y); + + STBIR_PROGRESS_REPORT((float)y / stbir_info->output_h); + } +} + +static void stbir__empty_ring_buffer(stbir__info* stbir_info, int first_necessary_scanline) +{ + int output_stride_bytes = stbir_info->output_stride_bytes; + int channels = stbir_info->channels; + int alpha_channel = stbir_info->alpha_channel; + int type = stbir_info->type; + int colorspace = stbir_info->colorspace; + int output_w = stbir_info->output_w; + void* output_data = stbir_info->output_data; + int decode = STBIR__DECODE(type, colorspace); + + float* ring_buffer = stbir_info->ring_buffer; + int ring_buffer_length = stbir_info->ring_buffer_length_bytes/sizeof(float); + + if (stbir_info->ring_buffer_begin_index >= 0) + { + // Get rid of whatever we don't need anymore. + while (first_necessary_scanline > stbir_info->ring_buffer_first_scanline) + { + if (stbir_info->ring_buffer_first_scanline >= 0 && stbir_info->ring_buffer_first_scanline < stbir_info->output_h) + { + int output_row_start = stbir_info->ring_buffer_first_scanline * output_stride_bytes; + float* ring_buffer_entry = stbir__get_ring_buffer_entry(ring_buffer, stbir_info->ring_buffer_begin_index, ring_buffer_length); + stbir__encode_scanline(stbir_info, output_w, (char *) output_data + output_row_start, ring_buffer_entry, channels, alpha_channel, decode); + STBIR_PROGRESS_REPORT((float)stbir_info->ring_buffer_first_scanline / stbir_info->output_h); + } + + if (stbir_info->ring_buffer_first_scanline == stbir_info->ring_buffer_last_scanline) + { + // We just popped the last scanline off the ring buffer. + // Reset it to the empty state. + stbir_info->ring_buffer_begin_index = -1; + stbir_info->ring_buffer_first_scanline = 0; + stbir_info->ring_buffer_last_scanline = 0; + break; + } + else + { + stbir_info->ring_buffer_first_scanline++; + stbir_info->ring_buffer_begin_index = (stbir_info->ring_buffer_begin_index + 1) % stbir_info->ring_buffer_num_entries; + } + } + } +} + +static void stbir__buffer_loop_downsample(stbir__info* stbir_info) +{ + int y; + float scale_ratio = stbir_info->vertical_scale; + int output_h = stbir_info->output_h; + float in_pixels_radius = stbir__filter_info_table[stbir_info->vertical_filter].support(scale_ratio) / scale_ratio; + int pixel_margin = stbir_info->vertical_filter_pixel_margin; + int max_y = stbir_info->input_h + pixel_margin; + + STBIR_ASSERT(!stbir__use_height_upsampling(stbir_info)); + + for (y = -pixel_margin; y < max_y; y++) + { + float out_center_of_in; // Center of the current out scanline in the in scanline space + int out_first_scanline, out_last_scanline; + + stbir__calculate_sample_range_downsample(y, in_pixels_radius, scale_ratio, stbir_info->vertical_shift, &out_first_scanline, &out_last_scanline, &out_center_of_in); + + STBIR_ASSERT(out_last_scanline - out_first_scanline + 1 <= stbir_info->ring_buffer_num_entries); + + if (out_last_scanline < 0 || out_first_scanline >= output_h) + continue; + + stbir__empty_ring_buffer(stbir_info, out_first_scanline); + + stbir__decode_and_resample_downsample(stbir_info, y); + + // Load in new ones. + if (stbir_info->ring_buffer_begin_index < 0) + stbir__add_empty_ring_buffer_entry(stbir_info, out_first_scanline); + + while (out_last_scanline > stbir_info->ring_buffer_last_scanline) + stbir__add_empty_ring_buffer_entry(stbir_info, stbir_info->ring_buffer_last_scanline + 1); + + // Now the horizontal buffer is ready to write to all ring buffer rows. + stbir__resample_vertical_downsample(stbir_info, y); + } + + stbir__empty_ring_buffer(stbir_info, stbir_info->output_h); +} + +static void stbir__setup(stbir__info *info, int input_w, int input_h, int output_w, int output_h, int channels) +{ + info->input_w = input_w; + info->input_h = input_h; + info->output_w = output_w; + info->output_h = output_h; + info->channels = channels; +} + +static void stbir__calculate_transform(stbir__info *info, float s0, float t0, float s1, float t1, float *transform) +{ + info->s0 = s0; + info->t0 = t0; + info->s1 = s1; + info->t1 = t1; + + if (transform) + { + info->horizontal_scale = transform[0]; + info->vertical_scale = transform[1]; + info->horizontal_shift = transform[2]; + info->vertical_shift = transform[3]; + } + else + { + info->horizontal_scale = ((float)info->output_w / info->input_w) / (s1 - s0); + info->vertical_scale = ((float)info->output_h / info->input_h) / (t1 - t0); + + info->horizontal_shift = s0 * info->output_w / (s1 - s0); + info->vertical_shift = t0 * info->output_h / (t1 - t0); + } +} + +static void stbir__choose_filter(stbir__info *info, stbir_filter h_filter, stbir_filter v_filter) +{ + if (h_filter == 0) + h_filter = stbir__use_upsampling(info->horizontal_scale) ? STBIR_DEFAULT_FILTER_UPSAMPLE : STBIR_DEFAULT_FILTER_DOWNSAMPLE; + if (v_filter == 0) + v_filter = stbir__use_upsampling(info->vertical_scale) ? STBIR_DEFAULT_FILTER_UPSAMPLE : STBIR_DEFAULT_FILTER_DOWNSAMPLE; + info->horizontal_filter = h_filter; + info->vertical_filter = v_filter; +} + +static stbir_uint32 stbir__calculate_memory(stbir__info *info) +{ + int pixel_margin = stbir__get_filter_pixel_margin(info->horizontal_filter, info->horizontal_scale); + int filter_height = stbir__get_filter_pixel_width(info->vertical_filter, info->vertical_scale); + + info->horizontal_num_contributors = stbir__get_contributors(info->horizontal_scale, info->horizontal_filter, info->input_w, info->output_w); + info->vertical_num_contributors = stbir__get_contributors(info->vertical_scale , info->vertical_filter , info->input_h, info->output_h); + + // One extra entry because floating point precision problems sometimes cause an extra to be necessary. + info->ring_buffer_num_entries = filter_height + 1; + + info->horizontal_contributors_size = info->horizontal_num_contributors * sizeof(stbir__contributors); + info->horizontal_coefficients_size = stbir__get_total_horizontal_coefficients(info) * sizeof(float); + info->vertical_contributors_size = info->vertical_num_contributors * sizeof(stbir__contributors); + info->vertical_coefficients_size = stbir__get_total_vertical_coefficients(info) * sizeof(float); + info->decode_buffer_size = (info->input_w + pixel_margin * 2) * info->channels * sizeof(float); + info->horizontal_buffer_size = info->output_w * info->channels * sizeof(float); + info->ring_buffer_size = info->output_w * info->channels * info->ring_buffer_num_entries * sizeof(float); + info->encode_buffer_size = info->output_w * info->channels * sizeof(float); + + STBIR_ASSERT(info->horizontal_filter != 0); + STBIR_ASSERT(info->horizontal_filter < STBIR__ARRAY_SIZE(stbir__filter_info_table)); // this now happens too late + STBIR_ASSERT(info->vertical_filter != 0); + STBIR_ASSERT(info->vertical_filter < STBIR__ARRAY_SIZE(stbir__filter_info_table)); // this now happens too late + + if (stbir__use_height_upsampling(info)) + // The horizontal buffer is for when we're downsampling the height and we + // can't output the result of sampling the decode buffer directly into the + // ring buffers. + info->horizontal_buffer_size = 0; + else + // The encode buffer is to retain precision in the height upsampling method + // and isn't used when height downsampling. + info->encode_buffer_size = 0; + + return info->horizontal_contributors_size + info->horizontal_coefficients_size + + info->vertical_contributors_size + info->vertical_coefficients_size + + info->decode_buffer_size + info->horizontal_buffer_size + + info->ring_buffer_size + info->encode_buffer_size; +} + +static int stbir__resize_allocated(stbir__info *info, + const void* input_data, int input_stride_in_bytes, + void* output_data, int output_stride_in_bytes, + int alpha_channel, stbir_uint32 flags, stbir_datatype type, + stbir_edge edge_horizontal, stbir_edge edge_vertical, stbir_colorspace colorspace, + void* tempmem, size_t tempmem_size_in_bytes) +{ + size_t memory_required = stbir__calculate_memory(info); + + int width_stride_input = input_stride_in_bytes ? input_stride_in_bytes : info->channels * info->input_w * stbir__type_size[type]; + int width_stride_output = output_stride_in_bytes ? output_stride_in_bytes : info->channels * info->output_w * stbir__type_size[type]; + +#ifdef STBIR_DEBUG_OVERWRITE_TEST +#define OVERWRITE_ARRAY_SIZE 8 + unsigned char overwrite_output_before_pre[OVERWRITE_ARRAY_SIZE]; + unsigned char overwrite_tempmem_before_pre[OVERWRITE_ARRAY_SIZE]; + unsigned char overwrite_output_after_pre[OVERWRITE_ARRAY_SIZE]; + unsigned char overwrite_tempmem_after_pre[OVERWRITE_ARRAY_SIZE]; + + size_t begin_forbidden = width_stride_output * (info->output_h - 1) + info->output_w * info->channels * stbir__type_size[type]; + memcpy(overwrite_output_before_pre, &((unsigned char*)output_data)[-OVERWRITE_ARRAY_SIZE], OVERWRITE_ARRAY_SIZE); + memcpy(overwrite_output_after_pre, &((unsigned char*)output_data)[begin_forbidden], OVERWRITE_ARRAY_SIZE); + memcpy(overwrite_tempmem_before_pre, &((unsigned char*)tempmem)[-OVERWRITE_ARRAY_SIZE], OVERWRITE_ARRAY_SIZE); + memcpy(overwrite_tempmem_after_pre, &((unsigned char*)tempmem)[tempmem_size_in_bytes], OVERWRITE_ARRAY_SIZE); +#endif + + STBIR_ASSERT(info->channels >= 0); + STBIR_ASSERT(info->channels <= STBIR_MAX_CHANNELS); + + if (info->channels < 0 || info->channels > STBIR_MAX_CHANNELS) + return 0; + + STBIR_ASSERT(info->horizontal_filter < STBIR__ARRAY_SIZE(stbir__filter_info_table)); + STBIR_ASSERT(info->vertical_filter < STBIR__ARRAY_SIZE(stbir__filter_info_table)); + + if (info->horizontal_filter >= STBIR__ARRAY_SIZE(stbir__filter_info_table)) + return 0; + if (info->vertical_filter >= STBIR__ARRAY_SIZE(stbir__filter_info_table)) + return 0; + + if (alpha_channel < 0) + flags |= STBIR_FLAG_ALPHA_USES_COLORSPACE | STBIR_FLAG_ALPHA_PREMULTIPLIED; + + if (!(flags&STBIR_FLAG_ALPHA_USES_COLORSPACE) || !(flags&STBIR_FLAG_ALPHA_PREMULTIPLIED)) { + STBIR_ASSERT(alpha_channel >= 0 && alpha_channel < info->channels); + } + + if (alpha_channel >= info->channels) + return 0; + + STBIR_ASSERT(tempmem); + + if (!tempmem) + return 0; + + STBIR_ASSERT(tempmem_size_in_bytes >= memory_required); + + if (tempmem_size_in_bytes < memory_required) + return 0; + + memset(tempmem, 0, tempmem_size_in_bytes); + + info->input_data = input_data; + info->input_stride_bytes = width_stride_input; + + info->output_data = output_data; + info->output_stride_bytes = width_stride_output; + + info->alpha_channel = alpha_channel; + info->flags = flags; + info->type = type; + info->edge_horizontal = edge_horizontal; + info->edge_vertical = edge_vertical; + info->colorspace = colorspace; + + info->horizontal_coefficient_width = stbir__get_coefficient_width (info->horizontal_filter, info->horizontal_scale); + info->vertical_coefficient_width = stbir__get_coefficient_width (info->vertical_filter , info->vertical_scale ); + info->horizontal_filter_pixel_width = stbir__get_filter_pixel_width (info->horizontal_filter, info->horizontal_scale); + info->vertical_filter_pixel_width = stbir__get_filter_pixel_width (info->vertical_filter , info->vertical_scale ); + info->horizontal_filter_pixel_margin = stbir__get_filter_pixel_margin(info->horizontal_filter, info->horizontal_scale); + info->vertical_filter_pixel_margin = stbir__get_filter_pixel_margin(info->vertical_filter , info->vertical_scale ); + + info->ring_buffer_length_bytes = info->output_w * info->channels * sizeof(float); + info->decode_buffer_pixels = info->input_w + info->horizontal_filter_pixel_margin * 2; + +#define STBIR__NEXT_MEMPTR(current, newtype) (newtype*)(((unsigned char*)current) + current##_size) + + info->horizontal_contributors = (stbir__contributors *) tempmem; + info->horizontal_coefficients = STBIR__NEXT_MEMPTR(info->horizontal_contributors, float); + info->vertical_contributors = STBIR__NEXT_MEMPTR(info->horizontal_coefficients, stbir__contributors); + info->vertical_coefficients = STBIR__NEXT_MEMPTR(info->vertical_contributors, float); + info->decode_buffer = STBIR__NEXT_MEMPTR(info->vertical_coefficients, float); + + if (stbir__use_height_upsampling(info)) + { + info->horizontal_buffer = NULL; + info->ring_buffer = STBIR__NEXT_MEMPTR(info->decode_buffer, float); + info->encode_buffer = STBIR__NEXT_MEMPTR(info->ring_buffer, float); + + STBIR_ASSERT((size_t)STBIR__NEXT_MEMPTR(info->encode_buffer, unsigned char) == (size_t)tempmem + tempmem_size_in_bytes); + } + else + { + info->horizontal_buffer = STBIR__NEXT_MEMPTR(info->decode_buffer, float); + info->ring_buffer = STBIR__NEXT_MEMPTR(info->horizontal_buffer, float); + info->encode_buffer = NULL; + + STBIR_ASSERT((size_t)STBIR__NEXT_MEMPTR(info->ring_buffer, unsigned char) == (size_t)tempmem + tempmem_size_in_bytes); + } + +#undef STBIR__NEXT_MEMPTR + + // This signals that the ring buffer is empty + info->ring_buffer_begin_index = -1; + + stbir__calculate_filters(info->horizontal_contributors, info->horizontal_coefficients, info->horizontal_filter, info->horizontal_scale, info->horizontal_shift, info->input_w, info->output_w); + stbir__calculate_filters(info->vertical_contributors, info->vertical_coefficients, info->vertical_filter, info->vertical_scale, info->vertical_shift, info->input_h, info->output_h); + + STBIR_PROGRESS_REPORT(0); + + if (stbir__use_height_upsampling(info)) + stbir__buffer_loop_upsample(info); + else + stbir__buffer_loop_downsample(info); + + STBIR_PROGRESS_REPORT(1); + +#ifdef STBIR_DEBUG_OVERWRITE_TEST + STBIR_ASSERT(memcmp(overwrite_output_before_pre, &((unsigned char*)output_data)[-OVERWRITE_ARRAY_SIZE], OVERWRITE_ARRAY_SIZE) == 0); + STBIR_ASSERT(memcmp(overwrite_output_after_pre, &((unsigned char*)output_data)[begin_forbidden], OVERWRITE_ARRAY_SIZE) == 0); + STBIR_ASSERT(memcmp(overwrite_tempmem_before_pre, &((unsigned char*)tempmem)[-OVERWRITE_ARRAY_SIZE], OVERWRITE_ARRAY_SIZE) == 0); + STBIR_ASSERT(memcmp(overwrite_tempmem_after_pre, &((unsigned char*)tempmem)[tempmem_size_in_bytes], OVERWRITE_ARRAY_SIZE) == 0); +#endif + + return 1; +} + + +static int stbir__resize_arbitrary( + void *alloc_context, + const void* input_data, int input_w, int input_h, int input_stride_in_bytes, + void* output_data, int output_w, int output_h, int output_stride_in_bytes, + float s0, float t0, float s1, float t1, float *transform, + int channels, int alpha_channel, stbir_uint32 flags, stbir_datatype type, + stbir_filter h_filter, stbir_filter v_filter, + stbir_edge edge_horizontal, stbir_edge edge_vertical, stbir_colorspace colorspace) +{ + stbir__info info; + int result; + size_t memory_required; + void* extra_memory; + + stbir__setup(&info, input_w, input_h, output_w, output_h, channels); + stbir__calculate_transform(&info, s0,t0,s1,t1,transform); + stbir__choose_filter(&info, h_filter, v_filter); + memory_required = stbir__calculate_memory(&info); + extra_memory = STBIR_MALLOC(memory_required, alloc_context); + + if (!extra_memory) + return 0; + + result = stbir__resize_allocated(&info, input_data, input_stride_in_bytes, + output_data, output_stride_in_bytes, + alpha_channel, flags, type, + edge_horizontal, edge_vertical, + colorspace, extra_memory, memory_required); + + STBIR_FREE(extra_memory, alloc_context); + + return result; +} + +STBIRDEF int stbir_resize_uint8( const unsigned char *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + int num_channels) +{ + return stbir__resize_arbitrary(NULL, input_pixels, input_w, input_h, input_stride_in_bytes, + output_pixels, output_w, output_h, output_stride_in_bytes, + 0,0,1,1,NULL,num_channels,-1,0, STBIR_TYPE_UINT8, STBIR_FILTER_DEFAULT, STBIR_FILTER_DEFAULT, + STBIR_EDGE_CLAMP, STBIR_EDGE_CLAMP, STBIR_COLORSPACE_LINEAR); +} + +STBIRDEF int stbir_resize_float( const float *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + float *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + int num_channels) +{ + return stbir__resize_arbitrary(NULL, input_pixels, input_w, input_h, input_stride_in_bytes, + output_pixels, output_w, output_h, output_stride_in_bytes, + 0,0,1,1,NULL,num_channels,-1,0, STBIR_TYPE_FLOAT, STBIR_FILTER_DEFAULT, STBIR_FILTER_DEFAULT, + STBIR_EDGE_CLAMP, STBIR_EDGE_CLAMP, STBIR_COLORSPACE_LINEAR); +} + +STBIRDEF int stbir_resize_uint8_srgb(const unsigned char *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + int num_channels, int alpha_channel, int flags) +{ + return stbir__resize_arbitrary(NULL, input_pixels, input_w, input_h, input_stride_in_bytes, + output_pixels, output_w, output_h, output_stride_in_bytes, + 0,0,1,1,NULL,num_channels,alpha_channel,flags, STBIR_TYPE_UINT8, STBIR_FILTER_DEFAULT, STBIR_FILTER_DEFAULT, + STBIR_EDGE_CLAMP, STBIR_EDGE_CLAMP, STBIR_COLORSPACE_SRGB); +} + +STBIRDEF int stbir_resize_uint8_srgb_edgemode(const unsigned char *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + int num_channels, int alpha_channel, int flags, + stbir_edge edge_wrap_mode) +{ + return stbir__resize_arbitrary(NULL, input_pixels, input_w, input_h, input_stride_in_bytes, + output_pixels, output_w, output_h, output_stride_in_bytes, + 0,0,1,1,NULL,num_channels,alpha_channel,flags, STBIR_TYPE_UINT8, STBIR_FILTER_DEFAULT, STBIR_FILTER_DEFAULT, + edge_wrap_mode, edge_wrap_mode, STBIR_COLORSPACE_SRGB); +} + +STBIRDEF int stbir_resize_uint8_generic( const unsigned char *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + unsigned char *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + int num_channels, int alpha_channel, int flags, + stbir_edge edge_wrap_mode, stbir_filter filter, stbir_colorspace space, + void *alloc_context) +{ + return stbir__resize_arbitrary(alloc_context, input_pixels, input_w, input_h, input_stride_in_bytes, + output_pixels, output_w, output_h, output_stride_in_bytes, + 0,0,1,1,NULL,num_channels,alpha_channel,flags, STBIR_TYPE_UINT8, filter, filter, + edge_wrap_mode, edge_wrap_mode, space); +} + +STBIRDEF int stbir_resize_uint16_generic(const stbir_uint16 *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + stbir_uint16 *output_pixels , int output_w, int output_h, int output_stride_in_bytes, + int num_channels, int alpha_channel, int flags, + stbir_edge edge_wrap_mode, stbir_filter filter, stbir_colorspace space, + void *alloc_context) +{ + return stbir__resize_arbitrary(alloc_context, input_pixels, input_w, input_h, input_stride_in_bytes, + output_pixels, output_w, output_h, output_stride_in_bytes, + 0,0,1,1,NULL,num_channels,alpha_channel,flags, STBIR_TYPE_UINT16, filter, filter, + edge_wrap_mode, edge_wrap_mode, space); +} + + +STBIRDEF int stbir_resize_float_generic( const float *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + float *output_pixels , int output_w, int output_h, int output_stride_in_bytes, + int num_channels, int alpha_channel, int flags, + stbir_edge edge_wrap_mode, stbir_filter filter, stbir_colorspace space, + void *alloc_context) +{ + return stbir__resize_arbitrary(alloc_context, input_pixels, input_w, input_h, input_stride_in_bytes, + output_pixels, output_w, output_h, output_stride_in_bytes, + 0,0,1,1,NULL,num_channels,alpha_channel,flags, STBIR_TYPE_FLOAT, filter, filter, + edge_wrap_mode, edge_wrap_mode, space); +} + + +STBIRDEF int stbir_resize( const void *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + void *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + stbir_datatype datatype, + int num_channels, int alpha_channel, int flags, + stbir_edge edge_mode_horizontal, stbir_edge edge_mode_vertical, + stbir_filter filter_horizontal, stbir_filter filter_vertical, + stbir_colorspace space, void *alloc_context) +{ + return stbir__resize_arbitrary(alloc_context, input_pixels, input_w, input_h, input_stride_in_bytes, + output_pixels, output_w, output_h, output_stride_in_bytes, + 0,0,1,1,NULL,num_channels,alpha_channel,flags, datatype, filter_horizontal, filter_vertical, + edge_mode_horizontal, edge_mode_vertical, space); +} + + +STBIRDEF int stbir_resize_subpixel(const void *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + void *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + stbir_datatype datatype, + int num_channels, int alpha_channel, int flags, + stbir_edge edge_mode_horizontal, stbir_edge edge_mode_vertical, + stbir_filter filter_horizontal, stbir_filter filter_vertical, + stbir_colorspace space, void *alloc_context, + float x_scale, float y_scale, + float x_offset, float y_offset) +{ + float transform[4]; + transform[0] = x_scale; + transform[1] = y_scale; + transform[2] = x_offset; + transform[3] = y_offset; + return stbir__resize_arbitrary(alloc_context, input_pixels, input_w, input_h, input_stride_in_bytes, + output_pixels, output_w, output_h, output_stride_in_bytes, + 0,0,1,1,transform,num_channels,alpha_channel,flags, datatype, filter_horizontal, filter_vertical, + edge_mode_horizontal, edge_mode_vertical, space); +} + +STBIRDEF int stbir_resize_region( const void *input_pixels , int input_w , int input_h , int input_stride_in_bytes, + void *output_pixels, int output_w, int output_h, int output_stride_in_bytes, + stbir_datatype datatype, + int num_channels, int alpha_channel, int flags, + stbir_edge edge_mode_horizontal, stbir_edge edge_mode_vertical, + stbir_filter filter_horizontal, stbir_filter filter_vertical, + stbir_colorspace space, void *alloc_context, + float s0, float t0, float s1, float t1) +{ + return stbir__resize_arbitrary(alloc_context, input_pixels, input_w, input_h, input_stride_in_bytes, + output_pixels, output_w, output_h, output_stride_in_bytes, + s0,t0,s1,t1,NULL,num_channels,alpha_channel,flags, datatype, filter_horizontal, filter_vertical, + edge_mode_horizontal, edge_mode_vertical, space); +} + +#endif // STB_IMAGE_RESIZE_IMPLEMENTATION + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/third_party/stb/stb_image_write.h b/third_party/stb/stb_image_write.h new file mode 100644 index 0000000..e4b32ed --- /dev/null +++ b/third_party/stb/stb_image_write.h @@ -0,0 +1,1724 @@ +/* stb_image_write - v1.16 - public domain - http://nothings.org/stb + writes out PNG/BMP/TGA/JPEG/HDR images to C stdio - Sean Barrett 2010-2015 + no warranty implied; use at your own risk + + Before #including, + + #define STB_IMAGE_WRITE_IMPLEMENTATION + + in the file that you want to have the implementation. + + Will probably not work correctly with strict-aliasing optimizations. + +ABOUT: + + This header file is a library for writing images to C stdio or a callback. + + The PNG output is not optimal; it is 20-50% larger than the file + written by a decent optimizing implementation; though providing a custom + zlib compress function (see STBIW_ZLIB_COMPRESS) can mitigate that. + This library is designed for source code compactness and simplicity, + not optimal image file size or run-time performance. + +BUILDING: + + You can #define STBIW_ASSERT(x) before the #include to avoid using assert.h. + You can #define STBIW_MALLOC(), STBIW_REALLOC(), and STBIW_FREE() to replace + malloc,realloc,free. + You can #define STBIW_MEMMOVE() to replace memmove() + You can #define STBIW_ZLIB_COMPRESS to use a custom zlib-style compress function + for PNG compression (instead of the builtin one), it must have the following signature: + unsigned char * my_compress(unsigned char *data, int data_len, int *out_len, int quality); + The returned data will be freed with STBIW_FREE() (free() by default), + so it must be heap allocated with STBIW_MALLOC() (malloc() by default), + +UNICODE: + + If compiling for Windows and you wish to use Unicode filenames, compile + with + #define STBIW_WINDOWS_UTF8 + and pass utf8-encoded filenames. Call stbiw_convert_wchar_to_utf8 to convert + Windows wchar_t filenames to utf8. + +USAGE: + + There are five functions, one for each image file format: + + int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes); + int stbi_write_bmp(char const *filename, int w, int h, int comp, const void *data); + int stbi_write_tga(char const *filename, int w, int h, int comp, const void *data); + int stbi_write_jpg(char const *filename, int w, int h, int comp, const void *data, int quality); + int stbi_write_hdr(char const *filename, int w, int h, int comp, const float *data); + + void stbi_flip_vertically_on_write(int flag); // flag is non-zero to flip data vertically + + There are also five equivalent functions that use an arbitrary write function. You are + expected to open/close your file-equivalent before and after calling these: + + int stbi_write_png_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data, int stride_in_bytes); + int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data); + int stbi_write_tga_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data); + int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const float *data); + int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality); + + where the callback is: + void stbi_write_func(void *context, void *data, int size); + + You can configure it with these global variables: + int stbi_write_tga_with_rle; // defaults to true; set to 0 to disable RLE + int stbi_write_png_compression_level; // defaults to 8; set to higher for more compression + int stbi_write_force_png_filter; // defaults to -1; set to 0..5 to force a filter mode + + + You can define STBI_WRITE_NO_STDIO to disable the file variant of these + functions, so the library will not use stdio.h at all. However, this will + also disable HDR writing, because it requires stdio for formatted output. + + Each function returns 0 on failure and non-0 on success. + + The functions create an image file defined by the parameters. The image + is a rectangle of pixels stored from left-to-right, top-to-bottom. + Each pixel contains 'comp' channels of data stored interleaved with 8-bits + per channel, in the following order: 1=Y, 2=YA, 3=RGB, 4=RGBA. (Y is + monochrome color.) The rectangle is 'w' pixels wide and 'h' pixels tall. + The *data pointer points to the first byte of the top-left-most pixel. + For PNG, "stride_in_bytes" is the distance in bytes from the first byte of + a row of pixels to the first byte of the next row of pixels. + + PNG creates output files with the same number of components as the input. + The BMP format expands Y to RGB in the file format and does not + output alpha. + + PNG supports writing rectangles of data even when the bytes storing rows of + data are not consecutive in memory (e.g. sub-rectangles of a larger image), + by supplying the stride between the beginning of adjacent rows. The other + formats do not. (Thus you cannot write a native-format BMP through the BMP + writer, both because it is in BGR order and because it may have padding + at the end of the line.) + + PNG allows you to set the deflate compression level by setting the global + variable 'stbi_write_png_compression_level' (it defaults to 8). + + HDR expects linear float data. Since the format is always 32-bit rgb(e) + data, alpha (if provided) is discarded, and for monochrome data it is + replicated across all three channels. + + TGA supports RLE or non-RLE compressed data. To use non-RLE-compressed + data, set the global variable 'stbi_write_tga_with_rle' to 0. + + JPEG does ignore alpha channels in input data; quality is between 1 and 100. + Higher quality looks better but results in a bigger image. + JPEG baseline (no JPEG progressive). + +CREDITS: + + + Sean Barrett - PNG/BMP/TGA + Baldur Karlsson - HDR + Jean-Sebastien Guay - TGA monochrome + Tim Kelsey - misc enhancements + Alan Hickman - TGA RLE + Emmanuel Julien - initial file IO callback implementation + Jon Olick - original jo_jpeg.cpp code + Daniel Gibson - integrate JPEG, allow external zlib + Aarni Koskela - allow choosing PNG filter + + bugfixes: + github:Chribba + Guillaume Chereau + github:jry2 + github:romigrou + Sergio Gonzalez + Jonas Karlsson + Filip Wasil + Thatcher Ulrich + github:poppolopoppo + Patrick Boettcher + github:xeekworx + Cap Petschulat + Simon Rodriguez + Ivan Tikhonov + github:ignotion + Adam Schackart + Andrew Kensler + +LICENSE + + See end of file for license information. + +*/ + +#ifndef INCLUDE_STB_IMAGE_WRITE_H +#define INCLUDE_STB_IMAGE_WRITE_H + +#include + +// if STB_IMAGE_WRITE_STATIC causes problems, try defining STBIWDEF to 'inline' or 'static inline' +#ifndef STBIWDEF +#ifdef STB_IMAGE_WRITE_STATIC +#define STBIWDEF static +#else +#ifdef __cplusplus +#define STBIWDEF extern "C" +#else +#define STBIWDEF extern +#endif +#endif +#endif + +#ifndef STB_IMAGE_WRITE_STATIC // C++ forbids static forward declarations +STBIWDEF int stbi_write_tga_with_rle; +STBIWDEF int stbi_write_png_compression_level; +STBIWDEF int stbi_write_force_png_filter; +#endif + +#ifndef STBI_WRITE_NO_STDIO +STBIWDEF int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes); +STBIWDEF int stbi_write_bmp(char const *filename, int w, int h, int comp, const void *data); +STBIWDEF int stbi_write_tga(char const *filename, int w, int h, int comp, const void *data); +STBIWDEF int stbi_write_hdr(char const *filename, int w, int h, int comp, const float *data); +STBIWDEF int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality); + +#ifdef STBIW_WINDOWS_UTF8 +STBIWDEF int stbiw_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input); +#endif +#endif + +typedef void stbi_write_func(void *context, void *data, int size); + +STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data, int stride_in_bytes); +STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data); +STBIWDEF int stbi_write_tga_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const void *data); +STBIWDEF int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int w, int h, int comp, const float *data); +STBIWDEF int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality); + +STBIWDEF void stbi_flip_vertically_on_write(int flip_boolean); + +#endif//INCLUDE_STB_IMAGE_WRITE_H + +#ifdef STB_IMAGE_WRITE_IMPLEMENTATION + +#ifdef _WIN32 + #ifndef _CRT_SECURE_NO_WARNINGS + #define _CRT_SECURE_NO_WARNINGS + #endif + #ifndef _CRT_NONSTDC_NO_DEPRECATE + #define _CRT_NONSTDC_NO_DEPRECATE + #endif +#endif + +#ifndef STBI_WRITE_NO_STDIO +#include +#endif // STBI_WRITE_NO_STDIO + +#include +#include +#include +#include + +#if defined(STBIW_MALLOC) && defined(STBIW_FREE) && (defined(STBIW_REALLOC) || defined(STBIW_REALLOC_SIZED)) +// ok +#elif !defined(STBIW_MALLOC) && !defined(STBIW_FREE) && !defined(STBIW_REALLOC) && !defined(STBIW_REALLOC_SIZED) +// ok +#else +#error "Must define all or none of STBIW_MALLOC, STBIW_FREE, and STBIW_REALLOC (or STBIW_REALLOC_SIZED)." +#endif + +#ifndef STBIW_MALLOC +#define STBIW_MALLOC(sz) malloc(sz) +#define STBIW_REALLOC(p,newsz) realloc(p,newsz) +#define STBIW_FREE(p) free(p) +#endif + +#ifndef STBIW_REALLOC_SIZED +#define STBIW_REALLOC_SIZED(p,oldsz,newsz) STBIW_REALLOC(p,newsz) +#endif + + +#ifndef STBIW_MEMMOVE +#define STBIW_MEMMOVE(a,b,sz) memmove(a,b,sz) +#endif + + +#ifndef STBIW_ASSERT +#include +#define STBIW_ASSERT(x) assert(x) +#endif + +#define STBIW_UCHAR(x) (unsigned char) ((x) & 0xff) + +#ifdef STB_IMAGE_WRITE_STATIC +static int stbi_write_png_compression_level = 8; +static int stbi_write_tga_with_rle = 1; +static int stbi_write_force_png_filter = -1; +#else +int stbi_write_png_compression_level = 8; +int stbi_write_tga_with_rle = 1; +int stbi_write_force_png_filter = -1; +#endif + +static int stbi__flip_vertically_on_write = 0; + +STBIWDEF void stbi_flip_vertically_on_write(int flag) +{ + stbi__flip_vertically_on_write = flag; +} + +typedef struct +{ + stbi_write_func *func; + void *context; + unsigned char buffer[64]; + int buf_used; +} stbi__write_context; + +// initialize a callback-based context +static void stbi__start_write_callbacks(stbi__write_context *s, stbi_write_func *c, void *context) +{ + s->func = c; + s->context = context; +} + +#ifndef STBI_WRITE_NO_STDIO + +static void stbi__stdio_write(void *context, void *data, int size) +{ + fwrite(data,1,size,(FILE*) context); +} + +#if defined(_WIN32) && defined(STBIW_WINDOWS_UTF8) +#ifdef __cplusplus +#define STBIW_EXTERN extern "C" +#else +#define STBIW_EXTERN extern +#endif +STBIW_EXTERN __declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int cp, unsigned long flags, const char *str, int cbmb, wchar_t *widestr, int cchwide); +STBIW_EXTERN __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int cp, unsigned long flags, const wchar_t *widestr, int cchwide, char *str, int cbmb, const char *defchar, int *used_default); + +STBIWDEF int stbiw_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input) +{ + return WideCharToMultiByte(65001 /* UTF8 */, 0, input, -1, buffer, (int) bufferlen, NULL, NULL); +} +#endif + +static FILE *stbiw__fopen(char const *filename, char const *mode) +{ + FILE *f; +#if defined(_WIN32) && defined(STBIW_WINDOWS_UTF8) + wchar_t wMode[64]; + wchar_t wFilename[1024]; + if (0 == MultiByteToWideChar(65001 /* UTF8 */, 0, filename, -1, wFilename, sizeof(wFilename)/sizeof(*wFilename))) + return 0; + + if (0 == MultiByteToWideChar(65001 /* UTF8 */, 0, mode, -1, wMode, sizeof(wMode)/sizeof(*wMode))) + return 0; + +#if defined(_MSC_VER) && _MSC_VER >= 1400 + if (0 != _wfopen_s(&f, wFilename, wMode)) + f = 0; +#else + f = _wfopen(wFilename, wMode); +#endif + +#elif defined(_MSC_VER) && _MSC_VER >= 1400 + if (0 != fopen_s(&f, filename, mode)) + f=0; +#else + f = fopen(filename, mode); +#endif + return f; +} + +static int stbi__start_write_file(stbi__write_context *s, const char *filename) +{ + FILE *f = stbiw__fopen(filename, "wb"); + stbi__start_write_callbacks(s, stbi__stdio_write, (void *) f); + return f != NULL; +} + +static void stbi__end_write_file(stbi__write_context *s) +{ + fclose((FILE *)s->context); +} + +#endif // !STBI_WRITE_NO_STDIO + +typedef unsigned int stbiw_uint32; +typedef int stb_image_write_test[sizeof(stbiw_uint32)==4 ? 1 : -1]; + +static void stbiw__writefv(stbi__write_context *s, const char *fmt, va_list v) +{ + while (*fmt) { + switch (*fmt++) { + case ' ': break; + case '1': { unsigned char x = STBIW_UCHAR(va_arg(v, int)); + s->func(s->context,&x,1); + break; } + case '2': { int x = va_arg(v,int); + unsigned char b[2]; + b[0] = STBIW_UCHAR(x); + b[1] = STBIW_UCHAR(x>>8); + s->func(s->context,b,2); + break; } + case '4': { stbiw_uint32 x = va_arg(v,int); + unsigned char b[4]; + b[0]=STBIW_UCHAR(x); + b[1]=STBIW_UCHAR(x>>8); + b[2]=STBIW_UCHAR(x>>16); + b[3]=STBIW_UCHAR(x>>24); + s->func(s->context,b,4); + break; } + default: + STBIW_ASSERT(0); + return; + } + } +} + +static void stbiw__writef(stbi__write_context *s, const char *fmt, ...) +{ + va_list v; + va_start(v, fmt); + stbiw__writefv(s, fmt, v); + va_end(v); +} + +static void stbiw__write_flush(stbi__write_context *s) +{ + if (s->buf_used) { + s->func(s->context, &s->buffer, s->buf_used); + s->buf_used = 0; + } +} + +static void stbiw__putc(stbi__write_context *s, unsigned char c) +{ + s->func(s->context, &c, 1); +} + +static void stbiw__write1(stbi__write_context *s, unsigned char a) +{ + if ((size_t)s->buf_used + 1 > sizeof(s->buffer)) + stbiw__write_flush(s); + s->buffer[s->buf_used++] = a; +} + +static void stbiw__write3(stbi__write_context *s, unsigned char a, unsigned char b, unsigned char c) +{ + int n; + if ((size_t)s->buf_used + 3 > sizeof(s->buffer)) + stbiw__write_flush(s); + n = s->buf_used; + s->buf_used = n+3; + s->buffer[n+0] = a; + s->buffer[n+1] = b; + s->buffer[n+2] = c; +} + +static void stbiw__write_pixel(stbi__write_context *s, int rgb_dir, int comp, int write_alpha, int expand_mono, unsigned char *d) +{ + unsigned char bg[3] = { 255, 0, 255}, px[3]; + int k; + + if (write_alpha < 0) + stbiw__write1(s, d[comp - 1]); + + switch (comp) { + case 2: // 2 pixels = mono + alpha, alpha is written separately, so same as 1-channel case + case 1: + if (expand_mono) + stbiw__write3(s, d[0], d[0], d[0]); // monochrome bmp + else + stbiw__write1(s, d[0]); // monochrome TGA + break; + case 4: + if (!write_alpha) { + // composite against pink background + for (k = 0; k < 3; ++k) + px[k] = bg[k] + ((d[k] - bg[k]) * d[3]) / 255; + stbiw__write3(s, px[1 - rgb_dir], px[1], px[1 + rgb_dir]); + break; + } + /* FALLTHROUGH */ + case 3: + stbiw__write3(s, d[1 - rgb_dir], d[1], d[1 + rgb_dir]); + break; + } + if (write_alpha > 0) + stbiw__write1(s, d[comp - 1]); +} + +static void stbiw__write_pixels(stbi__write_context *s, int rgb_dir, int vdir, int x, int y, int comp, void *data, int write_alpha, int scanline_pad, int expand_mono) +{ + stbiw_uint32 zero = 0; + int i,j, j_end; + + if (y <= 0) + return; + + if (stbi__flip_vertically_on_write) + vdir *= -1; + + if (vdir < 0) { + j_end = -1; j = y-1; + } else { + j_end = y; j = 0; + } + + for (; j != j_end; j += vdir) { + for (i=0; i < x; ++i) { + unsigned char *d = (unsigned char *) data + (j*x+i)*comp; + stbiw__write_pixel(s, rgb_dir, comp, write_alpha, expand_mono, d); + } + stbiw__write_flush(s); + s->func(s->context, &zero, scanline_pad); + } +} + +static int stbiw__outfile(stbi__write_context *s, int rgb_dir, int vdir, int x, int y, int comp, int expand_mono, void *data, int alpha, int pad, const char *fmt, ...) +{ + if (y < 0 || x < 0) { + return 0; + } else { + va_list v; + va_start(v, fmt); + stbiw__writefv(s, fmt, v); + va_end(v); + stbiw__write_pixels(s,rgb_dir,vdir,x,y,comp,data,alpha,pad, expand_mono); + return 1; + } +} + +static int stbi_write_bmp_core(stbi__write_context *s, int x, int y, int comp, const void *data) +{ + if (comp != 4) { + // write RGB bitmap + int pad = (-x*3) & 3; + return stbiw__outfile(s,-1,-1,x,y,comp,1,(void *) data,0,pad, + "11 4 22 4" "4 44 22 444444", + 'B', 'M', 14+40+(x*3+pad)*y, 0,0, 14+40, // file header + 40, x,y, 1,24, 0,0,0,0,0,0); // bitmap header + } else { + // RGBA bitmaps need a v4 header + // use BI_BITFIELDS mode with 32bpp and alpha mask + // (straight BI_RGB with alpha mask doesn't work in most readers) + return stbiw__outfile(s,-1,-1,x,y,comp,1,(void *)data,1,0, + "11 4 22 4" "4 44 22 444444 4444 4 444 444 444 444", + 'B', 'M', 14+108+x*y*4, 0, 0, 14+108, // file header + 108, x,y, 1,32, 3,0,0,0,0,0, 0xff0000,0xff00,0xff,0xff000000u, 0, 0,0,0, 0,0,0, 0,0,0, 0,0,0); // bitmap V4 header + } +} + +STBIWDEF int stbi_write_bmp_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data) +{ + stbi__write_context s = { 0 }; + stbi__start_write_callbacks(&s, func, context); + return stbi_write_bmp_core(&s, x, y, comp, data); +} + +#ifndef STBI_WRITE_NO_STDIO +STBIWDEF int stbi_write_bmp(char const *filename, int x, int y, int comp, const void *data) +{ + stbi__write_context s = { 0 }; + if (stbi__start_write_file(&s,filename)) { + int r = stbi_write_bmp_core(&s, x, y, comp, data); + stbi__end_write_file(&s); + return r; + } else + return 0; +} +#endif //!STBI_WRITE_NO_STDIO + +static int stbi_write_tga_core(stbi__write_context *s, int x, int y, int comp, void *data) +{ + int has_alpha = (comp == 2 || comp == 4); + int colorbytes = has_alpha ? comp-1 : comp; + int format = colorbytes < 2 ? 3 : 2; // 3 color channels (RGB/RGBA) = 2, 1 color channel (Y/YA) = 3 + + if (y < 0 || x < 0) + return 0; + + if (!stbi_write_tga_with_rle) { + return stbiw__outfile(s, -1, -1, x, y, comp, 0, (void *) data, has_alpha, 0, + "111 221 2222 11", 0, 0, format, 0, 0, 0, 0, 0, x, y, (colorbytes + has_alpha) * 8, has_alpha * 8); + } else { + int i,j,k; + int jend, jdir; + + stbiw__writef(s, "111 221 2222 11", 0,0,format+8, 0,0,0, 0,0,x,y, (colorbytes + has_alpha) * 8, has_alpha * 8); + + if (stbi__flip_vertically_on_write) { + j = 0; + jend = y; + jdir = 1; + } else { + j = y-1; + jend = -1; + jdir = -1; + } + for (; j != jend; j += jdir) { + unsigned char *row = (unsigned char *) data + j * x * comp; + int len; + + for (i = 0; i < x; i += len) { + unsigned char *begin = row + i * comp; + int diff = 1; + len = 1; + + if (i < x - 1) { + ++len; + diff = memcmp(begin, row + (i + 1) * comp, comp); + if (diff) { + const unsigned char *prev = begin; + for (k = i + 2; k < x && len < 128; ++k) { + if (memcmp(prev, row + k * comp, comp)) { + prev += comp; + ++len; + } else { + --len; + break; + } + } + } else { + for (k = i + 2; k < x && len < 128; ++k) { + if (!memcmp(begin, row + k * comp, comp)) { + ++len; + } else { + break; + } + } + } + } + + if (diff) { + unsigned char header = STBIW_UCHAR(len - 1); + stbiw__write1(s, header); + for (k = 0; k < len; ++k) { + stbiw__write_pixel(s, -1, comp, has_alpha, 0, begin + k * comp); + } + } else { + unsigned char header = STBIW_UCHAR(len - 129); + stbiw__write1(s, header); + stbiw__write_pixel(s, -1, comp, has_alpha, 0, begin); + } + } + } + stbiw__write_flush(s); + } + return 1; +} + +STBIWDEF int stbi_write_tga_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data) +{ + stbi__write_context s = { 0 }; + stbi__start_write_callbacks(&s, func, context); + return stbi_write_tga_core(&s, x, y, comp, (void *) data); +} + +#ifndef STBI_WRITE_NO_STDIO +STBIWDEF int stbi_write_tga(char const *filename, int x, int y, int comp, const void *data) +{ + stbi__write_context s = { 0 }; + if (stbi__start_write_file(&s,filename)) { + int r = stbi_write_tga_core(&s, x, y, comp, (void *) data); + stbi__end_write_file(&s); + return r; + } else + return 0; +} +#endif + +// ************************************************************************************************* +// Radiance RGBE HDR writer +// by Baldur Karlsson + +#define stbiw__max(a, b) ((a) > (b) ? (a) : (b)) + +#ifndef STBI_WRITE_NO_STDIO + +static void stbiw__linear_to_rgbe(unsigned char *rgbe, float *linear) +{ + int exponent; + float maxcomp = stbiw__max(linear[0], stbiw__max(linear[1], linear[2])); + + if (maxcomp < 1e-32f) { + rgbe[0] = rgbe[1] = rgbe[2] = rgbe[3] = 0; + } else { + float normalize = (float) frexp(maxcomp, &exponent) * 256.0f/maxcomp; + + rgbe[0] = (unsigned char)(linear[0] * normalize); + rgbe[1] = (unsigned char)(linear[1] * normalize); + rgbe[2] = (unsigned char)(linear[2] * normalize); + rgbe[3] = (unsigned char)(exponent + 128); + } +} + +static void stbiw__write_run_data(stbi__write_context *s, int length, unsigned char databyte) +{ + unsigned char lengthbyte = STBIW_UCHAR(length+128); + STBIW_ASSERT(length+128 <= 255); + s->func(s->context, &lengthbyte, 1); + s->func(s->context, &databyte, 1); +} + +static void stbiw__write_dump_data(stbi__write_context *s, int length, unsigned char *data) +{ + unsigned char lengthbyte = STBIW_UCHAR(length); + STBIW_ASSERT(length <= 128); // inconsistent with spec but consistent with official code + s->func(s->context, &lengthbyte, 1); + s->func(s->context, data, length); +} + +static void stbiw__write_hdr_scanline(stbi__write_context *s, int width, int ncomp, unsigned char *scratch, float *scanline) +{ + unsigned char scanlineheader[4] = { 2, 2, 0, 0 }; + unsigned char rgbe[4]; + float linear[3]; + int x; + + scanlineheader[2] = (width&0xff00)>>8; + scanlineheader[3] = (width&0x00ff); + + /* skip RLE for images too small or large */ + if (width < 8 || width >= 32768) { + for (x=0; x < width; x++) { + switch (ncomp) { + case 4: /* fallthrough */ + case 3: linear[2] = scanline[x*ncomp + 2]; + linear[1] = scanline[x*ncomp + 1]; + linear[0] = scanline[x*ncomp + 0]; + break; + default: + linear[0] = linear[1] = linear[2] = scanline[x*ncomp + 0]; + break; + } + stbiw__linear_to_rgbe(rgbe, linear); + s->func(s->context, rgbe, 4); + } + } else { + int c,r; + /* encode into scratch buffer */ + for (x=0; x < width; x++) { + switch(ncomp) { + case 4: /* fallthrough */ + case 3: linear[2] = scanline[x*ncomp + 2]; + linear[1] = scanline[x*ncomp + 1]; + linear[0] = scanline[x*ncomp + 0]; + break; + default: + linear[0] = linear[1] = linear[2] = scanline[x*ncomp + 0]; + break; + } + stbiw__linear_to_rgbe(rgbe, linear); + scratch[x + width*0] = rgbe[0]; + scratch[x + width*1] = rgbe[1]; + scratch[x + width*2] = rgbe[2]; + scratch[x + width*3] = rgbe[3]; + } + + s->func(s->context, scanlineheader, 4); + + /* RLE each component separately */ + for (c=0; c < 4; c++) { + unsigned char *comp = &scratch[width*c]; + + x = 0; + while (x < width) { + // find first run + r = x; + while (r+2 < width) { + if (comp[r] == comp[r+1] && comp[r] == comp[r+2]) + break; + ++r; + } + if (r+2 >= width) + r = width; + // dump up to first run + while (x < r) { + int len = r-x; + if (len > 128) len = 128; + stbiw__write_dump_data(s, len, &comp[x]); + x += len; + } + // if there's a run, output it + if (r+2 < width) { // same test as what we break out of in search loop, so only true if we break'd + // find next byte after run + while (r < width && comp[r] == comp[x]) + ++r; + // output run up to r + while (x < r) { + int len = r-x; + if (len > 127) len = 127; + stbiw__write_run_data(s, len, comp[x]); + x += len; + } + } + } + } + } +} + +static int stbi_write_hdr_core(stbi__write_context *s, int x, int y, int comp, float *data) +{ + if (y <= 0 || x <= 0 || data == NULL) + return 0; + else { + // Each component is stored separately. Allocate scratch space for full output scanline. + unsigned char *scratch = (unsigned char *) STBIW_MALLOC(x*4); + int i, len; + char buffer[128]; + char header[] = "#?RADIANCE\n# Written by stb_image_write.h\nFORMAT=32-bit_rle_rgbe\n"; + s->func(s->context, header, sizeof(header)-1); + +#ifdef __STDC_LIB_EXT1__ + len = sprintf_s(buffer, sizeof(buffer), "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x); +#else + len = sprintf(buffer, "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x); +#endif + s->func(s->context, buffer, len); + + for(i=0; i < y; i++) + stbiw__write_hdr_scanline(s, x, comp, scratch, data + comp*x*(stbi__flip_vertically_on_write ? y-1-i : i)); + STBIW_FREE(scratch); + return 1; + } +} + +STBIWDEF int stbi_write_hdr_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const float *data) +{ + stbi__write_context s = { 0 }; + stbi__start_write_callbacks(&s, func, context); + return stbi_write_hdr_core(&s, x, y, comp, (float *) data); +} + +STBIWDEF int stbi_write_hdr(char const *filename, int x, int y, int comp, const float *data) +{ + stbi__write_context s = { 0 }; + if (stbi__start_write_file(&s,filename)) { + int r = stbi_write_hdr_core(&s, x, y, comp, (float *) data); + stbi__end_write_file(&s); + return r; + } else + return 0; +} +#endif // STBI_WRITE_NO_STDIO + + +////////////////////////////////////////////////////////////////////////////// +// +// PNG writer +// + +#ifndef STBIW_ZLIB_COMPRESS +// stretchy buffer; stbiw__sbpush() == vector<>::push_back() -- stbiw__sbcount() == vector<>::size() +#define stbiw__sbraw(a) ((int *) (void *) (a) - 2) +#define stbiw__sbm(a) stbiw__sbraw(a)[0] +#define stbiw__sbn(a) stbiw__sbraw(a)[1] + +#define stbiw__sbneedgrow(a,n) ((a)==0 || stbiw__sbn(a)+n >= stbiw__sbm(a)) +#define stbiw__sbmaybegrow(a,n) (stbiw__sbneedgrow(a,(n)) ? stbiw__sbgrow(a,n) : 0) +#define stbiw__sbgrow(a,n) stbiw__sbgrowf((void **) &(a), (n), sizeof(*(a))) + +#define stbiw__sbpush(a, v) (stbiw__sbmaybegrow(a,1), (a)[stbiw__sbn(a)++] = (v)) +#define stbiw__sbcount(a) ((a) ? stbiw__sbn(a) : 0) +#define stbiw__sbfree(a) ((a) ? STBIW_FREE(stbiw__sbraw(a)),0 : 0) + +static void *stbiw__sbgrowf(void **arr, int increment, int itemsize) +{ + int m = *arr ? 2*stbiw__sbm(*arr)+increment : increment+1; + void *p = STBIW_REALLOC_SIZED(*arr ? stbiw__sbraw(*arr) : 0, *arr ? (stbiw__sbm(*arr)*itemsize + sizeof(int)*2) : 0, itemsize * m + sizeof(int)*2); + STBIW_ASSERT(p); + if (p) { + if (!*arr) ((int *) p)[1] = 0; + *arr = (void *) ((int *) p + 2); + stbiw__sbm(*arr) = m; + } + return *arr; +} + +static unsigned char *stbiw__zlib_flushf(unsigned char *data, unsigned int *bitbuffer, int *bitcount) +{ + while (*bitcount >= 8) { + stbiw__sbpush(data, STBIW_UCHAR(*bitbuffer)); + *bitbuffer >>= 8; + *bitcount -= 8; + } + return data; +} + +static int stbiw__zlib_bitrev(int code, int codebits) +{ + int res=0; + while (codebits--) { + res = (res << 1) | (code & 1); + code >>= 1; + } + return res; +} + +static unsigned int stbiw__zlib_countm(unsigned char *a, unsigned char *b, int limit) +{ + int i; + for (i=0; i < limit && i < 258; ++i) + if (a[i] != b[i]) break; + return i; +} + +static unsigned int stbiw__zhash(unsigned char *data) +{ + stbiw_uint32 hash = data[0] + (data[1] << 8) + (data[2] << 16); + hash ^= hash << 3; + hash += hash >> 5; + hash ^= hash << 4; + hash += hash >> 17; + hash ^= hash << 25; + hash += hash >> 6; + return hash; +} + +#define stbiw__zlib_flush() (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount)) +#define stbiw__zlib_add(code,codebits) \ + (bitbuf |= (code) << bitcount, bitcount += (codebits), stbiw__zlib_flush()) +#define stbiw__zlib_huffa(b,c) stbiw__zlib_add(stbiw__zlib_bitrev(b,c),c) +// default huffman tables +#define stbiw__zlib_huff1(n) stbiw__zlib_huffa(0x30 + (n), 8) +#define stbiw__zlib_huff2(n) stbiw__zlib_huffa(0x190 + (n)-144, 9) +#define stbiw__zlib_huff3(n) stbiw__zlib_huffa(0 + (n)-256,7) +#define stbiw__zlib_huff4(n) stbiw__zlib_huffa(0xc0 + (n)-280,8) +#define stbiw__zlib_huff(n) ((n) <= 143 ? stbiw__zlib_huff1(n) : (n) <= 255 ? stbiw__zlib_huff2(n) : (n) <= 279 ? stbiw__zlib_huff3(n) : stbiw__zlib_huff4(n)) +#define stbiw__zlib_huffb(n) ((n) <= 143 ? stbiw__zlib_huff1(n) : stbiw__zlib_huff2(n)) + +#define stbiw__ZHASH 16384 + +#endif // STBIW_ZLIB_COMPRESS + +STBIWDEF unsigned char * stbi_zlib_compress(unsigned char *data, int data_len, int *out_len, int quality) +{ +#ifdef STBIW_ZLIB_COMPRESS + // user provided a zlib compress implementation, use that + return STBIW_ZLIB_COMPRESS(data, data_len, out_len, quality); +#else // use builtin + static unsigned short lengthc[] = { 3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258, 259 }; + static unsigned char lengtheb[]= { 0,0,0,0,0,0,0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0 }; + static unsigned short distc[] = { 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577, 32768 }; + static unsigned char disteb[] = { 0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13 }; + unsigned int bitbuf=0; + int i,j, bitcount=0; + unsigned char *out = NULL; + unsigned char ***hash_table = (unsigned char***) STBIW_MALLOC(stbiw__ZHASH * sizeof(unsigned char**)); + if (hash_table == NULL) + return NULL; + if (quality < 5) quality = 5; + + stbiw__sbpush(out, 0x78); // DEFLATE 32K window + stbiw__sbpush(out, 0x5e); // FLEVEL = 1 + stbiw__zlib_add(1,1); // BFINAL = 1 + stbiw__zlib_add(1,2); // BTYPE = 1 -- fixed huffman + + for (i=0; i < stbiw__ZHASH; ++i) + hash_table[i] = NULL; + + i=0; + while (i < data_len-3) { + // hash next 3 bytes of data to be compressed + int h = stbiw__zhash(data+i)&(stbiw__ZHASH-1), best=3; + unsigned char *bestloc = 0; + unsigned char **hlist = hash_table[h]; + int n = stbiw__sbcount(hlist); + for (j=0; j < n; ++j) { + if (hlist[j]-data > i-32768) { // if entry lies within window + int d = stbiw__zlib_countm(hlist[j], data+i, data_len-i); + if (d >= best) { best=d; bestloc=hlist[j]; } + } + } + // when hash table entry is too long, delete half the entries + if (hash_table[h] && stbiw__sbn(hash_table[h]) == 2*quality) { + STBIW_MEMMOVE(hash_table[h], hash_table[h]+quality, sizeof(hash_table[h][0])*quality); + stbiw__sbn(hash_table[h]) = quality; + } + stbiw__sbpush(hash_table[h],data+i); + + if (bestloc) { + // "lazy matching" - check match at *next* byte, and if it's better, do cur byte as literal + h = stbiw__zhash(data+i+1)&(stbiw__ZHASH-1); + hlist = hash_table[h]; + n = stbiw__sbcount(hlist); + for (j=0; j < n; ++j) { + if (hlist[j]-data > i-32767) { + int e = stbiw__zlib_countm(hlist[j], data+i+1, data_len-i-1); + if (e > best) { // if next match is better, bail on current match + bestloc = NULL; + break; + } + } + } + } + + if (bestloc) { + int d = (int) (data+i - bestloc); // distance back + STBIW_ASSERT(d <= 32767 && best <= 258); + for (j=0; best > lengthc[j+1]-1; ++j); + stbiw__zlib_huff(j+257); + if (lengtheb[j]) stbiw__zlib_add(best - lengthc[j], lengtheb[j]); + for (j=0; d > distc[j+1]-1; ++j); + stbiw__zlib_add(stbiw__zlib_bitrev(j,5),5); + if (disteb[j]) stbiw__zlib_add(d - distc[j], disteb[j]); + i += best; + } else { + stbiw__zlib_huffb(data[i]); + ++i; + } + } + // write out final bytes + for (;i < data_len; ++i) + stbiw__zlib_huffb(data[i]); + stbiw__zlib_huff(256); // end of block + // pad with 0 bits to byte boundary + while (bitcount) + stbiw__zlib_add(0,1); + + for (i=0; i < stbiw__ZHASH; ++i) + (void) stbiw__sbfree(hash_table[i]); + STBIW_FREE(hash_table); + + // store uncompressed instead if compression was worse + if (stbiw__sbn(out) > data_len + 2 + ((data_len+32766)/32767)*5) { + stbiw__sbn(out) = 2; // truncate to DEFLATE 32K window and FLEVEL = 1 + for (j = 0; j < data_len;) { + int blocklen = data_len - j; + if (blocklen > 32767) blocklen = 32767; + stbiw__sbpush(out, data_len - j == blocklen); // BFINAL = ?, BTYPE = 0 -- no compression + stbiw__sbpush(out, STBIW_UCHAR(blocklen)); // LEN + stbiw__sbpush(out, STBIW_UCHAR(blocklen >> 8)); + stbiw__sbpush(out, STBIW_UCHAR(~blocklen)); // NLEN + stbiw__sbpush(out, STBIW_UCHAR(~blocklen >> 8)); + memcpy(out+stbiw__sbn(out), data+j, blocklen); + stbiw__sbn(out) += blocklen; + j += blocklen; + } + } + + { + // compute adler32 on input + unsigned int s1=1, s2=0; + int blocklen = (int) (data_len % 5552); + j=0; + while (j < data_len) { + for (i=0; i < blocklen; ++i) { s1 += data[j+i]; s2 += s1; } + s1 %= 65521; s2 %= 65521; + j += blocklen; + blocklen = 5552; + } + stbiw__sbpush(out, STBIW_UCHAR(s2 >> 8)); + stbiw__sbpush(out, STBIW_UCHAR(s2)); + stbiw__sbpush(out, STBIW_UCHAR(s1 >> 8)); + stbiw__sbpush(out, STBIW_UCHAR(s1)); + } + *out_len = stbiw__sbn(out); + // make returned pointer freeable + STBIW_MEMMOVE(stbiw__sbraw(out), out, *out_len); + return (unsigned char *) stbiw__sbraw(out); +#endif // STBIW_ZLIB_COMPRESS +} + +static unsigned int stbiw__crc32(unsigned char *buffer, int len) +{ +#ifdef STBIW_CRC32 + return STBIW_CRC32(buffer, len); +#else + static unsigned int crc_table[256] = + { + 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3, + 0x0eDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988, 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91, + 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE, 0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7, + 0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC, 0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5, + 0x3B6E20C8, 0x4C69105E, 0xD56041E4, 0xA2677172, 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B, + 0x35B5A8FA, 0x42B2986C, 0xDBBBC9D6, 0xACBCF940, 0x32D86CE3, 0x45DF5C75, 0xDCD60DCF, 0xABD13D59, + 0x26D930AC, 0x51DE003A, 0xC8D75180, 0xBFD06116, 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, 0xB8BDA50F, + 0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924, 0x2F6F7C87, 0x58684C11, 0xC1611DAB, 0xB6662D3D, + 0x76DC4190, 0x01DB7106, 0x98D220BC, 0xEFD5102A, 0x71B18589, 0x06B6B51F, 0x9FBFE4A5, 0xE8B8D433, + 0x7807C9A2, 0x0F00F934, 0x9609A88E, 0xE10E9818, 0x7F6A0DBB, 0x086D3D2D, 0x91646C97, 0xE6635C01, + 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E, 0x6C0695ED, 0x1B01A57B, 0x8208F4C1, 0xF50FC457, + 0x65B0D9C6, 0x12B7E950, 0x8BBEB8EA, 0xFCB9887C, 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, 0xFBD44C65, + 0x4DB26158, 0x3AB551CE, 0xA3BC0074, 0xD4BB30E2, 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB, + 0x4369E96A, 0x346ED9FC, 0xAD678846, 0xDA60B8D0, 0x44042D73, 0x33031DE5, 0xAA0A4C5F, 0xDD0D7CC9, + 0x5005713C, 0x270241AA, 0xBE0B1010, 0xC90C2086, 0x5768B525, 0x206F85B3, 0xB966D409, 0xCE61E49F, + 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4, 0x59B33D17, 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD, + 0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A, 0xEAD54739, 0x9DD277AF, 0x04DB2615, 0x73DC1683, + 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8, 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1, + 0xF00F9344, 0x8708A3D2, 0x1E01F268, 0x6906C2FE, 0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7, + 0xFED41B76, 0x89D32BE0, 0x10DA7A5A, 0x67DD4ACC, 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5, + 0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252, 0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B, + 0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60, 0xDF60EFC3, 0xA867DF55, 0x316E8EEF, 0x4669BE79, + 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236, 0xCC0C7795, 0xBB0B4703, 0x220216B9, 0x5505262F, + 0xC5BA3BBE, 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04, 0xC2D7FFA7, 0xB5D0CF31, 0x2CD99E8B, 0x5BDEAE1D, + 0x9B64C2B0, 0xEC63F226, 0x756AA39C, 0x026D930A, 0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713, + 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, 0x0CB61B38, 0x92D28E9B, 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21, + 0x86D3D2D4, 0xF1D4E242, 0x68DDB3F8, 0x1FDA836E, 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, 0x18B74777, + 0x88085AE6, 0xFF0F6A70, 0x66063BCA, 0x11010B5C, 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45, + 0xA00AE278, 0xD70DD2EE, 0x4E048354, 0x3903B3C2, 0xA7672661, 0xD06016F7, 0x4969474D, 0x3E6E77DB, + 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, 0x37D83BF0, 0xA9BCAE53, 0xDEBB9EC5, 0x47B2CF7F, 0x30B5FFE9, + 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6, 0xBAD03605, 0xCDD70693, 0x54DE5729, 0x23D967BF, + 0xB3667A2E, 0xC4614AB8, 0x5D681B02, 0x2A6F2B94, 0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D + }; + + unsigned int crc = ~0u; + int i; + for (i=0; i < len; ++i) + crc = (crc >> 8) ^ crc_table[buffer[i] ^ (crc & 0xff)]; + return ~crc; +#endif +} + +#define stbiw__wpng4(o,a,b,c,d) ((o)[0]=STBIW_UCHAR(a),(o)[1]=STBIW_UCHAR(b),(o)[2]=STBIW_UCHAR(c),(o)[3]=STBIW_UCHAR(d),(o)+=4) +#define stbiw__wp32(data,v) stbiw__wpng4(data, (v)>>24,(v)>>16,(v)>>8,(v)); +#define stbiw__wptag(data,s) stbiw__wpng4(data, s[0],s[1],s[2],s[3]) + +static void stbiw__wpcrc(unsigned char **data, int len) +{ + unsigned int crc = stbiw__crc32(*data - len - 4, len+4); + stbiw__wp32(*data, crc); +} + +static unsigned char stbiw__paeth(int a, int b, int c) +{ + int p = a + b - c, pa = abs(p-a), pb = abs(p-b), pc = abs(p-c); + if (pa <= pb && pa <= pc) return STBIW_UCHAR(a); + if (pb <= pc) return STBIW_UCHAR(b); + return STBIW_UCHAR(c); +} + +// @OPTIMIZE: provide an option that always forces left-predict or paeth predict +static void stbiw__encode_png_line(unsigned char *pixels, int stride_bytes, int width, int height, int y, int n, int filter_type, signed char *line_buffer) +{ + static int mapping[] = { 0,1,2,3,4 }; + static int firstmap[] = { 0,1,0,5,6 }; + int *mymap = (y != 0) ? mapping : firstmap; + int i; + int type = mymap[filter_type]; + unsigned char *z = pixels + stride_bytes * (stbi__flip_vertically_on_write ? height-1-y : y); + int signed_stride = stbi__flip_vertically_on_write ? -stride_bytes : stride_bytes; + + if (type==0) { + memcpy(line_buffer, z, width*n); + return; + } + + // first loop isn't optimized since it's just one pixel + for (i = 0; i < n; ++i) { + switch (type) { + case 1: line_buffer[i] = z[i]; break; + case 2: line_buffer[i] = z[i] - z[i-signed_stride]; break; + case 3: line_buffer[i] = z[i] - (z[i-signed_stride]>>1); break; + case 4: line_buffer[i] = (signed char) (z[i] - stbiw__paeth(0,z[i-signed_stride],0)); break; + case 5: line_buffer[i] = z[i]; break; + case 6: line_buffer[i] = z[i]; break; + } + } + switch (type) { + case 1: for (i=n; i < width*n; ++i) line_buffer[i] = z[i] - z[i-n]; break; + case 2: for (i=n; i < width*n; ++i) line_buffer[i] = z[i] - z[i-signed_stride]; break; + case 3: for (i=n; i < width*n; ++i) line_buffer[i] = z[i] - ((z[i-n] + z[i-signed_stride])>>1); break; + case 4: for (i=n; i < width*n; ++i) line_buffer[i] = z[i] - stbiw__paeth(z[i-n], z[i-signed_stride], z[i-signed_stride-n]); break; + case 5: for (i=n; i < width*n; ++i) line_buffer[i] = z[i] - (z[i-n]>>1); break; + case 6: for (i=n; i < width*n; ++i) line_buffer[i] = z[i] - stbiw__paeth(z[i-n], 0,0); break; + } +} + +STBIWDEF unsigned char *stbi_write_png_to_mem(const unsigned char *pixels, int stride_bytes, int x, int y, int n, int *out_len) +{ + int force_filter = stbi_write_force_png_filter; + int ctype[5] = { -1, 0, 4, 2, 6 }; + unsigned char sig[8] = { 137,80,78,71,13,10,26,10 }; + unsigned char *out,*o, *filt, *zlib; + signed char *line_buffer; + int j,zlen; + + if (stride_bytes == 0) + stride_bytes = x * n; + + if (force_filter >= 5) { + force_filter = -1; + } + + filt = (unsigned char *) STBIW_MALLOC((x*n+1) * y); if (!filt) return 0; + line_buffer = (signed char *) STBIW_MALLOC(x * n); if (!line_buffer) { STBIW_FREE(filt); return 0; } + for (j=0; j < y; ++j) { + int filter_type; + if (force_filter > -1) { + filter_type = force_filter; + stbiw__encode_png_line((unsigned char*)(pixels), stride_bytes, x, y, j, n, force_filter, line_buffer); + } else { // Estimate the best filter by running through all of them: + int best_filter = 0, best_filter_val = 0x7fffffff, est, i; + for (filter_type = 0; filter_type < 5; filter_type++) { + stbiw__encode_png_line((unsigned char*)(pixels), stride_bytes, x, y, j, n, filter_type, line_buffer); + + // Estimate the entropy of the line using this filter; the less, the better. + est = 0; + for (i = 0; i < x*n; ++i) { + est += abs((signed char) line_buffer[i]); + } + if (est < best_filter_val) { + best_filter_val = est; + best_filter = filter_type; + } + } + if (filter_type != best_filter) { // If the last iteration already got us the best filter, don't redo it + stbiw__encode_png_line((unsigned char*)(pixels), stride_bytes, x, y, j, n, best_filter, line_buffer); + filter_type = best_filter; + } + } + // when we get here, filter_type contains the filter type, and line_buffer contains the data + filt[j*(x*n+1)] = (unsigned char) filter_type; + STBIW_MEMMOVE(filt+j*(x*n+1)+1, line_buffer, x*n); + } + STBIW_FREE(line_buffer); + zlib = stbi_zlib_compress(filt, y*( x*n+1), &zlen, stbi_write_png_compression_level); + STBIW_FREE(filt); + if (!zlib) return 0; + + // each tag requires 12 bytes of overhead + out = (unsigned char *) STBIW_MALLOC(8 + 12+13 + 12+zlen + 12); + if (!out) return 0; + *out_len = 8 + 12+13 + 12+zlen + 12; + + o=out; + STBIW_MEMMOVE(o,sig,8); o+= 8; + stbiw__wp32(o, 13); // header length + stbiw__wptag(o, "IHDR"); + stbiw__wp32(o, x); + stbiw__wp32(o, y); + *o++ = 8; + *o++ = STBIW_UCHAR(ctype[n]); + *o++ = 0; + *o++ = 0; + *o++ = 0; + stbiw__wpcrc(&o,13); + + stbiw__wp32(o, zlen); + stbiw__wptag(o, "IDAT"); + STBIW_MEMMOVE(o, zlib, zlen); + o += zlen; + STBIW_FREE(zlib); + stbiw__wpcrc(&o, zlen); + + stbiw__wp32(o,0); + stbiw__wptag(o, "IEND"); + stbiw__wpcrc(&o,0); + + STBIW_ASSERT(o == out + *out_len); + + return out; +} + +#ifndef STBI_WRITE_NO_STDIO +STBIWDEF int stbi_write_png(char const *filename, int x, int y, int comp, const void *data, int stride_bytes) +{ + FILE *f; + int len; + unsigned char *png = stbi_write_png_to_mem((const unsigned char *) data, stride_bytes, x, y, comp, &len); + if (png == NULL) return 0; + + f = stbiw__fopen(filename, "wb"); + if (!f) { STBIW_FREE(png); return 0; } + fwrite(png, 1, len, f); + fclose(f); + STBIW_FREE(png); + return 1; +} +#endif + +STBIWDEF int stbi_write_png_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int stride_bytes) +{ + int len; + unsigned char *png = stbi_write_png_to_mem((const unsigned char *) data, stride_bytes, x, y, comp, &len); + if (png == NULL) return 0; + func(context, png, len); + STBIW_FREE(png); + return 1; +} + + +/* *************************************************************************** + * + * JPEG writer + * + * This is based on Jon Olick's jo_jpeg.cpp: + * public domain Simple, Minimalistic JPEG writer - http://www.jonolick.com/code.html + */ + +static const unsigned char stbiw__jpg_ZigZag[] = { 0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18, + 24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63 }; + +static void stbiw__jpg_writeBits(stbi__write_context *s, int *bitBufP, int *bitCntP, const unsigned short *bs) { + int bitBuf = *bitBufP, bitCnt = *bitCntP; + bitCnt += bs[1]; + bitBuf |= bs[0] << (24 - bitCnt); + while(bitCnt >= 8) { + unsigned char c = (bitBuf >> 16) & 255; + stbiw__putc(s, c); + if(c == 255) { + stbiw__putc(s, 0); + } + bitBuf <<= 8; + bitCnt -= 8; + } + *bitBufP = bitBuf; + *bitCntP = bitCnt; +} + +static void stbiw__jpg_DCT(float *d0p, float *d1p, float *d2p, float *d3p, float *d4p, float *d5p, float *d6p, float *d7p) { + float d0 = *d0p, d1 = *d1p, d2 = *d2p, d3 = *d3p, d4 = *d4p, d5 = *d5p, d6 = *d6p, d7 = *d7p; + float z1, z2, z3, z4, z5, z11, z13; + + float tmp0 = d0 + d7; + float tmp7 = d0 - d7; + float tmp1 = d1 + d6; + float tmp6 = d1 - d6; + float tmp2 = d2 + d5; + float tmp5 = d2 - d5; + float tmp3 = d3 + d4; + float tmp4 = d3 - d4; + + // Even part + float tmp10 = tmp0 + tmp3; // phase 2 + float tmp13 = tmp0 - tmp3; + float tmp11 = tmp1 + tmp2; + float tmp12 = tmp1 - tmp2; + + d0 = tmp10 + tmp11; // phase 3 + d4 = tmp10 - tmp11; + + z1 = (tmp12 + tmp13) * 0.707106781f; // c4 + d2 = tmp13 + z1; // phase 5 + d6 = tmp13 - z1; + + // Odd part + tmp10 = tmp4 + tmp5; // phase 2 + tmp11 = tmp5 + tmp6; + tmp12 = tmp6 + tmp7; + + // The rotator is modified from fig 4-8 to avoid extra negations. + z5 = (tmp10 - tmp12) * 0.382683433f; // c6 + z2 = tmp10 * 0.541196100f + z5; // c2-c6 + z4 = tmp12 * 1.306562965f + z5; // c2+c6 + z3 = tmp11 * 0.707106781f; // c4 + + z11 = tmp7 + z3; // phase 5 + z13 = tmp7 - z3; + + *d5p = z13 + z2; // phase 6 + *d3p = z13 - z2; + *d1p = z11 + z4; + *d7p = z11 - z4; + + *d0p = d0; *d2p = d2; *d4p = d4; *d6p = d6; +} + +static void stbiw__jpg_calcBits(int val, unsigned short bits[2]) { + int tmp1 = val < 0 ? -val : val; + val = val < 0 ? val-1 : val; + bits[1] = 1; + while(tmp1 >>= 1) { + ++bits[1]; + } + bits[0] = val & ((1<0)&&(DU[end0pos]==0); --end0pos) { + } + // end0pos = first element in reverse order !=0 + if(end0pos == 0) { + stbiw__jpg_writeBits(s, bitBuf, bitCnt, EOB); + return DU[0]; + } + for(i = 1; i <= end0pos; ++i) { + int startpos = i; + int nrzeroes; + unsigned short bits[2]; + for (; DU[i]==0 && i<=end0pos; ++i) { + } + nrzeroes = i-startpos; + if ( nrzeroes >= 16 ) { + int lng = nrzeroes>>4; + int nrmarker; + for (nrmarker=1; nrmarker <= lng; ++nrmarker) + stbiw__jpg_writeBits(s, bitBuf, bitCnt, M16zeroes); + nrzeroes &= 15; + } + stbiw__jpg_calcBits(DU[i], bits); + stbiw__jpg_writeBits(s, bitBuf, bitCnt, HTAC[(nrzeroes<<4)+bits[1]]); + stbiw__jpg_writeBits(s, bitBuf, bitCnt, bits); + } + if(end0pos != 63) { + stbiw__jpg_writeBits(s, bitBuf, bitCnt, EOB); + } + return DU[0]; +} + +static int stbi_write_jpg_core(stbi__write_context *s, int width, int height, int comp, const void* data, int quality) { + // Constants that don't pollute global namespace + static const unsigned char std_dc_luminance_nrcodes[] = {0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0}; + static const unsigned char std_dc_luminance_values[] = {0,1,2,3,4,5,6,7,8,9,10,11}; + static const unsigned char std_ac_luminance_nrcodes[] = {0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,0x7d}; + static const unsigned char std_ac_luminance_values[] = { + 0x01,0x02,0x03,0x00,0x04,0x11,0x05,0x12,0x21,0x31,0x41,0x06,0x13,0x51,0x61,0x07,0x22,0x71,0x14,0x32,0x81,0x91,0xa1,0x08, + 0x23,0x42,0xb1,0xc1,0x15,0x52,0xd1,0xf0,0x24,0x33,0x62,0x72,0x82,0x09,0x0a,0x16,0x17,0x18,0x19,0x1a,0x25,0x26,0x27,0x28, + 0x29,0x2a,0x34,0x35,0x36,0x37,0x38,0x39,0x3a,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x53,0x54,0x55,0x56,0x57,0x58,0x59, + 0x5a,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x83,0x84,0x85,0x86,0x87,0x88,0x89, + 0x8a,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xb2,0xb3,0xb4,0xb5,0xb6, + 0xb7,0xb8,0xb9,0xba,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xe1,0xe2, + 0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa + }; + static const unsigned char std_dc_chrominance_nrcodes[] = {0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0}; + static const unsigned char std_dc_chrominance_values[] = {0,1,2,3,4,5,6,7,8,9,10,11}; + static const unsigned char std_ac_chrominance_nrcodes[] = {0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,0x77}; + static const unsigned char std_ac_chrominance_values[] = { + 0x00,0x01,0x02,0x03,0x11,0x04,0x05,0x21,0x31,0x06,0x12,0x41,0x51,0x07,0x61,0x71,0x13,0x22,0x32,0x81,0x08,0x14,0x42,0x91, + 0xa1,0xb1,0xc1,0x09,0x23,0x33,0x52,0xf0,0x15,0x62,0x72,0xd1,0x0a,0x16,0x24,0x34,0xe1,0x25,0xf1,0x17,0x18,0x19,0x1a,0x26, + 0x27,0x28,0x29,0x2a,0x35,0x36,0x37,0x38,0x39,0x3a,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x53,0x54,0x55,0x56,0x57,0x58, + 0x59,0x5a,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x82,0x83,0x84,0x85,0x86,0x87, + 0x88,0x89,0x8a,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xb2,0xb3,0xb4, + 0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda, + 0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa + }; + // Huffman tables + static const unsigned short YDC_HT[256][2] = { {0,2},{2,3},{3,3},{4,3},{5,3},{6,3},{14,4},{30,5},{62,6},{126,7},{254,8},{510,9}}; + static const unsigned short UVDC_HT[256][2] = { {0,2},{1,2},{2,2},{6,3},{14,4},{30,5},{62,6},{126,7},{254,8},{510,9},{1022,10},{2046,11}}; + static const unsigned short YAC_HT[256][2] = { + {10,4},{0,2},{1,2},{4,3},{11,4},{26,5},{120,7},{248,8},{1014,10},{65410,16},{65411,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {12,4},{27,5},{121,7},{502,9},{2038,11},{65412,16},{65413,16},{65414,16},{65415,16},{65416,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {28,5},{249,8},{1015,10},{4084,12},{65417,16},{65418,16},{65419,16},{65420,16},{65421,16},{65422,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {58,6},{503,9},{4085,12},{65423,16},{65424,16},{65425,16},{65426,16},{65427,16},{65428,16},{65429,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {59,6},{1016,10},{65430,16},{65431,16},{65432,16},{65433,16},{65434,16},{65435,16},{65436,16},{65437,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {122,7},{2039,11},{65438,16},{65439,16},{65440,16},{65441,16},{65442,16},{65443,16},{65444,16},{65445,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {123,7},{4086,12},{65446,16},{65447,16},{65448,16},{65449,16},{65450,16},{65451,16},{65452,16},{65453,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {250,8},{4087,12},{65454,16},{65455,16},{65456,16},{65457,16},{65458,16},{65459,16},{65460,16},{65461,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {504,9},{32704,15},{65462,16},{65463,16},{65464,16},{65465,16},{65466,16},{65467,16},{65468,16},{65469,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {505,9},{65470,16},{65471,16},{65472,16},{65473,16},{65474,16},{65475,16},{65476,16},{65477,16},{65478,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {506,9},{65479,16},{65480,16},{65481,16},{65482,16},{65483,16},{65484,16},{65485,16},{65486,16},{65487,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {1017,10},{65488,16},{65489,16},{65490,16},{65491,16},{65492,16},{65493,16},{65494,16},{65495,16},{65496,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {1018,10},{65497,16},{65498,16},{65499,16},{65500,16},{65501,16},{65502,16},{65503,16},{65504,16},{65505,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {2040,11},{65506,16},{65507,16},{65508,16},{65509,16},{65510,16},{65511,16},{65512,16},{65513,16},{65514,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {65515,16},{65516,16},{65517,16},{65518,16},{65519,16},{65520,16},{65521,16},{65522,16},{65523,16},{65524,16},{0,0},{0,0},{0,0},{0,0},{0,0}, + {2041,11},{65525,16},{65526,16},{65527,16},{65528,16},{65529,16},{65530,16},{65531,16},{65532,16},{65533,16},{65534,16},{0,0},{0,0},{0,0},{0,0},{0,0} + }; + static const unsigned short UVAC_HT[256][2] = { + {0,2},{1,2},{4,3},{10,4},{24,5},{25,5},{56,6},{120,7},{500,9},{1014,10},{4084,12},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {11,4},{57,6},{246,8},{501,9},{2038,11},{4085,12},{65416,16},{65417,16},{65418,16},{65419,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {26,5},{247,8},{1015,10},{4086,12},{32706,15},{65420,16},{65421,16},{65422,16},{65423,16},{65424,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {27,5},{248,8},{1016,10},{4087,12},{65425,16},{65426,16},{65427,16},{65428,16},{65429,16},{65430,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {58,6},{502,9},{65431,16},{65432,16},{65433,16},{65434,16},{65435,16},{65436,16},{65437,16},{65438,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {59,6},{1017,10},{65439,16},{65440,16},{65441,16},{65442,16},{65443,16},{65444,16},{65445,16},{65446,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {121,7},{2039,11},{65447,16},{65448,16},{65449,16},{65450,16},{65451,16},{65452,16},{65453,16},{65454,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {122,7},{2040,11},{65455,16},{65456,16},{65457,16},{65458,16},{65459,16},{65460,16},{65461,16},{65462,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {249,8},{65463,16},{65464,16},{65465,16},{65466,16},{65467,16},{65468,16},{65469,16},{65470,16},{65471,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {503,9},{65472,16},{65473,16},{65474,16},{65475,16},{65476,16},{65477,16},{65478,16},{65479,16},{65480,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {504,9},{65481,16},{65482,16},{65483,16},{65484,16},{65485,16},{65486,16},{65487,16},{65488,16},{65489,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {505,9},{65490,16},{65491,16},{65492,16},{65493,16},{65494,16},{65495,16},{65496,16},{65497,16},{65498,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {506,9},{65499,16},{65500,16},{65501,16},{65502,16},{65503,16},{65504,16},{65505,16},{65506,16},{65507,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {2041,11},{65508,16},{65509,16},{65510,16},{65511,16},{65512,16},{65513,16},{65514,16},{65515,16},{65516,16},{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}, + {16352,14},{65517,16},{65518,16},{65519,16},{65520,16},{65521,16},{65522,16},{65523,16},{65524,16},{65525,16},{0,0},{0,0},{0,0},{0,0},{0,0}, + {1018,10},{32707,15},{65526,16},{65527,16},{65528,16},{65529,16},{65530,16},{65531,16},{65532,16},{65533,16},{65534,16},{0,0},{0,0},{0,0},{0,0},{0,0} + }; + static const int YQT[] = {16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22, + 37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99}; + static const int UVQT[] = {17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99, + 99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99}; + static const float aasf[] = { 1.0f * 2.828427125f, 1.387039845f * 2.828427125f, 1.306562965f * 2.828427125f, 1.175875602f * 2.828427125f, + 1.0f * 2.828427125f, 0.785694958f * 2.828427125f, 0.541196100f * 2.828427125f, 0.275899379f * 2.828427125f }; + + int row, col, i, k, subsample; + float fdtbl_Y[64], fdtbl_UV[64]; + unsigned char YTable[64], UVTable[64]; + + if(!data || !width || !height || comp > 4 || comp < 1) { + return 0; + } + + quality = quality ? quality : 90; + subsample = quality <= 90 ? 1 : 0; + quality = quality < 1 ? 1 : quality > 100 ? 100 : quality; + quality = quality < 50 ? 5000 / quality : 200 - quality * 2; + + for(i = 0; i < 64; ++i) { + int uvti, yti = (YQT[i]*quality+50)/100; + YTable[stbiw__jpg_ZigZag[i]] = (unsigned char) (yti < 1 ? 1 : yti > 255 ? 255 : yti); + uvti = (UVQT[i]*quality+50)/100; + UVTable[stbiw__jpg_ZigZag[i]] = (unsigned char) (uvti < 1 ? 1 : uvti > 255 ? 255 : uvti); + } + + for(row = 0, k = 0; row < 8; ++row) { + for(col = 0; col < 8; ++col, ++k) { + fdtbl_Y[k] = 1 / (YTable [stbiw__jpg_ZigZag[k]] * aasf[row] * aasf[col]); + fdtbl_UV[k] = 1 / (UVTable[stbiw__jpg_ZigZag[k]] * aasf[row] * aasf[col]); + } + } + + // Write Headers + { + static const unsigned char head0[] = { 0xFF,0xD8,0xFF,0xE0,0,0x10,'J','F','I','F',0,1,1,0,0,1,0,1,0,0,0xFF,0xDB,0,0x84,0 }; + static const unsigned char head2[] = { 0xFF,0xDA,0,0xC,3,1,0,2,0x11,3,0x11,0,0x3F,0 }; + const unsigned char head1[] = { 0xFF,0xC0,0,0x11,8,(unsigned char)(height>>8),STBIW_UCHAR(height),(unsigned char)(width>>8),STBIW_UCHAR(width), + 3,1,(unsigned char)(subsample?0x22:0x11),0,2,0x11,1,3,0x11,1,0xFF,0xC4,0x01,0xA2,0 }; + s->func(s->context, (void*)head0, sizeof(head0)); + s->func(s->context, (void*)YTable, sizeof(YTable)); + stbiw__putc(s, 1); + s->func(s->context, UVTable, sizeof(UVTable)); + s->func(s->context, (void*)head1, sizeof(head1)); + s->func(s->context, (void*)(std_dc_luminance_nrcodes+1), sizeof(std_dc_luminance_nrcodes)-1); + s->func(s->context, (void*)std_dc_luminance_values, sizeof(std_dc_luminance_values)); + stbiw__putc(s, 0x10); // HTYACinfo + s->func(s->context, (void*)(std_ac_luminance_nrcodes+1), sizeof(std_ac_luminance_nrcodes)-1); + s->func(s->context, (void*)std_ac_luminance_values, sizeof(std_ac_luminance_values)); + stbiw__putc(s, 1); // HTUDCinfo + s->func(s->context, (void*)(std_dc_chrominance_nrcodes+1), sizeof(std_dc_chrominance_nrcodes)-1); + s->func(s->context, (void*)std_dc_chrominance_values, sizeof(std_dc_chrominance_values)); + stbiw__putc(s, 0x11); // HTUACinfo + s->func(s->context, (void*)(std_ac_chrominance_nrcodes+1), sizeof(std_ac_chrominance_nrcodes)-1); + s->func(s->context, (void*)std_ac_chrominance_values, sizeof(std_ac_chrominance_values)); + s->func(s->context, (void*)head2, sizeof(head2)); + } + + // Encode 8x8 macroblocks + { + static const unsigned short fillBits[] = {0x7F, 7}; + int DCY=0, DCU=0, DCV=0; + int bitBuf=0, bitCnt=0; + // comp == 2 is grey+alpha (alpha is ignored) + int ofsG = comp > 2 ? 1 : 0, ofsB = comp > 2 ? 2 : 0; + const unsigned char *dataR = (const unsigned char *)data; + const unsigned char *dataG = dataR + ofsG; + const unsigned char *dataB = dataR + ofsB; + int x, y, pos; + if(subsample) { + for(y = 0; y < height; y += 16) { + for(x = 0; x < width; x += 16) { + float Y[256], U[256], V[256]; + for(row = y, pos = 0; row < y+16; ++row) { + // row >= height => use last input row + int clamped_row = (row < height) ? row : height - 1; + int base_p = (stbi__flip_vertically_on_write ? (height-1-clamped_row) : clamped_row)*width*comp; + for(col = x; col < x+16; ++col, ++pos) { + // if col >= width => use pixel from last input column + int p = base_p + ((col < width) ? col : (width-1))*comp; + float r = dataR[p], g = dataG[p], b = dataB[p]; + Y[pos]= +0.29900f*r + 0.58700f*g + 0.11400f*b - 128; + U[pos]= -0.16874f*r - 0.33126f*g + 0.50000f*b; + V[pos]= +0.50000f*r - 0.41869f*g - 0.08131f*b; + } + } + DCY = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, Y+0, 16, fdtbl_Y, DCY, YDC_HT, YAC_HT); + DCY = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, Y+8, 16, fdtbl_Y, DCY, YDC_HT, YAC_HT); + DCY = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, Y+128, 16, fdtbl_Y, DCY, YDC_HT, YAC_HT); + DCY = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, Y+136, 16, fdtbl_Y, DCY, YDC_HT, YAC_HT); + + // subsample U,V + { + float subU[64], subV[64]; + int yy, xx; + for(yy = 0, pos = 0; yy < 8; ++yy) { + for(xx = 0; xx < 8; ++xx, ++pos) { + int j = yy*32+xx*2; + subU[pos] = (U[j+0] + U[j+1] + U[j+16] + U[j+17]) * 0.25f; + subV[pos] = (V[j+0] + V[j+1] + V[j+16] + V[j+17]) * 0.25f; + } + } + DCU = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, subU, 8, fdtbl_UV, DCU, UVDC_HT, UVAC_HT); + DCV = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, subV, 8, fdtbl_UV, DCV, UVDC_HT, UVAC_HT); + } + } + } + } else { + for(y = 0; y < height; y += 8) { + for(x = 0; x < width; x += 8) { + float Y[64], U[64], V[64]; + for(row = y, pos = 0; row < y+8; ++row) { + // row >= height => use last input row + int clamped_row = (row < height) ? row : height - 1; + int base_p = (stbi__flip_vertically_on_write ? (height-1-clamped_row) : clamped_row)*width*comp; + for(col = x; col < x+8; ++col, ++pos) { + // if col >= width => use pixel from last input column + int p = base_p + ((col < width) ? col : (width-1))*comp; + float r = dataR[p], g = dataG[p], b = dataB[p]; + Y[pos]= +0.29900f*r + 0.58700f*g + 0.11400f*b - 128; + U[pos]= -0.16874f*r - 0.33126f*g + 0.50000f*b; + V[pos]= +0.50000f*r - 0.41869f*g - 0.08131f*b; + } + } + + DCY = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, Y, 8, fdtbl_Y, DCY, YDC_HT, YAC_HT); + DCU = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, U, 8, fdtbl_UV, DCU, UVDC_HT, UVAC_HT); + DCV = stbiw__jpg_processDU(s, &bitBuf, &bitCnt, V, 8, fdtbl_UV, DCV, UVDC_HT, UVAC_HT); + } + } + } + + // Do the bit alignment of the EOI marker + stbiw__jpg_writeBits(s, &bitBuf, &bitCnt, fillBits); + } + + // EOI + stbiw__putc(s, 0xFF); + stbiw__putc(s, 0xD9); + + return 1; +} + +STBIWDEF int stbi_write_jpg_to_func(stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality) +{ + stbi__write_context s = { 0 }; + stbi__start_write_callbacks(&s, func, context); + return stbi_write_jpg_core(&s, x, y, comp, (void *) data, quality); +} + + +#ifndef STBI_WRITE_NO_STDIO +STBIWDEF int stbi_write_jpg(char const *filename, int x, int y, int comp, const void *data, int quality) +{ + stbi__write_context s = { 0 }; + if (stbi__start_write_file(&s,filename)) { + int r = stbi_write_jpg_core(&s, x, y, comp, data, quality); + stbi__end_write_file(&s); + return r; + } else + return 0; +} +#endif + +#endif // STB_IMAGE_WRITE_IMPLEMENTATION + +/* Revision history + 1.16 (2021-07-11) + make Deflate code emit uncompressed blocks when it would otherwise expand + support writing BMPs with alpha channel + 1.15 (2020-07-13) unknown + 1.14 (2020-02-02) updated JPEG writer to downsample chroma channels + 1.13 + 1.12 + 1.11 (2019-08-11) + + 1.10 (2019-02-07) + support utf8 filenames in Windows; fix warnings and platform ifdefs + 1.09 (2018-02-11) + fix typo in zlib quality API, improve STB_I_W_STATIC in C++ + 1.08 (2018-01-29) + add stbi__flip_vertically_on_write, external zlib, zlib quality, choose PNG filter + 1.07 (2017-07-24) + doc fix + 1.06 (2017-07-23) + writing JPEG (using Jon Olick's code) + 1.05 ??? + 1.04 (2017-03-03) + monochrome BMP expansion + 1.03 ??? + 1.02 (2016-04-02) + avoid allocating large structures on the stack + 1.01 (2016-01-16) + STBIW_REALLOC_SIZED: support allocators with no realloc support + avoid race-condition in crc initialization + minor compile issues + 1.00 (2015-09-14) + installable file IO function + 0.99 (2015-09-13) + warning fixes; TGA rle support + 0.98 (2015-04-08) + added STBIW_MALLOC, STBIW_ASSERT etc + 0.97 (2015-01-18) + fixed HDR asserts, rewrote HDR rle logic + 0.96 (2015-01-17) + add HDR output + fix monochrome BMP + 0.95 (2014-08-17) + add monochrome TGA output + 0.94 (2014-05-31) + rename private functions to avoid conflicts with stb_image.h + 0.93 (2014-05-27) + warning fixes + 0.92 (2010-08-01) + casts to unsigned char to fix warnings + 0.91 (2010-07-17) + first public release + 0.90 first internal release +*/ + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/tools/fixtures/320x200.png b/tools/fixtures/320x200.png new file mode 100644 index 0000000000000000000000000000000000000000..1a40787ead633add21670ca23334e6ab5d582388 GIT binary patch literal 502 zcmeAS@N?(olHy`uVBq!ia0y~yU~~YoPjD~+NwKu`e}DpeJzX3_DsH{K?8wQ$z`=6x zbc)(xsnY`cS{gk!Y?!I{V5J8G8ygRggaim17$hWs@PPv$+|bC#+ziCbAO+YIH8dW? zs%Q-pvQaox85m$w1hfm;K9Ur{Tn%v)+$5OSAl8wj2=0G~o8Trzuwo4*R8=GeCD!nc a(Ya@H|4&2Ax(&eiWbkzLb6Mw<&;$VBk$``2_j6xdp@o1cgOJMMZh|#U;coyG6VInuyV4pa*FVB^NNrR z{vTivX!XqN1l2cOC(lau%ic3n%$}1|Xnp;}i+B-VC zCQY6)b=ve9GiNPYykzOJeA&aSFc^aar4&0 zM~|O8efIpt%U2&ieg5+G+xH(oe}VkP$iNKo7LbH^49#DHKz}i@urRZ*gZ#zFR1U<< zf-J0xhHOHPf$WKe!b(Ps93oB=7j8VrscandK{To8BA1wo$wSqTAg_UaMx4i*$nqK7 jV+eoUV&GwB1V$dSAcH-_pY@Bnv`%noENXyZ`~Noq+u6ul literal 0 HcmV?d00001 diff --git a/tools/fixtures/tiny.jpg b/tools/fixtures/tiny.jpg new file mode 100644 index 0000000000000000000000000000000000000000..39c449f61e4e697713d3c99d3daf213a554366a2 GIT binary patch literal 633 zcmex=``2_j6xdp@o1cgOJMMZh|#U;coyG6VInuyV4pa*FVB^NNrR z{vTivNsy6Qkn#T!26>=6SsB5A0SXwIfNo@C=iubx1}fMpz`(@F%*@2X z401J4buCbyfklv2NYT)dO*k--U8zvSsBz*#4rQl}2StM}eo!$^Dr(~75)+q@lu}hw z*U;25F*P%{u(Wb^admU|@bn4}2@MO6h>S{3Nli=7$jmA(DJ?6nsH|#kX>Duo=8f2KE_o9%~}YXK;@p d{B?_ghnW!=dCY`wr5A*;4 literal 0 HcmV?d00001 diff --git a/tools/image_smoke.cpp b/tools/image_smoke.cpp new file mode 100644 index 0000000..60f9a74 --- /dev/null +++ b/tools/image_smoke.cpp @@ -0,0 +1,111 @@ +// Step 5 smoke: PNG / JPEG / truncated PNG / non-image / size limit. +#include "image_util.hpp" + +#include +#include +#include +#include +#include +#include + +#ifndef IMAGE_SMOKE_FIXTURES +#define IMAGE_SMOKE_FIXTURES "tools/fixtures" +#endif + +namespace { + +std::vector read_all(const std::string& path) { + std::ifstream in(path, std::ios::binary); + if (!in) { + throw std::runtime_error("cannot open " + path); + } + return std::vector((std::istreambuf_iterator(in)), + std::istreambuf_iterator()); +} + +bool expect_ok(const char* name, const std::vector& bytes, + const char* want_ct) { + ImageLimits lim; + ImageInfo info; + auto rej = validate_image(bytes.data(), bytes.size(), lim, info); + if (rej) { + std::cerr << name << ": expected OK, got " << image_reject_code(*rej) + << "\n"; + return false; + } + if (info.content_type != want_ct) { + std::cerr << name << ": content_type " << info.content_type << "\n"; + return false; + } + std::cout << name << ": OK " << info.content_type << " " << info.width + << "x" << info.height << "\n"; + return true; +} + +bool expect_reject(const char* name, const std::vector& bytes, + ImageReject want) { + ImageLimits lim; + ImageInfo info; + auto rej = validate_image(bytes.data(), bytes.size(), lim, info); + if (!rej || *rej != want) { + std::cerr << name << ": expected " << image_reject_code(want) << ", got " + << (rej ? image_reject_code(*rej) : "OK") << "\n"; + return false; + } + std::cout << name << ": OK reject=" << image_reject_code(want) << "\n"; + return true; +} + +} // namespace + +int main(int argc, char** argv) { + try { + const std::string dir = + (argc > 1) ? argv[1] : std::string(IMAGE_SMOKE_FIXTURES); + const auto png = read_all(dir + "/tiny.png"); + const auto jpg = read_all(dir + "/tiny.jpg"); + + bool ok = true; + ok &= expect_ok("png", png, "image/png"); + ok &= expect_ok("jpeg", jpg, "image/jpeg"); + + std::vector trunc(png.begin(), + png.begin() + std::min(16, png.size())); + ok &= expect_reject("truncated_png", trunc, ImageReject::invalid_image); + + std::vector spoof = jpg; + spoof[0] = 'G'; + spoof[1] = 'I'; + spoof[2] = 'F'; + ok &= expect_reject("not_image", spoof, ImageReject::unsupported_media_type); + + ImageLimits tiny_lim; + tiny_lim.max_bytes = 10; + ImageInfo info; + auto rej = validate_image(png.data(), png.size(), tiny_lim, info); + if (!rej || *rej != ImageReject::payload_too_large) { + std::cerr << "max_bytes: FAIL\n"; + ok = false; + } else { + std::cout << "max_bytes: OK\n"; + } + + // JPEG bytes sniffed as jpeg regardless of any HTTP Content-Type. + auto sniffed = sniff_content_type(jpg.data(), jpg.size()); + if (!sniffed || *sniffed != "image/jpeg") { + std::cerr << "sniff_jpeg: FAIL\n"; + ok = false; + } else { + std::cout << "sniff_jpeg: OK (MIME spoof would be ignored)\n"; + } + + if (!ok) { + return 1; + } + std::cout << "image_smoke: OK\n"; + return 0; + } catch (const std::exception& e) { + std::cerr << "image_smoke: FAIL: " << e.what() << "\n"; + return 1; + } +} diff --git a/tools/s3_smoke.cpp b/tools/s3_smoke.cpp new file mode 100644 index 0000000..26cc133 --- /dev/null +++ b/tools/s3_smoke.cpp @@ -0,0 +1,35 @@ +// Small smoke tool for step 4: put → get → delete against MinIO. +#include "s3_client.hpp" + +#include +#include +#include +#include +#include + +int main() { + try { + auto cfg = S3Client::from_env(); + S3Client s3(cfg); + + const std::string key = "smoke/step4.txt"; + const std::string payload = "lab4-s3-smoke-ok"; + std::istringstream in(payload); + s3.put_object(key, in, static_cast(payload.size()), + "text/plain"); + + std::ostringstream out; + s3.get_object(key, out); + if (out.str() != payload) { + std::cerr << "mismatch: got [" << out.str() << "]\n"; + return 2; + } + + s3.delete_object(key); + std::cout << "s3_smoke: OK bucket=" << cfg.bucket << " key=" << key << "\n"; + return 0; + } catch (const std::exception& e) { + std::cerr << "s3_smoke: FAIL: " << e.what() << "\n"; + return 1; + } +} diff --git a/tools/thumbnail_smoke.cpp b/tools/thumbnail_smoke.cpp new file mode 100644 index 0000000..1cb3c91 --- /dev/null +++ b/tools/thumbnail_smoke.cpp @@ -0,0 +1,24 @@ +#include "image_pipeline.hpp" +#include +#include +#include + +int main(int argc, char** argv) { + if (argc != 3) { + std::cerr << "usage: thumbnail_smoke INPUT OUTPUT.jpg\n"; + return 2; + } + try { + std::ifstream input(argv[1], std::ios::binary); + if (!input) return 1; + const std::vector bytes((std::istreambuf_iterator(input)), {}); + const auto image = make_thumbnail(bytes); + std::ofstream output(argv[2], std::ios::binary); + output.write(image.bytes.data(), image.bytes.size()); + if (!output) return 1; + std::cout << image.width << 'x' << image.height << '\n'; + } catch (const std::exception& e) { + std::cerr << e.what() << '\n'; + return 1; + } +} diff --git a/tools/variants_smoke.cpp b/tools/variants_smoke.cpp new file mode 100644 index 0000000..17aa882 --- /dev/null +++ b/tools/variants_smoke.cpp @@ -0,0 +1,32 @@ +#include "image_pipeline.hpp" +#include +#include +#include +#include +#include + +int main(int argc, char** argv) { + if (argc != 3) return 2; + try { + std::ifstream input(argv[1], std::ios::binary); + if (!input) return 1; + const std::vector bytes((std::istreambuf_iterator(input)), {}); + const auto variants = make_variants(bytes); + std::filesystem::create_directories(argv[2]); + nlohmann::json manifest; + for (const auto& v : variants) { + const auto path = std::filesystem::path(argv[2]) / + (v.name + (v.content_type == "image/webp" ? ".webp" : ".jpg")); + std::ofstream out(path, std::ios::binary); + out.write(v.image.bytes.data(), v.image.bytes.size()); + if (!out) return 1; + manifest[v.name] = {{"width", v.image.width}, {"height", v.image.height}, + {"size_bytes", v.image.bytes.size()}}; + } + std::cout << manifest.dump() << '\n'; + return 0; + } catch (const std::exception& e) { + std::cerr << e.what() << '\n'; + return 1; + } +}