forked from mtusi2026/mtusi2026lab3
Compare commits
3
Commits
0ab3a341aa
...
41bb34b8c6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41bb34b8c6 | ||
|
|
4e84354642 | ||
|
|
4300d49c20 |
@@ -18,3 +18,7 @@ __pycache__
|
||||
node_modules
|
||||
evidence
|
||||
.DS_Store
|
||||
bin
|
||||
coverage.out
|
||||
coverage.out.tmp
|
||||
*.log
|
||||
|
||||
+71
-10
@@ -1,13 +1,74 @@
|
||||
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
|
||||
# These are logical interface suggestions; map actual framework names in REPORT.md.
|
||||
APP_HOST=0.0.0.0
|
||||
APP_PORT=8080
|
||||
APP_ENV=lab
|
||||
# Values below are the variables this implementation actually reads
|
||||
# (viper: section.name -> SECTION_NAME, see internal/config/config.go).
|
||||
#
|
||||
# Mapping to the logical names suggested by the skeleton:
|
||||
# APP_HOST / APP_PORT -> SERVER_HOST / SERVER_PORT
|
||||
# SESSION_STORE=postgres -> server-side sessions live in PostgreSQL (SESSION_TTL_SECONDS)
|
||||
# DATABASE_URL_FILE -> unused: POSTGRES_* below pass no secret files
|
||||
# CACHE_URL_FILE -> unused: REDIS_* below pass no secret files
|
||||
# API_REPLICAS -> number of API replicas of the stand (compose.yaml)
|
||||
#
|
||||
# APP_ENV selects config/<env>/config.yaml; the implementation supports only `dev`.
|
||||
APP_ENV=dev
|
||||
|
||||
SERVER_HOST=0.0.0.0
|
||||
SERVER_PORT=8080
|
||||
SERVER_READ_HEADER_TIMEOUT=10s
|
||||
SERVER_SHUTDOWN_TIMEOUT=10s
|
||||
|
||||
LOG_LEVEL=info
|
||||
LOG_FORMAT=json
|
||||
|
||||
# Synthetic credentials for the local stand only; override in .env for anything else.
|
||||
POSTGRES_HOST=localhost
|
||||
POSTGRES_PORT=5432
|
||||
POSTGRES_DATABASE=messenger
|
||||
POSTGRES_USER=messenger
|
||||
POSTGRES_PASSWORD=messenger
|
||||
POSTGRES_SSL_MODE=disable
|
||||
POSTGRES_MAX_CONNS=10
|
||||
POSTGRES_MIN_CONNS=1
|
||||
POSTGRES_MAX_CONN_LIFETIME=1h
|
||||
POSTGRES_MAX_CONN_IDLE_TIME=30m
|
||||
POSTGRES_CONNECT_TIMEOUT=5s
|
||||
POSTGRES_QUERY_TIMEOUT=5s
|
||||
|
||||
REDIS_ENABLED=true
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=
|
||||
REDIS_DB=0
|
||||
# -1 disables go-redis retries; 0 keeps the library default (3 retries).
|
||||
REDIS_MAX_RETRIES=-1
|
||||
REDIS_DIAL_TIMEOUT=300ms
|
||||
REDIS_READ_TIMEOUT=200ms
|
||||
REDIS_WRITE_TIMEOUT=200ms
|
||||
REDIS_POOL_SIZE=10
|
||||
|
||||
CACHE_ENABLED=true
|
||||
CACHE_CHAT_LIST_TTL=5m
|
||||
CACHE_LOCK_TTL=10s
|
||||
CACHE_LOCK_WAIT_TIMEOUT=2s
|
||||
|
||||
SESSION_TTL_SECONDS=3600
|
||||
# Choose credentials locally. File paths contain no secret values.
|
||||
DATABASE_URL_FILE=/run/secrets/database_url
|
||||
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
|
||||
SESSION_STORE=postgres
|
||||
CACHE_URL_FILE=/run/secrets/cache_url
|
||||
API_REPLICAS=2
|
||||
|
||||
# Retention of a message Idempotency-Key in the shared store; contract 1.3.0
|
||||
# requires at least 24 h.
|
||||
IDEMPOTENCY_TTL_SECONDS=86400
|
||||
|
||||
# Lab3 stand (compose.yaml): number of API replicas behind the LB and per-replica
|
||||
# CPU/RAM limits. Track 1 varies them to compare 1/2/4 replicas at a fixed total
|
||||
# budget, e.g. API_REPLICAS=4 API_CPU_LIMIT=0.25 API_MEM_LIMIT=192M.
|
||||
API_REPLICAS=2
|
||||
API_CPU_LIMIT=0.50
|
||||
API_MEM_LIMIT=256M
|
||||
|
||||
# Connections of ONE API replica to PostgreSQL; the total is replicas × value.
|
||||
# Track 1 checks whether the shared connection budget becomes the saturation
|
||||
# point: at 4 replicas the default 10 means 40 connections against one database.
|
||||
POSTGRES_MAX_CONNS=10
|
||||
|
||||
# CPU quota of the shared database. Track 1 shows it is the stand's saturation
|
||||
# point: the API uses a fraction of its budget while PostgreSQL sits at its own.
|
||||
POSTGRES_CPU_LIMIT=0.50
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
name: Application
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
GO_VERSION: "1.27.0"
|
||||
GOLANGCI_LINT_VERSION: v2.13.2
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
cache: true
|
||||
- run: make lint
|
||||
|
||||
unit-test:
|
||||
name: Unit tests
|
||||
needs: lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
cache: true
|
||||
- run: make unit-test
|
||||
|
||||
build:
|
||||
name: Docker build
|
||||
needs: unit-test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
- uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: false
|
||||
tags: mtusi-messenger:ci
|
||||
|
||||
stand:
|
||||
name: Lab3 stand scenario
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: cp .env.example .env
|
||||
- run: docker compose --env-file .env config --quiet
|
||||
- run: docker compose --env-file .env up -d --build
|
||||
- name: Wait for readiness through the load balancer
|
||||
run: |
|
||||
for attempt in $(seq 1 60); do
|
||||
if curl -fsS -o /dev/null http://localhost:8080/health/ready; then exit 0; fi
|
||||
sleep 2
|
||||
done
|
||||
docker compose --env-file .env ps
|
||||
exit 1
|
||||
- name: Public smoke through the LB
|
||||
run: make test
|
||||
- name: Parallel idempotency through the LB
|
||||
run: python3 student-tests/idempotency_parallel.py --base-url http://localhost:8080
|
||||
- name: Stop one API replica and keep writing
|
||||
run: make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
- name: Logs on failure
|
||||
if: failure()
|
||||
run: docker compose --env-file .env logs --tail 100
|
||||
- if: always()
|
||||
run: docker compose --env-file .env down -v
|
||||
@@ -24,6 +24,8 @@ target/
|
||||
bin/
|
||||
obj/
|
||||
coverage/
|
||||
coverage.out
|
||||
coverage.out.tmp
|
||||
*.log
|
||||
.DS_Store
|
||||
.idea/
|
||||
|
||||
+139
@@ -0,0 +1,139 @@
|
||||
# yaml-language-server: $schema=https://golangci-lint.run/jsonschema/golangci.v2.13.jsonschema.json
|
||||
|
||||
version: "2"
|
||||
|
||||
run:
|
||||
timeout: 5m
|
||||
tests: true
|
||||
build-tags:
|
||||
- integration
|
||||
|
||||
linters:
|
||||
default: standard
|
||||
enable:
|
||||
- bodyclose
|
||||
- contextcheck
|
||||
- containedctx
|
||||
- noctx
|
||||
- rowserrcheck
|
||||
- sqlclosecheck
|
||||
- fatcontext
|
||||
- errorlint
|
||||
- errname
|
||||
- nilerr
|
||||
- nilnil
|
||||
- asasalint
|
||||
- durationcheck
|
||||
- exhaustive
|
||||
- forcetypeassert
|
||||
- gocheckcompilerdirectives
|
||||
- gocritic
|
||||
- makezero
|
||||
- musttag
|
||||
- reassign
|
||||
- recvcheck
|
||||
- unparam
|
||||
- wastedassign
|
||||
- gosec
|
||||
- canonicalheader
|
||||
- copyloopvar
|
||||
- exptostd
|
||||
- intrange
|
||||
- perfsprint
|
||||
- unconvert
|
||||
- usestdlibvars
|
||||
- usetesting
|
||||
- prealloc
|
||||
- revive
|
||||
- misspell
|
||||
- nolintlint
|
||||
- gomoddirectives
|
||||
- sloglint
|
||||
- depguard
|
||||
- forbidigo
|
||||
- testifylint
|
||||
- thelper
|
||||
- tparallel
|
||||
|
||||
settings:
|
||||
govet:
|
||||
enable-all: true
|
||||
disable:
|
||||
- fieldalignment
|
||||
- shadow
|
||||
|
||||
gosec:
|
||||
excludes:
|
||||
- G404
|
||||
|
||||
exhaustive:
|
||||
default-signifies-exhaustive: true
|
||||
|
||||
nolintlint:
|
||||
require-explanation: true
|
||||
require-specific: true
|
||||
|
||||
sloglint:
|
||||
attr-only: true
|
||||
no-global: default
|
||||
context: scope
|
||||
|
||||
testifylint:
|
||||
enable-all: true
|
||||
|
||||
depguard:
|
||||
rules:
|
||||
main:
|
||||
deny:
|
||||
- pkg: math/rand$
|
||||
desc: use math/rand/v2
|
||||
- pkg: github.com/pkg/errors
|
||||
desc: use stdlib errors and fmt.Errorf with %w
|
||||
- pkg: io/ioutil
|
||||
desc: deprecated
|
||||
domain:
|
||||
files:
|
||||
- "**/internal/domain/**"
|
||||
deny:
|
||||
- pkg: database/sql
|
||||
desc: domain must not depend on infrastructure
|
||||
- pkg: net/http
|
||||
desc: domain must not depend on transport
|
||||
|
||||
forbidigo:
|
||||
forbid:
|
||||
- pattern: ^fmt\.Print(f|ln)?$
|
||||
msg: use slog
|
||||
- pattern: ^log\.(Print|Fatal|Panic).*$
|
||||
msg: use slog
|
||||
|
||||
exclusions:
|
||||
generated: lax
|
||||
presets:
|
||||
- comments
|
||||
- std-error-handling
|
||||
- common-false-positives
|
||||
rules:
|
||||
- path: _test\.go
|
||||
linters:
|
||||
- gosec
|
||||
- prealloc
|
||||
- forcetypeassert
|
||||
- unparam
|
||||
|
||||
formatters:
|
||||
enable:
|
||||
- gofumpt
|
||||
- goimports
|
||||
settings:
|
||||
gofumpt:
|
||||
module-path: mtusi-messenger
|
||||
goimports:
|
||||
local-prefixes:
|
||||
- mtusi-messenger
|
||||
exclusions:
|
||||
generated: lax
|
||||
|
||||
issues:
|
||||
max-issues-per-linter: 0
|
||||
max-same-issues: 0
|
||||
@@ -0,0 +1,35 @@
|
||||
#https://vektra.github.io/mockery/latest/configuration/
|
||||
|
||||
all: false
|
||||
dir: "{{.InterfaceDir}}/mocks"
|
||||
pkgname: mocks
|
||||
filename: "{{.InterfaceName}}.go"
|
||||
structname: "Mock{{.InterfaceName}}"
|
||||
template: testify
|
||||
formatter: goimports
|
||||
force-file-write: true
|
||||
include-auto-generated: false
|
||||
log-level: info
|
||||
|
||||
packages:
|
||||
mtusi-messenger/internal/platform/cache:
|
||||
config:
|
||||
all: true
|
||||
mtusi-messenger/internal/storage/redis:
|
||||
config:
|
||||
all: true
|
||||
mtusi-messenger/internal/service/user:
|
||||
config:
|
||||
all: true
|
||||
mtusi-messenger/internal/service/chat:
|
||||
config:
|
||||
all: true
|
||||
mtusi-messenger/internal/service/message:
|
||||
config:
|
||||
all: true
|
||||
mtusi-messenger/internal/service/session:
|
||||
config:
|
||||
all: true
|
||||
mtusi-messenger/internal/transport/rest:
|
||||
config:
|
||||
all: true
|
||||
@@ -0,0 +1,10 @@
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/ogen-go/ogen/v1.24.0/schemas/ogen.jsonschema.json
|
||||
|
||||
# https://ogen.dev/docs/config/
|
||||
generator:
|
||||
features:
|
||||
disable:
|
||||
- paths/client
|
||||
- webhooks/client
|
||||
- webhooks/server
|
||||
- ogen/otel
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
# syntax=docker/dockerfile:1.7
|
||||
|
||||
ARG GO_VERSION=1.27.1
|
||||
ARG ALPINE_VERSION=3.22
|
||||
|
||||
FROM golang:${GO_VERSION}-alpine AS build
|
||||
# Platform of the produced binaries. Left empty on purpose: the classic builder
|
||||
# does not supply these args, and the previous hardcoded `amd64` default silently
|
||||
# produced x86-64 binaries inside an arm64 image. Those ran under emulation and
|
||||
# the Go runtime crashed under load (fatals like "found pointer to free object").
|
||||
# Empty means "build for the builder's own platform"; cross-compile explicitly:
|
||||
# docker build --build-arg TARGETARCH=amd64 ...
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
ARG VERSION=dev
|
||||
ENV GOTOOLCHAIN=local
|
||||
WORKDIR /opt
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
# The Go compiler spikes well above 1 GiB per package on large dependencies, so
|
||||
# an unbounded parallel build OOMs small Docker VMs and CI runners. Cap
|
||||
# parallelism; override with --build-arg GOFLAGS=-p=$(nproc) on a bigger host.
|
||||
ARG GOFLAGS="-p=2"
|
||||
ENV GOFLAGS=$GOFLAGS
|
||||
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
|
||||
go build -trimpath -buildvcs=false -tags timetzdata \
|
||||
-ldflags="-s -w -X main.version=${VERSION}" \
|
||||
-o /out/messenger ./cmd/messenger \
|
||||
&& CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
|
||||
go build -trimpath -buildvcs=false -tags timetzdata \
|
||||
-ldflags="-s -w -X main.version=${VERSION}" \
|
||||
-o /out/migrate ./cmd/migrate
|
||||
|
||||
FROM alpine:${ALPINE_VERSION} AS runtime
|
||||
RUN apk add --no-cache ca-certificates wget \
|
||||
&& addgroup -S -g 10001 app \
|
||||
&& adduser -S -D -H -u 10001 -G app app
|
||||
|
||||
COPY --from=build --chown=10001:10001 /out/messenger /usr/local/bin/messenger
|
||||
COPY --from=build --chown=10001:10001 /out/migrate /usr/local/bin/migrate
|
||||
COPY --chown=10001:10001 config/dev/config.yaml /etc/messenger/dev/config.yaml
|
||||
|
||||
USER 10001:10001
|
||||
EXPOSE 8080
|
||||
STOPSIGNAL SIGTERM
|
||||
HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD wget -q -O /dev/null "http://127.0.0.1:${SERVER_PORT:-8080}/health/live" || exit 1
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/messenger"]
|
||||
@@ -3,11 +3,13 @@ BASE_URL ?= http://localhost:8080
|
||||
CA_FILE ?=
|
||||
ACTION_SCRIPT ?=
|
||||
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
|
||||
PYTHON_LOCAL = env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 $(PYTHON)
|
||||
|
||||
.PHONY: help check validate test load test-persistence test-failover
|
||||
.PHONY: help check validate test load test-persistence test-failover smoke-local load-local test-idempotency up down ps logs
|
||||
|
||||
help:
|
||||
@echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes"
|
||||
@echo "up/down/ps/logs: lab3 stand from compose.yaml (LB + API_REPLICAS replicas + stores)"
|
||||
|
||||
check:
|
||||
$(PYTHON) scripts/check_contract.py
|
||||
@@ -28,3 +30,113 @@ 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)
|
||||
|
||||
# Локальный запуск без прокси: в окружении автора HTTP(S)_PROXY ломает localhost.
|
||||
smoke-local:
|
||||
$(PYTHON_LOCAL) tests/smoke.py --base-url "$(BASE_URL)" $(TLS_ARGS)
|
||||
|
||||
load-local:
|
||||
$(PYTHON_LOCAL) tests/load.py --base-url "$(BASE_URL)" $(TLS_ARGS)
|
||||
|
||||
# Собственная проверка уровня 4: параллельные повторы одного Idempotency-Key
|
||||
# через LB обязаны создать ровно одно сообщение.
|
||||
test-idempotency:
|
||||
$(PYTHON_LOCAL) student-tests/idempotency_parallel.py --base-url "$(BASE_URL)" $(TLS_ARGS)
|
||||
|
||||
COMPOSE_BIN ?= docker compose
|
||||
COMPOSE_FILE ?= compose.yaml
|
||||
ENV_FILE ?= .env
|
||||
|
||||
up:
|
||||
$(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) up -d --build
|
||||
|
||||
down:
|
||||
$(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) down
|
||||
|
||||
ps:
|
||||
$(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) ps
|
||||
|
||||
logs:
|
||||
$(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) logs -f --tail 100
|
||||
|
||||
.DEFAULT_GOAL := help
|
||||
GO ?= go
|
||||
APP_NAME ?= messenger
|
||||
CMD_PKG := ./cmd/$(APP_NAME)
|
||||
LOCAL_BIN := $(CURDIR)/bin
|
||||
GOLANGCI_LINT_VERSION ?= v2.13.2
|
||||
GOLANGCI_LINT := $(LOCAL_BIN)/golangci-lint
|
||||
OPENAPI_SPEC := contracts/openapi.json
|
||||
OGEN_CONFIG := .ogen.yml
|
||||
OAS_DIR := internal/transport/rest/internal/oas
|
||||
|
||||
-include .env
|
||||
export
|
||||
|
||||
# .env feeds local tooling, but its application variables must not leak into the
|
||||
# Go test process: the config tests assert defaults and the dev YAML, so an
|
||||
# ambient REDIS_ENABLED/CACHE_ENABLED would fail them.
|
||||
ENV_KEYS := $(shell sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' .env 2>/dev/null)
|
||||
CLEAN_ENV = env $(addprefix -u ,$(ENV_KEYS))
|
||||
|
||||
.PHONY: unit-test
|
||||
unit-test:
|
||||
$(CLEAN_ENV) $(GO) test -race -shuffle=on -count=1 -timeout=5m ./...
|
||||
|
||||
.PHONY: integration-test
|
||||
integration-test:
|
||||
$(GO) test -tags=integration -p 1 -count=1 -timeout=15m ./internal/storage/postgres ./internal/storage/redis
|
||||
|
||||
.PHONY: test-db-up test-db-down
|
||||
test-db-up:
|
||||
@docker-compose -f docker-compose.local.yaml up -d --wait postgres redis
|
||||
|
||||
test-db-down:
|
||||
@docker-compose -f docker-compose.local.yaml down
|
||||
|
||||
# не учитываем генеренные файлы, также cmd в подсчете покрытия
|
||||
COVER_EXCLUDE ?= /(mocks|oas)/|/cmd/
|
||||
|
||||
.PHONY: cover
|
||||
cover:
|
||||
$(CLEAN_ENV) $(GO) test -race -shuffle=on -count=1 -timeout=5m \
|
||||
-covermode=atomic -coverprofile=coverage.out.tmp ./...
|
||||
@grep -Ev '$(COVER_EXCLUDE)' coverage.out.tmp > coverage.out
|
||||
@rm coverage.out.tmp
|
||||
$(GO) tool cover -func=coverage.out | tail -n 1
|
||||
$(GO) tool cover -html=coverage.out
|
||||
|
||||
.PHONY: generate
|
||||
generate: generate-api generate-mocks sqlc
|
||||
|
||||
.PHONY: generate-api
|
||||
generate-api:
|
||||
$(GO) tool ogen --config $(OGEN_CONFIG) --target $(OAS_DIR) --package oas --clean $(OPENAPI_SPEC)
|
||||
|
||||
.PHONY: generate-mocks
|
||||
generate-mocks:
|
||||
$(GO) tool mockery
|
||||
|
||||
.PHONY: sqlc
|
||||
sqlc:
|
||||
$(GO) tool sqlc generate
|
||||
|
||||
.PHONY: dev-up dev-down dev-reload
|
||||
dev-up:
|
||||
@docker-compose -f docker-compose.local.yaml up -d --build
|
||||
|
||||
dev-down:
|
||||
@docker-compose -f docker-compose.local.yaml down
|
||||
|
||||
dev-reload:
|
||||
@docker-compose -f docker-compose.local.yaml up -d --build --force-recreate
|
||||
|
||||
.PHONY: migrate
|
||||
migrate:
|
||||
$(GO) run ./cmd/migrate up
|
||||
|
||||
$(GOLANGCI_LINT):
|
||||
GOBIN=$(LOCAL_BIN) $(GO) install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION)
|
||||
|
||||
lint: $(GOLANGCI_LINT)
|
||||
$(GOLANGCI_LINT) run -v
|
||||
|
||||
@@ -1,37 +1,166 @@
|
||||
# Отчёт — лабораторная 3
|
||||
|
||||
- Автор, группа: TODO
|
||||
- Целевая оценка; выбранный трек 5, если нужен: TODO
|
||||
- Commit/PR: TODO после публикации
|
||||
- Использованные источники, библиотеки и помощь ИИ: TODO
|
||||
- Автор, группа: Владислав Кунецкий, БВT2303
|
||||
- Целевая оценка; выбранный трек 5, если нужен: 5; трек 1 «Цена масштабирования»
|
||||
- Commit/PR: solution/bvt2303-kunetsky (fork репозитория лабораторной 3)
|
||||
- Использованные источники, библиотеки и помощь ИИ: ogen (HTTP-транспорт из `contracts/openapi.json`), sqlc (SQL-слой), goose (миграции), pgx/v5, go-redis/v9, viper + validator (конфигурация), mockery/v3 + testify (тесты), zap через `log/slog`. Помощь ИИ использовалась для обсуждения архитектуры, ревью и подготовки кода; решение проверено и изменено автором. База перенесена из лабораторной 2.
|
||||
|
||||
## Запуск из чистого clone
|
||||
|
||||
TODO: версии runtime/образов, prerequisites, команды создания локальных secrets/.env, build, миграций, запуска, ожидания готовности, тестов и остановки. Указать необходимые действия оператора. Не вставлять секреты. Отдельно указать безопасную остановку и команду намеренного удаления учебных данных.
|
||||
Требования: Docker Engine с Compose v2 (`docker compose`), `make`; Python 3.9+ (только стандартная библиотека) для проверок; Go 1.27 — для локальной сборки и unit/integration-тестов.
|
||||
|
||||
Проверено на: macOS 25.5.0, Apple M5 Pro, 48 GiB RAM, Docker Engine 29.5.2, Docker Compose 5.5.1, Go 1.27.1. Docker VM: **2 CPU и ≈1.9 GiB RAM** — лимиты контейнеров в `compose.yaml` подобраны под этот бюджет (API 0.5 CPU / 256 MiB на реплику, PostgreSQL 0.5 / 384 MiB, Redis 0.25 / 192 MiB, LB 0.25 / 64 MiB), суммарно меньше доступного. Образы зафиксированы по версии: `nginx:1.29-alpine`, `redis:7.4-alpine`, `postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873`; приложение собирается из `Dockerfile` (`golang:1.27.1-alpine` → `alpine:3.22`), сборка ограничена `GOFLAGS=-p=2`, чтобы компилятор Go не выбил память небольшой VM.
|
||||
|
||||
```sh
|
||||
cp .env.example .env # синтетические креды локального стенда, реальных секретов нет
|
||||
make up # docker compose --env-file .env up -d --build
|
||||
make ps # контейнеры и health
|
||||
curl -fsS http://localhost:8080/health/ready
|
||||
|
||||
make test # публичный smoke (профиль lab3) через LB
|
||||
make test-idempotency # параллельные повторы одного Idempotency-Key
|
||||
make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
||||
make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
python3 student-tests/replica_failover.py --action-script scripts/stop-one.sh
|
||||
scripts/rolling_update.sh # поочерёдная замена реплик под нагрузкой
|
||||
|
||||
make down # остановка стенда; named volumes остаются
|
||||
```
|
||||
|
||||
Намеренное удаление учебных данных (удаляет volumes и сессии):
|
||||
|
||||
```sh
|
||||
docker compose --env-file .env down -v
|
||||
```
|
||||
|
||||
Оператору достаточно `cp .env.example .env` и `make up`: миграции выполняет отдельный сервис `migrate` (`goose up`), он завершается успешно до старта API-реплик (`depends_on: service_completed_successfully`), поэтому реплики не гоняют схему наперегонки. Приложение принимает SIGTERM и дренирует сервер в пределах `SERVER_SHUTDOWN_TIMEOUT=10s`; у контейнера API `stop_grace_period: 15s`, чтобы Docker не убил запрос в полёте.
|
||||
|
||||
### Соответствие переменных `.env.example` реальной конфигурации
|
||||
|
||||
| Логическое имя из задания | Реальная переменная | Смысл |
|
||||
| --- | --- | --- |
|
||||
| `APP_HOST` / `APP_PORT` | `SERVER_HOST` / `SERVER_PORT` | адрес и порт HTTP-сервера API |
|
||||
| `APP_ENV` | `APP_ENV` | выбор `config/<env>/config.yaml`; реализован только `dev` |
|
||||
| `SESSION_STORE=postgres` | — | сессии лежат в PostgreSQL (`sessions.token_hash`), параметр не нужен |
|
||||
| `DATABASE_URL_FILE` | `POSTGRES_*` | параметры подключения к общей БД без файлов секретов |
|
||||
| `CACHE_URL_FILE` | `REDIS_*`, `CACHE_*` | общий кэш списка чатов и его блокировки |
|
||||
| `IDEMPOTENCY_TTL_SECONDS` | `IDEMPOTENCY_TTL_SECONDS` | срок хранения записи идемпотентности (по умолчанию 86400 с) |
|
||||
| `API_REPLICAS` | `API_REPLICAS` | число API-реплик стенда (`deploy.replicas`) |
|
||||
| — | `API_CPU_LIMIT` / `API_MEM_LIMIT` | лимиты CPU/RAM одной реплики (для профилей трека 1) |
|
||||
|
||||
## Архитектура и решения
|
||||
|
||||
TODO: схема процессов/хранилищ, источник истины, транзакционные границы, ограничения. Что перенесено из lab2, что изменено в этой работе. Соответствие переменных из .env.example реальной конфигурации.
|
||||
Схема: клиент → LB (nginx) → 2+ API-реплики → общие PostgreSQL и Redis. Единая точка входа — только LB: `127.0.0.1:8080`; порты API и хранилищ наружу не публикуются.
|
||||
|
||||
- **Источник истины — PostgreSQL**: пользователи, чаты, участники, сообщения, серверные сессии (`sha256(token)`), записи идемпотентности. Транзакционные границы: создание чата вместе с участниками; отправка сообщения вместе с записью идемпотентности.
|
||||
- **Redis/Valkey** — кэш списка чатов с распределённой блокировкой от stampede и версиями (`user_chat_versions`); не хранит ничего, что нужно для корректности ответа.
|
||||
- **Общие сессии**: сессия создаётся одной репликой, любые другие её читают из БД, поэтому логин не привязан к реплике (sticky-сессии не используются).
|
||||
- **`X-Instance-Id`**: значение стабильно в пределах процесса (`INSTANCE_ID` или hostname = короткий ID контейнера) и проставляется middleware на **каждый** ответ, включая ошибки 400/404/405, которые формирует транспорт, а не handler.
|
||||
- **Идемпотентность отправки** (`Idempotency-Key` обязателен, `[A-Za-z0-9._:-]{1,128}`):
|
||||
- таблица `message_idempotency (actor_id, chat_id, key, request_hash, message_id, expires_at)`, PK `(actor_id, chat_id, key)` — область уникальности «пользователь + чат + ключ»;
|
||||
- claim — один `INSERT ... ON CONFLICT (actor_id, chat_id, key) DO UPDATE ... WHERE expires_at <= now() RETURNING`: живая запись не перезаписывается, истёкшая занимается заново;
|
||||
- вставка сообщения и запись `message_id` идут в **одной транзакции с claim**, поэтому не бывает ключа без сообщения и наоборот; при откате (например, отправитель не участник) ключ не занимается;
|
||||
- конкурентный повтор через разные реплики блокируется на строке и после коммита победителя возвращает его сообщение → ровно один INSERT в `messages`;
|
||||
- повтор с тем же ключом и другим payload — `409`, для этого хранится `request_hash` (sha256 канонического payload `{"text":...}`; порядок ключей и пробелы в JSON не влияют).
|
||||
- **LB**: nginx OSS, `upstream` с `zone` + `resolver 127.0.0.11` и `resolve` — адреса берутся из Docker DNS по общему сетевому alias `api-replica`, который выдан всем репликам, и переразрешаются каждые 5 с. Поэтому масштабирование (1/2/4), rolling update и пересоздание контейнеров не зависят от их номеров и IP и не требуют правки конфига и reload: именно на этом сломался первый вариант LB со статичным списком имён `api-1..api-4`, когда `docker rm` + `up` создал контейнеры `api-3`/`api-4` за пределами списка. Балансировка `least_conn`, keepalive к апстримам, пассивная проверка (`max_fails=1 fail_timeout=3s`), `proxy_connect_timeout 1s` и `proxy_next_upstream error timeout http_502 http_503 http_504 non_idempotent` — повтор POST на живую реплику безопасен, потому что POST сообщения защищён ключом идемпотентности.
|
||||
- **Период проверок и обнаружение отказа**: периодических активных проб у nginx OSS нет — недоступная реплика исключается по первой же неудачной попытке (`connection refused` — мгновенно, таймаут соединения — 1 с), обратно в ротацию она возвращается через `fail_timeout=3s`. Docker healthcheck API (`/health/ready`, интервал 10 с) влияет на порядок старта и на оператора, но не на маршрутизацию внутри LB. Измеренное восстановление записи после остановки реплики: 0.23 с и 1.59 с (см. таблицу ниже).
|
||||
- **Миграции**: одна последовательность для всего стенда (`migrate`), совместимость с работающей версией — новая таблица добавляется отдельной миграцией, старый код её не читает. Новая миграция пронумерована `00003`, а не `00002`: в базе, перенесённой из ЛР2, goose уже содержит применённую версию 2 (другая миграция того же репозитория), и совпадающий номер был бы молча пропущен при обновлении существующего стенда — это проверено на dev-базе (`goose: no migrations to run. current version: 2` при отсутствующей таблице).
|
||||
|
||||
### Что перенесено из lab2
|
||||
|
||||
Перенос: ветки `lab1` + `lab2` репозитория `mtusi-messenger`, перенесены только исходники, миграции, собственные тесты, Dockerfile и конфигурации (по правилам CONTRIBUTING.md; README/COURSE/contracts/публичные tests остались от skeleton ЛР3).
|
||||
|
||||
- Транспорт: HTTP-слой, сгенерированный ogen из `contracts/openapi.json`, REST-адаптер поверх него, middleware X-Request-Id и структурного логирования.
|
||||
- Домен и сервисы: user / chat / message / session с валидацией и keyset-пагинацией.
|
||||
- PostgreSQL — источник истины: pgx + sqlc, миграции goose, транзакции на создание чата.
|
||||
- Сессии: Basic только при создании сессии, далее Bearer; в БД `sha256(token)`, TTL, переживают перезапуск процесса.
|
||||
- Redis/Valkey: кэш списка чатов с распределённой блокировкой от stampede (`user_chat_versions`).
|
||||
- Наблюдаемость: `/health/live`, `/health/ready`, структурированные логи (log/slog + zap).
|
||||
- Инструменты: multi-stage `Dockerfile`, `docker-compose.local.yaml` для локального запуска, Makefile-таргеты, `.github/workflows/app.yml`.
|
||||
|
||||
### Изменения в этой работе (лаб. 3)
|
||||
|
||||
- Контракт 1.3.0: транспорт перегенерирован, `X-Instance-Id` во всех ответах, обязательный `Idempotency-Key` для отправки сообщения.
|
||||
- Общая идемпотентность в PostgreSQL (миграция `00002_message_idempotency.sql`, sqlc-запросы, транзакция в `MessageRepository.Create`), 409 на конфликт payload.
|
||||
- `IDEMPOTENCY_TTL_SECONDS` в конфиге (по умолчанию 24 ч), `.env.example` приведён к реальным переменным.
|
||||
- Стенд ЛР3: `compose.yaml` (LB + `API_REPLICAS` реплик + PostgreSQL + Redis + одноразовый `migrate`), конфигурация LB `infra/lb/nginx.conf`, action-скрипты `scripts/stop-one.sh` и `scripts/restart.sh`, Makefile-таргеты `up/down/ps/logs`.
|
||||
- Собственные проверки: `make test-idempotency` (параллельные повторы через LB), `student-tests/replica_failover.py` (поочерёдная остановка каждой реплики с метриками), `scripts/rolling_update.sh`, эксперименты трека 1.
|
||||
- `Dockerfile`: убран жёстко заданный `TARGETARCH=amd64` — на Apple Silicon он давал x86-64 бинарник внутри arm64-образа, тот исполнялся через эмуляцию и падал по runtime-фаталам под нагрузкой (см. «Ограничения»); сборка ограничена `GOFLAGS=-p=2`, чтобы компилятор не выбил память небольшой Docker VM.
|
||||
- Удалён осиротевший `scripts/track1_benchmark.py` (бенчмарк in-memory хранилища ЛР1: сам in-memory store удалён ещё в ЛР2, скрипт ссылался на несуществующий файл).
|
||||
|
||||
## Доказательства критериев
|
||||
|
||||
| Критерий README | Команда/сценарий | Наблюдаемый результат | Файл доказательства |
|
||||
| --- | --- | --- | --- |
|
||||
| Публичный smoke | make test | TODO | TODO |
|
||||
| Остальные пункты уровня 3 | TODO | TODO | TODO |
|
||||
| Все пункты уровня 4, если заявлен | TODO | TODO | TODO |
|
||||
| Выбранный трек 5, если заявлен | TODO | TODO | TODO |
|
||||
| Публичный smoke | `make test` | `PASS: lab3 public API scenario` через LB с двумя репликами | `evidence/smoke.txt` |
|
||||
| Разные запросы одного пользователя обслуживают разные реплики | 40× `GET /users/me` через LB одной сессией | два разных `X-Instance-Id` | `evidence/failover/sequential.txt` |
|
||||
| Идемпотентность: повтор, конкурентный повтор, смена реплики | `make test-idempotency` | 12 параллельных повторов одного ключа → одно сообщение; 12 разных payload → один 201 и одиннадцать 409; без ключа и с недопустимым ключом → 400 | `evidence/idempotency.txt` |
|
||||
| Остановка одной реплики при работающей другой | `make test-failover ACTION_SCRIPT=scripts/stop-one.sh` (два прогона) | 117 и 126 подтверждённых записей, 0 ошибок, первое восстановление 1.23 с и 0.22 с | `evidence/failover/run1.txt`, `evidence/failover/run2.txt` |
|
||||
| Последовательно остановлена каждая реплика, с измерениями | `python3 student-tests/replica_failover.py --action-script scripts/stop-one.sh` | реплика A: 126 записей, 0 ошибок, восстановление 1.76 с; реплика B: 90 записей, 10 переходных обрывов keepalive, восстановление 5.73 с; после отказа обслуживает только вторая реплика; восстановление обеих 0.23 с; дублей нет (216 сообщений) | `evidence/failover/sequential.txt` |
|
||||
| Сохранность при перезапуске API и хранилищ | `make test-persistence ACTION_SCRIPT=scripts/restart.sh` | `PASS`: подтверждённые сообщения и прежний токен после перезапуска, volumes не удалялись | `evidence/persistence.txt` |
|
||||
| Лимиты CPU/RAM, отсутствие публичных портов API, отсутствие `container_name` | `docker compose --env-file .env config`, `docker ps` | лимиты у каждого сервиса, публикуется только `127.0.0.1:8080` (LB) | `evidence/stand.txt` |
|
||||
| Поочерёдная замена реплик под нагрузкой | `scripts/rolling_update.sh` (60 с, 8 клиентов) | две реплики заменены по одной с ожиданием готовности: 102 601 подтверждённая запись, 0 ошибок, 0 ответов 5xx от LB, 0 рестартов | `evidence/rolling-update/after/` |
|
||||
| Трек 1: цена масштабирования | `scripts/track1_scaling.sh` + `scripts/track1_report.py` | потолок ≈1 900 RPS: 1/2/4 реплики → +3 %/−9 %, бюджет API ×3 и бюджет БД ×2 не меняют RPS, пул не исчерпан | `evidence/track1/summary.md`, `evidence/track1/scaling-*.png` |
|
||||
|
||||
TODO: добавить отдельную строку для каждого заявленного критерия. PASS без команды и наблюдения не является доказательством. Проверка инфраструктурного hook требует подтверждения, какие реальные процессы/хранилища перезапущены.
|
||||
`make check`, `make validate` (полная OpenAPI-валидация в venv) и `make unit-test` (`-race`) проходят; интеграционные тесты PostgreSQL (`-tags=integration`, включая конкурентный повтор одного ключа) — тоже.
|
||||
|
||||
## Эксперименты и отказы
|
||||
|
||||
TODO: гипотеза, hardware/лимиты, версии, объём данных, профиль нагрузки, concurrency/arrival rate, длительность/прогрев, повторы, успешные RPS, ошибки, p50/p95/p99, CPU/RAM. Сохранить raw summary без tokens и объяснить ограничения измерения.
|
||||
|
||||
| Воздействие | Что ожидаем | Что наблюдали | Время восстановления / потеря данных |
|
||||
| --- | --- | --- | --- |
|
||||
| TODO | TODO | TODO | TODO |
|
||||
| `docker stop` одной API-реплики (прогон 1) | записи продолжаются, остановленная реплика исчезает из ответов | 117 успешных записей, 0 ошибок | 1.23 с |
|
||||
| `docker stop` другой API-реплики (прогон 2) | то же | 126 записей, 0 ошибок | 0.22 с |
|
||||
| Поочерёдно остановлены обе реплики (свой скрипт) | после каждой остановки пишет только вторая реплика, дублей нет | 126 и 90 записей, 10 переходных обрывов keepalive у клиента, повторы с тем же ключом дубля не создали | 1.76 с и 5.73 с |
|
||||
| Поочерёдная замена каждой реплики под нагрузкой | потери только на время остановки, дублей нет | 0 ответов 5xx от LB, 0 рестартов, подтверждённых записей не потеряно | окно замены ≈6 с на реплику |
|
||||
| Перезапуск API и всех хранилищ с сохранением volumes | сессия и данные живут | `PASS`, прежний токен работает | потери нет |
|
||||
| Эмуляция x86-64 бинарника в arm64-образе (`--build-arg TARGETARCH=amd64`) | реплики замедляются и падают | crash-loop: `fatal error: found pointer to free object` и др., 47–178 тыс. 5xx от LB, сценарий rolling update абортился | до правки Dockerfile |
|
||||
| Двукратный CPU БД, пул 5 вместо 10, 4 реплики, 32 клиента | пропускная способность вырастет, если узкое место — БД/пул | RPS не меняется (1 782–1 961, ±9 %), при 32 клиентах растёт только задержка | — |
|
||||
|
||||
## Трек 1. Цена масштабирования
|
||||
|
||||
Методика: один и тот же профиль `tests/load.py` (closed loop, `concurrency=8`, `duration=60` с, прогрев 15 с) против стенда на 1, 2 и 4 API-репликах при **фиксированном суммарном бюджете** 1.0 CPU / 768 MiB на API; лимиты PostgreSQL (0.5 CPU / 384 MiB), Redis (0.25 / 192), LB (0.25 / 64) не меняются. Затем серия с ростом бюджета: 2 реплики и суммарно 0.5, 1.0 и 1.5 CPU. Бюджеты выбраны под Docker VM (2 CPU, ≈1.9 GiB), чтобы измерения шли в её пределах, а не за счёт хоста. Сырые артефакты — `evidence/track1/` (`load-*.json`, `stats-*.csv`, `profile-*.json`), сводка — `evidence/track1/summary.md`, графики — `scaling-fixed-budget.png` и `scaling-growth.png`.
|
||||
|
||||
### Профили и результаты
|
||||
|
||||
Серия 1 — фиксированный суммарный бюджет 1.0 CPU / 768 MiB на API (PostgreSQL 0.5 CPU, Redis 0.25, LB 0.25), нагрузка `tests/load.py` (closed loop, 8 клиентов, 60 с, прогрев 15 с):
|
||||
|
||||
| реплик | CPU на реплику | успешный RPS | p50, мс | p95, мс | p99, мс | ошибки | API CPU (сумма) | PG CPU |
|
||||
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
||||
| 1 | 1.00 | 1 895 | 4.03 | 6.51 | 8.91 | 0 | 0.34 | 0.60 |
|
||||
| 2 | 0.50 | 1 956 | 3.96 | 6.18 | 8.50 | 0 | 0.20 | 0.59 |
|
||||
| 4 | 0.25 | 1 787 | 4.29 | 7.05 | 10.00 | 0 | 0.11 | 0.53 |
|
||||
|
||||
Серия 2 — рост бюджета при 2 репликах:
|
||||
|
||||
| суммарный CPU API | CPU на реплику | успешный RPS | p95, мс | ошибки | API CPU (сумма) | PG CPU |
|
||||
| --- | --- | --- | --- | --- | --- | --- |
|
||||
| 0.5 | 0.25 | 1 906 | 6.46 | 0.3 % | 0.20 | 0.55 |
|
||||
| 1.0 | 0.50 | 1 954 | 6.06 | 1.7 % | 0.19 | 0.56 |
|
||||
| 1.5 | 0.75 | 1 857 | 6.76 | 0 | 0.20 | 0.59 |
|
||||
|
||||
Единичные ошибки в серии 2 — переходные обрывы соединений в момент смены состава реплик между профилями (максимум 1.7 %), подтверждённых записей не потеряно: повтор с тем же ключом дубля не создаёт (см. проверку идемпотентности).
|
||||
|
||||
Контрольные точки: база данных с удвоенной квотой CPU (1.0 вместо 0.5) — 1 961 RPS (было 1 956); пул соединений 5 вместо 10 на реплику при 4 репликах — 1 817 RPS (было 1 890); 32 клиента вместо 8 — 1 782 RPS и p95 28 мс (было 1 956 и p95 6.2 мс, то есть растёт очередь, а не пропускная способность).
|
||||
|
||||
### Где насыщение
|
||||
|
||||
Ни одна ручка приложения или БД не сдвигает потолок ≈1 900 RPS: **+3 %** при переходе с 1 на 2 реплики, **−9 %** на 4 репликах, ноль от трёхкратного бюджета API, ноль от двукратного бюджета БД, ноль от размера пула (23 соединения из 100 — пул не исчерпан). Тот же код вне Docker (нативный процесс против локальной БД) даёт 2 730 RPS при 32 клиентах и нуле ошибок. То есть на этой машине узкое место — путь «хост → Docker Desktop (VM 2 vCPU) → LB»: потолок задаёт виртуализация и проброс порта, а не приложение, БД или балансировщик. Дополнительная оговорка о честности: `docker stats` показывал ~0.2 CPU при 1 900 RPS (≈0.1 мс CPU на запись — неправдоподобно), а независимая проверка соблюдения квот на 2-vCPU VM оказалась неубедительной, поэтому «фиксированный бюджет» в сериях — номинальный. Вывод про масштабирование от этого не зависит: при любом бюджете рост реплик не помогает, а на 4 репликах становится хуже, потому что каждая реплика добавляет соединения и транзакции к общим хранилищам. На Linux-хосте с большим числом ядер те же скрипты (`scripts/track1_scaling.sh`, `scripts/track1_report.py`) нужно прогнать заново — там ожидаемое насыщение сместится в БД и пул.
|
||||
|
||||
### Подтверждённое улучшение и проверенные гипотезы
|
||||
|
||||
**Подтверждено:** сценарий поочерёдной замены реплик под нагрузкой перестал разрушать стенд. До правок `scripts/rolling_update.sh` абортился: свежие реплики уходили в crash-loop (`fatal error: found pointer to free object`, `sync: inconsistent mutex state`, `bad pointer in Go heap`), LB отдавал десятки тысяч 502 (`no live upstreams`), сценарий не доходил до конца. После правок два независимых прогона (60 с, 8 клиентов) дали **102 601** и **121 234** подтверждённые записи с **0 ответов 5xx от LB** и `restarts=0` у обеих реплик; в финальном прогоне p50 3.9 мс, p95 8.6 мс, ошибок клиента 0 (`evidence/rolling-update/after/`). Что это дало: (1) архитектура образа — убран жёсткий `TARGETARCH=amd64`, из-за которого в arm64-образ попадал x86-64 бинарник (`e_machine=0x3e` против `0xb7` у базового образа, `evidence/arch.txt`), то есть Go runtime работал под эмуляцией; (2) гейт готовности в скрипте — реплики меняются строго по одной, с ожиданием health и появления через LB; (3) `max_fails=0` в LB — при двух апстримах пассивное исключение превращало один медленный ответ в полный отказ. Контрольный прогон с `max_fails=1` на уже исправленном образе дал те же 0 пятисоток (`evidence/rolling-update/control-max-fails-1/`): каскад вызывали падающие реплики, а не настройка LB.
|
||||
|
||||
**Не подтвердились измерениями:** размер пула соединений (10 → 5) и удвоенный лимит CPU БД — оба в пределах шума; ждать эффекта от них на этой машине нельзя, потому что потолок не в БД.
|
||||
|
||||
**Следующий шаг для измерения:** сократить число операторов в БД на одно сообщение — сейчас их три (claim ключа, вставка сообщения, запись `message_id`), а нужно два (вставка сообщения + upsert ключа в той же транзакции, конфликт — через откат и повторное чтение). Гипотеза: меньше round-trip и меньше версий строк, эффект будет виден на стенде, где потолок задаёт БД.
|
||||
|
||||
## Ограничения и следующие шаги
|
||||
|
||||
TODO: какие отказы выдерживаются и какие нет; что не реализовано; где учебное упрощение; какое улучшение подтверждено, а какое пока гипотеза.
|
||||
- **Архитектура образа (главная находка этапа отладки).** Унаследованный `Dockerfile` содержал `ARG TARGETARCH=amd64`, а классический builder платформу не подставляет — в arm64-образ попадал x86-64 бинарник (`e_machine=0x3e` против `0xb7` у busybox базового образа; в стеке паники видно `runtime/asm_amd64.s`). Пока нагрузка была низкой, эмуляция справлялась; под нагрузкой Go runtime падал с `fatal error: found pointer to free object`, `sync: inconsistent mutex state`, `bad pointer in Go heap`, `runtime: name offset base pointer out of range` — и это выглядело как проблема приложения. Контрольный эксперимент снял подозрения с кода: тот же исходник, собранный нативно (вне Docker, против локальной БД), выдержал 90 с при 32 клиентах — 245 798 запросов, 0 ошибок, p50 11.1 мс, p95 16.0 мс, p99 20.7 мс, 2 730 успешных rps. После исправления (`ARG TARGETARCH` без значения по умолчанию, кросс-сборка — явным `--build-arg`) стенд стабилен. Если вы собираете под другую платформу, задавайте `TARGETOS`/`TARGETARCH` явно.
|
||||
- **Ресурсы Docker VM.** VM даёт 2 CPU и ≈1.9 GiB RAM: сборка образа была один раз убита OOM, поэтому компилятор ограничен `GOFLAGS=-p=2`, а бюджеты экспериментов трека 1 подобраны под VM (1.0 CPU суммарно на API), иначе измеряется не масштабирование, а нехватка ресурсов.
|
||||
- **Пассивные проверки LB и два апстрима.** При `max_fails=1 fail_timeout=3s` медленный ответ единственной оставшейся реплики исключал и её: nginx отвечал `no live upstreams` и отдавал 502 (в прогоне rolling update без правки — 47–178 тыс. 5xx). Для двух апстримов пассивное исключение отключено (`max_fails=0`), удалённую реплику убирают retry и DNS `resolve`; это записано в `infra/lb/nginx.conf`.
|
||||
- Один Docker-host: эксперименты показывают отказ **процесса** API, но не отказ узла. Потеря хоста, а также LB, PostgreSQL и Redis остаются единичными точками отказа; выживание узла БД не заявлено.
|
||||
- PostgreSQL не реплицирована, Redis не кластеризован — при их отказе стенд недоступен, это честное учебное упрощение.
|
||||
- LB использует пассивные проверки: между отказом и исключением реплики проходит до одной неудачной попытки (≤1 с), транзиентные ошибки в этот период допустимы и измерены.
|
||||
- Генератор нагрузки `tests/load.py` — closed-loop: он ограничен клиентом и страдает coordinated omission, поэтому измеренный RPS — это пропускная способность HTTP-подтверждений, а не предельная ёмкость системы. Для серьёзных выводов нужен k6/Locust или свой open-loop генератор.
|
||||
- Записи идемпотентности не удаляются фоновым процессом: истёкшие строки занимаются лениво при повторном использовании ключа, остальные ждут будущей уборки (индекс `expires_at` уже есть).
|
||||
|
||||
@@ -0,0 +1,174 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"net/http"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"mtusi-messenger/internal/config"
|
||||
"mtusi-messenger/internal/health"
|
||||
"mtusi-messenger/internal/logger"
|
||||
"mtusi-messenger/internal/platform/cache"
|
||||
"mtusi-messenger/internal/platform/token"
|
||||
"mtusi-messenger/internal/service/chat"
|
||||
"mtusi-messenger/internal/service/message"
|
||||
"mtusi-messenger/internal/service/session"
|
||||
"mtusi-messenger/internal/service/user"
|
||||
"mtusi-messenger/internal/storage/postgres"
|
||||
storageredis "mtusi-messenger/internal/storage/redis"
|
||||
"mtusi-messenger/internal/transport/rest"
|
||||
)
|
||||
|
||||
func main() {
|
||||
log := logger.New()
|
||||
|
||||
cfg, err := config.Load()
|
||||
if err != nil {
|
||||
log.Error("load config", slog.Any("error", err))
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
log = logger.New(
|
||||
logger.WithLevel(cfg.SlogLevel()),
|
||||
logger.WithFormat(cfg.LoggerFormat()),
|
||||
)
|
||||
slog.SetDefault(log)
|
||||
|
||||
if err := run(cfg, log); err != nil {
|
||||
log.Error("shutdown with error", slog.Any("error", err))
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
func run(cfg config.Config, log *slog.Logger) error {
|
||||
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
|
||||
defer stop()
|
||||
|
||||
store, err := postgres.New(ctx, cfg.Postgres, time.Duration(cfg.Idempotency.TTLSeconds)*time.Second)
|
||||
if err != nil {
|
||||
return fmt.Errorf("connect database: %w", err)
|
||||
}
|
||||
|
||||
defer store.Close()
|
||||
|
||||
redisCache, err := connectRedis(cfg.Redis)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
defer func() { _ = redisCache.Close() }()
|
||||
|
||||
sessionRepo := session.Repository(store.Sessions())
|
||||
chatRepo := chat.Repository(store.Chats())
|
||||
|
||||
pingers := []health.Pinger{store}
|
||||
|
||||
if cfg.Redis.Enabled {
|
||||
if cfg.Cache.Enabled {
|
||||
distributed, err := cache.NewDistributed(redisCache, cache.DistributedConfig{
|
||||
LockTTL: cfg.Cache.LockTTL,
|
||||
WaitTimeout: cfg.Cache.LockWaitTimeout,
|
||||
}, log)
|
||||
if err != nil {
|
||||
return fmt.Errorf("build distributed cache: %w", err)
|
||||
}
|
||||
|
||||
chatRepo = storageredis.NewChatRepository(
|
||||
store.Chats(),
|
||||
distributed,
|
||||
cfg.Cache.ChatListTTL,
|
||||
log,
|
||||
)
|
||||
}
|
||||
|
||||
log.Info("redis cache enabled", slog.String("host", cfg.Redis.Host), slog.Int("port", cfg.Redis.Port))
|
||||
}
|
||||
|
||||
ttl := time.Duration(cfg.Session.TTLSeconds) * time.Second
|
||||
sessionService := session.NewService(sessionRepo, token.New(), ttl)
|
||||
|
||||
router, err := rest.NewRouter(
|
||||
rest.NewHandler(
|
||||
user.NewService(store.Users()),
|
||||
chat.NewService(chatRepo),
|
||||
message.NewService(store.Messages()),
|
||||
health.New(pingers...),
|
||||
sessionService,
|
||||
),
|
||||
rest.NewSecurityHandler(sessionService),
|
||||
log,
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("build router: %w", err)
|
||||
}
|
||||
|
||||
server := &http.Server{
|
||||
Addr: cfg.Addr(),
|
||||
Handler: router,
|
||||
ReadHeaderTimeout: cfg.Server.ReadHeaderTimeout,
|
||||
}
|
||||
|
||||
errc := make(chan error, 1)
|
||||
|
||||
go func() {
|
||||
log.Info("server started", slog.String("addr", cfg.Addr()))
|
||||
|
||||
if err := server.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) {
|
||||
errc <- err
|
||||
}
|
||||
|
||||
close(errc)
|
||||
}()
|
||||
|
||||
select {
|
||||
case err, ok := <-errc:
|
||||
if ok && err != nil {
|
||||
return fmt.Errorf("listen: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
case <-ctx.Done():
|
||||
}
|
||||
|
||||
log.Info("shutdown signal received", slog.Duration("timeout", cfg.Server.ShutdownTimeout))
|
||||
|
||||
shutdownCtx, cancel := context.WithTimeout(context.Background(), cfg.Server.ShutdownTimeout)
|
||||
defer cancel()
|
||||
|
||||
if err := server.Shutdown(shutdownCtx); err != nil {
|
||||
return fmt.Errorf("shutdown: %w", err)
|
||||
}
|
||||
|
||||
log.Info("server stopped")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func connectRedis(cfg config.Redis) (cache.LockStore, error) {
|
||||
if !cfg.Enabled {
|
||||
return cache.NoOpCache{}, nil
|
||||
}
|
||||
|
||||
client, err := cache.NewRedis(cache.RedisConfig{
|
||||
Host: cfg.Host,
|
||||
Port: cfg.Port,
|
||||
Password: cfg.Password,
|
||||
DB: cfg.DB,
|
||||
MaxRetries: cfg.MaxRetries,
|
||||
DialTimeout: cfg.DialTimeout,
|
||||
ReadTimeout: cfg.ReadTimeout,
|
||||
WriteTimeout: cfg.WriteTimeout,
|
||||
PoolSize: cfg.PoolSize,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("connect redis: %w", err)
|
||||
}
|
||||
|
||||
return client, nil
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"os"
|
||||
|
||||
"github.com/pressly/goose/v3"
|
||||
|
||||
"mtusi-messenger/internal/config"
|
||||
"mtusi-messenger/internal/logger"
|
||||
"mtusi-messenger/internal/storage/postgres/migrations"
|
||||
|
||||
_ "github.com/jackc/pgx/v5/stdlib"
|
||||
)
|
||||
|
||||
func main() {
|
||||
log := logger.New()
|
||||
|
||||
if err := run(os.Args[1:]); err != nil {
|
||||
log.Error("migrate failed", slog.Any("error", err))
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
func run(args []string) error {
|
||||
cfg, err := config.Load()
|
||||
if err != nil {
|
||||
return fmt.Errorf("load config: %w", err)
|
||||
}
|
||||
|
||||
slog.SetDefault(logger.New(
|
||||
logger.WithLevel(cfg.SlogLevel()),
|
||||
logger.WithFormat(cfg.LoggerFormat()),
|
||||
))
|
||||
|
||||
command := "up"
|
||||
if len(args) > 0 {
|
||||
command = args[0]
|
||||
}
|
||||
|
||||
db, err := sql.Open("pgx", cfg.Postgres.DSN())
|
||||
if err != nil {
|
||||
return fmt.Errorf("open database: %w", err)
|
||||
}
|
||||
|
||||
defer func() { _ = db.Close() }()
|
||||
|
||||
pingCtx, cancel := context.WithTimeout(context.Background(), cfg.Postgres.ConnectTimeout)
|
||||
defer cancel()
|
||||
|
||||
if err := db.PingContext(pingCtx); err != nil {
|
||||
return fmt.Errorf("ping database: %w", err)
|
||||
}
|
||||
|
||||
goose.SetBaseFS(migrations.FS)
|
||||
|
||||
if err := goose.SetDialect("postgres"); err != nil {
|
||||
return fmt.Errorf("set dialect: %w", err)
|
||||
}
|
||||
|
||||
if err := goCommand(db, command); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func goCommand(db *sql.DB, command string) error {
|
||||
switch command {
|
||||
case "up":
|
||||
return goose.Up(db, ".")
|
||||
case "up-by-one":
|
||||
return goose.UpByOne(db, ".")
|
||||
case "down":
|
||||
return goose.Down(db, ".")
|
||||
case "status":
|
||||
return goose.Status(db, ".")
|
||||
case "version":
|
||||
return goose.Version(db, ".")
|
||||
case "redo":
|
||||
return goose.Redo(db, ".")
|
||||
default:
|
||||
return errors.New("unknown command: " + command + " (up, up-by-one, down, status, version, redo)")
|
||||
}
|
||||
}
|
||||
+167
@@ -0,0 +1,167 @@
|
||||
# Lab3 stand: two API replicas behind an nginx load balancer.
|
||||
#
|
||||
# cp -n .env.example .env
|
||||
# docker compose --env-file .env up -d --build
|
||||
# curl http://localhost:8080/health/ready
|
||||
#
|
||||
# Only the load balancer is published (127.0.0.1). Stores and API replicas are
|
||||
# reachable from the host via `docker compose exec` / `docker compose logs`.
|
||||
# No container_name anywhere: replica hostnames stay the short container IDs,
|
||||
# which the application reports back as X-Instance-Id.
|
||||
name: mtusi-messenger-lab3
|
||||
|
||||
x-app: &app
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: mtusi-messenger:lab3
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER:-messenger}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger}
|
||||
POSTGRES_DB: ${POSTGRES_DB:-messenger}
|
||||
volumes:
|
||||
- postgres18-data:/var/lib/postgresql
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 5s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
# Saturation point of the stand (see REPORT.md, track 1): the database
|
||||
# runs at its quota while API replicas idle. Raise this knob to give the
|
||||
# shared dependency more of the host CPU.
|
||||
cpus: "${POSTGRES_CPU_LIMIT:-0.50}"
|
||||
memory: 384M
|
||||
restart: unless-stopped
|
||||
|
||||
redis:
|
||||
image: redis:7.4-alpine
|
||||
command:
|
||||
- redis-server
|
||||
- --appendonly
|
||||
- "yes"
|
||||
- --appendfsync
|
||||
- everysec
|
||||
- --save
|
||||
- "60"
|
||||
- "1"
|
||||
volumes:
|
||||
- redis7-data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
start_period: 3s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.25"
|
||||
memory: 192M
|
||||
restart: unless-stopped
|
||||
|
||||
# One-shot schema bootstrap; runs once to completion before any API replica.
|
||||
migrate:
|
||||
<<: *app
|
||||
entrypoint: ["/usr/local/bin/migrate"]
|
||||
command: ["up"]
|
||||
environment:
|
||||
APP_CONFIG: /etc/messenger/dev/config.yaml
|
||||
POSTGRES_HOST: postgres
|
||||
POSTGRES_PORT: "5432"
|
||||
POSTGRES_DATABASE: ${POSTGRES_DB:-messenger}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-messenger}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger}
|
||||
POSTGRES_SSL_MODE: disable
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.50"
|
||||
memory: 256M
|
||||
restart: "no"
|
||||
|
||||
api:
|
||||
<<: *app
|
||||
# Общий сетевой alias: LB резолвит одно имя в адреса всех реплик, поэтому
|
||||
# масштабирование и замена контейнеров не зависят от их номеров/ID.
|
||||
networks:
|
||||
default:
|
||||
aliases:
|
||||
- api-replica
|
||||
env_file:
|
||||
- path: .env
|
||||
required: false
|
||||
# Explicit values win over localhost defaults coming from .env (see .env.example).
|
||||
environment:
|
||||
APP_CONFIG: /etc/messenger/dev/config.yaml
|
||||
POSTGRES_HOST: postgres
|
||||
POSTGRES_PORT: "5432"
|
||||
POSTGRES_DATABASE: ${POSTGRES_DB:-messenger}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-messenger}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger}
|
||||
POSTGRES_SSL_MODE: disable
|
||||
REDIS_ENABLED: "true"
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: "6379"
|
||||
CACHE_ENABLED: "true"
|
||||
# Размер пула соединений ОДНОЙ реплики; общий расход = реплики × значение.
|
||||
# Это один из общих ресурсов, который масштабирование расходует первым.
|
||||
POSTGRES_MAX_CONNS: "${POSTGRES_MAX_CONNS:-10}"
|
||||
deploy:
|
||||
replicas: ${API_REPLICAS:-2}
|
||||
resources:
|
||||
limits:
|
||||
cpus: "${API_CPU_LIMIT:-0.50}"
|
||||
memory: ${API_MEM_LIMIT:-256M}
|
||||
# The app drains on SIGTERM within SERVER_SHUTDOWN_TIMEOUT; keep the grace
|
||||
# period above it so Docker does not SIGKILL an in-flight request.
|
||||
stop_grace_period: 15s
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/health/ready"]
|
||||
interval: 10s
|
||||
# Готовность проверяет ещё и БД/кэш: под насыщающей нагрузкой ответ может
|
||||
# подойти к секундам, и слишком строгий таймаут помечает занятую, но
|
||||
# работающую реплику как unhealthy.
|
||||
timeout: 5s
|
||||
retries: 6
|
||||
start_period: 5s
|
||||
restart: unless-stopped
|
||||
|
||||
# Public entry point. Fault-tolerant fan-out to both API replicas:
|
||||
# infra/lb/nginx.conf holds the upstream, passive health checks and retries.
|
||||
lb:
|
||||
image: nginx:1.29-alpine
|
||||
volumes:
|
||||
- ./infra/lb/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
ports:
|
||||
- "127.0.0.1:${SERVER_PORT:-8080}:80"
|
||||
depends_on:
|
||||
api:
|
||||
condition: service_healthy
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.25"
|
||||
memory: 64M
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
postgres18-data:
|
||||
redis7-data:
|
||||
@@ -0,0 +1,51 @@
|
||||
env: dev
|
||||
|
||||
server:
|
||||
host: 0.0.0.0
|
||||
port: 8080
|
||||
read_header_timeout: 10s
|
||||
shutdown_timeout: 10s
|
||||
|
||||
log:
|
||||
level: info
|
||||
format: json
|
||||
|
||||
postgres:
|
||||
host: localhost
|
||||
port: 5432
|
||||
database: messenger
|
||||
user: messenger
|
||||
# Dev default for a local run without environment overrides; POSTGRES_PASSWORD wins.
|
||||
password: messenger
|
||||
ssl_mode: disable
|
||||
max_conns: 10
|
||||
min_conns: 1
|
||||
max_conn_lifetime: 1h
|
||||
max_conn_idle_time: 30m
|
||||
connect_timeout: 5s
|
||||
query_timeout: 5s
|
||||
|
||||
redis:
|
||||
enabled: true
|
||||
host: localhost
|
||||
port: 6379
|
||||
db: 0
|
||||
# -1 disables go-redis retries; 0 keeps the library default (3 retries).
|
||||
max_retries: -1
|
||||
dial_timeout: 300ms
|
||||
read_timeout: 200ms
|
||||
write_timeout: 200ms
|
||||
pool_size: 10
|
||||
|
||||
cache:
|
||||
enabled: true
|
||||
chat_list_ttl: 5m
|
||||
lock_ttl: 10s
|
||||
lock_wait_timeout: 2s
|
||||
|
||||
session:
|
||||
ttl_seconds: 3600
|
||||
|
||||
# Retention of a message Idempotency-Key; contract 1.3.0 requires ≥ 24 h.
|
||||
idempotency:
|
||||
ttl_seconds: 86400
|
||||
@@ -0,0 +1,104 @@
|
||||
name: mtusi-messenger-lab2
|
||||
|
||||
x-app: &app
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: mtusi-messenger:lab2
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER:-messenger}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger}
|
||||
POSTGRES_DB: ${POSTGRES_DB:-messenger}
|
||||
ports:
|
||||
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
|
||||
volumes:
|
||||
- postgres18-data:/var/lib/postgresql
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 5s
|
||||
restart: unless-stopped
|
||||
redis:
|
||||
image: redis:7.4-alpine
|
||||
command:
|
||||
- redis-server
|
||||
- --appendonly
|
||||
- "yes"
|
||||
- --appendfsync
|
||||
- everysec
|
||||
- --save
|
||||
- "60"
|
||||
- "1"
|
||||
ports:
|
||||
- "127.0.0.1:${REDIS_PORT:-6379}:6379"
|
||||
volumes:
|
||||
- redis7-data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
start_period: 3s
|
||||
restart: unless-stopped
|
||||
migrate:
|
||||
<<: *app
|
||||
entrypoint: ["/usr/local/bin/migrate"]
|
||||
command: ["up"]
|
||||
environment:
|
||||
APP_CONFIG: /etc/messenger/dev/config.yaml
|
||||
POSTGRES_HOST: postgres
|
||||
POSTGRES_PORT: "5432"
|
||||
POSTGRES_DATABASE: ${POSTGRES_DB:-messenger}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-messenger}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger}
|
||||
POSTGRES_SSL_MODE: disable
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
restart: "no"
|
||||
|
||||
api:
|
||||
<<: *app
|
||||
env_file:
|
||||
- path: .env
|
||||
required: false
|
||||
environment:
|
||||
APP_CONFIG: /etc/messenger/dev/config.yaml
|
||||
POSTGRES_HOST: postgres
|
||||
POSTGRES_PORT: "5432"
|
||||
POSTGRES_DATABASE: ${POSTGRES_DB:-messenger}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-messenger}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger}
|
||||
POSTGRES_SSL_MODE: disable
|
||||
REDIS_ENABLED: "${REDIS_ENABLED:-true}"
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: "6379"
|
||||
CACHE_ENABLED: "${CACHE_ENABLED:-true}"
|
||||
ports:
|
||||
- "127.0.0.1:${SERVER_PORT:-8080}:8080"
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/health/ready"]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
start_period: 5s
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
postgres18-data:
|
||||
name: mtusi-messenger-lab2-postgres18-data
|
||||
redis7-data:
|
||||
name: mtusi-messenger-lab2-redis7-data
|
||||
@@ -0,0 +1,7 @@
|
||||
# Architecture of the app binary inside the image
|
||||
# generated: 2026-10-15T19:03:01Z
|
||||
|
||||
## emulated build (--build-arg TARGETARCH=amd64): e_machine 3e = x86-64
|
||||
02 00 3e 00
|
||||
## fixed build (no TARGETARCH default): e_machine b7 = aarch64
|
||||
02 00 b7 00
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
# API cache performance experiment
|
||||
# generated: 2026-10-09T21:41:31Z
|
||||
running trial 1, cache=False, requests=1000
|
||||
{"requests": 1000, "workers": 8, "duration_seconds": 0.455918375053443, "rps": 2193.375074831716, "p50_ms": 3.3378750667907298, "p95_ms": 5.237665958702564, "p99_ms": 7.377958972938359, "trial": 1, "cache_enabled": false}
|
||||
running trial 1, cache=True, requests=1000
|
||||
{"requests": 1000, "workers": 8, "duration_seconds": 0.424924207967706, "rps": 2353.360861182094, "p50_ms": 3.075250016991049, "p95_ms": 5.355541012249887, "p99_ms": 6.619499996304512, "trial": 1, "cache_enabled": true}
|
||||
running trial 2, cache=False, requests=1000
|
||||
{"requests": 1000, "workers": 8, "duration_seconds": 0.5072490000165999, "rps": 1971.4183763147382, "p50_ms": 3.680104040540755, "p95_ms": 6.2174160266295075, "p99_ms": 8.554207975976169, "trial": 2, "cache_enabled": false}
|
||||
running trial 2, cache=True, requests=1000
|
||||
{"requests": 1000, "workers": 8, "duration_seconds": 0.4116047500865534, "rps": 2429.51520795063, "p50_ms": 2.9188335174694657, "p95_ms": 5.480541964061558, "p99_ms": 7.245125016197562, "trial": 2, "cache_enabled": true}
|
||||
{"results": [{"requests": 1000, "workers": 8, "duration_seconds": 0.455918375053443, "rps": 2193.375074831716, "p50_ms": 3.3378750667907298, "p95_ms": 5.237665958702564, "p99_ms": 7.377958972938359, "trial": 1, "cache_enabled": false}, {"requests": 1000, "workers": 8, "duration_seconds": 0.424924207967706, "rps": 2353.360861182094, "p50_ms": 3.075250016991049, "p95_ms": 5.355541012249887, "p99_ms": 6.619499996304512, "trial": 1, "cache_enabled": true}, {"requests": 1000, "workers": 8, "duration_seconds": 0.5072490000165999, "rps": 1971.4183763147382, "p50_ms": 3.680104040540755, "p95_ms": 6.2174160266295075, "p99_ms": 8.554207975976169, "trial": 2, "cache_enabled": false}, {"requests": 1000, "workers": 8, "duration_seconds": 0.4116047500865534, "rps": 2429.51520795063, "p50_ms": 2.9188335174694657, "p95_ms": 5.480541964061558, "p99_ms": 7.245125016197562, "trial": 2, "cache_enabled": true}], "users": 4, "chats": 60, "sessions_cached_in_both_modes": true}
|
||||
Vendored
+36
@@ -0,0 +1,36 @@
|
||||
# Cache consistency evidence (track 1)
|
||||
# generated: 2026-10-09T21:38:43Z
|
||||
# redis: localhost:6379 db=1
|
||||
|
||||
=== RUN TestChatRepositorySuite
|
||||
=== RUN TestChatRepositorySuite/TestBrokenCacheEntryIsDroppedAndRepopulated
|
||||
=== RUN TestChatRepositorySuite/TestCacheUnavailableFallsBackToSource
|
||||
=== RUN TestChatRepositorySuite/TestConcurrentColdReadsAreDeduplicated
|
||||
chat_repository_test.go:226: distributed lock: 100 concurrent cold reads -> 1 source load
|
||||
=== RUN TestChatRepositorySuite/TestConcurrentColdReadsWithoutProtectionStampede
|
||||
chat_repository_test.go:427: stampede demonstration: 100 concurrent reads -> 100 source loads
|
||||
=== RUN TestChatRepositorySuite/TestCreateInvalidatesMemberCaches
|
||||
=== RUN TestChatRepositorySuite/TestDeeperPagesBypassCache
|
||||
=== RUN TestChatRepositorySuite/TestEvictedCacheEntryReloadsFromSource
|
||||
=== RUN TestChatRepositorySuite/TestFirstPageIsCached
|
||||
=== RUN TestChatRepositorySuite/TestLimitIsPartOfCacheKey
|
||||
=== RUN TestChatRepositorySuite/TestMultipleInstancesShareDistributedLock
|
||||
chat_repository_test.go:276: multi-instance distributed lock: 3 instances x 30 reads -> 1 source load
|
||||
=== RUN TestChatRepositorySuite/TestSlowLoaderBeyondCacheBudgetReturnsData
|
||||
=== RUN TestChatRepositorySuite/TestSourceErrorIsNotRetried
|
||||
--- PASS: TestChatRepositorySuite (0.83s)
|
||||
--- PASS: TestChatRepositorySuite/TestBrokenCacheEntryIsDroppedAndRepopulated (0.00s)
|
||||
--- PASS: TestChatRepositorySuite/TestCacheUnavailableFallsBackToSource (0.00s)
|
||||
--- PASS: TestChatRepositorySuite/TestConcurrentColdReadsAreDeduplicated (0.03s)
|
||||
--- PASS: TestChatRepositorySuite/TestConcurrentColdReadsWithoutProtectionStampede (0.02s)
|
||||
--- PASS: TestChatRepositorySuite/TestCreateInvalidatesMemberCaches (0.01s)
|
||||
--- PASS: TestChatRepositorySuite/TestDeeperPagesBypassCache (0.00s)
|
||||
--- PASS: TestChatRepositorySuite/TestEvictedCacheEntryReloadsFromSource (0.00s)
|
||||
--- PASS: TestChatRepositorySuite/TestFirstPageIsCached (0.00s)
|
||||
--- PASS: TestChatRepositorySuite/TestLimitIsPartOfCacheKey (0.00s)
|
||||
--- PASS: TestChatRepositorySuite/TestMultipleInstancesShareDistributedLock (0.05s)
|
||||
--- PASS: TestChatRepositorySuite/TestSlowLoaderBeyondCacheBudgetReturnsData (0.70s)
|
||||
--- PASS: TestChatRepositorySuite/TestSourceErrorIsNotRetried (0.00s)
|
||||
PASS
|
||||
ok mtusi-messenger/internal/storage/redis 1.338s
|
||||
? mtusi-messenger/internal/storage/redis/mocks [no test files]
|
||||
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
# Cache latency experiment
|
||||
# generated: 2026-10-06T15:53:09Z
|
||||
go version go1.27.1 darwin/arm64
|
||||
Darwin arm64
|
||||
2026/10/06 18:53:10 OK 00001_init.sql (10.27ms)
|
||||
2026/10/06 18:53:10 goose: successfully migrated database to version: 1
|
||||
=== RUN TestCacheLatencyExperiment
|
||||
cache_latency_experiment_test.go:83: baseline: requests=1000 source_loads=1000 p50=317.209µs p95=343.542µs p99=377.625µs
|
||||
cache_latency_experiment_test.go:84: redis cache: requests=1000 source_loads=1 p50=411.791µs p95=527.709µs p99=565.625µs
|
||||
--- PASS: TestCacheLatencyExperiment (0.97s)
|
||||
=== RUN TestCacheLatencyExperiment
|
||||
cache_latency_experiment_test.go:83: baseline: requests=1000 source_loads=1000 p50=271.125µs p95=330.584µs p99=389.209µs
|
||||
cache_latency_experiment_test.go:84: redis cache: requests=1000 source_loads=1 p50=388µs p95=453.959µs p99=512.625µs
|
||||
--- PASS: TestCacheLatencyExperiment (0.86s)
|
||||
=== RUN TestCacheLatencyExperiment
|
||||
cache_latency_experiment_test.go:83: baseline: requests=1000 source_loads=1000 p50=268.541µs p95=318.417µs p99=367.083µs
|
||||
cache_latency_experiment_test.go:84: redis cache: requests=1000 source_loads=1 p50=408.833µs p95=473.125µs p99=541.042µs
|
||||
--- PASS: TestCacheLatencyExperiment (0.88s)
|
||||
PASS
|
||||
ok mtusi-messenger/internal/storage/postgres 3.097s
|
||||
? mtusi-messenger/internal/storage/postgres/internal/sqlcgen [no test files]
|
||||
? mtusi-messenger/internal/storage/postgres/migrations [no test files]
|
||||
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
# Cache performance experiment
|
||||
# generated: 2026-10-09T21:41:14Z
|
||||
go version go1.27.1 darwin/arm64
|
||||
Darwin arm64
|
||||
2026/10/10 00:41:15 OK 00001_init.sql (10.03ms)
|
||||
2026/10/10 00:41:15 OK 00002_user_chat_versions.sql (2.17ms)
|
||||
2026/10/10 00:41:15 goose: successfully migrated database to version: 2
|
||||
=== RUN TestCachePerformanceExperiment
|
||||
cache_performance_experiment_test.go:115: baseline (no cache): requests=10000 concurrency=50 sql=10000 duration=1.528s rps=6542 p50=7.490875ms p95=9.302792ms p99=10.779ms
|
||||
cache_performance_experiment_test.go:116: redis cache (cold): requests=10000 concurrency=50 sql=1 duration=851ms rps=11749 p50=4.192709ms p95=5.318916ms p99=5.905625ms
|
||||
cache_performance_experiment_test.go:117: redis cache (hot): requests=10000 concurrency=50 sql=0 duration=751ms rps=13320 p50=3.670958ms p95=4.644958ms p99=5.21475ms
|
||||
--- PASS: TestCachePerformanceExperiment (3.50s)
|
||||
=== RUN TestCachePerformanceExperiment
|
||||
cache_performance_experiment_test.go:115: baseline (no cache): requests=10000 concurrency=50 sql=10000 duration=1.415s rps=7066 p50=6.901958ms p95=8.697666ms p99=10.560416ms
|
||||
cache_performance_experiment_test.go:116: redis cache (cold): requests=10000 concurrency=50 sql=1 duration=846ms rps=11815 p50=4.033083ms p95=6.0305ms p99=6.963417ms
|
||||
cache_performance_experiment_test.go:117: redis cache (hot): requests=10000 concurrency=50 sql=0 duration=817ms rps=12234 p50=3.999959ms p95=5.060959ms p99=5.802042ms
|
||||
--- PASS: TestCachePerformanceExperiment (3.39s)
|
||||
=== RUN TestCachePerformanceExperiment
|
||||
cache_performance_experiment_test.go:115: baseline (no cache): requests=10000 concurrency=50 sql=10000 duration=1.511s rps=6618 p50=7.302667ms p95=9.420708ms p99=12.437917ms
|
||||
cache_performance_experiment_test.go:116: redis cache (cold): requests=10000 concurrency=50 sql=1 duration=827ms rps=12093 p50=3.984125ms p95=5.655167ms p99=6.8085ms
|
||||
cache_performance_experiment_test.go:117: redis cache (hot): requests=10000 concurrency=50 sql=0 duration=817ms rps=12247 p50=3.946959ms p95=5.363208ms p99=6.508458ms
|
||||
--- PASS: TestCachePerformanceExperiment (3.55s)
|
||||
PASS
|
||||
ok mtusi-messenger/internal/storage/postgres 10.978s
|
||||
? mtusi-messenger/internal/storage/postgres/internal/sqlcgen [no test files]
|
||||
? mtusi-messenger/internal/storage/postgres/migrations [no test files]
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
baseline: 6ms
|
||||
after stop: 476ms
|
||||
stop: n=1 max=476ms p95=476ms budget=2000ms
|
||||
pause parallel: n=30 max=215ms p95=214ms budget=2000ms
|
||||
create during pause: 201
|
||||
after recovery: new chat visible, 5ms
|
||||
lock keys without TTL: 0
|
||||
PASS: redis outage handled within budget
|
||||
@@ -0,0 +1,3 @@
|
||||
$ make check
|
||||
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,2 @@
|
||||
command: docker run + Python ThreadPoolExecutor(10), 100 POST messages
|
||||
{"sent": 100, "read": 100, "unique": 100}
|
||||
@@ -0,0 +1,11 @@
|
||||
$ docker inspect --format ...
|
||||
status=running health=healthy user=10001:10001
|
||||
$ curl -i http://127.0.0.1:8080/health/live
|
||||
HTTP/1.1 200 OK
|
||||
Access-Control-Expose-Headers: X-Request-Id
|
||||
Content-Type: application/json; charset=utf-8
|
||||
X-Request-Id: 3d145e7d-423a-4510-9d6b-6f45b7cf552d
|
||||
Date: Thu, 24 Sep 2026 20:13:14 GMT
|
||||
Content-Length: 15
|
||||
|
||||
{"status":"ok"}
|
||||
@@ -0,0 +1,4 @@
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8080"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 117, "failed_attempts": 0, "first_recovery_seconds": 1.226}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,4 @@
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8080"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 126, "failed_attempts": 0, "first_recovery_seconds": 0.217}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"before": {
|
||||
"instances": [
|
||||
"20055d51b1e6",
|
||||
"d106ca21a29a"
|
||||
]
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"stopped": "20055d51b1e6",
|
||||
"stopped_container": "stop-one.sh: stopped api replica(s): mtusi-messenger-lab3-api-2",
|
||||
"hook_returncode": 0,
|
||||
"hook_seconds": 0.199,
|
||||
"hook_error": "",
|
||||
"successful_writes": 126,
|
||||
"failed_attempts": 0,
|
||||
"uncertain_retries": 0,
|
||||
"first_recovery_seconds": 1.761,
|
||||
"instances_after_recovery": [
|
||||
"d106ca21a29a"
|
||||
],
|
||||
"messages_in_history": 126,
|
||||
"restored_seconds": 0.233,
|
||||
"instances_restored": [
|
||||
"20055d51b1e6",
|
||||
"d106ca21a29a"
|
||||
]
|
||||
},
|
||||
{
|
||||
"stopped": "d106ca21a29a",
|
||||
"stopped_container": "stop-one.sh: stopped api replica(s): mtusi-messenger-lab3-api-1",
|
||||
"hook_returncode": 0,
|
||||
"hook_seconds": 0.208,
|
||||
"hook_error": "",
|
||||
"successful_writes": 90,
|
||||
"failed_attempts": 10,
|
||||
"uncertain_retries": 10,
|
||||
"first_recovery_seconds": 5.726,
|
||||
"instances_after_recovery": [
|
||||
"20055d51b1e6"
|
||||
],
|
||||
"messages_in_history": 216,
|
||||
"restored_seconds": 0.232,
|
||||
"instances_restored": [
|
||||
"20055d51b1e6",
|
||||
"d106ca21a29a"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
PASS: каждая реплика остановлена по очереди; записи продолжились, дублей и потерь нет
|
||||
@@ -0,0 +1 @@
|
||||
{"status":"ok"}
|
||||
@@ -0,0 +1,3 @@
|
||||
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 student-tests/idempotency_parallel.py --base-url "http://localhost:8080"
|
||||
{"replay": {"workers": 12, "instances": ["20055d51b1e6", "d106ca21a29a"], "message_id": "01a140fc-fa48-771d-9823-99bb391f3131"}, "conflict": {"workers": 12, "accepted": 1, "conflicts": 11}, "stable_body": {"message_id": "01a140fc-fa6e-7f7a-8baf-f1724ee44c85"}, "key_required": {"status": 400}}
|
||||
PASS: параллельный повтор с одним Idempotency-Key создаёт ровно одно сообщение
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 102 KiB |
@@ -0,0 +1,8 @@
|
||||
$ python3 scripts/memory_experiment.py --image mtusi2026lab1-messenger:arm64 --memory 64m --max-messages 20000 --output evidence/memory-experiment.json --plot evidence/memory-experiment.png
|
||||
memory_limit=64m
|
||||
successful_messages=8610
|
||||
failed_requests=0
|
||||
OOMKilled=true
|
||||
exit_code=137
|
||||
failure_time_seconds=5.9315
|
||||
plot=evidence/memory-experiment.png
|
||||
@@ -0,0 +1,3 @@
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8080"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,64 @@
|
||||
# EXPLAIN (ANALYZE, BUFFERS)
|
||||
|
||||
## history_first_page
|
||||
|
||||
Limit (cost=0.29..5.40 rows=51 width=73) (actual time=0.007..0.012 rows=51.00 loops=1)
|
||||
Buffers: shared hit=4
|
||||
-> Index Scan using messages_chat_id_created_at_id_idx on messages (cost=0.29..1002.85 rows=10000 width=73) (actual time=0.006..0.009 rows=51.00 loops=1)
|
||||
Index Cond: (chat_id = '01a0f77e-9381-736f-9a2b-af3b1e1e87fd'::uuid)
|
||||
Index Searches: 1
|
||||
Buffers: shared hit=4
|
||||
Planning:
|
||||
Buffers: shared hit=44
|
||||
Planning Time: 0.147 ms
|
||||
Execution Time: 0.019 ms
|
||||
|
||||
## history_next_page
|
||||
|
||||
Limit (cost=0.29..7.71 rows=51 width=73) (actual time=0.004..0.010 rows=51.00 loops=1)
|
||||
Buffers: shared hit=4
|
||||
-> Index Scan using messages_chat_id_created_at_id_idx on messages (cost=0.29..524.01 rows=3599 width=73) (actual time=0.004..0.008 rows=51.00 loops=1)
|
||||
Index Cond: ((chat_id = '01a0f77e-9381-736f-9a2b-af3b1e1e87fd'::uuid) AND (ROW(created_at, id) > ROW('2026-10-01 11:44:23.146682+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))
|
||||
Index Searches: 1
|
||||
Buffers: shared hit=4
|
||||
Planning Time: 0.021 ms
|
||||
Execution Time: 0.027 ms
|
||||
|
||||
## chats_list_for_member
|
||||
|
||||
Limit (cost=0.57..446.14 rows=51 width=70) (actual time=0.018..0.081 rows=51.00 loops=1)
|
||||
Buffers: shared hit=309
|
||||
-> Nested Loop (cost=0.57..87375.78 rows=10001 width=70) (actual time=0.018..0.079 rows=51.00 loops=1)
|
||||
Buffers: shared hit=309
|
||||
-> Index Scan using chats_created_at_id_idx on chats c (cost=0.29..554.24 rows=10001 width=38) (actual time=0.004..0.007 rows=51.00 loops=1)
|
||||
Index Searches: 1
|
||||
Buffers: shared hit=3
|
||||
-> Index Only Scan using chat_members_user_id_chat_id_idx on chat_members visible (cost=0.29..0.36 rows=1 width=16) (actual time=0.001..0.001 rows=1.00 loops=51)
|
||||
Index Cond: ((user_id = '01a0f77e-937a-7d1e-aacb-8909b9a65779'::uuid) AND (chat_id = c.id))
|
||||
Heap Fetches: 51
|
||||
Index Searches: 51
|
||||
Buffers: shared hit=153
|
||||
SubPlan 1
|
||||
-> Aggregate (cost=8.31..8.32 rows=1 width=32) (actual time=0.001..0.001 rows=1.00 loops=51)
|
||||
Buffers: shared hit=153
|
||||
-> Index Only Scan using chat_members_pkey on chat_members m (cost=0.29..8.30 rows=1 width=16) (actual time=0.000..0.000 rows=1.00 loops=51)
|
||||
Index Cond: (chat_id = c.id)
|
||||
Heap Fetches: 51
|
||||
Index Searches: 51
|
||||
Buffers: shared hit=153
|
||||
Planning:
|
||||
Buffers: shared hit=95
|
||||
Planning Time: 0.250 ms
|
||||
Execution Time: 0.098 ms
|
||||
|
||||
## user_by_username
|
||||
|
||||
Index Scan using users_username_key on users (cost=0.29..8.30 rows=1 width=42) (actual time=0.005..0.005 rows=1.00 loops=1)
|
||||
Index Cond: (username = 'bulk_5000'::text)
|
||||
Index Searches: 1
|
||||
Buffers: shared hit=3
|
||||
Planning:
|
||||
Buffers: shared hit=43
|
||||
Planning Time: 0.085 ms
|
||||
Execution Time: 0.008 ms
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
$ make check
|
||||
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
|
||||
$ go vet ./...
|
||||
|
||||
$ make lint
|
||||
/Users/vladislav/Projects/mtusi2026lab1-fork/bin/golangci-lint run -v
|
||||
level=info msg="golangci-lint has version 2.13.2 built with go1.27.0 from (unknown, modified: ?, mod sum: \"h1:bCyq3E4vo9qwzifjpzJqYndEt7Ncva80qkk8G2B4TXU=\") on (unknown)"
|
||||
level=info msg="[config_reader] Config search paths: [./ /Users/vladislav/Projects/mtusi2026lab1-fork /Users/vladislav/Projects /Users/vladislav /Users /]"
|
||||
level=info msg="[config_reader] Used config file .golangci.yml"
|
||||
level=info msg="[config_reader] Module name \"mtusi-messenger\""
|
||||
level=info msg="[goenv] Read go env for 5.97475ms: map[string]string{\"GOCACHE\":\"/Users/vladislav/Library/Caches/go-build\", \"GOROOT\":\"/opt/homebrew/Cellar/go/1.27.1/libexec\"}"
|
||||
level=info msg="[lintersdb] Active 50 linters: [asasalint bodyclose canonicalheader containedctx contextcheck copyloopvar depguard durationcheck errcheck errname errorlint exhaustive exptostd fatcontext forbidigo forcetypeassert gocheckcompilerdirectives gocritic gofumpt goimports gomoddirectives gosec govet ineffassign intrange makezero misspell musttag nilerr nilnil noctx nolintlint perfsprint prealloc reassign recvcheck revive rowserrcheck sloglint sqlclosecheck staticcheck testifylint thelper tparallel unconvert unparam unused usestdlibvars usetesting wastedassign]"
|
||||
level=info msg="[loader] Using build tags: [integration]"
|
||||
level=info msg="[loader] Go packages loading at mode 8767 (compiled_files|files|name|types_sizes|deps|exports_file|imports) took 122.006042ms"
|
||||
level=info msg="[runner/filename_unadjuster] Pre-built 0 adjustments in 4.792166ms"
|
||||
level=info msg="[linters_context/goanalysis] analyzers took 0s with no stages"
|
||||
level=info msg="[runner/exclusion_rules] Skipped 2 issues by rules: [Path: \"_test\\\\.go\", Linters: \"gosec, prealloc, forcetypeassert, unparam\"]"
|
||||
level=info msg="[runner] Issues before processing: 280, after processing: 0"
|
||||
level=info msg="[runner] Processors filtering stat (in/out): exclusion_paths: 280/280, invalid_issue: 280/280, path_absoluter: 280/280, filename_unadjuster: 280/280, generated_file_filter: 280/100, exclusion_rules: 100/0, cgo: 280/280, path_relativity: 280/280"
|
||||
level=info msg="[runner] processing took 607.916µs with stages: generated_file_filter: 420.959µs, exclusion_rules: 86.124µs, path_relativity: 83.917µs, sort_results: 4.458µs, invalid_issue: 4.292µs, cgo: 3.959µs, path_absoluter: 1.417µs, filename_unadjuster: 792ns, max_same_issues: 582ns, nolint_filter: 457ns, fixer: 292ns, exclusion_paths: 167ns, path_prettifier: 125ns, source_code: 125ns, path_shortener: 124ns, uniq_by_line: 42ns, severity-rules: 42ns, max_per_file_from_linter: 42ns, max_from_linter: 0s, diff: 0s"
|
||||
level=info msg="[runner] linters took 422.737625ms with stages: goanalysis_metalinter: 422.101875ms"
|
||||
0 issues.
|
||||
level=info msg="File cache stats: 0 entries of total size 0B"
|
||||
level=info msg="Memory: 7 samples, avg is 87.0MB, max is 111.2MB"
|
||||
level=info msg="Execution took 555.972916ms"
|
||||
|
||||
$ make unit-test
|
||||
go test -race -shuffle=on -count=1 -timeout=5m ./...
|
||||
? mtusi-messenger/cmd/messenger [no test files]
|
||||
ok mtusi-messenger/internal/config 1.838s
|
||||
ok mtusi-messenger/internal/domain 1.498s
|
||||
ok mtusi-messenger/internal/logger 2.150s
|
||||
ok mtusi-messenger/internal/service/chat 2.470s
|
||||
? mtusi-messenger/internal/service/chat/mocks [no test files]
|
||||
ok mtusi-messenger/internal/service/message 2.797s
|
||||
? mtusi-messenger/internal/service/message/mocks [no test files]
|
||||
ok mtusi-messenger/internal/service/user 3.474s
|
||||
? mtusi-messenger/internal/service/user/mocks [no test files]
|
||||
ok mtusi-messenger/internal/storage/memory 3.159s
|
||||
ok mtusi-messenger/internal/transport/rest 3.863s
|
||||
? mtusi-messenger/internal/transport/rest/oas [no test files]
|
||||
@@ -0,0 +1,10 @@
|
||||
$ docker stop mtusi2026lab1-messenger-lab1
|
||||
$ docker run -d --name mtusi2026lab1-messenger-lab1 -p 127.0.0.1:8080:8080 mtusi2026lab1-messenger:verify
|
||||
$ curl -i -H "X-User-Id: <created-before-restart>" http://127.0.0.1:8080/api/v1/users/me
|
||||
HTTP/1.1 401 Unauthorized
|
||||
Content-Type: application/json; charset=utf-8
|
||||
X-Request-Id: eadf9c21-d861-4c2c-8e76-46f086d27a11
|
||||
Date: Thu, 24 Sep 2026 20:13:02 GMT
|
||||
Content-Length: 110
|
||||
|
||||
{"error":{"code":"unauthorized","message":"Unauthorized","request_id":"eadf9c21-d861-4c2c-8e76-46f086d27a11"}}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; failures counted, not raised",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.012,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 102601,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"errors_by_kind": {},
|
||||
"successful_rps": 1709.678,
|
||||
"successful_latency_ms": {
|
||||
"p50": 3.908,
|
||||
"p95": 8.621,
|
||||
"p99": 24.443
|
||||
},
|
||||
"instances": {
|
||||
"f81a188dd8a1": 7421,
|
||||
"69acca5cd6cd": 50439,
|
||||
"e9df09de18d5": 44741
|
||||
},
|
||||
"note": "Percentiles cover successful writes only; transitional errors are expected during a rolling update."
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; failures counted, not raised",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.012,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 102601,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"errors_by_kind": {},
|
||||
"successful_rps": 1709.678,
|
||||
"successful_latency_ms": {
|
||||
"p50": 3.908,
|
||||
"p95": 8.621,
|
||||
"p99": 24.443
|
||||
},
|
||||
"instances": {
|
||||
"f81a188dd8a1": 7421,
|
||||
"69acca5cd6cd": 50439,
|
||||
"e9df09de18d5": 44741
|
||||
},
|
||||
"note": "Percentiles cover successful writes only; transitional errors are expected during a rolling update."
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
# Rolling update under load
|
||||
# generated: 2026-10-15T19:16:17Z
|
||||
# load: tests/load.py duration=60s concurrency=8 (closed loop)
|
||||
# steps: delete one replica, recreate it from the freshly built image, wait for health + LB
|
||||
|
||||
time="2026-10-15T22:16:17+03:00" level=warning msg="buildx Docker CLI plugin not found: falling back to the classic builder. BuildKit-only build features (multi-arch, secrets, ssh, additional contexts, ...) will not be available"
|
||||
Image mtusi-messenger:lab3 Building
|
||||
Image mtusi-messenger:lab3 Building
|
||||
Sending build context to Docker daemon 216kB␍
|
||||
Step 1/25 : ARG GO_VERSION=1.27.1
|
||||
Step 2/25 : ARG ALPINE_VERSION=3.22
|
||||
Step 3/25 : FROM golang:${GO_VERSION}-alpine AS build
|
||||
---> 8a5910f31396
|
||||
Step 4/25 : ARG TARGETOS
|
||||
---> Using cache
|
||||
---> d5f2c47ea7a5
|
||||
Step 5/25 : ARG TARGETARCH
|
||||
---> Using cache
|
||||
---> 047ee34b445c
|
||||
Step 6/25 : ARG VERSION=dev
|
||||
---> Using cache
|
||||
---> a529d045efeb
|
||||
Step 7/25 : ENV GOTOOLCHAIN=local
|
||||
---> Using cache
|
||||
---> 428f1b16b5c5
|
||||
Step 8/25 : WORKDIR /opt
|
||||
---> Using cache
|
||||
---> f37febf8b423
|
||||
Step 9/25 : COPY go.mod go.sum ./
|
||||
---> Using cache
|
||||
---> c4015f597b99
|
||||
Step 10/25 : RUN go mod download
|
||||
---> Using cache
|
||||
---> 34ef6a6167b0
|
||||
Step 11/25 : ARG GOFLAGS="-p=2"
|
||||
---> Using cache
|
||||
---> deb54a0ce57a
|
||||
Step 12/25 : ENV GOFLAGS=$GOFLAGS
|
||||
---> Using cache
|
||||
---> 3da36569422d
|
||||
Step 13/25 : COPY . .
|
||||
---> Using cache
|
||||
---> f37679fcf00d
|
||||
Step 14/25 : RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -trimpath -buildvcs=false -tags timetzdata -ldflags="-s -w -X main.version=${VERSION}" -o /out/messenger ./cmd/messenger && CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -trimpath -buildvcs=false -tags timetzdata -ldflags="-s -w -X main.version=${VERSION}" -o /out/migrate ./cmd/migrate
|
||||
---> Using cache
|
||||
---> 51cb314af90d
|
||||
Step 15/25 : FROM alpine:${ALPINE_VERSION} AS runtime
|
||||
---> 5291449c3df7
|
||||
Step 16/25 : RUN apk add --no-cache ca-certificates wget && addgroup -S -g 10001 app && adduser -S -D -H -u 10001 -G app app
|
||||
---> Using cache
|
||||
---> f47b074d9bd5
|
||||
Step 17/25 : COPY --from=build --chown=10001:10001 /out/messenger /usr/local/bin/messenger
|
||||
---> Using cache
|
||||
---> 50fc6abe3b04
|
||||
Step 18/25 : COPY --from=build --chown=10001:10001 /out/migrate /usr/local/bin/migrate
|
||||
---> Using cache
|
||||
---> 9bf6afe0256d
|
||||
Step 19/25 : COPY --chown=10001:10001 config/dev/config.yaml /etc/messenger/dev/config.yaml
|
||||
---> Using cache
|
||||
---> 0d1870a325ec
|
||||
Step 20/25 : USER 10001:10001
|
||||
---> Using cache
|
||||
---> 1991f2ae06cc
|
||||
Step 21/25 : EXPOSE 8080
|
||||
---> Using cache
|
||||
---> 762d1bfb7606
|
||||
Step 22/25 : STOPSIGNAL SIGTERM
|
||||
---> Using cache
|
||||
---> 8a9d8f4f7101
|
||||
Step 23/25 : HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 CMD wget -q -O /dev/null "http://127.0.0.1:${SERVER_PORT:-8080}/health/live" || exit 1
|
||||
---> Using cache
|
||||
---> 65dea502a3f3
|
||||
Step 24/25 : ENTRYPOINT ["/usr/local/bin/messenger"]
|
||||
---> Using cache
|
||||
---> 83bbee72905e
|
||||
Step 25/25 : LABEL com.docker.compose.image.builder=classic
|
||||
---> Using cache
|
||||
---> 037f969d5ea1
|
||||
Successfully built 037f969d5ea1
|
||||
Successfully tagged mtusi-messenger:lab3
|
||||
Image mtusi-messenger:lab3 Built
|
||||
Image mtusi-messenger:lab3 Built
|
||||
Container mtusi-messenger-lab3-api-1 Recreate
|
||||
Container mtusi-messenger-lab3-api-2 Recreate
|
||||
Container mtusi-messenger-lab3-api-1 Recreated
|
||||
Container mtusi-messenger-lab3-api-2 Recreated
|
||||
Container mtusi-messenger-lab3-api-1 Starting
|
||||
Container mtusi-messenger-lab3-api-1 Started
|
||||
Container mtusi-messenger-lab3-api-2 Starting
|
||||
Container mtusi-messenger-lab3-api-2 Started
|
||||
replicas before: 2; instances seen through LB: 2
|
||||
Container mtusi-messenger-lab3-api-2 Running
|
||||
Container mtusi-messenger-lab3-api-3 Creating
|
||||
Container mtusi-messenger-lab3-api-3 Created
|
||||
Container mtusi-messenger-lab3-api-3 Starting
|
||||
Container mtusi-messenger-lab3-api-3 Started
|
||||
step 1: removed c258d1b22df2 at 2026-10-15T19:16:24Z, 2 healthy replicas served again at 2026-10-15T19:16:29Z
|
||||
Container mtusi-messenger-lab3-api-3 Running
|
||||
Container mtusi-messenger-lab3-api-4 Creating
|
||||
Container mtusi-messenger-lab3-api-4 Created
|
||||
Container mtusi-messenger-lab3-api-4 Starting
|
||||
Container mtusi-messenger-lab3-api-4 Started
|
||||
step 2: removed f81a188dd8a1 at 2026-10-15T19:16:29Z, 2 healthy replicas served again at 2026-10-15T19:16:35Z
|
||||
|
||||
load summary (tolerant generator):
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; failures counted, not raised",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.012,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 102601,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"errors_by_kind": {},
|
||||
"successful_rps": 1709.678,
|
||||
"successful_latency_ms": {
|
||||
"p50": 3.908,
|
||||
"p95": 8.621,
|
||||
"p99": 24.443
|
||||
},
|
||||
"instances": {
|
||||
"f81a188dd8a1": 7421,
|
||||
"69acca5cd6cd": 50439,
|
||||
"e9df09de18d5": 44741
|
||||
},
|
||||
"note": "Percentiles cover successful writes only; transitional errors are expected during a rolling update."
|
||||
}
|
||||
|
||||
LB responses with 5xx during the update: 0
|
||||
|
||||
API containers after the update:
|
||||
mtusi-messenger-lab3-api-4 Up 54 seconds (healthy)
|
||||
mtusi-messenger-lab3-api-3 Up About a minute (healthy)
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; failures counted, not raised",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.023,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 119005,
|
||||
"failed_requests": 1323,
|
||||
"error_ratio": 0.010995,
|
||||
"errors_by_kind": {
|
||||
"connection_broken": 1323
|
||||
},
|
||||
"successful_rps": 1982.673,
|
||||
"successful_latency_ms": {
|
||||
"p50": 3.88,
|
||||
"p95": 5.891,
|
||||
"p99": 7.733
|
||||
},
|
||||
"instances": {
|
||||
"e327ef9e0e4e": 7594,
|
||||
"0bd2666d4be8": 60080,
|
||||
"c35d7accbbd1": 51331
|
||||
},
|
||||
"note": "Percentiles cover successful writes only; transitional errors are expected during a rolling update."
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; failures counted, not raised",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.023,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 119005,
|
||||
"failed_requests": 1323,
|
||||
"error_ratio": 0.010995,
|
||||
"errors_by_kind": {
|
||||
"connection_broken": 1323
|
||||
},
|
||||
"successful_rps": 1982.673,
|
||||
"successful_latency_ms": {
|
||||
"p50": 3.88,
|
||||
"p95": 5.891,
|
||||
"p99": 7.733
|
||||
},
|
||||
"instances": {
|
||||
"e327ef9e0e4e": 7594,
|
||||
"0bd2666d4be8": 60080,
|
||||
"c35d7accbbd1": 51331
|
||||
},
|
||||
"note": "Percentiles cover successful writes only; transitional errors are expected during a rolling update."
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
# Rolling update under load
|
||||
# generated: 2026-10-15T18:59:10Z
|
||||
# load: tests/load.py duration=60s concurrency=8 (closed loop)
|
||||
# steps: delete one replica, recreate it from the freshly built image, wait for health + LB
|
||||
|
||||
time="2026-10-15T21:59:10+03:00" level=warning msg="buildx Docker CLI plugin not found: falling back to the classic builder. BuildKit-only build features (multi-arch, secrets, ssh, additional contexts, ...) will not be available"
|
||||
Image mtusi-messenger:lab3 Building
|
||||
Image mtusi-messenger:lab3 Building
|
||||
Sending build context to Docker daemon 213.7kB␍
|
||||
Step 1/25 : ARG GO_VERSION=1.27.1
|
||||
Step 2/25 : ARG ALPINE_VERSION=3.22
|
||||
Step 3/25 : FROM golang:${GO_VERSION}-alpine AS build
|
||||
---> 8a5910f31396
|
||||
Step 4/25 : ARG TARGETOS
|
||||
---> Using cache
|
||||
---> d5f2c47ea7a5
|
||||
Step 5/25 : ARG TARGETARCH
|
||||
---> Using cache
|
||||
---> 047ee34b445c
|
||||
Step 6/25 : ARG VERSION=dev
|
||||
---> Using cache
|
||||
---> a529d045efeb
|
||||
Step 7/25 : ENV GOTOOLCHAIN=local
|
||||
---> Using cache
|
||||
---> 428f1b16b5c5
|
||||
Step 8/25 : WORKDIR /opt
|
||||
---> Using cache
|
||||
---> f37febf8b423
|
||||
Step 9/25 : COPY go.mod go.sum ./
|
||||
---> Using cache
|
||||
---> c4015f597b99
|
||||
Step 10/25 : RUN go mod download
|
||||
---> Using cache
|
||||
---> 34ef6a6167b0
|
||||
Step 11/25 : ARG GOFLAGS="-p=2"
|
||||
---> Using cache
|
||||
---> deb54a0ce57a
|
||||
Step 12/25 : ENV GOFLAGS=$GOFLAGS
|
||||
---> Using cache
|
||||
---> 3da36569422d
|
||||
Step 13/25 : COPY . .
|
||||
---> 596dc1ab02d1
|
||||
Step 14/25 : RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -trimpath -buildvcs=false -tags timetzdata -ldflags="-s -w -X main.version=${VERSION}" -o /out/messenger ./cmd/messenger && CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -trimpath -buildvcs=false -tags timetzdata -ldflags="-s -w -X main.version=${VERSION}" -o /out/migrate ./cmd/migrate
|
||||
---> Running in dd30e24fc0a9
|
||||
---> Removed intermediate container dd30e24fc0a9
|
||||
---> 01aa8bc6200d
|
||||
Step 15/25 : FROM alpine:${ALPINE_VERSION} AS runtime
|
||||
---> 5291449c3df7
|
||||
Step 16/25 : RUN apk add --no-cache ca-certificates wget && addgroup -S -g 10001 app && adduser -S -D -H -u 10001 -G app app
|
||||
---> Using cache
|
||||
---> f47b074d9bd5
|
||||
Step 17/25 : COPY --from=build --chown=10001:10001 /out/messenger /usr/local/bin/messenger
|
||||
---> Using cache
|
||||
---> 50fc6abe3b04
|
||||
Step 18/25 : COPY --from=build --chown=10001:10001 /out/migrate /usr/local/bin/migrate
|
||||
---> Using cache
|
||||
---> 9bf6afe0256d
|
||||
Step 19/25 : COPY --chown=10001:10001 config/dev/config.yaml /etc/messenger/dev/config.yaml
|
||||
---> Using cache
|
||||
---> 0d1870a325ec
|
||||
Step 20/25 : USER 10001:10001
|
||||
---> Using cache
|
||||
---> 1991f2ae06cc
|
||||
Step 21/25 : EXPOSE 8080
|
||||
---> Using cache
|
||||
---> 762d1bfb7606
|
||||
Step 22/25 : STOPSIGNAL SIGTERM
|
||||
---> Using cache
|
||||
---> 8a9d8f4f7101
|
||||
Step 23/25 : HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 CMD wget -q -O /dev/null "http://127.0.0.1:${SERVER_PORT:-8080}/health/live" || exit 1
|
||||
---> Using cache
|
||||
---> 65dea502a3f3
|
||||
Step 24/25 : ENTRYPOINT ["/usr/local/bin/messenger"]
|
||||
---> Using cache
|
||||
---> 83bbee72905e
|
||||
Step 25/25 : LABEL com.docker.compose.image.builder=classic
|
||||
---> Using cache
|
||||
---> 037f969d5ea1
|
||||
Successfully built 037f969d5ea1
|
||||
Successfully tagged mtusi-messenger:lab3
|
||||
Image mtusi-messenger:lab3 Built
|
||||
Image mtusi-messenger:lab3 Built
|
||||
Container mtusi-messenger-lab3-api-14 Stopping
|
||||
Container mtusi-messenger-lab3-api-12 Recreate
|
||||
Container mtusi-messenger-lab3-api-15 Stopping
|
||||
Container mtusi-messenger-lab3-api-13 Recreate
|
||||
Container mtusi-messenger-lab3-api-15 Stopped
|
||||
Container mtusi-messenger-lab3-api-15 Removing
|
||||
Container mtusi-messenger-lab3-api-14 Stopped
|
||||
Container mtusi-messenger-lab3-api-14 Removing
|
||||
Container mtusi-messenger-lab3-api-15 Removed
|
||||
Container mtusi-messenger-lab3-api-14 Removed
|
||||
Container mtusi-messenger-lab3-api-12 Recreated
|
||||
Container mtusi-messenger-lab3-api-13 Recreated
|
||||
Container mtusi-messenger-lab3-api-13 Starting
|
||||
Container mtusi-messenger-lab3-api-13 Started
|
||||
Container mtusi-messenger-lab3-api-12 Starting
|
||||
Container mtusi-messenger-lab3-api-12 Started
|
||||
replicas before: 2; instances seen through LB: 2
|
||||
Container mtusi-messenger-lab3-api-12 Running
|
||||
Container mtusi-messenger-lab3-api-13 Creating
|
||||
Container mtusi-messenger-lab3-api-13 Created
|
||||
Container mtusi-messenger-lab3-api-13 Starting
|
||||
Container mtusi-messenger-lab3-api-13 Started
|
||||
step 1: removed 3b7d42e67efa at 2026-10-15T18:59:58Z, 2 healthy replicas served again at 2026-10-15T19:00:04Z
|
||||
Container mtusi-messenger-lab3-api-13 Running
|
||||
Container mtusi-messenger-lab3-api-14 Creating
|
||||
Container mtusi-messenger-lab3-api-14 Created
|
||||
Container mtusi-messenger-lab3-api-14 Starting
|
||||
Container mtusi-messenger-lab3-api-14 Started
|
||||
step 2: removed e327ef9e0e4e at 2026-10-15T19:00:04Z, 2 healthy replicas served again at 2026-10-15T19:00:10Z
|
||||
|
||||
load summary (tolerant generator):
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; failures counted, not raised",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.023,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 119005,
|
||||
"failed_requests": 1323,
|
||||
"error_ratio": 0.010995,
|
||||
"errors_by_kind": {
|
||||
"connection_broken": 1323
|
||||
},
|
||||
"successful_rps": 1982.673,
|
||||
"successful_latency_ms": {
|
||||
"p50": 3.88,
|
||||
"p95": 5.891,
|
||||
"p99": 7.733
|
||||
},
|
||||
"instances": {
|
||||
"e327ef9e0e4e": 7594,
|
||||
"0bd2666d4be8": 60080,
|
||||
"c35d7accbbd1": 51331
|
||||
},
|
||||
"note": "Percentiles cover successful writes only; transitional errors are expected during a rolling update."
|
||||
}
|
||||
|
||||
LB responses with 5xx during the update: 0
|
||||
|
||||
API containers after the update:
|
||||
mtusi-messenger-lab3-api-14 Up 55 seconds (healthy)
|
||||
mtusi-messenger-lab3-api-13 Up About a minute (healthy)
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; failures counted, not raised",
|
||||
"requested_duration_seconds": 45.0,
|
||||
"elapsed_seconds": 45.014,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 89560,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"errors_by_kind": {},
|
||||
"successful_rps": 1989.584,
|
||||
"successful_latency_ms": {
|
||||
"p50": 3.905,
|
||||
"p95": 6.02,
|
||||
"p99": 7.984
|
||||
},
|
||||
"instances": {
|
||||
"388ebcb74200": 7524,
|
||||
"73d07d7d76db": 45354,
|
||||
"cc6274635bd6": 36682
|
||||
},
|
||||
"note": "Percentiles cover successful writes only; transitional errors are expected during a rolling update."
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; failures counted, not raised",
|
||||
"requested_duration_seconds": 45.0,
|
||||
"elapsed_seconds": 45.014,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 89560,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"errors_by_kind": {},
|
||||
"successful_rps": 1989.584,
|
||||
"successful_latency_ms": {
|
||||
"p50": 3.905,
|
||||
"p95": 6.02,
|
||||
"p99": 7.984
|
||||
},
|
||||
"instances": {
|
||||
"388ebcb74200": 7524,
|
||||
"73d07d7d76db": 45354,
|
||||
"cc6274635bd6": 36682
|
||||
},
|
||||
"note": "Percentiles cover successful writes only; transitional errors are expected during a rolling update."
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
# Rolling update under load
|
||||
# generated: 2026-10-15T19:03:13Z
|
||||
# load: tests/load.py duration=45s concurrency=8 (closed loop)
|
||||
# steps: delete one replica, recreate it from the freshly built image, wait for health + LB
|
||||
|
||||
time="2026-10-15T22:03:13+03:00" level=warning msg="buildx Docker CLI plugin not found: falling back to the classic builder. BuildKit-only build features (multi-arch, secrets, ssh, additional contexts, ...) will not be available"
|
||||
Image mtusi-messenger:lab3 Building
|
||||
Image mtusi-messenger:lab3 Building
|
||||
Sending build context to Docker daemon 213.7kB␍
|
||||
Step 1/25 : ARG GO_VERSION=1.27.1
|
||||
Step 2/25 : ARG ALPINE_VERSION=3.22
|
||||
Step 3/25 : FROM golang:${GO_VERSION}-alpine AS build
|
||||
---> 8a5910f31396
|
||||
Step 4/25 : ARG TARGETOS
|
||||
---> Using cache
|
||||
---> d5f2c47ea7a5
|
||||
Step 5/25 : ARG TARGETARCH
|
||||
---> Using cache
|
||||
---> 047ee34b445c
|
||||
Step 6/25 : ARG VERSION=dev
|
||||
---> Using cache
|
||||
---> a529d045efeb
|
||||
Step 7/25 : ENV GOTOOLCHAIN=local
|
||||
---> Using cache
|
||||
---> 428f1b16b5c5
|
||||
Step 8/25 : WORKDIR /opt
|
||||
---> Using cache
|
||||
---> f37febf8b423
|
||||
Step 9/25 : COPY go.mod go.sum ./
|
||||
---> Using cache
|
||||
---> c4015f597b99
|
||||
Step 10/25 : RUN go mod download
|
||||
---> Using cache
|
||||
---> 34ef6a6167b0
|
||||
Step 11/25 : ARG GOFLAGS="-p=2"
|
||||
---> Using cache
|
||||
---> deb54a0ce57a
|
||||
Step 12/25 : ENV GOFLAGS=$GOFLAGS
|
||||
---> Using cache
|
||||
---> 3da36569422d
|
||||
Step 13/25 : COPY . .
|
||||
---> Using cache
|
||||
---> 596dc1ab02d1
|
||||
Step 14/25 : RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -trimpath -buildvcs=false -tags timetzdata -ldflags="-s -w -X main.version=${VERSION}" -o /out/messenger ./cmd/messenger && CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -trimpath -buildvcs=false -tags timetzdata -ldflags="-s -w -X main.version=${VERSION}" -o /out/migrate ./cmd/migrate
|
||||
---> Using cache
|
||||
---> 01aa8bc6200d
|
||||
Step 15/25 : FROM alpine:${ALPINE_VERSION} AS runtime
|
||||
---> 5291449c3df7
|
||||
Step 16/25 : RUN apk add --no-cache ca-certificates wget && addgroup -S -g 10001 app && adduser -S -D -H -u 10001 -G app app
|
||||
---> Using cache
|
||||
---> f47b074d9bd5
|
||||
Step 17/25 : COPY --from=build --chown=10001:10001 /out/messenger /usr/local/bin/messenger
|
||||
---> Using cache
|
||||
---> 50fc6abe3b04
|
||||
Step 18/25 : COPY --from=build --chown=10001:10001 /out/migrate /usr/local/bin/migrate
|
||||
---> Using cache
|
||||
---> 9bf6afe0256d
|
||||
Step 19/25 : COPY --chown=10001:10001 config/dev/config.yaml /etc/messenger/dev/config.yaml
|
||||
---> Using cache
|
||||
---> 0d1870a325ec
|
||||
Step 20/25 : USER 10001:10001
|
||||
---> Using cache
|
||||
---> 1991f2ae06cc
|
||||
Step 21/25 : EXPOSE 8080
|
||||
---> Using cache
|
||||
---> 762d1bfb7606
|
||||
Step 22/25 : STOPSIGNAL SIGTERM
|
||||
---> Using cache
|
||||
---> 8a9d8f4f7101
|
||||
Step 23/25 : HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 CMD wget -q -O /dev/null "http://127.0.0.1:${SERVER_PORT:-8080}/health/live" || exit 1
|
||||
---> Using cache
|
||||
---> 65dea502a3f3
|
||||
Step 24/25 : ENTRYPOINT ["/usr/local/bin/messenger"]
|
||||
---> Using cache
|
||||
---> 83bbee72905e
|
||||
Step 25/25 : LABEL com.docker.compose.image.builder=classic
|
||||
---> Using cache
|
||||
---> 037f969d5ea1
|
||||
Successfully built 037f969d5ea1
|
||||
Successfully tagged mtusi-messenger:lab3
|
||||
Image mtusi-messenger:lab3 Built
|
||||
Image mtusi-messenger:lab3 Built
|
||||
Container mtusi-messenger-lab3-api-13 Recreate
|
||||
Container mtusi-messenger-lab3-api-14 Recreate
|
||||
Container mtusi-messenger-lab3-api-13 Recreated
|
||||
Container mtusi-messenger-lab3-api-14 Recreated
|
||||
Container mtusi-messenger-lab3-api-14 Starting
|
||||
Container mtusi-messenger-lab3-api-14 Started
|
||||
Container mtusi-messenger-lab3-api-13 Starting
|
||||
Container mtusi-messenger-lab3-api-13 Started
|
||||
replicas before: 2; instances seen through LB: 2
|
||||
Container mtusi-messenger-lab3-api-13 Running
|
||||
Container mtusi-messenger-lab3-api-14 Creating
|
||||
Container mtusi-messenger-lab3-api-14 Created
|
||||
Container mtusi-messenger-lab3-api-14 Starting
|
||||
Container mtusi-messenger-lab3-api-14 Started
|
||||
step 1: removed 54a7e7888b5f at 2026-10-15T19:03:20Z, 2 healthy replicas served again at 2026-10-15T19:03:26Z
|
||||
Container mtusi-messenger-lab3-api-14 Running
|
||||
Container mtusi-messenger-lab3-api-15 Creating
|
||||
Container mtusi-messenger-lab3-api-15 Created
|
||||
Container mtusi-messenger-lab3-api-15 Starting
|
||||
Container mtusi-messenger-lab3-api-15 Started
|
||||
step 2: removed 388ebcb74200 at 2026-10-15T19:03:26Z, 2 healthy replicas served again at 2026-10-15T19:03:31Z
|
||||
|
||||
load summary (tolerant generator):
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; failures counted, not raised",
|
||||
"requested_duration_seconds": 45.0,
|
||||
"elapsed_seconds": 45.014,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 89560,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"errors_by_kind": {},
|
||||
"successful_rps": 1989.584,
|
||||
"successful_latency_ms": {
|
||||
"p50": 3.905,
|
||||
"p95": 6.02,
|
||||
"p99": 7.984
|
||||
},
|
||||
"instances": {
|
||||
"388ebcb74200": 7524,
|
||||
"73d07d7d76db": 45354,
|
||||
"cc6274635bd6": 36682
|
||||
},
|
||||
"note": "Percentiles cover successful writes only; transitional errors are expected during a rolling update."
|
||||
}
|
||||
|
||||
LB responses with 5xx during the update: 0
|
||||
|
||||
API containers after the update:
|
||||
mtusi-messenger-lab3-api-15 Up 41 seconds (healthy)
|
||||
mtusi-messenger-lab3-api-14 Up 46 seconds (healthy)
|
||||
@@ -0,0 +1,7 @@
|
||||
$ docker kill --signal=TERM mtusi2026lab1-messenger-lab1
|
||||
$ docker wait mtusi2026lab1-messenger-lab1
|
||||
0
|
||||
elapsed_ms=114
|
||||
{"level":"info","time":"2026-09-24T20:14:19.192628563Z","msg":"server started","addr":"0.0.0.0:8080"}
|
||||
{"level":"info","time":"2026-09-24T20:14:20.186231067Z","msg":"shutdown signal received","timeout":"10s"}
|
||||
{"level":"info","time":"2026-09-24T20:14:20.188996621Z","msg":"server stopped"}
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://localhost:8080"
|
||||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,39 @@
|
||||
# Lab3 stand evidence
|
||||
# generated: 2026-10-15T18:17:12Z
|
||||
|
||||
## docker ps (ports)
|
||||
mtusi-messenger-lab3-api-1 | 8080/tcp
|
||||
mtusi-messenger-lab3-api-2 | 8080/tcp
|
||||
mtusi-messenger-lab2-postgres-1 | 127.0.0.1:5432->5432/tcp
|
||||
mtusi-messenger-lab2-redis-1 | 127.0.0.1:6379->6379/tcp
|
||||
mtusi-messenger-lab3-lb-1 | 127.0.0.1:8080->80/tcp
|
||||
mtusi-messenger-lab3-redis-1 | 6379/tcp
|
||||
mtusi-messenger-lab3-postgres-1 | 5432/tcp
|
||||
|
||||
## compose config: limits/replicas/published
|
||||
name: mtusi-messenger-lab3
|
||||
api:
|
||||
replicas: 2
|
||||
cpus: 0.5
|
||||
memory: "268435456"
|
||||
lb:
|
||||
cpus: 0.25
|
||||
memory: "67108864"
|
||||
published: "8080"
|
||||
migrate:
|
||||
cpus: 0.5
|
||||
memory: "268435456"
|
||||
postgres:
|
||||
cpus: 0.75
|
||||
memory: "536870912"
|
||||
redis:
|
||||
cpus: 0.25
|
||||
memory: "201326592"
|
||||
default:
|
||||
name: mtusi-messenger-lab3_default
|
||||
name: mtusi-messenger-lab3_postgres18-data
|
||||
name: mtusi-messenger-lab3_redis7-data
|
||||
build:
|
||||
image: mtusi-messenger:lab3
|
||||
|
||||
container_name: absent
|
||||
@@ -0,0 +1,21 @@
|
||||
goos: darwin
|
||||
goarch: arm64
|
||||
pkg: mtusi-messenger/internal/storage/memory
|
||||
cpu: Apple M5 Pro
|
||||
BenchmarkMessageCreate/history=1000-18 3822346 309.5 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=1000-18 3904586 307.6 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=1000-18 3889698 308.1 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=1000-18 3892981 308.2 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=1000-18 3888345 308.3 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=10000-18 3578911 335.4 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=10000-18 3570348 335.9 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=10000-18 3581305 335.0 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=10000-18 3573933 336.0 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=10000-18 3563053 336.4 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=50000-18 3425475 349.8 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=50000-18 3435330 349.1 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=50000-18 3438290 349.3 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=50000-18 3420394 349.8 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=50000-18 3420736 350.1 ns/op 16 B/op 1 allocs/op
|
||||
PASS
|
||||
ok mtusi-messenger/internal/storage/memory 18.237s
|
||||
@@ -0,0 +1,128 @@
|
||||
[
|
||||
{
|
||||
"history": 100,
|
||||
"concurrency": 1,
|
||||
"duration_seconds": 2.002,
|
||||
"successful_requests": 526,
|
||||
"failed_requests": 0,
|
||||
"rps": 262.791,
|
||||
"p50_ms": 3.378,
|
||||
"p95_ms": 4.12,
|
||||
"p99_ms": 16.979,
|
||||
"rss_min_kib": 18880,
|
||||
"rss_max_kib": 22816,
|
||||
"rss_delta_kib": 3936
|
||||
},
|
||||
{
|
||||
"history": 100,
|
||||
"concurrency": 4,
|
||||
"duration_seconds": 2.002,
|
||||
"successful_requests": 1450,
|
||||
"failed_requests": 0,
|
||||
"rps": 724.134,
|
||||
"p50_ms": 4.18,
|
||||
"p95_ms": 16.695,
|
||||
"p99_ms": 21.604,
|
||||
"rss_min_kib": 20512,
|
||||
"rss_max_kib": 24208,
|
||||
"rss_delta_kib": 3696
|
||||
},
|
||||
{
|
||||
"history": 100,
|
||||
"concurrency": 16,
|
||||
"duration_seconds": 2.079,
|
||||
"successful_requests": 2315,
|
||||
"failed_requests": 0,
|
||||
"rps": 1113.309,
|
||||
"p50_ms": 8.563,
|
||||
"p95_ms": 29.584,
|
||||
"p99_ms": 93.023,
|
||||
"rss_min_kib": 18880,
|
||||
"rss_max_kib": 25296,
|
||||
"rss_delta_kib": 6416
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 1,
|
||||
"duration_seconds": 2.007,
|
||||
"successful_requests": 478,
|
||||
"failed_requests": 0,
|
||||
"rps": 238.14,
|
||||
"p50_ms": 3.477,
|
||||
"p95_ms": 10.892,
|
||||
"p99_ms": 20.404,
|
||||
"rss_min_kib": 23120,
|
||||
"rss_max_kib": 23584,
|
||||
"rss_delta_kib": 464
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 4,
|
||||
"duration_seconds": 2.003,
|
||||
"successful_requests": 1380,
|
||||
"failed_requests": 0,
|
||||
"rps": 688.971,
|
||||
"p50_ms": 4.197,
|
||||
"p95_ms": 17.189,
|
||||
"p99_ms": 28.458,
|
||||
"rss_min_kib": 23344,
|
||||
"rss_max_kib": 24592,
|
||||
"rss_delta_kib": 1248
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 16,
|
||||
"duration_seconds": 2.005,
|
||||
"successful_requests": 2298,
|
||||
"failed_requests": 0,
|
||||
"rps": 1146.063,
|
||||
"p50_ms": 8.474,
|
||||
"p95_ms": 29.384,
|
||||
"p99_ms": 92.528,
|
||||
"rss_min_kib": 23232,
|
||||
"rss_max_kib": 26272,
|
||||
"rss_delta_kib": 3040
|
||||
},
|
||||
{
|
||||
"history": 5000,
|
||||
"concurrency": 1,
|
||||
"duration_seconds": 2.001,
|
||||
"successful_requests": 494,
|
||||
"failed_requests": 0,
|
||||
"rps": 246.902,
|
||||
"p50_ms": 3.414,
|
||||
"p95_ms": 10.767,
|
||||
"p99_ms": 18.996,
|
||||
"rss_min_kib": 25248,
|
||||
"rss_max_kib": 25296,
|
||||
"rss_delta_kib": 48
|
||||
},
|
||||
{
|
||||
"history": 5000,
|
||||
"concurrency": 4,
|
||||
"duration_seconds": 2.004,
|
||||
"successful_requests": 1398,
|
||||
"failed_requests": 0,
|
||||
"rps": 697.712,
|
||||
"p50_ms": 4.147,
|
||||
"p95_ms": 17.142,
|
||||
"p99_ms": 26.446,
|
||||
"rss_min_kib": 24816,
|
||||
"rss_max_kib": 25104,
|
||||
"rss_delta_kib": 288
|
||||
},
|
||||
{
|
||||
"history": 5000,
|
||||
"concurrency": 16,
|
||||
"duration_seconds": 2.006,
|
||||
"successful_requests": 2261,
|
||||
"failed_requests": 0,
|
||||
"rps": 1126.862,
|
||||
"p50_ms": 8.635,
|
||||
"p95_ms": 24.133,
|
||||
"p99_ms": 93.225,
|
||||
"rss_min_kib": 25200,
|
||||
"rss_max_kib": 26752,
|
||||
"rss_delta_kib": 1552
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,110 @@
|
||||
[
|
||||
{
|
||||
"history": 100,
|
||||
"concurrency": 1,
|
||||
"rps_before": 262.791,
|
||||
"p95_ms_before": 4.12,
|
||||
"p99_ms_before": 16.979,
|
||||
"rss_max_kib_before": 22816,
|
||||
"rps_after": 265.189,
|
||||
"p95_ms_after": 4.276,
|
||||
"p99_ms_after": 17.123,
|
||||
"rss_max_kib_after": 22736
|
||||
},
|
||||
{
|
||||
"history": 100,
|
||||
"concurrency": 4,
|
||||
"rps_before": 724.134,
|
||||
"p95_ms_before": 16.695,
|
||||
"p99_ms_before": 21.604,
|
||||
"rss_max_kib_before": 24208,
|
||||
"rps_after": 720.55,
|
||||
"p95_ms_after": 16.868,
|
||||
"p99_ms_after": 21.043,
|
||||
"rss_max_kib_after": 24128
|
||||
},
|
||||
{
|
||||
"history": 100,
|
||||
"concurrency": 16,
|
||||
"rps_before": 1113.309,
|
||||
"p95_ms_before": 29.584,
|
||||
"p99_ms_before": 93.023,
|
||||
"rss_max_kib_before": 25296,
|
||||
"rps_after": 1125.923,
|
||||
"p95_ms_after": 29.142,
|
||||
"p99_ms_after": 91.221,
|
||||
"rss_max_kib_after": 25216
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 1,
|
||||
"rps_before": 238.14,
|
||||
"p95_ms_before": 10.892,
|
||||
"p99_ms_before": 20.404,
|
||||
"rss_max_kib_before": 23584,
|
||||
"rps_after": 237.68,
|
||||
"p95_ms_after": 11.279,
|
||||
"p99_ms_after": 19.675,
|
||||
"rss_max_kib_after": 23504
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 4,
|
||||
"rps_before": 688.971,
|
||||
"p95_ms_before": 17.189,
|
||||
"p99_ms_before": 28.458,
|
||||
"rss_max_kib_before": 24592,
|
||||
"rps_after": 667.05,
|
||||
"p95_ms_after": 17.243,
|
||||
"p99_ms_after": 29.938,
|
||||
"rss_max_kib_after": 25280
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 16,
|
||||
"rps_before": 1146.063,
|
||||
"p95_ms_before": 29.384,
|
||||
"p99_ms_before": 92.528,
|
||||
"rss_max_kib_before": 26272,
|
||||
"rps_after": 1102.581,
|
||||
"p95_ms_after": 30.252,
|
||||
"p99_ms_after": 93.912,
|
||||
"rss_max_kib_after": 25200
|
||||
},
|
||||
{
|
||||
"history": 5000,
|
||||
"concurrency": 1,
|
||||
"rps_before": 246.902,
|
||||
"p95_ms_before": 10.767,
|
||||
"p99_ms_before": 18.996,
|
||||
"rss_max_kib_before": 25296,
|
||||
"rps_after": 241.241,
|
||||
"p95_ms_after": 10.897,
|
||||
"p99_ms_after": 18.681,
|
||||
"rss_max_kib_after": 25456
|
||||
},
|
||||
{
|
||||
"history": 5000,
|
||||
"concurrency": 4,
|
||||
"rps_before": 697.712,
|
||||
"p95_ms_before": 17.142,
|
||||
"p99_ms_before": 26.446,
|
||||
"rss_max_kib_before": 25104,
|
||||
"rps_after": 685.839,
|
||||
"p95_ms_after": 17.418,
|
||||
"p99_ms_after": 26.618,
|
||||
"rss_max_kib_after": 25376
|
||||
},
|
||||
{
|
||||
"history": 5000,
|
||||
"concurrency": 16,
|
||||
"rps_before": 1126.862,
|
||||
"p95_ms_before": 24.133,
|
||||
"p99_ms_before": 93.225,
|
||||
"rss_max_kib_before": 26752,
|
||||
"rps_after": 1079.866,
|
||||
"p95_ms_after": 31.525,
|
||||
"p99_ms_after": 94.709,
|
||||
"rss_max_kib_after": 26640
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,211 @@
|
||||
{
|
||||
"mode": "baseline",
|
||||
"command": [
|
||||
"go",
|
||||
"run",
|
||||
"-overlay",
|
||||
"/var/folders/jd/nsgkfx9s75xb84909646j0zm0000gn/T/messenger-track1-58qai1az/overlay.json",
|
||||
"./cmd/messenger"
|
||||
],
|
||||
"go_version": "go version go1.27.1 darwin/arm64",
|
||||
"os_arch": [
|
||||
"darwin",
|
||||
"arm64"
|
||||
],
|
||||
"requests_per_case": 100000,
|
||||
"rss_source": "ps RSS of go run child executable, KiB; sampled every 100 ms",
|
||||
"rows": [
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 1,
|
||||
"duration_seconds": 13.634,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7334.409,
|
||||
"p50_ms": 0.13,
|
||||
"p95_ms": 0.146,
|
||||
"p99_ms": 0.186,
|
||||
"rss_min_kib": 23616,
|
||||
"rss_max_kib": 59968,
|
||||
"rss_delta_kib": 36352
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 4,
|
||||
"duration_seconds": 11.333,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 8823.924,
|
||||
"p50_ms": 0.42,
|
||||
"p95_ms": 0.654,
|
||||
"p99_ms": 0.869,
|
||||
"rss_min_kib": 23424,
|
||||
"rss_max_kib": 58464,
|
||||
"rss_delta_kib": 35040
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 16,
|
||||
"duration_seconds": 13.63,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7336.995,
|
||||
"p50_ms": 2.021,
|
||||
"p95_ms": 3.514,
|
||||
"p99_ms": 4.631,
|
||||
"rss_min_kib": 23520,
|
||||
"rss_max_kib": 66544,
|
||||
"rss_delta_kib": 43024
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 32,
|
||||
"duration_seconds": 13.538,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7386.656,
|
||||
"p50_ms": 4.022,
|
||||
"p95_ms": 7.026,
|
||||
"p99_ms": 8.953,
|
||||
"rss_min_kib": 23856,
|
||||
"rss_max_kib": 65616,
|
||||
"rss_delta_kib": 41760
|
||||
},
|
||||
{
|
||||
"history": 10000,
|
||||
"concurrency": 1,
|
||||
"duration_seconds": 14.008,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7138.887,
|
||||
"p50_ms": 0.13,
|
||||
"p95_ms": 0.149,
|
||||
"p99_ms": 0.21,
|
||||
"rss_min_kib": 25984,
|
||||
"rss_max_kib": 70416,
|
||||
"rss_delta_kib": 44432
|
||||
},
|
||||
{
|
||||
"history": 10000,
|
||||
"concurrency": 4,
|
||||
"duration_seconds": 11.057,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 9043.732,
|
||||
"p50_ms": 0.406,
|
||||
"p95_ms": 0.626,
|
||||
"p99_ms": 0.841,
|
||||
"rss_min_kib": 26272,
|
||||
"rss_max_kib": 67376,
|
||||
"rss_delta_kib": 41104
|
||||
},
|
||||
{
|
||||
"history": 10000,
|
||||
"concurrency": 16,
|
||||
"duration_seconds": 13.436,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7442.895,
|
||||
"p50_ms": 1.977,
|
||||
"p95_ms": 3.485,
|
||||
"p99_ms": 4.703,
|
||||
"rss_min_kib": 26576,
|
||||
"rss_max_kib": 75616,
|
||||
"rss_delta_kib": 49040
|
||||
},
|
||||
{
|
||||
"history": 10000,
|
||||
"concurrency": 32,
|
||||
"duration_seconds": 13.546,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7382.485,
|
||||
"p50_ms": 4.01,
|
||||
"p95_ms": 7.051,
|
||||
"p99_ms": 9.096,
|
||||
"rss_min_kib": 25456,
|
||||
"rss_max_kib": 77792,
|
||||
"rss_delta_kib": 52336
|
||||
},
|
||||
{
|
||||
"history": 50000,
|
||||
"concurrency": 1,
|
||||
"duration_seconds": 13.969,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7158.653,
|
||||
"p50_ms": 0.13,
|
||||
"p95_ms": 0.149,
|
||||
"p99_ms": 0.211,
|
||||
"rss_min_kib": 40080,
|
||||
"rss_max_kib": 81072,
|
||||
"rss_delta_kib": 40992
|
||||
},
|
||||
{
|
||||
"history": 50000,
|
||||
"concurrency": 4,
|
||||
"duration_seconds": 11.014,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 9079.212,
|
||||
"p50_ms": 0.404,
|
||||
"p95_ms": 0.623,
|
||||
"p99_ms": 0.823,
|
||||
"rss_min_kib": 40448,
|
||||
"rss_max_kib": 77088,
|
||||
"rss_delta_kib": 36640
|
||||
},
|
||||
{
|
||||
"history": 50000,
|
||||
"concurrency": 16,
|
||||
"duration_seconds": 13.479,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7419.068,
|
||||
"p50_ms": 1.99,
|
||||
"p95_ms": 3.471,
|
||||
"p99_ms": 4.694,
|
||||
"rss_min_kib": 42336,
|
||||
"rss_max_kib": 79552,
|
||||
"rss_delta_kib": 37216
|
||||
},
|
||||
{
|
||||
"history": 50000,
|
||||
"concurrency": 32,
|
||||
"duration_seconds": 13.464,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7427.333,
|
||||
"p50_ms": 3.99,
|
||||
"p95_ms": 7.049,
|
||||
"p99_ms": 9.007,
|
||||
"rss_min_kib": 40336,
|
||||
"rss_max_kib": 89552,
|
||||
"rss_delta_kib": 49216
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,266 @@
|
||||
[
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 1,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"duration_seconds_before": 13.634,
|
||||
"duration_seconds_after": 13.919,
|
||||
"successful_requests_before": 100000,
|
||||
"successful_requests_after": 100000,
|
||||
"failed_requests_before": 0,
|
||||
"failed_requests_after": 0,
|
||||
"rps_before": 7334.409,
|
||||
"rps_after": 7184.594,
|
||||
"p50_ms_before": 0.13,
|
||||
"p50_ms_after": 0.129,
|
||||
"p95_ms_before": 0.146,
|
||||
"p95_ms_after": 0.15,
|
||||
"p99_ms_before": 0.186,
|
||||
"p99_ms_after": 0.231,
|
||||
"rss_max_kib_before": 59968,
|
||||
"rss_max_kib_after": 62048
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 4,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"duration_seconds_before": 11.333,
|
||||
"duration_seconds_after": 11.115,
|
||||
"successful_requests_before": 100000,
|
||||
"successful_requests_after": 100000,
|
||||
"failed_requests_before": 0,
|
||||
"failed_requests_after": 0,
|
||||
"rps_before": 8823.924,
|
||||
"rps_after": 8996.523,
|
||||
"p50_ms_before": 0.42,
|
||||
"p50_ms_after": 0.407,
|
||||
"p95_ms_before": 0.654,
|
||||
"p95_ms_after": 0.632,
|
||||
"p99_ms_before": 0.869,
|
||||
"p99_ms_after": 0.867,
|
||||
"rss_max_kib_before": 58464,
|
||||
"rss_max_kib_after": 61040
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 16,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"duration_seconds_before": 13.63,
|
||||
"duration_seconds_after": 13.364,
|
||||
"successful_requests_before": 100000,
|
||||
"successful_requests_after": 100000,
|
||||
"failed_requests_before": 0,
|
||||
"failed_requests_after": 0,
|
||||
"rps_before": 7336.995,
|
||||
"rps_after": 7482.719,
|
||||
"p50_ms_before": 2.021,
|
||||
"p50_ms_after": 1.977,
|
||||
"p95_ms_before": 3.514,
|
||||
"p95_ms_after": 3.445,
|
||||
"p99_ms_before": 4.631,
|
||||
"p99_ms_after": 4.577,
|
||||
"rss_max_kib_before": 66544,
|
||||
"rss_max_kib_after": 61328
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 32,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"duration_seconds_before": 13.538,
|
||||
"duration_seconds_after": 13.547,
|
||||
"successful_requests_before": 100000,
|
||||
"successful_requests_after": 100000,
|
||||
"failed_requests_before": 0,
|
||||
"failed_requests_after": 0,
|
||||
"rps_before": 7386.656,
|
||||
"rps_after": 7381.5,
|
||||
"p50_ms_before": 4.022,
|
||||
"p50_ms_after": 4.016,
|
||||
"p95_ms_before": 7.026,
|
||||
"p95_ms_after": 7.058,
|
||||
"p99_ms_before": 8.953,
|
||||
"p99_ms_after": 9.054,
|
||||
"rss_max_kib_before": 65616,
|
||||
"rss_max_kib_after": 68768
|
||||
},
|
||||
{
|
||||
"history": 10000,
|
||||
"concurrency": 1,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"duration_seconds_before": 14.008,
|
||||
"duration_seconds_after": 13.984,
|
||||
"successful_requests_before": 100000,
|
||||
"successful_requests_after": 100000,
|
||||
"failed_requests_before": 0,
|
||||
"failed_requests_after": 0,
|
||||
"rps_before": 7138.887,
|
||||
"rps_after": 7150.931,
|
||||
"p50_ms_before": 0.13,
|
||||
"p50_ms_after": 0.131,
|
||||
"p95_ms_before": 0.149,
|
||||
"p95_ms_after": 0.146,
|
||||
"p99_ms_before": 0.21,
|
||||
"p99_ms_after": 0.187,
|
||||
"rss_max_kib_before": 70416,
|
||||
"rss_max_kib_after": 68128
|
||||
},
|
||||
{
|
||||
"history": 10000,
|
||||
"concurrency": 4,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"duration_seconds_before": 11.057,
|
||||
"duration_seconds_after": 11.046,
|
||||
"successful_requests_before": 100000,
|
||||
"successful_requests_after": 100000,
|
||||
"failed_requests_before": 0,
|
||||
"failed_requests_after": 0,
|
||||
"rps_before": 9043.732,
|
||||
"rps_after": 9052.965,
|
||||
"p50_ms_before": 0.406,
|
||||
"p50_ms_after": 0.404,
|
||||
"p95_ms_before": 0.626,
|
||||
"p95_ms_after": 0.628,
|
||||
"p99_ms_before": 0.841,
|
||||
"p99_ms_after": 0.859,
|
||||
"rss_max_kib_before": 67376,
|
||||
"rss_max_kib_after": 71632
|
||||
},
|
||||
{
|
||||
"history": 10000,
|
||||
"concurrency": 16,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"duration_seconds_before": 13.436,
|
||||
"duration_seconds_after": 13.439,
|
||||
"successful_requests_before": 100000,
|
||||
"successful_requests_after": 100000,
|
||||
"failed_requests_before": 0,
|
||||
"failed_requests_after": 0,
|
||||
"rps_before": 7442.895,
|
||||
"rps_after": 7440.817,
|
||||
"p50_ms_before": 1.977,
|
||||
"p50_ms_after": 1.989,
|
||||
"p95_ms_before": 3.485,
|
||||
"p95_ms_after": 3.468,
|
||||
"p99_ms_before": 4.703,
|
||||
"p99_ms_after": 4.701,
|
||||
"rss_max_kib_before": 75616,
|
||||
"rss_max_kib_after": 73712
|
||||
},
|
||||
{
|
||||
"history": 10000,
|
||||
"concurrency": 32,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"duration_seconds_before": 13.546,
|
||||
"duration_seconds_after": 13.478,
|
||||
"successful_requests_before": 100000,
|
||||
"successful_requests_after": 100000,
|
||||
"failed_requests_before": 0,
|
||||
"failed_requests_after": 0,
|
||||
"rps_before": 7382.485,
|
||||
"rps_after": 7419.326,
|
||||
"p50_ms_before": 4.01,
|
||||
"p50_ms_after": 3.984,
|
||||
"p95_ms_before": 7.051,
|
||||
"p95_ms_after": 7.049,
|
||||
"p99_ms_before": 9.096,
|
||||
"p99_ms_after": 9.096,
|
||||
"rss_max_kib_before": 77792,
|
||||
"rss_max_kib_after": 70976
|
||||
},
|
||||
{
|
||||
"history": 50000,
|
||||
"concurrency": 1,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"duration_seconds_before": 13.969,
|
||||
"duration_seconds_after": 13.863,
|
||||
"successful_requests_before": 100000,
|
||||
"successful_requests_after": 100000,
|
||||
"failed_requests_before": 0,
|
||||
"failed_requests_after": 0,
|
||||
"rps_before": 7158.653,
|
||||
"rps_after": 7213.61,
|
||||
"p50_ms_before": 0.13,
|
||||
"p50_ms_after": 0.129,
|
||||
"p95_ms_before": 0.149,
|
||||
"p95_ms_after": 0.145,
|
||||
"p99_ms_before": 0.211,
|
||||
"p99_ms_after": 0.191,
|
||||
"rss_max_kib_before": 81072,
|
||||
"rss_max_kib_after": 81824
|
||||
},
|
||||
{
|
||||
"history": 50000,
|
||||
"concurrency": 4,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"duration_seconds_before": 11.014,
|
||||
"duration_seconds_after": 11.066,
|
||||
"successful_requests_before": 100000,
|
||||
"successful_requests_after": 100000,
|
||||
"failed_requests_before": 0,
|
||||
"failed_requests_after": 0,
|
||||
"rps_before": 9079.212,
|
||||
"rps_after": 9036.335,
|
||||
"p50_ms_before": 0.404,
|
||||
"p50_ms_after": 0.405,
|
||||
"p95_ms_before": 0.623,
|
||||
"p95_ms_after": 0.63,
|
||||
"p99_ms_before": 0.823,
|
||||
"p99_ms_after": 0.842,
|
||||
"rss_max_kib_before": 77088,
|
||||
"rss_max_kib_after": 86832
|
||||
},
|
||||
{
|
||||
"history": 50000,
|
||||
"concurrency": 16,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"duration_seconds_before": 13.479,
|
||||
"duration_seconds_after": 13.416,
|
||||
"successful_requests_before": 100000,
|
||||
"successful_requests_after": 100000,
|
||||
"failed_requests_before": 0,
|
||||
"failed_requests_after": 0,
|
||||
"rps_before": 7419.068,
|
||||
"rps_after": 7453.53,
|
||||
"p50_ms_before": 1.99,
|
||||
"p50_ms_after": 1.978,
|
||||
"p95_ms_before": 3.471,
|
||||
"p95_ms_after": 3.455,
|
||||
"p99_ms_before": 4.694,
|
||||
"p99_ms_after": 4.688,
|
||||
"rss_max_kib_before": 79552,
|
||||
"rss_max_kib_after": 89824
|
||||
},
|
||||
{
|
||||
"history": 50000,
|
||||
"concurrency": 32,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"duration_seconds_before": 13.464,
|
||||
"duration_seconds_after": 13.542,
|
||||
"successful_requests_before": 100000,
|
||||
"successful_requests_after": 100000,
|
||||
"failed_requests_before": 0,
|
||||
"failed_requests_after": 0,
|
||||
"rps_before": 7427.333,
|
||||
"rps_after": 7384.536,
|
||||
"p50_ms_before": 3.99,
|
||||
"p50_ms_after": 4.005,
|
||||
"p95_ms_before": 7.049,
|
||||
"p95_ms_after": 7.084,
|
||||
"p99_ms_before": 9.007,
|
||||
"p99_ms_after": 9.203,
|
||||
"rss_max_kib_before": 89552,
|
||||
"rss_max_kib_after": 80128
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,209 @@
|
||||
{
|
||||
"mode": "optimized",
|
||||
"command": [
|
||||
"go",
|
||||
"run",
|
||||
"./cmd/messenger"
|
||||
],
|
||||
"go_version": "go version go1.27.1 darwin/arm64",
|
||||
"os_arch": [
|
||||
"darwin",
|
||||
"arm64"
|
||||
],
|
||||
"requests_per_case": 100000,
|
||||
"rss_source": "ps RSS of go run child executable, KiB; sampled every 100 ms",
|
||||
"rows": [
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 1,
|
||||
"duration_seconds": 13.919,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7184.594,
|
||||
"p50_ms": 0.129,
|
||||
"p95_ms": 0.15,
|
||||
"p99_ms": 0.231,
|
||||
"rss_min_kib": 23504,
|
||||
"rss_max_kib": 62048,
|
||||
"rss_delta_kib": 38544
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 4,
|
||||
"duration_seconds": 11.115,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 8996.523,
|
||||
"p50_ms": 0.407,
|
||||
"p95_ms": 0.632,
|
||||
"p99_ms": 0.867,
|
||||
"rss_min_kib": 23744,
|
||||
"rss_max_kib": 61040,
|
||||
"rss_delta_kib": 37296
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 16,
|
||||
"duration_seconds": 13.364,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7482.719,
|
||||
"p50_ms": 1.977,
|
||||
"p95_ms": 3.445,
|
||||
"p99_ms": 4.577,
|
||||
"rss_min_kib": 22480,
|
||||
"rss_max_kib": 61328,
|
||||
"rss_delta_kib": 38848
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 32,
|
||||
"duration_seconds": 13.547,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7381.5,
|
||||
"p50_ms": 4.016,
|
||||
"p95_ms": 7.058,
|
||||
"p99_ms": 9.054,
|
||||
"rss_min_kib": 23152,
|
||||
"rss_max_kib": 68768,
|
||||
"rss_delta_kib": 45616
|
||||
},
|
||||
{
|
||||
"history": 10000,
|
||||
"concurrency": 1,
|
||||
"duration_seconds": 13.984,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7150.931,
|
||||
"p50_ms": 0.131,
|
||||
"p95_ms": 0.146,
|
||||
"p99_ms": 0.187,
|
||||
"rss_min_kib": 25936,
|
||||
"rss_max_kib": 68128,
|
||||
"rss_delta_kib": 42192
|
||||
},
|
||||
{
|
||||
"history": 10000,
|
||||
"concurrency": 4,
|
||||
"duration_seconds": 11.046,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 9052.965,
|
||||
"p50_ms": 0.404,
|
||||
"p95_ms": 0.628,
|
||||
"p99_ms": 0.859,
|
||||
"rss_min_kib": 26448,
|
||||
"rss_max_kib": 71632,
|
||||
"rss_delta_kib": 45184
|
||||
},
|
||||
{
|
||||
"history": 10000,
|
||||
"concurrency": 16,
|
||||
"duration_seconds": 13.439,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7440.817,
|
||||
"p50_ms": 1.989,
|
||||
"p95_ms": 3.468,
|
||||
"p99_ms": 4.701,
|
||||
"rss_min_kib": 26480,
|
||||
"rss_max_kib": 73712,
|
||||
"rss_delta_kib": 47232
|
||||
},
|
||||
{
|
||||
"history": 10000,
|
||||
"concurrency": 32,
|
||||
"duration_seconds": 13.478,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7419.326,
|
||||
"p50_ms": 3.984,
|
||||
"p95_ms": 7.049,
|
||||
"p99_ms": 9.096,
|
||||
"rss_min_kib": 26176,
|
||||
"rss_max_kib": 70976,
|
||||
"rss_delta_kib": 44800
|
||||
},
|
||||
{
|
||||
"history": 50000,
|
||||
"concurrency": 1,
|
||||
"duration_seconds": 13.863,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7213.61,
|
||||
"p50_ms": 0.129,
|
||||
"p95_ms": 0.145,
|
||||
"p99_ms": 0.191,
|
||||
"rss_min_kib": 40592,
|
||||
"rss_max_kib": 81824,
|
||||
"rss_delta_kib": 41232
|
||||
},
|
||||
{
|
||||
"history": 50000,
|
||||
"concurrency": 4,
|
||||
"duration_seconds": 11.066,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 9036.335,
|
||||
"p50_ms": 0.405,
|
||||
"p95_ms": 0.63,
|
||||
"p99_ms": 0.842,
|
||||
"rss_min_kib": 42944,
|
||||
"rss_max_kib": 86832,
|
||||
"rss_delta_kib": 43888
|
||||
},
|
||||
{
|
||||
"history": 50000,
|
||||
"concurrency": 16,
|
||||
"duration_seconds": 13.416,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7453.53,
|
||||
"p50_ms": 1.978,
|
||||
"p95_ms": 3.455,
|
||||
"p99_ms": 4.688,
|
||||
"rss_min_kib": 40768,
|
||||
"rss_max_kib": 89824,
|
||||
"rss_delta_kib": 49056
|
||||
},
|
||||
{
|
||||
"history": 50000,
|
||||
"concurrency": 32,
|
||||
"duration_seconds": 13.542,
|
||||
"requested_requests": 100000,
|
||||
"warmup_requests": 100,
|
||||
"successful_requests": 100000,
|
||||
"failed_requests": 0,
|
||||
"rps": 7384.536,
|
||||
"p50_ms": 4.005,
|
||||
"p95_ms": 7.084,
|
||||
"p99_ms": 9.203,
|
||||
"rss_min_kib": 42848,
|
||||
"rss_max_kib": 80128,
|
||||
"rss_delta_kib": 37280
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.02,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 117712,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1961.212,
|
||||
"successful_latency_ms": {
|
||||
"p50": 3.984,
|
||||
"p95": 6.09,
|
||||
"p99": 8.13
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.02,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 114389,
|
||||
"failed_requests": 340,
|
||||
"error_ratio": 0.002964,
|
||||
"successful_rps": 1905.841,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.032,
|
||||
"p95": 6.456,
|
||||
"p99": 9.098
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.02,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 117266,
|
||||
"failed_requests": 1984,
|
||||
"error_ratio": 0.016637,
|
||||
"successful_rps": 1953.781,
|
||||
"successful_latency_ms": {
|
||||
"p50": 3.923,
|
||||
"p95": 6.062,
|
||||
"p99": 8.041
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.018,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 111442,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1856.809,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.132,
|
||||
"p95": 6.761,
|
||||
"p99": 9.34
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.016,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 113438,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1890.142,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.133,
|
||||
"p95": 6.416,
|
||||
"p99": 8.487
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.023,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 109073,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1817.2,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.258,
|
||||
"p95": 6.758,
|
||||
"p99": 9.171
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.02,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 113740,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1895.027,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.031,
|
||||
"p95": 6.507,
|
||||
"p99": 8.906
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.023,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 117433,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1956.481,
|
||||
"successful_latency_ms": {
|
||||
"p50": 3.957,
|
||||
"p95": 6.18,
|
||||
"p99": 8.499
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.014,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 107236,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1786.838,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.288,
|
||||
"p95": 7.051,
|
||||
"p99": 10.001
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
goos: darwin
|
||||
goarch: arm64
|
||||
pkg: mtusi-messenger/internal/storage/memory
|
||||
cpu: Apple M5 Pro
|
||||
BenchmarkMessageCreate/history=1000-18 4830075 243.3 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=1000-18 4958697 241.4 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=1000-18 4984602 241.8 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=1000-18 4976372 241.8 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=1000-18 4962843 241.7 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=10000-18 4967149 241.8 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=10000-18 4946976 242.1 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=10000-18 4950400 242.3 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=10000-18 4938321 242.4 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=10000-18 4955269 242.2 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=50000-18 4943572 242.0 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=50000-18 4969927 242.4 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=50000-18 4931466 242.5 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=50000-18 4948990 242.8 ns/op 16 B/op 1 allocs/op
|
||||
BenchmarkMessageCreate/history=50000-18 4953249 242.6 ns/op 16 B/op 1 allocs/op
|
||||
PASS
|
||||
ok mtusi-messenger/internal/storage/memory 18.240s
|
||||
@@ -0,0 +1,128 @@
|
||||
[
|
||||
{
|
||||
"history": 100,
|
||||
"concurrency": 1,
|
||||
"duration_seconds": 2.002,
|
||||
"successful_requests": 531,
|
||||
"failed_requests": 0,
|
||||
"rps": 265.189,
|
||||
"p50_ms": 3.355,
|
||||
"p95_ms": 4.276,
|
||||
"p99_ms": 17.123,
|
||||
"rss_min_kib": 18800,
|
||||
"rss_max_kib": 22736,
|
||||
"rss_delta_kib": 3936
|
||||
},
|
||||
{
|
||||
"history": 100,
|
||||
"concurrency": 4,
|
||||
"duration_seconds": 2.005,
|
||||
"successful_requests": 1445,
|
||||
"failed_requests": 0,
|
||||
"rps": 720.55,
|
||||
"p50_ms": 4.197,
|
||||
"p95_ms": 16.868,
|
||||
"p99_ms": 21.043,
|
||||
"rss_min_kib": 20768,
|
||||
"rss_max_kib": 24128,
|
||||
"rss_delta_kib": 3360
|
||||
},
|
||||
{
|
||||
"history": 100,
|
||||
"concurrency": 16,
|
||||
"duration_seconds": 2.012,
|
||||
"successful_requests": 2265,
|
||||
"failed_requests": 0,
|
||||
"rps": 1125.923,
|
||||
"p50_ms": 8.851,
|
||||
"p95_ms": 29.142,
|
||||
"p99_ms": 91.221,
|
||||
"rss_min_kib": 20672,
|
||||
"rss_max_kib": 25216,
|
||||
"rss_delta_kib": 4544
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 1,
|
||||
"duration_seconds": 2.011,
|
||||
"successful_requests": 478,
|
||||
"failed_requests": 0,
|
||||
"rps": 237.68,
|
||||
"p50_ms": 3.467,
|
||||
"p95_ms": 11.279,
|
||||
"p99_ms": 19.675,
|
||||
"rss_min_kib": 23264,
|
||||
"rss_max_kib": 23504,
|
||||
"rss_delta_kib": 240
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 4,
|
||||
"duration_seconds": 2.004,
|
||||
"successful_requests": 1337,
|
||||
"failed_requests": 0,
|
||||
"rps": 667.05,
|
||||
"p50_ms": 4.249,
|
||||
"p95_ms": 17.243,
|
||||
"p99_ms": 29.938,
|
||||
"rss_min_kib": 23264,
|
||||
"rss_max_kib": 25280,
|
||||
"rss_delta_kib": 2016
|
||||
},
|
||||
{
|
||||
"history": 1000,
|
||||
"concurrency": 16,
|
||||
"duration_seconds": 2.005,
|
||||
"successful_requests": 2211,
|
||||
"failed_requests": 0,
|
||||
"rps": 1102.581,
|
||||
"p50_ms": 8.818,
|
||||
"p95_ms": 30.252,
|
||||
"p99_ms": 93.912,
|
||||
"rss_min_kib": 23424,
|
||||
"rss_max_kib": 25200,
|
||||
"rss_delta_kib": 1776
|
||||
},
|
||||
{
|
||||
"history": 5000,
|
||||
"concurrency": 1,
|
||||
"duration_seconds": 2.002,
|
||||
"successful_requests": 483,
|
||||
"failed_requests": 0,
|
||||
"rps": 241.241,
|
||||
"p50_ms": 3.466,
|
||||
"p95_ms": 10.897,
|
||||
"p99_ms": 18.681,
|
||||
"rss_min_kib": 25456,
|
||||
"rss_max_kib": 25456,
|
||||
"rss_delta_kib": 0
|
||||
},
|
||||
{
|
||||
"history": 5000,
|
||||
"concurrency": 4,
|
||||
"duration_seconds": 2.003,
|
||||
"successful_requests": 1374,
|
||||
"failed_requests": 0,
|
||||
"rps": 685.839,
|
||||
"p50_ms": 4.207,
|
||||
"p95_ms": 17.418,
|
||||
"p99_ms": 26.618,
|
||||
"rss_min_kib": 24304,
|
||||
"rss_max_kib": 25376,
|
||||
"rss_delta_kib": 1072
|
||||
},
|
||||
{
|
||||
"history": 5000,
|
||||
"concurrency": 16,
|
||||
"duration_seconds": 2.002,
|
||||
"successful_requests": 2162,
|
||||
"failed_requests": 0,
|
||||
"rps": 1079.866,
|
||||
"p50_ms": 8.939,
|
||||
"p95_ms": 31.525,
|
||||
"p99_ms": 94.709,
|
||||
"rss_min_kib": 24848,
|
||||
"rss_max_kib": 26640,
|
||||
"rss_delta_kib": 1792
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
{"label":"db1cpu","replicas":2,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15}
|
||||
@@ -0,0 +1 @@
|
||||
{"label":"g05","replicas":2,"total_cpu":0.5,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15}
|
||||
@@ -0,0 +1 @@
|
||||
{"label":"g10","replicas":2,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15}
|
||||
@@ -0,0 +1 @@
|
||||
{"label":"g15","replicas":2,"total_cpu":1.5,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15}
|
||||
@@ -0,0 +1 @@
|
||||
{"label":"pool10","replicas":4,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15}
|
||||
@@ -0,0 +1 @@
|
||||
{"label":"pool5","replicas":4,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15}
|
||||
@@ -0,0 +1 @@
|
||||
{"label":"r1","replicas":1,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15}
|
||||
@@ -0,0 +1 @@
|
||||
{"label":"r2","replicas":2,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15}
|
||||
@@ -0,0 +1 @@
|
||||
{"label":"r4","replicas":4,"total_cpu":1.0,"total_mem_mb":768,"duration":60,"concurrency":8,"warmup":15}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 60 KiB |
@@ -0,0 +1,101 @@
|
||||
timestamp,container,cpu_percent,mem_usage
|
||||
2026-10-15T19:05:43Z,mtusi-messenger-lab3-api-14,19.81%,171.3MiB / 384MiB
|
||||
2026-10-15T19:05:43Z,mtusi-messenger-lab3-api-15,19.83%,169.6MiB / 384MiB
|
||||
2026-10-15T19:05:43Z,mtusi-messenger-lab3-postgres-1,38.36%,78.45MiB / 384MiB
|
||||
2026-10-15T19:05:43Z,mtusi-messenger-lab3-lb-1,12.90%,4.754MiB / 64MiB
|
||||
2026-10-15T19:05:43Z,mtusi-messenger-lab3-redis-1,0.22%,6.32MiB / 192MiB
|
||||
2026-10-15T19:05:46Z,mtusi-messenger-lab3-api-14,19.69%,11.96MiB / 384MiB
|
||||
2026-10-15T19:05:46Z,mtusi-messenger-lab3-api-15,20.57%,11.95MiB / 384MiB
|
||||
2026-10-15T19:05:46Z,mtusi-messenger-lab3-postgres-1,57.52%,83.28MiB / 384MiB
|
||||
2026-10-15T19:05:46Z,mtusi-messenger-lab3-lb-1,12.32%,4.758MiB / 64MiB
|
||||
2026-10-15T19:05:46Z,mtusi-messenger-lab3-redis-1,0.77%,6.32MiB / 192MiB
|
||||
2026-10-15T19:05:49Z,mtusi-messenger-lab3-api-14,20.20%,11.88MiB / 384MiB
|
||||
2026-10-15T19:05:49Z,mtusi-messenger-lab3-api-15,20.31%,12.03MiB / 384MiB
|
||||
2026-10-15T19:05:49Z,mtusi-messenger-lab3-postgres-1,58.70%,86.24MiB / 384MiB
|
||||
2026-10-15T19:05:49Z,mtusi-messenger-lab3-lb-1,12.39%,4.758MiB / 64MiB
|
||||
2026-10-15T19:05:49Z,mtusi-messenger-lab3-redis-1,0.24%,6.32MiB / 192MiB
|
||||
2026-10-15T19:05:52Z,mtusi-messenger-lab3-api-14,19.64%,12.94MiB / 384MiB
|
||||
2026-10-15T19:05:52Z,mtusi-messenger-lab3-api-15,20.01%,11.41MiB / 384MiB
|
||||
2026-10-15T19:05:52Z,mtusi-messenger-lab3-postgres-1,58.35%,88.61MiB / 384MiB
|
||||
2026-10-15T19:05:52Z,mtusi-messenger-lab3-lb-1,12.27%,4.727MiB / 64MiB
|
||||
2026-10-15T19:05:52Z,mtusi-messenger-lab3-redis-1,0.23%,6.32MiB / 192MiB
|
||||
2026-10-15T19:05:55Z,mtusi-messenger-lab3-api-14,20.22%,12.78MiB / 384MiB
|
||||
2026-10-15T19:05:55Z,mtusi-messenger-lab3-api-15,19.27%,11.62MiB / 384MiB
|
||||
2026-10-15T19:05:55Z,mtusi-messenger-lab3-postgres-1,57.95%,92.84MiB / 384MiB
|
||||
2026-10-15T19:05:55Z,mtusi-messenger-lab3-lb-1,12.21%,4.738MiB / 64MiB
|
||||
2026-10-15T19:05:55Z,mtusi-messenger-lab3-redis-1,0.78%,6.32MiB / 192MiB
|
||||
2026-10-15T19:05:58Z,mtusi-messenger-lab3-api-14,20.70%,12.79MiB / 384MiB
|
||||
2026-10-15T19:05:58Z,mtusi-messenger-lab3-api-15,21.21%,11.7MiB / 384MiB
|
||||
2026-10-15T19:05:58Z,mtusi-messenger-lab3-postgres-1,61.29%,96.34MiB / 384MiB
|
||||
2026-10-15T19:05:58Z,mtusi-messenger-lab3-lb-1,12.84%,4.762MiB / 64MiB
|
||||
2026-10-15T19:05:58Z,mtusi-messenger-lab3-redis-1,0.23%,6.32MiB / 192MiB
|
||||
2026-10-15T19:06:01Z,mtusi-messenger-lab3-api-14,21.09%,12.96MiB / 384MiB
|
||||
2026-10-15T19:06:01Z,mtusi-messenger-lab3-api-15,20.33%,11.8MiB / 384MiB
|
||||
2026-10-15T19:06:01Z,mtusi-messenger-lab3-postgres-1,58.81%,102.3MiB / 384MiB
|
||||
2026-10-15T19:06:01Z,mtusi-messenger-lab3-lb-1,12.05%,4.754MiB / 64MiB
|
||||
2026-10-15T19:06:01Z,mtusi-messenger-lab3-redis-1,0.83%,6.32MiB / 192MiB
|
||||
2026-10-15T19:06:04Z,mtusi-messenger-lab3-api-14,20.21%,12.85MiB / 384MiB
|
||||
2026-10-15T19:06:04Z,mtusi-messenger-lab3-api-15,19.93%,11.73MiB / 384MiB
|
||||
2026-10-15T19:06:04Z,mtusi-messenger-lab3-postgres-1,59.51%,105.7MiB / 384MiB
|
||||
2026-10-15T19:06:04Z,mtusi-messenger-lab3-lb-1,12.60%,4.754MiB / 64MiB
|
||||
2026-10-15T19:06:04Z,mtusi-messenger-lab3-redis-1,0.25%,6.32MiB / 192MiB
|
||||
2026-10-15T19:06:07Z,mtusi-messenger-lab3-api-14,19.57%,12.88MiB / 384MiB
|
||||
2026-10-15T19:06:07Z,mtusi-messenger-lab3-api-15,19.51%,11.56MiB / 384MiB
|
||||
2026-10-15T19:06:07Z,mtusi-messenger-lab3-postgres-1,54.92%,108.8MiB / 384MiB
|
||||
2026-10-15T19:06:07Z,mtusi-messenger-lab3-lb-1,11.80%,4.73MiB / 64MiB
|
||||
2026-10-15T19:06:07Z,mtusi-messenger-lab3-redis-1,0.23%,6.32MiB / 192MiB
|
||||
2026-10-15T19:06:10Z,mtusi-messenger-lab3-api-14,19.80%,12.83MiB / 384MiB
|
||||
2026-10-15T19:06:10Z,mtusi-messenger-lab3-api-15,20.15%,11.79MiB / 384MiB
|
||||
2026-10-15T19:06:10Z,mtusi-messenger-lab3-postgres-1,55.61%,111.5MiB / 384MiB
|
||||
2026-10-15T19:06:10Z,mtusi-messenger-lab3-lb-1,12.71%,4.727MiB / 64MiB
|
||||
2026-10-15T19:06:10Z,mtusi-messenger-lab3-redis-1,0.73%,6.32MiB / 192MiB
|
||||
2026-10-15T19:06:13Z,mtusi-messenger-lab3-api-14,19.62%,12.82MiB / 384MiB
|
||||
2026-10-15T19:06:13Z,mtusi-messenger-lab3-api-15,19.45%,11.72MiB / 384MiB
|
||||
2026-10-15T19:06:13Z,mtusi-messenger-lab3-postgres-1,56.81%,113.5MiB / 384MiB
|
||||
2026-10-15T19:06:13Z,mtusi-messenger-lab3-lb-1,11.95%,4.715MiB / 64MiB
|
||||
2026-10-15T19:06:13Z,mtusi-messenger-lab3-redis-1,0.24%,6.32MiB / 192MiB
|
||||
2026-10-15T19:06:15Z,mtusi-messenger-lab3-api-14,19.78%,12.93MiB / 384MiB
|
||||
2026-10-15T19:06:15Z,mtusi-messenger-lab3-api-15,19.93%,11.73MiB / 384MiB
|
||||
2026-10-15T19:06:15Z,mtusi-messenger-lab3-postgres-1,58.14%,116.5MiB / 384MiB
|
||||
2026-10-15T19:06:15Z,mtusi-messenger-lab3-lb-1,12.32%,4.746MiB / 64MiB
|
||||
2026-10-15T19:06:15Z,mtusi-messenger-lab3-redis-1,0.73%,6.32MiB / 192MiB
|
||||
2026-10-15T19:06:18Z,mtusi-messenger-lab3-api-14,20.01%,12.91MiB / 384MiB
|
||||
2026-10-15T19:06:18Z,mtusi-messenger-lab3-api-15,19.95%,11.8MiB / 384MiB
|
||||
2026-10-15T19:06:18Z,mtusi-messenger-lab3-postgres-1,59.13%,119.9MiB / 384MiB
|
||||
2026-10-15T19:06:18Z,mtusi-messenger-lab3-lb-1,12.38%,4.746MiB / 64MiB
|
||||
2026-10-15T19:06:18Z,mtusi-messenger-lab3-redis-1,0.24%,6.32MiB / 192MiB
|
||||
2026-10-15T19:06:21Z,mtusi-messenger-lab3-api-14,20.05%,12.79MiB / 384MiB
|
||||
2026-10-15T19:06:21Z,mtusi-messenger-lab3-api-15,20.46%,11.82MiB / 384MiB
|
||||
2026-10-15T19:06:21Z,mtusi-messenger-lab3-postgres-1,56.55%,123.3MiB / 384MiB
|
||||
2026-10-15T19:06:21Z,mtusi-messenger-lab3-lb-1,11.91%,4.77MiB / 64MiB
|
||||
2026-10-15T19:06:21Z,mtusi-messenger-lab3-redis-1,0.23%,6.32MiB / 192MiB
|
||||
2026-10-15T19:06:25Z,mtusi-messenger-lab3-api-14,19.83%,13.04MiB / 384MiB
|
||||
2026-10-15T19:06:25Z,mtusi-messenger-lab3-api-15,19.91%,11.82MiB / 384MiB
|
||||
2026-10-15T19:06:25Z,mtusi-messenger-lab3-postgres-1,57.49%,125.2MiB / 384MiB
|
||||
2026-10-15T19:06:25Z,mtusi-messenger-lab3-lb-1,12.00%,4.789MiB / 64MiB
|
||||
2026-10-15T19:06:25Z,mtusi-messenger-lab3-redis-1,0.76%,6.32MiB / 192MiB
|
||||
2026-10-15T19:06:28Z,mtusi-messenger-lab3-api-14,20.71%,12.79MiB / 384MiB
|
||||
2026-10-15T19:06:28Z,mtusi-messenger-lab3-api-15,19.92%,11.71MiB / 384MiB
|
||||
2026-10-15T19:06:28Z,mtusi-messenger-lab3-postgres-1,59.82%,129.1MiB / 384MiB
|
||||
2026-10-15T19:06:28Z,mtusi-messenger-lab3-lb-1,12.80%,4.723MiB / 64MiB
|
||||
2026-10-15T19:06:28Z,mtusi-messenger-lab3-redis-1,0.25%,6.32MiB / 192MiB
|
||||
2026-10-15T19:06:31Z,mtusi-messenger-lab3-api-14,20.59%,12.79MiB / 384MiB
|
||||
2026-10-15T19:06:31Z,mtusi-messenger-lab3-api-15,19.69%,11.76MiB / 384MiB
|
||||
2026-10-15T19:06:31Z,mtusi-messenger-lab3-postgres-1,58.74%,132.7MiB / 384MiB
|
||||
2026-10-15T19:06:31Z,mtusi-messenger-lab3-lb-1,12.20%,4.703MiB / 64MiB
|
||||
2026-10-15T19:06:31Z,mtusi-messenger-lab3-redis-1,0.23%,6.32MiB / 192MiB
|
||||
2026-10-15T19:06:34Z,mtusi-messenger-lab3-api-14,20.17%,13MiB / 384MiB
|
||||
2026-10-15T19:06:34Z,mtusi-messenger-lab3-api-15,20.27%,11.76MiB / 384MiB
|
||||
2026-10-15T19:06:34Z,mtusi-messenger-lab3-postgres-1,58.51%,135.7MiB / 384MiB
|
||||
2026-10-15T19:06:34Z,mtusi-messenger-lab3-lb-1,12.09%,4.738MiB / 64MiB
|
||||
2026-10-15T19:06:34Z,mtusi-messenger-lab3-redis-1,0.23%,6.32MiB / 192MiB
|
||||
2026-10-15T19:06:37Z,mtusi-messenger-lab3-api-14,19.98%,12.88MiB / 384MiB
|
||||
2026-10-15T19:06:37Z,mtusi-messenger-lab3-api-15,20.61%,11.8MiB / 384MiB
|
||||
2026-10-15T19:06:37Z,mtusi-messenger-lab3-postgres-1,56.89%,139.2MiB / 384MiB
|
||||
2026-10-15T19:06:37Z,mtusi-messenger-lab3-lb-1,12.27%,4.754MiB / 64MiB
|
||||
2026-10-15T19:06:37Z,mtusi-messenger-lab3-redis-1,0.22%,6.32MiB / 192MiB
|
||||
2026-10-15T19:06:40Z,mtusi-messenger-lab3-api-14,20.58%,13.01MiB / 384MiB
|
||||
2026-10-15T19:06:40Z,mtusi-messenger-lab3-api-15,19.44%,11.7MiB / 384MiB
|
||||
2026-10-15T19:06:40Z,mtusi-messenger-lab3-postgres-1,59.27%,142.4MiB / 384MiB
|
||||
2026-10-15T19:06:40Z,mtusi-messenger-lab3-lb-1,12.31%,4.746MiB / 64MiB
|
||||
2026-10-15T19:06:40Z,mtusi-messenger-lab3-redis-1,0.25%,6.32MiB / 192MiB
|
||||
|
@@ -0,0 +1,106 @@
|
||||
timestamp,container,cpu_percent,mem_usage
|
||||
2026-10-15T18:52:00Z,mtusi-messenger-lab3-api-12,7.06%,139MiB / 384MiB
|
||||
2026-10-15T18:52:00Z,mtusi-messenger-lab3-api-13,23.54%,139.3MiB / 384MiB
|
||||
2026-10-15T18:52:00Z,mtusi-messenger-lab3-lb-1,0.13%,5.102MiB / 64MiB
|
||||
2026-10-15T18:52:00Z,mtusi-messenger-lab3-postgres-1,1.05%,279.3MiB / 512MiB
|
||||
2026-10-15T18:52:00Z,mtusi-messenger-lab3-redis-1,0.40%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:03Z,mtusi-messenger-lab3-api-12,19.79%,194.5MiB / 384MiB
|
||||
2026-10-15T18:52:03Z,mtusi-messenger-lab3-api-13,20.37%,195.4MiB / 384MiB
|
||||
2026-10-15T18:52:03Z,mtusi-messenger-lab3-lb-1,12.28%,5.48MiB / 64MiB
|
||||
2026-10-15T18:52:03Z,mtusi-messenger-lab3-postgres-1,60.79%,282.8MiB / 512MiB
|
||||
2026-10-15T18:52:03Z,mtusi-messenger-lab3-redis-1,0.20%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:06Z,mtusi-messenger-lab3-api-12,20.15%,11.92MiB / 384MiB
|
||||
2026-10-15T18:52:06Z,mtusi-messenger-lab3-api-13,20.76%,12.44MiB / 384MiB
|
||||
2026-10-15T18:52:06Z,mtusi-messenger-lab3-lb-1,12.45%,5.492MiB / 64MiB
|
||||
2026-10-15T18:52:06Z,mtusi-messenger-lab3-postgres-1,59.77%,282.9MiB / 512MiB
|
||||
2026-10-15T18:52:06Z,mtusi-messenger-lab3-redis-1,0.79%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:09Z,mtusi-messenger-lab3-api-12,20.05%,11.88MiB / 384MiB
|
||||
2026-10-15T18:52:09Z,mtusi-messenger-lab3-api-13,20.18%,12.37MiB / 384MiB
|
||||
2026-10-15T18:52:09Z,mtusi-messenger-lab3-lb-1,12.45%,5.477MiB / 64MiB
|
||||
2026-10-15T18:52:09Z,mtusi-messenger-lab3-postgres-1,59.67%,283.2MiB / 512MiB
|
||||
2026-10-15T18:52:09Z,mtusi-messenger-lab3-redis-1,0.23%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:12Z,mtusi-messenger-lab3-api-12,20.46%,11.69MiB / 384MiB
|
||||
2026-10-15T18:52:12Z,mtusi-messenger-lab3-api-13,20.21%,11.68MiB / 384MiB
|
||||
2026-10-15T18:52:12Z,mtusi-messenger-lab3-lb-1,11.98%,5.234MiB / 64MiB
|
||||
2026-10-15T18:52:12Z,mtusi-messenger-lab3-postgres-1,58.24%,283.1MiB / 512MiB
|
||||
2026-10-15T18:52:12Z,mtusi-messenger-lab3-redis-1,0.22%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:15Z,mtusi-messenger-lab3-api-12,20.39%,11.67MiB / 384MiB
|
||||
2026-10-15T18:52:15Z,mtusi-messenger-lab3-api-13,20.15%,11.75MiB / 384MiB
|
||||
2026-10-15T18:52:15Z,mtusi-messenger-lab3-lb-1,12.51%,5.246MiB / 64MiB
|
||||
2026-10-15T18:52:15Z,mtusi-messenger-lab3-postgres-1,59.77%,283.1MiB / 512MiB
|
||||
2026-10-15T18:52:15Z,mtusi-messenger-lab3-redis-1,0.23%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:18Z,mtusi-messenger-lab3-api-12,19.92%,11.61MiB / 384MiB
|
||||
2026-10-15T18:52:18Z,mtusi-messenger-lab3-api-13,21.09%,11.73MiB / 384MiB
|
||||
2026-10-15T18:52:18Z,mtusi-messenger-lab3-lb-1,12.06%,5.219MiB / 64MiB
|
||||
2026-10-15T18:52:18Z,mtusi-messenger-lab3-postgres-1,57.45%,285.5MiB / 512MiB
|
||||
2026-10-15T18:52:18Z,mtusi-messenger-lab3-redis-1,0.25%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:21Z,mtusi-messenger-lab3-api-12,20.07%,11.55MiB / 384MiB
|
||||
2026-10-15T18:52:21Z,mtusi-messenger-lab3-api-13,19.96%,11.67MiB / 384MiB
|
||||
2026-10-15T18:52:21Z,mtusi-messenger-lab3-lb-1,12.51%,5.223MiB / 64MiB
|
||||
2026-10-15T18:52:21Z,mtusi-messenger-lab3-postgres-1,59.61%,285.8MiB / 512MiB
|
||||
2026-10-15T18:52:21Z,mtusi-messenger-lab3-redis-1,0.24%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:25Z,mtusi-messenger-lab3-api-12,19.43%,11.62MiB / 384MiB
|
||||
2026-10-15T18:52:25Z,mtusi-messenger-lab3-api-13,19.64%,11.57MiB / 384MiB
|
||||
2026-10-15T18:52:25Z,mtusi-messenger-lab3-lb-1,12.15%,5.219MiB / 64MiB
|
||||
2026-10-15T18:52:25Z,mtusi-messenger-lab3-postgres-1,57.16%,286.2MiB / 512MiB
|
||||
2026-10-15T18:52:25Z,mtusi-messenger-lab3-redis-1,0.23%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:28Z,mtusi-messenger-lab3-api-12,20.51%,11.68MiB / 384MiB
|
||||
2026-10-15T18:52:28Z,mtusi-messenger-lab3-api-13,19.61%,11.62MiB / 384MiB
|
||||
2026-10-15T18:52:28Z,mtusi-messenger-lab3-lb-1,12.39%,5.234MiB / 64MiB
|
||||
2026-10-15T18:52:28Z,mtusi-messenger-lab3-postgres-1,58.61%,286.2MiB / 512MiB
|
||||
2026-10-15T18:52:28Z,mtusi-messenger-lab3-redis-1,0.25%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:31Z,mtusi-messenger-lab3-api-12,19.92%,11.63MiB / 384MiB
|
||||
2026-10-15T18:52:31Z,mtusi-messenger-lab3-api-13,19.68%,11.61MiB / 384MiB
|
||||
2026-10-15T18:52:31Z,mtusi-messenger-lab3-lb-1,11.99%,5.258MiB / 64MiB
|
||||
2026-10-15T18:52:31Z,mtusi-messenger-lab3-postgres-1,58.08%,286.6MiB / 512MiB
|
||||
2026-10-15T18:52:31Z,mtusi-messenger-lab3-redis-1,0.75%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:34Z,mtusi-messenger-lab3-api-12,20.42%,11.14MiB / 384MiB
|
||||
2026-10-15T18:52:34Z,mtusi-messenger-lab3-api-13,20.22%,11.64MiB / 384MiB
|
||||
2026-10-15T18:52:34Z,mtusi-messenger-lab3-lb-1,12.20%,5.215MiB / 64MiB
|
||||
2026-10-15T18:52:34Z,mtusi-messenger-lab3-postgres-1,59.14%,286.9MiB / 512MiB
|
||||
2026-10-15T18:52:34Z,mtusi-messenger-lab3-redis-1,0.24%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:37Z,mtusi-messenger-lab3-api-12,20.04%,11.19MiB / 384MiB
|
||||
2026-10-15T18:52:37Z,mtusi-messenger-lab3-api-13,19.44%,11.64MiB / 384MiB
|
||||
2026-10-15T18:52:37Z,mtusi-messenger-lab3-lb-1,10.32%,5.086MiB / 64MiB
|
||||
2026-10-15T18:52:37Z,mtusi-messenger-lab3-postgres-1,57.77%,286.7MiB / 512MiB
|
||||
2026-10-15T18:52:37Z,mtusi-messenger-lab3-redis-1,0.23%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:40Z,mtusi-messenger-lab3-api-12,20.29%,11.27MiB / 384MiB
|
||||
2026-10-15T18:52:40Z,mtusi-messenger-lab3-api-13,20.07%,11.46MiB / 384MiB
|
||||
2026-10-15T18:52:40Z,mtusi-messenger-lab3-lb-1,12.58%,5.246MiB / 64MiB
|
||||
2026-10-15T18:52:40Z,mtusi-messenger-lab3-postgres-1,58.97%,286.8MiB / 512MiB
|
||||
2026-10-15T18:52:40Z,mtusi-messenger-lab3-redis-1,0.24%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:43Z,mtusi-messenger-lab3-api-12,20.92%,11.27MiB / 384MiB
|
||||
2026-10-15T18:52:43Z,mtusi-messenger-lab3-api-13,19.92%,11.21MiB / 384MiB
|
||||
2026-10-15T18:52:43Z,mtusi-messenger-lab3-lb-1,12.44%,5.238MiB / 64MiB
|
||||
2026-10-15T18:52:43Z,mtusi-messenger-lab3-postgres-1,59.46%,286.9MiB / 512MiB
|
||||
2026-10-15T18:52:43Z,mtusi-messenger-lab3-redis-1,0.24%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:46Z,mtusi-messenger-lab3-api-12,19.86%,11.27MiB / 384MiB
|
||||
2026-10-15T18:52:46Z,mtusi-messenger-lab3-api-13,19.73%,11.21MiB / 384MiB
|
||||
2026-10-15T18:52:46Z,mtusi-messenger-lab3-lb-1,12.33%,5.191MiB / 64MiB
|
||||
2026-10-15T18:52:46Z,mtusi-messenger-lab3-postgres-1,59.02%,286.9MiB / 512MiB
|
||||
2026-10-15T18:52:46Z,mtusi-messenger-lab3-redis-1,0.88%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:49Z,mtusi-messenger-lab3-api-12,20.89%,11.3MiB / 384MiB
|
||||
2026-10-15T18:52:49Z,mtusi-messenger-lab3-api-13,20.30%,11.21MiB / 384MiB
|
||||
2026-10-15T18:52:49Z,mtusi-messenger-lab3-lb-1,12.62%,5.25MiB / 64MiB
|
||||
2026-10-15T18:52:49Z,mtusi-messenger-lab3-postgres-1,60.37%,287MiB / 512MiB
|
||||
2026-10-15T18:52:49Z,mtusi-messenger-lab3-redis-1,0.24%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:52Z,mtusi-messenger-lab3-api-12,20.47%,11.3MiB / 384MiB
|
||||
2026-10-15T18:52:52Z,mtusi-messenger-lab3-api-13,19.29%,11.25MiB / 384MiB
|
||||
2026-10-15T18:52:52Z,mtusi-messenger-lab3-lb-1,11.77%,5.246MiB / 64MiB
|
||||
2026-10-15T18:52:52Z,mtusi-messenger-lab3-postgres-1,65.73%,288.6MiB / 512MiB
|
||||
2026-10-15T18:52:52Z,mtusi-messenger-lab3-redis-1,0.24%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:55Z,mtusi-messenger-lab3-api-12,20.53%,11.3MiB / 384MiB
|
||||
2026-10-15T18:52:55Z,mtusi-messenger-lab3-api-13,20.27%,11.25MiB / 384MiB
|
||||
2026-10-15T18:52:55Z,mtusi-messenger-lab3-lb-1,12.43%,5.16MiB / 64MiB
|
||||
2026-10-15T18:52:55Z,mtusi-messenger-lab3-postgres-1,70.45%,288.2MiB / 512MiB
|
||||
2026-10-15T18:52:55Z,mtusi-messenger-lab3-redis-1,0.78%,8.898MiB / 192MiB
|
||||
2026-10-15T18:52:58Z,mtusi-messenger-lab3-api-12,20.51%,11.3MiB / 384MiB
|
||||
2026-10-15T18:52:58Z,mtusi-messenger-lab3-api-13,20.69%,11.25MiB / 384MiB
|
||||
2026-10-15T18:52:58Z,mtusi-messenger-lab3-lb-1,12.78%,5.238MiB / 64MiB
|
||||
2026-10-15T18:52:58Z,mtusi-messenger-lab3-postgres-1,56.36%,289.3MiB / 512MiB
|
||||
2026-10-15T18:52:58Z,mtusi-messenger-lab3-redis-1,0.25%,8.898MiB / 192MiB
|
||||
2026-10-15T18:53:01Z,mtusi-messenger-lab3-lb-1,3.84%,5.23MiB / 64MiB
|
||||
2026-10-15T18:53:01Z,mtusi-messenger-lab3-postgres-1,21.56%,282.9MiB / 512MiB
|
||||
2026-10-15T18:53:01Z,mtusi-messenger-lab3-redis-1,0.80%,8.898MiB / 192MiB
|
||||
2026-10-15T18:53:01Z,mtusi-messenger-lab3-api-13,18.83%,135.3MiB / 384MiB
|
||||
2026-10-15T18:53:01Z,mtusi-messenger-lab3-api-12,18.89%,135.2MiB / 384MiB
|
||||
|
@@ -0,0 +1,101 @@
|
||||
timestamp,container,cpu_percent,mem_usage
|
||||
2026-10-15T18:53:18Z,mtusi-messenger-lab3-api-13,19.84%,170.9MiB / 384MiB
|
||||
2026-10-15T18:53:18Z,mtusi-messenger-lab3-api-12,19.64%,171MiB / 384MiB
|
||||
2026-10-15T18:53:18Z,mtusi-messenger-lab3-lb-1,12.57%,5.191MiB / 64MiB
|
||||
2026-10-15T18:53:18Z,mtusi-messenger-lab3-postgres-1,59.81%,318.8MiB / 512MiB
|
||||
2026-10-15T18:53:18Z,mtusi-messenger-lab3-redis-1,0.20%,8.898MiB / 192MiB
|
||||
2026-10-15T18:53:21Z,mtusi-messenger-lab3-api-13,19.80%,11.41MiB / 384MiB
|
||||
2026-10-15T18:53:21Z,mtusi-messenger-lab3-api-12,19.90%,11.51MiB / 384MiB
|
||||
2026-10-15T18:53:21Z,mtusi-messenger-lab3-lb-1,12.17%,5.254MiB / 64MiB
|
||||
2026-10-15T18:53:21Z,mtusi-messenger-lab3-postgres-1,58.11%,318.9MiB / 512MiB
|
||||
2026-10-15T18:53:21Z,mtusi-messenger-lab3-redis-1,0.75%,8.898MiB / 192MiB
|
||||
2026-10-15T18:53:24Z,mtusi-messenger-lab3-api-13,20.77%,11.41MiB / 384MiB
|
||||
2026-10-15T18:53:24Z,mtusi-messenger-lab3-api-12,19.82%,11.32MiB / 384MiB
|
||||
2026-10-15T18:53:24Z,mtusi-messenger-lab3-lb-1,12.92%,5.219MiB / 64MiB
|
||||
2026-10-15T18:53:24Z,mtusi-messenger-lab3-postgres-1,58.24%,319.4MiB / 512MiB
|
||||
2026-10-15T18:53:24Z,mtusi-messenger-lab3-redis-1,0.22%,8.898MiB / 192MiB
|
||||
2026-10-15T18:53:27Z,mtusi-messenger-lab3-api-13,21.25%,11.14MiB / 384MiB
|
||||
2026-10-15T18:53:27Z,mtusi-messenger-lab3-api-12,20.94%,11.16MiB / 384MiB
|
||||
2026-10-15T18:53:27Z,mtusi-messenger-lab3-lb-1,12.71%,5.223MiB / 64MiB
|
||||
2026-10-15T18:53:27Z,mtusi-messenger-lab3-postgres-1,60.44%,319.7MiB / 512MiB
|
||||
2026-10-15T18:53:27Z,mtusi-messenger-lab3-redis-1,0.23%,8.898MiB / 192MiB
|
||||
2026-10-15T18:53:31Z,mtusi-messenger-lab3-api-13,20.42%,11.13MiB / 384MiB
|
||||
2026-10-15T18:53:31Z,mtusi-messenger-lab3-api-12,20.45%,11.16MiB / 384MiB
|
||||
2026-10-15T18:53:31Z,mtusi-messenger-lab3-lb-1,12.43%,5.238MiB / 64MiB
|
||||
2026-10-15T18:53:31Z,mtusi-messenger-lab3-postgres-1,57.47%,331.4MiB / 512MiB
|
||||
2026-10-15T18:53:31Z,mtusi-messenger-lab3-redis-1,0.77%,8.898MiB / 192MiB
|
||||
2026-10-15T18:53:34Z,mtusi-messenger-lab3-api-13,3.14%,11.13MiB / 384MiB
|
||||
2026-10-15T18:53:34Z,mtusi-messenger-lab3-api-12,3.21%,11.09MiB / 384MiB
|
||||
2026-10-15T18:53:34Z,mtusi-messenger-lab3-lb-1,1.82%,5.48MiB / 64MiB
|
||||
2026-10-15T18:53:34Z,mtusi-messenger-lab3-postgres-1,9.18%,331.3MiB / 512MiB
|
||||
2026-10-15T18:53:34Z,mtusi-messenger-lab3-redis-1,0.22%,8.898MiB / 192MiB
|
||||
2026-10-15T18:53:37Z,mtusi-messenger-lab3-api-13,20.62%,11.12MiB / 384MiB
|
||||
2026-10-15T18:53:37Z,mtusi-messenger-lab3-api-12,20.29%,11.08MiB / 384MiB
|
||||
2026-10-15T18:53:37Z,mtusi-messenger-lab3-lb-1,12.12%,5.223MiB / 64MiB
|
||||
2026-10-15T18:53:37Z,mtusi-messenger-lab3-postgres-1,57.80%,331.7MiB / 512MiB
|
||||
2026-10-15T18:53:37Z,mtusi-messenger-lab3-redis-1,0.77%,8.898MiB / 192MiB
|
||||
2026-10-15T18:53:40Z,mtusi-messenger-lab3-api-13,20.17%,11.12MiB / 384MiB
|
||||
2026-10-15T18:53:40Z,mtusi-messenger-lab3-api-12,20.36%,11.15MiB / 384MiB
|
||||
2026-10-15T18:53:40Z,mtusi-messenger-lab3-lb-1,12.44%,5.238MiB / 64MiB
|
||||
2026-10-15T18:53:40Z,mtusi-messenger-lab3-postgres-1,58.95%,331.6MiB / 512MiB
|
||||
2026-10-15T18:53:40Z,mtusi-messenger-lab3-redis-1,0.22%,8.898MiB / 192MiB
|
||||
2026-10-15T18:53:43Z,mtusi-messenger-lab3-api-13,20.31%,11.02MiB / 384MiB
|
||||
2026-10-15T18:53:43Z,mtusi-messenger-lab3-api-12,20.91%,11.16MiB / 384MiB
|
||||
2026-10-15T18:53:43Z,mtusi-messenger-lab3-lb-1,12.66%,5.195MiB / 64MiB
|
||||
2026-10-15T18:53:43Z,mtusi-messenger-lab3-postgres-1,59.18%,331.6MiB / 512MiB
|
||||
2026-10-15T18:53:43Z,mtusi-messenger-lab3-redis-1,0.24%,8.898MiB / 192MiB
|
||||
2026-10-15T18:53:46Z,mtusi-messenger-lab3-api-13,19.73%,11.05MiB / 384MiB
|
||||
2026-10-15T18:53:46Z,mtusi-messenger-lab3-api-12,20.01%,11.14MiB / 384MiB
|
||||
2026-10-15T18:53:46Z,mtusi-messenger-lab3-lb-1,12.33%,5.254MiB / 64MiB
|
||||
2026-10-15T18:53:46Z,mtusi-messenger-lab3-postgres-1,58.92%,331.6MiB / 512MiB
|
||||
2026-10-15T18:53:46Z,mtusi-messenger-lab3-redis-1,0.85%,8.898MiB / 192MiB
|
||||
2026-10-15T18:53:49Z,mtusi-messenger-lab3-api-13,19.61%,11.05MiB / 384MiB
|
||||
2026-10-15T18:53:49Z,mtusi-messenger-lab3-api-12,20.70%,11.09MiB / 384MiB
|
||||
2026-10-15T18:53:49Z,mtusi-messenger-lab3-lb-1,12.37%,5.207MiB / 64MiB
|
||||
2026-10-15T18:53:49Z,mtusi-messenger-lab3-postgres-1,58.94%,331.8MiB / 512MiB
|
||||
2026-10-15T18:53:49Z,mtusi-messenger-lab3-redis-1,0.21%,8.898MiB / 192MiB
|
||||
2026-10-15T18:53:52Z,mtusi-messenger-lab3-api-13,17.84%,11MiB / 384MiB
|
||||
2026-10-15T18:53:52Z,mtusi-messenger-lab3-api-12,18.65%,11.12MiB / 384MiB
|
||||
2026-10-15T18:53:52Z,mtusi-messenger-lab3-lb-1,11.23%,5.18MiB / 64MiB
|
||||
2026-10-15T18:53:52Z,mtusi-messenger-lab3-postgres-1,60.38%,337.7MiB / 512MiB
|
||||
2026-10-15T18:53:52Z,mtusi-messenger-lab3-redis-1,0.21%,8.898MiB / 192MiB
|
||||
2026-10-15T18:53:55Z,mtusi-messenger-lab3-api-13,20.26%,11.01MiB / 384MiB
|
||||
2026-10-15T18:53:55Z,mtusi-messenger-lab3-api-12,20.57%,11.11MiB / 384MiB
|
||||
2026-10-15T18:53:55Z,mtusi-messenger-lab3-lb-1,12.39%,5.215MiB / 64MiB
|
||||
2026-10-15T18:53:55Z,mtusi-messenger-lab3-postgres-1,59.56%,334.1MiB / 512MiB
|
||||
2026-10-15T18:53:55Z,mtusi-messenger-lab3-redis-1,0.24%,8.898MiB / 192MiB
|
||||
2026-10-15T18:53:58Z,mtusi-messenger-lab3-api-13,20.38%,11.08MiB / 384MiB
|
||||
2026-10-15T18:53:58Z,mtusi-messenger-lab3-api-12,20.41%,11.27MiB / 384MiB
|
||||
2026-10-15T18:53:58Z,mtusi-messenger-lab3-lb-1,12.51%,5.25MiB / 64MiB
|
||||
2026-10-15T18:53:58Z,mtusi-messenger-lab3-postgres-1,59.53%,335.6MiB / 512MiB
|
||||
2026-10-15T18:53:58Z,mtusi-messenger-lab3-redis-1,0.23%,8.898MiB / 192MiB
|
||||
2026-10-15T18:54:01Z,mtusi-messenger-lab3-api-13,20.28%,10.96MiB / 384MiB
|
||||
2026-10-15T18:54:01Z,mtusi-messenger-lab3-api-12,19.98%,11.16MiB / 384MiB
|
||||
2026-10-15T18:54:01Z,mtusi-messenger-lab3-lb-1,12.11%,5.23MiB / 64MiB
|
||||
2026-10-15T18:54:01Z,mtusi-messenger-lab3-postgres-1,58.99%,335.7MiB / 512MiB
|
||||
2026-10-15T18:54:01Z,mtusi-messenger-lab3-redis-1,0.80%,8.898MiB / 192MiB
|
||||
2026-10-15T18:54:04Z,mtusi-messenger-lab3-api-13,19.75%,10.92MiB / 384MiB
|
||||
2026-10-15T18:54:04Z,mtusi-messenger-lab3-api-12,20.34%,11.27MiB / 384MiB
|
||||
2026-10-15T18:54:04Z,mtusi-messenger-lab3-lb-1,12.47%,5.23MiB / 64MiB
|
||||
2026-10-15T18:54:04Z,mtusi-messenger-lab3-postgres-1,58.33%,335.6MiB / 512MiB
|
||||
2026-10-15T18:54:04Z,mtusi-messenger-lab3-redis-1,0.24%,8.898MiB / 192MiB
|
||||
2026-10-15T18:54:07Z,mtusi-messenger-lab3-api-13,19.51%,10.94MiB / 384MiB
|
||||
2026-10-15T18:54:07Z,mtusi-messenger-lab3-api-12,20.43%,11.09MiB / 384MiB
|
||||
2026-10-15T18:54:07Z,mtusi-messenger-lab3-lb-1,12.31%,5.152MiB / 64MiB
|
||||
2026-10-15T18:54:07Z,mtusi-messenger-lab3-postgres-1,59.07%,335.5MiB / 512MiB
|
||||
2026-10-15T18:54:07Z,mtusi-messenger-lab3-redis-1,0.24%,8.898MiB / 192MiB
|
||||
2026-10-15T18:54:10Z,mtusi-messenger-lab3-api-13,20.24%,10.88MiB / 384MiB
|
||||
2026-10-15T18:54:10Z,mtusi-messenger-lab3-api-12,21.00%,11.22MiB / 384MiB
|
||||
2026-10-15T18:54:10Z,mtusi-messenger-lab3-lb-1,12.57%,5.23MiB / 64MiB
|
||||
2026-10-15T18:54:10Z,mtusi-messenger-lab3-postgres-1,58.95%,335.6MiB / 512MiB
|
||||
2026-10-15T18:54:10Z,mtusi-messenger-lab3-redis-1,0.22%,8.898MiB / 192MiB
|
||||
2026-10-15T18:54:14Z,mtusi-messenger-lab3-api-13,20.37%,11.08MiB / 384MiB
|
||||
2026-10-15T18:54:14Z,mtusi-messenger-lab3-api-12,20.12%,11.28MiB / 384MiB
|
||||
2026-10-15T18:54:14Z,mtusi-messenger-lab3-lb-1,12.41%,5.25MiB / 64MiB
|
||||
2026-10-15T18:54:14Z,mtusi-messenger-lab3-postgres-1,58.27%,335.6MiB / 512MiB
|
||||
2026-10-15T18:54:14Z,mtusi-messenger-lab3-redis-1,0.24%,8.898MiB / 192MiB
|
||||
2026-10-15T18:54:17Z,mtusi-messenger-lab3-api-13,18.20%,11.04MiB / 384MiB
|
||||
2026-10-15T18:54:17Z,mtusi-messenger-lab3-api-12,18.30%,11.12MiB / 384MiB
|
||||
2026-10-15T18:54:17Z,mtusi-messenger-lab3-lb-1,10.78%,5.09MiB / 64MiB
|
||||
2026-10-15T18:54:17Z,mtusi-messenger-lab3-postgres-1,53.19%,338.6MiB / 512MiB
|
||||
2026-10-15T18:54:17Z,mtusi-messenger-lab3-redis-1,0.79%,8.898MiB / 192MiB
|
||||
|
@@ -0,0 +1,101 @@
|
||||
timestamp,container,cpu_percent,mem_usage
|
||||
2026-10-15T18:54:35Z,mtusi-messenger-lab3-api-13,19.73%,172MiB / 384MiB
|
||||
2026-10-15T18:54:35Z,mtusi-messenger-lab3-api-12,19.66%,172.1MiB / 384MiB
|
||||
2026-10-15T18:54:35Z,mtusi-messenger-lab3-lb-1,9.83%,5.23MiB / 64MiB
|
||||
2026-10-15T18:54:35Z,mtusi-messenger-lab3-postgres-1,58.85%,334.9MiB / 512MiB
|
||||
2026-10-15T18:54:35Z,mtusi-messenger-lab3-redis-1,0.23%,8.898MiB / 192MiB
|
||||
2026-10-15T18:54:38Z,mtusi-messenger-lab3-api-13,19.67%,11.71MiB / 384MiB
|
||||
2026-10-15T18:54:38Z,mtusi-messenger-lab3-api-12,20.03%,11.73MiB / 384MiB
|
||||
2026-10-15T18:54:38Z,mtusi-messenger-lab3-lb-1,11.91%,5.254MiB / 64MiB
|
||||
2026-10-15T18:54:38Z,mtusi-messenger-lab3-postgres-1,57.40%,335MiB / 512MiB
|
||||
2026-10-15T18:54:38Z,mtusi-messenger-lab3-redis-1,0.23%,8.898MiB / 192MiB
|
||||
2026-10-15T18:54:41Z,mtusi-messenger-lab3-api-13,20.24%,11.59MiB / 384MiB
|
||||
2026-10-15T18:54:41Z,mtusi-messenger-lab3-api-12,20.02%,11.74MiB / 384MiB
|
||||
2026-10-15T18:54:41Z,mtusi-messenger-lab3-lb-1,12.02%,5.234MiB / 64MiB
|
||||
2026-10-15T18:54:41Z,mtusi-messenger-lab3-postgres-1,57.00%,335.2MiB / 512MiB
|
||||
2026-10-15T18:54:41Z,mtusi-messenger-lab3-redis-1,0.69%,8.898MiB / 192MiB
|
||||
2026-10-15T18:54:44Z,mtusi-messenger-lab3-api-13,20.61%,11.64MiB / 384MiB
|
||||
2026-10-15T18:54:44Z,mtusi-messenger-lab3-api-12,21.23%,11.5MiB / 384MiB
|
||||
2026-10-15T18:54:44Z,mtusi-messenger-lab3-lb-1,12.72%,5.234MiB / 64MiB
|
||||
2026-10-15T18:54:44Z,mtusi-messenger-lab3-postgres-1,59.13%,335.5MiB / 512MiB
|
||||
2026-10-15T18:54:44Z,mtusi-messenger-lab3-redis-1,0.24%,8.898MiB / 192MiB
|
||||
2026-10-15T18:54:47Z,mtusi-messenger-lab3-api-13,21.08%,11.4MiB / 384MiB
|
||||
2026-10-15T18:54:47Z,mtusi-messenger-lab3-api-12,20.84%,11.48MiB / 384MiB
|
||||
2026-10-15T18:54:47Z,mtusi-messenger-lab3-lb-1,12.41%,5.258MiB / 64MiB
|
||||
2026-10-15T18:54:47Z,mtusi-messenger-lab3-postgres-1,59.61%,335.4MiB / 512MiB
|
||||
2026-10-15T18:54:47Z,mtusi-messenger-lab3-redis-1,0.80%,8.898MiB / 192MiB
|
||||
2026-10-15T18:54:50Z,mtusi-messenger-lab3-api-13,20.79%,11.41MiB / 384MiB
|
||||
2026-10-15T18:54:50Z,mtusi-messenger-lab3-api-12,20.14%,11.4MiB / 384MiB
|
||||
2026-10-15T18:54:50Z,mtusi-messenger-lab3-lb-1,12.22%,5.258MiB / 64MiB
|
||||
2026-10-15T18:54:50Z,mtusi-messenger-lab3-postgres-1,59.45%,336MiB / 512MiB
|
||||
2026-10-15T18:54:50Z,mtusi-messenger-lab3-redis-1,0.22%,8.898MiB / 192MiB
|
||||
2026-10-15T18:54:53Z,mtusi-messenger-lab3-api-13,20.11%,11.41MiB / 384MiB
|
||||
2026-10-15T18:54:53Z,mtusi-messenger-lab3-api-12,20.59%,11.39MiB / 384MiB
|
||||
2026-10-15T18:54:53Z,mtusi-messenger-lab3-lb-1,12.10%,5.238MiB / 64MiB
|
||||
2026-10-15T18:54:53Z,mtusi-messenger-lab3-postgres-1,63.11%,342.4MiB / 512MiB
|
||||
2026-10-15T18:54:53Z,mtusi-messenger-lab3-redis-1,0.22%,8.898MiB / 192MiB
|
||||
2026-10-15T18:54:56Z,mtusi-messenger-lab3-api-13,17.39%,11.32MiB / 384MiB
|
||||
2026-10-15T18:54:56Z,mtusi-messenger-lab3-api-12,18.56%,11.49MiB / 384MiB
|
||||
2026-10-15T18:54:56Z,mtusi-messenger-lab3-lb-1,10.41%,5.242MiB / 64MiB
|
||||
2026-10-15T18:54:56Z,mtusi-messenger-lab3-postgres-1,69.97%,355.8MiB / 512MiB
|
||||
2026-10-15T18:54:56Z,mtusi-messenger-lab3-redis-1,0.74%,8.898MiB / 192MiB
|
||||
2026-10-15T18:54:59Z,mtusi-messenger-lab3-api-13,20.95%,11.33MiB / 384MiB
|
||||
2026-10-15T18:54:59Z,mtusi-messenger-lab3-api-12,20.19%,11.42MiB / 384MiB
|
||||
2026-10-15T18:54:59Z,mtusi-messenger-lab3-lb-1,12.72%,5.246MiB / 64MiB
|
||||
2026-10-15T18:54:59Z,mtusi-messenger-lab3-postgres-1,59.69%,356.3MiB / 512MiB
|
||||
2026-10-15T18:54:59Z,mtusi-messenger-lab3-redis-1,0.26%,8.898MiB / 192MiB
|
||||
2026-10-15T18:55:02Z,mtusi-messenger-lab3-api-13,20.35%,11.33MiB / 384MiB
|
||||
2026-10-15T18:55:02Z,mtusi-messenger-lab3-api-12,20.13%,11.26MiB / 384MiB
|
||||
2026-10-15T18:55:02Z,mtusi-messenger-lab3-lb-1,12.03%,5.258MiB / 64MiB
|
||||
2026-10-15T18:55:02Z,mtusi-messenger-lab3-postgres-1,57.98%,353.7MiB / 512MiB
|
||||
2026-10-15T18:55:02Z,mtusi-messenger-lab3-redis-1,0.26%,8.898MiB / 192MiB
|
||||
2026-10-15T18:55:05Z,mtusi-messenger-lab3-api-13,19.92%,11.36MiB / 384MiB
|
||||
2026-10-15T18:55:05Z,mtusi-messenger-lab3-api-12,20.86%,11.5MiB / 384MiB
|
||||
2026-10-15T18:55:05Z,mtusi-messenger-lab3-lb-1,12.50%,5.25MiB / 64MiB
|
||||
2026-10-15T18:55:05Z,mtusi-messenger-lab3-postgres-1,58.10%,354.7MiB / 512MiB
|
||||
2026-10-15T18:55:05Z,mtusi-messenger-lab3-redis-1,0.26%,8.898MiB / 192MiB
|
||||
2026-10-15T18:55:08Z,mtusi-messenger-lab3-api-13,21.50%,11.36MiB / 384MiB
|
||||
2026-10-15T18:55:08Z,mtusi-messenger-lab3-api-12,21.00%,11.57MiB / 384MiB
|
||||
2026-10-15T18:55:08Z,mtusi-messenger-lab3-lb-1,12.69%,5.246MiB / 64MiB
|
||||
2026-10-15T18:55:08Z,mtusi-messenger-lab3-postgres-1,58.50%,354.4MiB / 512MiB
|
||||
2026-10-15T18:55:08Z,mtusi-messenger-lab3-redis-1,0.23%,8.898MiB / 192MiB
|
||||
2026-10-15T18:55:12Z,mtusi-messenger-lab3-api-13,19.96%,11.36MiB / 384MiB
|
||||
2026-10-15T18:55:12Z,mtusi-messenger-lab3-api-12,20.16%,11.39MiB / 384MiB
|
||||
2026-10-15T18:55:12Z,mtusi-messenger-lab3-lb-1,11.96%,5.164MiB / 64MiB
|
||||
2026-10-15T18:55:12Z,mtusi-messenger-lab3-postgres-1,58.69%,354.6MiB / 512MiB
|
||||
2026-10-15T18:55:12Z,mtusi-messenger-lab3-redis-1,0.75%,8.898MiB / 192MiB
|
||||
2026-10-15T18:55:15Z,mtusi-messenger-lab3-api-13,20.69%,11.26MiB / 384MiB
|
||||
2026-10-15T18:55:15Z,mtusi-messenger-lab3-api-12,20.84%,11.45MiB / 384MiB
|
||||
2026-10-15T18:55:15Z,mtusi-messenger-lab3-lb-1,12.41%,5.227MiB / 64MiB
|
||||
2026-10-15T18:55:15Z,mtusi-messenger-lab3-postgres-1,58.04%,354.7MiB / 512MiB
|
||||
2026-10-15T18:55:15Z,mtusi-messenger-lab3-redis-1,0.26%,8.898MiB / 192MiB
|
||||
2026-10-15T18:55:18Z,mtusi-messenger-lab3-api-13,20.08%,11.35MiB / 384MiB
|
||||
2026-10-15T18:55:18Z,mtusi-messenger-lab3-api-12,19.76%,11.49MiB / 384MiB
|
||||
2026-10-15T18:55:18Z,mtusi-messenger-lab3-lb-1,12.25%,5.195MiB / 64MiB
|
||||
2026-10-15T18:55:18Z,mtusi-messenger-lab3-postgres-1,58.87%,358MiB / 512MiB
|
||||
2026-10-15T18:55:18Z,mtusi-messenger-lab3-redis-1,0.22%,8.898MiB / 192MiB
|
||||
2026-10-15T18:55:21Z,mtusi-messenger-lab3-api-13,19.94%,11.35MiB / 384MiB
|
||||
2026-10-15T18:55:21Z,mtusi-messenger-lab3-api-12,20.18%,11.48MiB / 384MiB
|
||||
2026-10-15T18:55:21Z,mtusi-messenger-lab3-lb-1,12.28%,5.242MiB / 64MiB
|
||||
2026-10-15T18:55:21Z,mtusi-messenger-lab3-postgres-1,57.59%,363.8MiB / 512MiB
|
||||
2026-10-15T18:55:21Z,mtusi-messenger-lab3-redis-1,0.77%,8.898MiB / 192MiB
|
||||
2026-10-15T18:55:24Z,mtusi-messenger-lab3-api-13,20.24%,11.36MiB / 384MiB
|
||||
2026-10-15T18:55:24Z,mtusi-messenger-lab3-api-12,19.69%,11.41MiB / 384MiB
|
||||
2026-10-15T18:55:24Z,mtusi-messenger-lab3-lb-1,12.22%,5.234MiB / 64MiB
|
||||
2026-10-15T18:55:24Z,mtusi-messenger-lab3-postgres-1,57.87%,364.3MiB / 512MiB
|
||||
2026-10-15T18:55:24Z,mtusi-messenger-lab3-redis-1,0.24%,8.898MiB / 192MiB
|
||||
2026-10-15T18:55:27Z,mtusi-messenger-lab3-api-13,19.88%,11.35MiB / 384MiB
|
||||
2026-10-15T18:55:27Z,mtusi-messenger-lab3-api-12,20.60%,11.41MiB / 384MiB
|
||||
2026-10-15T18:55:27Z,mtusi-messenger-lab3-lb-1,12.10%,5.23MiB / 64MiB
|
||||
2026-10-15T18:55:27Z,mtusi-messenger-lab3-postgres-1,57.80%,363.9MiB / 512MiB
|
||||
2026-10-15T18:55:27Z,mtusi-messenger-lab3-redis-1,0.23%,8.898MiB / 192MiB
|
||||
2026-10-15T18:55:30Z,mtusi-messenger-lab3-api-13,21.21%,11.32MiB / 384MiB
|
||||
2026-10-15T18:55:30Z,mtusi-messenger-lab3-api-12,20.41%,11.54MiB / 384MiB
|
||||
2026-10-15T18:55:30Z,mtusi-messenger-lab3-lb-1,12.58%,5.207MiB / 64MiB
|
||||
2026-10-15T18:55:30Z,mtusi-messenger-lab3-postgres-1,60.08%,364MiB / 512MiB
|
||||
2026-10-15T18:55:30Z,mtusi-messenger-lab3-redis-1,0.25%,8.898MiB / 192MiB
|
||||
2026-10-15T18:55:33Z,mtusi-messenger-lab3-api-13,15.03%,11.37MiB / 384MiB
|
||||
2026-10-15T18:55:33Z,mtusi-messenger-lab3-api-12,14.66%,11.37MiB / 384MiB
|
||||
2026-10-15T18:55:33Z,mtusi-messenger-lab3-lb-1,9.08%,5.09MiB / 64MiB
|
||||
2026-10-15T18:55:33Z,mtusi-messenger-lab3-postgres-1,56.39%,370.4MiB / 512MiB
|
||||
2026-10-15T18:55:33Z,mtusi-messenger-lab3-redis-1,0.21%,8.898MiB / 192MiB
|
||||
|
@@ -0,0 +1,137 @@
|
||||
timestamp,container,cpu_percent,mem_usage
|
||||
2026-10-15T18:55:53Z,mtusi-messenger-lab3-api-13,11.04%,81.5MiB / 192MiB
|
||||
2026-10-15T18:55:53Z,mtusi-messenger-lab3-api-14,11.07%,145.3MiB / 192MiB
|
||||
2026-10-15T18:55:53Z,mtusi-messenger-lab3-api-12,11.06%,136.8MiB / 192MiB
|
||||
2026-10-15T18:55:53Z,mtusi-messenger-lab3-api-15,10.88%,79.09MiB / 192MiB
|
||||
2026-10-15T18:55:53Z,mtusi-messenger-lab3-lb-1,12.23%,5.258MiB / 64MiB
|
||||
2026-10-15T18:55:53Z,mtusi-messenger-lab3-postgres-1,57.96%,380.1MiB / 512MiB
|
||||
2026-10-15T18:55:53Z,mtusi-messenger-lab3-redis-1,0.25%,8.902MiB / 192MiB
|
||||
2026-10-15T18:55:56Z,mtusi-messenger-lab3-api-13,11.35%,110.2MiB / 192MiB
|
||||
2026-10-15T18:55:56Z,mtusi-messenger-lab3-api-14,11.18%,174.2MiB / 192MiB
|
||||
2026-10-15T18:55:56Z,mtusi-messenger-lab3-api-12,10.76%,137.4MiB / 192MiB
|
||||
2026-10-15T18:55:56Z,mtusi-messenger-lab3-api-15,10.55%,108.6MiB / 192MiB
|
||||
2026-10-15T18:55:56Z,mtusi-messenger-lab3-lb-1,12.05%,5.219MiB / 64MiB
|
||||
2026-10-15T18:55:56Z,mtusi-messenger-lab3-postgres-1,57.60%,381.7MiB / 512MiB
|
||||
2026-10-15T18:55:56Z,mtusi-messenger-lab3-redis-1,0.22%,8.902MiB / 192MiB
|
||||
2026-10-15T18:55:59Z,mtusi-messenger-lab3-api-13,13.18%,32.17MiB / 192MiB
|
||||
2026-10-15T18:55:59Z,mtusi-messenger-lab3-api-12,12.54%,43.71MiB / 192MiB
|
||||
2026-10-15T18:55:59Z,mtusi-messenger-lab3-api-15,12.03%,76.38MiB / 192MiB
|
||||
2026-10-15T18:55:59Z,mtusi-messenger-lab3-lb-1,9.59%,5.266MiB / 64MiB
|
||||
2026-10-15T18:55:59Z,mtusi-messenger-lab3-postgres-1,45.14%,365.3MiB / 512MiB
|
||||
2026-10-15T18:55:59Z,mtusi-messenger-lab3-redis-1,0.25%,8.902MiB / 192MiB
|
||||
2026-10-15T18:55:59Z,mtusi-messenger-lab3-api-14,11.40%,7.75MiB / 192MiB
|
||||
2026-10-15T18:56:03Z,mtusi-messenger-lab3-api-13,10.98%,11.86MiB / 192MiB
|
||||
2026-10-15T18:56:03Z,mtusi-messenger-lab3-api-14,11.12%,7.891MiB / 192MiB
|
||||
2026-10-15T18:56:03Z,mtusi-messenger-lab3-api-12,11.37%,12.48MiB / 192MiB
|
||||
2026-10-15T18:56:03Z,mtusi-messenger-lab3-api-15,11.31%,10.68MiB / 192MiB
|
||||
2026-10-15T18:56:03Z,mtusi-messenger-lab3-lb-1,12.30%,5.262MiB / 64MiB
|
||||
2026-10-15T18:56:03Z,mtusi-messenger-lab3-postgres-1,57.63%,366.4MiB / 512MiB
|
||||
2026-10-15T18:56:03Z,mtusi-messenger-lab3-redis-1,0.27%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:06Z,mtusi-messenger-lab3-api-13,10.62%,11.62MiB / 192MiB
|
||||
2026-10-15T18:56:06Z,mtusi-messenger-lab3-api-14,11.23%,7.945MiB / 192MiB
|
||||
2026-10-15T18:56:06Z,mtusi-messenger-lab3-api-12,11.65%,13.04MiB / 192MiB
|
||||
2026-10-15T18:56:06Z,mtusi-messenger-lab3-api-15,10.85%,10.66MiB / 192MiB
|
||||
2026-10-15T18:56:06Z,mtusi-messenger-lab3-lb-1,12.33%,5.203MiB / 64MiB
|
||||
2026-10-15T18:56:06Z,mtusi-messenger-lab3-postgres-1,57.04%,366.6MiB / 512MiB
|
||||
2026-10-15T18:56:06Z,mtusi-messenger-lab3-redis-1,0.24%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:09Z,mtusi-messenger-lab3-api-13,11.23%,11.5MiB / 192MiB
|
||||
2026-10-15T18:56:09Z,mtusi-messenger-lab3-api-14,10.92%,7.953MiB / 192MiB
|
||||
2026-10-15T18:56:09Z,mtusi-messenger-lab3-api-12,12.07%,13.64MiB / 192MiB
|
||||
2026-10-15T18:56:09Z,mtusi-messenger-lab3-api-15,11.16%,10.48MiB / 192MiB
|
||||
2026-10-15T18:56:09Z,mtusi-messenger-lab3-lb-1,11.84%,5.238MiB / 64MiB
|
||||
2026-10-15T18:56:09Z,mtusi-messenger-lab3-postgres-1,55.49%,367MiB / 512MiB
|
||||
2026-10-15T18:56:09Z,mtusi-messenger-lab3-redis-1,0.25%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:12Z,mtusi-messenger-lab3-api-13,11.41%,11.58MiB / 192MiB
|
||||
2026-10-15T18:56:12Z,mtusi-messenger-lab3-api-14,11.37%,7.957MiB / 192MiB
|
||||
2026-10-15T18:56:12Z,mtusi-messenger-lab3-api-12,11.71%,13.48MiB / 192MiB
|
||||
2026-10-15T18:56:12Z,mtusi-messenger-lab3-api-15,10.87%,10.5MiB / 192MiB
|
||||
2026-10-15T18:56:12Z,mtusi-messenger-lab3-lb-1,12.21%,5.223MiB / 64MiB
|
||||
2026-10-15T18:56:12Z,mtusi-messenger-lab3-postgres-1,57.77%,367.1MiB / 512MiB
|
||||
2026-10-15T18:56:12Z,mtusi-messenger-lab3-redis-1,0.74%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:16Z,mtusi-messenger-lab3-api-13,11.24%,11.52MiB / 192MiB
|
||||
2026-10-15T18:56:16Z,mtusi-messenger-lab3-api-14,11.33%,8.027MiB / 192MiB
|
||||
2026-10-15T18:56:16Z,mtusi-messenger-lab3-api-12,11.38%,12.31MiB / 192MiB
|
||||
2026-10-15T18:56:16Z,mtusi-messenger-lab3-api-15,11.29%,10.43MiB / 192MiB
|
||||
2026-10-15T18:56:16Z,mtusi-messenger-lab3-lb-1,12.13%,5.234MiB / 64MiB
|
||||
2026-10-15T18:56:16Z,mtusi-messenger-lab3-postgres-1,56.57%,369.9MiB / 512MiB
|
||||
2026-10-15T18:56:16Z,mtusi-messenger-lab3-redis-1,0.22%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:19Z,mtusi-messenger-lab3-api-13,12.01%,11.64MiB / 192MiB
|
||||
2026-10-15T18:56:19Z,mtusi-messenger-lab3-api-14,11.18%,8.027MiB / 192MiB
|
||||
2026-10-15T18:56:19Z,mtusi-messenger-lab3-api-12,11.97%,13.04MiB / 192MiB
|
||||
2026-10-15T18:56:19Z,mtusi-messenger-lab3-api-15,11.61%,10.45MiB / 192MiB
|
||||
2026-10-15T18:56:19Z,mtusi-messenger-lab3-lb-1,12.42%,5.23MiB / 64MiB
|
||||
2026-10-15T18:56:19Z,mtusi-messenger-lab3-postgres-1,58.12%,370.1MiB / 512MiB
|
||||
2026-10-15T18:56:19Z,mtusi-messenger-lab3-redis-1,0.25%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:22Z,mtusi-messenger-lab3-api-13,11.25%,11.41MiB / 192MiB
|
||||
2026-10-15T18:56:22Z,mtusi-messenger-lab3-api-14,10.50%,8.051MiB / 192MiB
|
||||
2026-10-15T18:56:22Z,mtusi-messenger-lab3-api-12,11.10%,13.36MiB / 192MiB
|
||||
2026-10-15T18:56:22Z,mtusi-messenger-lab3-api-15,11.06%,10.51MiB / 192MiB
|
||||
2026-10-15T18:56:22Z,mtusi-messenger-lab3-lb-1,12.12%,5.227MiB / 64MiB
|
||||
2026-10-15T18:56:22Z,mtusi-messenger-lab3-postgres-1,55.54%,370.7MiB / 512MiB
|
||||
2026-10-15T18:56:22Z,mtusi-messenger-lab3-redis-1,0.22%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:25Z,mtusi-messenger-lab3-api-13,11.53%,11.34MiB / 192MiB
|
||||
2026-10-15T18:56:25Z,mtusi-messenger-lab3-api-14,11.65%,8.059MiB / 192MiB
|
||||
2026-10-15T18:56:25Z,mtusi-messenger-lab3-api-12,11.51%,12.31MiB / 192MiB
|
||||
2026-10-15T18:56:25Z,mtusi-messenger-lab3-api-15,10.78%,10.45MiB / 192MiB
|
||||
2026-10-15T18:56:25Z,mtusi-messenger-lab3-lb-1,12.30%,5.234MiB / 64MiB
|
||||
2026-10-15T18:56:25Z,mtusi-messenger-lab3-postgres-1,57.33%,371.1MiB / 512MiB
|
||||
2026-10-15T18:56:25Z,mtusi-messenger-lab3-redis-1,0.23%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:28Z,mtusi-messenger-lab3-api-13,11.14%,11.39MiB / 192MiB
|
||||
2026-10-15T18:56:28Z,mtusi-messenger-lab3-api-14,10.97%,8.102MiB / 192MiB
|
||||
2026-10-15T18:56:28Z,mtusi-messenger-lab3-api-12,11.09%,13.06MiB / 192MiB
|
||||
2026-10-15T18:56:28Z,mtusi-messenger-lab3-api-15,11.50%,10.45MiB / 192MiB
|
||||
2026-10-15T18:56:28Z,mtusi-messenger-lab3-lb-1,11.76%,5.258MiB / 64MiB
|
||||
2026-10-15T18:56:28Z,mtusi-messenger-lab3-postgres-1,56.41%,370.9MiB / 512MiB
|
||||
2026-10-15T18:56:28Z,mtusi-messenger-lab3-redis-1,0.80%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:31Z,mtusi-messenger-lab3-api-13,11.13%,11.35MiB / 192MiB
|
||||
2026-10-15T18:56:31Z,mtusi-messenger-lab3-api-14,10.62%,8.102MiB / 192MiB
|
||||
2026-10-15T18:56:31Z,mtusi-messenger-lab3-api-12,11.07%,13.04MiB / 192MiB
|
||||
2026-10-15T18:56:31Z,mtusi-messenger-lab3-api-15,11.03%,10.45MiB / 192MiB
|
||||
2026-10-15T18:56:31Z,mtusi-messenger-lab3-lb-1,11.51%,5.258MiB / 64MiB
|
||||
2026-10-15T18:56:31Z,mtusi-messenger-lab3-postgres-1,54.85%,371.2MiB / 512MiB
|
||||
2026-10-15T18:56:31Z,mtusi-messenger-lab3-redis-1,0.24%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:34Z,mtusi-messenger-lab3-api-13,11.28%,11.34MiB / 192MiB
|
||||
2026-10-15T18:56:34Z,mtusi-messenger-lab3-api-14,10.86%,8.102MiB / 192MiB
|
||||
2026-10-15T18:56:34Z,mtusi-messenger-lab3-api-12,12.07%,13.32MiB / 192MiB
|
||||
2026-10-15T18:56:34Z,mtusi-messenger-lab3-api-15,11.38%,10.44MiB / 192MiB
|
||||
2026-10-15T18:56:34Z,mtusi-messenger-lab3-lb-1,11.98%,5.254MiB / 64MiB
|
||||
2026-10-15T18:56:34Z,mtusi-messenger-lab3-postgres-1,56.72%,371.4MiB / 512MiB
|
||||
2026-10-15T18:56:34Z,mtusi-messenger-lab3-redis-1,0.22%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:37Z,mtusi-messenger-lab3-api-13,11.38%,11.27MiB / 192MiB
|
||||
2026-10-15T18:56:37Z,mtusi-messenger-lab3-api-14,11.33%,8.16MiB / 192MiB
|
||||
2026-10-15T18:56:37Z,mtusi-messenger-lab3-api-12,11.45%,13.32MiB / 192MiB
|
||||
2026-10-15T18:56:37Z,mtusi-messenger-lab3-api-15,11.28%,10.42MiB / 192MiB
|
||||
2026-10-15T18:56:37Z,mtusi-messenger-lab3-lb-1,12.00%,5.238MiB / 64MiB
|
||||
2026-10-15T18:56:37Z,mtusi-messenger-lab3-postgres-1,57.85%,371.5MiB / 512MiB
|
||||
2026-10-15T18:56:37Z,mtusi-messenger-lab3-redis-1,0.77%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:40Z,mtusi-messenger-lab3-api-13,10.95%,11.27MiB / 192MiB
|
||||
2026-10-15T18:56:40Z,mtusi-messenger-lab3-api-14,11.66%,8.152MiB / 192MiB
|
||||
2026-10-15T18:56:40Z,mtusi-messenger-lab3-api-12,10.89%,13.27MiB / 192MiB
|
||||
2026-10-15T18:56:40Z,mtusi-messenger-lab3-api-15,11.32%,10.42MiB / 192MiB
|
||||
2026-10-15T18:56:40Z,mtusi-messenger-lab3-lb-1,12.28%,5.219MiB / 64MiB
|
||||
2026-10-15T18:56:40Z,mtusi-messenger-lab3-postgres-1,58.07%,371.5MiB / 512MiB
|
||||
2026-10-15T18:56:40Z,mtusi-messenger-lab3-redis-1,0.22%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:43Z,mtusi-messenger-lab3-api-13,11.29%,11.27MiB / 192MiB
|
||||
2026-10-15T18:56:43Z,mtusi-messenger-lab3-api-14,11.79%,8.164MiB / 192MiB
|
||||
2026-10-15T18:56:43Z,mtusi-messenger-lab3-api-12,11.40%,13.02MiB / 192MiB
|
||||
2026-10-15T18:56:43Z,mtusi-messenger-lab3-api-15,11.14%,10.39MiB / 192MiB
|
||||
2026-10-15T18:56:43Z,mtusi-messenger-lab3-lb-1,11.94%,5.238MiB / 64MiB
|
||||
2026-10-15T18:56:43Z,mtusi-messenger-lab3-postgres-1,57.12%,371.5MiB / 512MiB
|
||||
2026-10-15T18:56:43Z,mtusi-messenger-lab3-redis-1,0.26%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:46Z,mtusi-messenger-lab3-api-13,11.37%,11.3MiB / 192MiB
|
||||
2026-10-15T18:56:46Z,mtusi-messenger-lab3-api-14,11.49%,8.164MiB / 192MiB
|
||||
2026-10-15T18:56:46Z,mtusi-messenger-lab3-api-12,11.39%,13.02MiB / 192MiB
|
||||
2026-10-15T18:56:46Z,mtusi-messenger-lab3-api-15,11.13%,10.37MiB / 192MiB
|
||||
2026-10-15T18:56:46Z,mtusi-messenger-lab3-lb-1,12.26%,5.223MiB / 64MiB
|
||||
2026-10-15T18:56:46Z,mtusi-messenger-lab3-postgres-1,58.23%,371.6MiB / 512MiB
|
||||
2026-10-15T18:56:46Z,mtusi-messenger-lab3-redis-1,0.26%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:50Z,mtusi-messenger-lab3-api-13,11.87%,11.3MiB / 192MiB
|
||||
2026-10-15T18:56:50Z,mtusi-messenger-lab3-api-14,10.70%,8.199MiB / 192MiB
|
||||
2026-10-15T18:56:50Z,mtusi-messenger-lab3-api-12,12.04%,13.15MiB / 192MiB
|
||||
2026-10-15T18:56:50Z,mtusi-messenger-lab3-api-15,11.43%,10.37MiB / 192MiB
|
||||
2026-10-15T18:56:50Z,mtusi-messenger-lab3-lb-1,11.71%,5.223MiB / 64MiB
|
||||
2026-10-15T18:56:50Z,mtusi-messenger-lab3-postgres-1,56.42%,371.6MiB / 512MiB
|
||||
2026-10-15T18:56:50Z,mtusi-messenger-lab3-redis-1,0.23%,8.902MiB / 192MiB
|
||||
2026-10-15T18:56:53Z,mtusi-messenger-lab3-lb-1,2.04%,5.023MiB / 64MiB
|
||||
2026-10-15T18:56:53Z,mtusi-messenger-lab3-postgres-1,38.32%,335.8MiB / 512MiB
|
||||
2026-10-15T18:56:53Z,mtusi-messenger-lab3-redis-1,0.73%,8.902MiB / 192MiB
|
||||
|
@@ -0,0 +1,148 @@
|
||||
timestamp,container,cpu_percent,mem_usage
|
||||
2026-10-15T18:57:12Z,mtusi-messenger-lab3-api-14,0.00%,73.72MiB / 192MiB
|
||||
2026-10-15T18:57:12Z,mtusi-messenger-lab3-api-12,9.24%,74.29MiB / 192MiB
|
||||
2026-10-15T18:57:12Z,mtusi-messenger-lab3-api-13,13.94%,138.7MiB / 192MiB
|
||||
2026-10-15T18:57:12Z,mtusi-messenger-lab3-api-15,7.76%,118.3MiB / 192MiB
|
||||
2026-10-15T18:57:12Z,mtusi-messenger-lab3-lb-1,0.07%,5.094MiB / 64MiB
|
||||
2026-10-15T18:57:12Z,mtusi-messenger-lab3-postgres-1,1.82%,368.3MiB / 512MiB
|
||||
2026-10-15T18:57:12Z,mtusi-messenger-lab3-redis-1,1.61%,8.902MiB / 192MiB
|
||||
2026-10-15T18:57:15Z,mtusi-messenger-lab3-api-14,11.86%,93.47MiB / 192MiB
|
||||
2026-10-15T18:57:15Z,mtusi-messenger-lab3-api-12,10.97%,93.16MiB / 192MiB
|
||||
2026-10-15T18:57:15Z,mtusi-messenger-lab3-api-13,11.50%,158.1MiB / 192MiB
|
||||
2026-10-15T18:57:15Z,mtusi-messenger-lab3-api-15,11.01%,157.8MiB / 192MiB
|
||||
2026-10-15T18:57:15Z,mtusi-messenger-lab3-lb-1,12.23%,5.223MiB / 64MiB
|
||||
2026-10-15T18:57:15Z,mtusi-messenger-lab3-postgres-1,56.00%,369.1MiB / 512MiB
|
||||
2026-10-15T18:57:15Z,mtusi-messenger-lab3-redis-1,0.25%,8.902MiB / 192MiB
|
||||
2026-10-15T18:57:19Z,mtusi-messenger-lab3-api-14,11.51%,120.2MiB / 192MiB
|
||||
2026-10-15T18:57:19Z,mtusi-messenger-lab3-api-12,11.54%,120MiB / 192MiB
|
||||
2026-10-15T18:57:19Z,mtusi-messenger-lab3-api-13,11.49%,185MiB / 192MiB
|
||||
2026-10-15T18:57:19Z,mtusi-messenger-lab3-api-15,11.97%,184.9MiB / 192MiB
|
||||
2026-10-15T18:57:19Z,mtusi-messenger-lab3-lb-1,12.08%,5.23MiB / 64MiB
|
||||
2026-10-15T18:57:19Z,mtusi-messenger-lab3-postgres-1,56.97%,368.4MiB / 512MiB
|
||||
2026-10-15T18:57:19Z,mtusi-messenger-lab3-redis-1,0.23%,8.902MiB / 192MiB
|
||||
2026-10-15T18:57:22Z,mtusi-messenger-lab3-api-14,11.18%,11.17MiB / 192MiB
|
||||
2026-10-15T18:57:22Z,mtusi-messenger-lab3-api-12,12.23%,10.99MiB / 192MiB
|
||||
2026-10-15T18:57:22Z,mtusi-messenger-lab3-api-13,11.61%,7.734MiB / 192MiB
|
||||
2026-10-15T18:57:22Z,mtusi-messenger-lab3-api-15,11.54%,7.703MiB / 192MiB
|
||||
2026-10-15T18:57:22Z,mtusi-messenger-lab3-lb-1,11.98%,5.273MiB / 64MiB
|
||||
2026-10-15T18:57:22Z,mtusi-messenger-lab3-postgres-1,55.64%,368.4MiB / 512MiB
|
||||
2026-10-15T18:57:22Z,mtusi-messenger-lab3-redis-1,0.25%,8.902MiB / 192MiB
|
||||
2026-10-15T18:57:25Z,mtusi-messenger-lab3-api-14,11.75%,11.12MiB / 192MiB
|
||||
2026-10-15T18:57:25Z,mtusi-messenger-lab3-api-12,11.04%,10.98MiB / 192MiB
|
||||
2026-10-15T18:57:25Z,mtusi-messenger-lab3-api-13,12.29%,7.867MiB / 192MiB
|
||||
2026-10-15T18:57:25Z,mtusi-messenger-lab3-api-15,10.75%,7.992MiB / 192MiB
|
||||
2026-10-15T18:57:25Z,mtusi-messenger-lab3-lb-1,12.24%,5.238MiB / 64MiB
|
||||
2026-10-15T18:57:25Z,mtusi-messenger-lab3-postgres-1,56.73%,368.6MiB / 512MiB
|
||||
2026-10-15T18:57:25Z,mtusi-messenger-lab3-redis-1,0.22%,8.902MiB / 192MiB
|
||||
2026-10-15T18:57:28Z,mtusi-messenger-lab3-api-14,10.95%,11MiB / 192MiB
|
||||
2026-10-15T18:57:28Z,mtusi-messenger-lab3-api-12,11.40%,10.91MiB / 192MiB
|
||||
2026-10-15T18:57:28Z,mtusi-messenger-lab3-api-13,11.22%,7.969MiB / 192MiB
|
||||
2026-10-15T18:57:28Z,mtusi-messenger-lab3-api-15,11.38%,8.043MiB / 192MiB
|
||||
2026-10-15T18:57:28Z,mtusi-messenger-lab3-lb-1,12.19%,5.207MiB / 64MiB
|
||||
2026-10-15T18:57:28Z,mtusi-messenger-lab3-postgres-1,56.99%,373.9MiB / 512MiB
|
||||
2026-10-15T18:57:28Z,mtusi-messenger-lab3-redis-1,0.24%,8.902MiB / 192MiB
|
||||
2026-10-15T18:57:31Z,mtusi-messenger-lab3-api-14,10.98%,10.88MiB / 192MiB
|
||||
2026-10-15T18:57:31Z,mtusi-messenger-lab3-api-12,11.19%,10.79MiB / 192MiB
|
||||
2026-10-15T18:57:31Z,mtusi-messenger-lab3-api-13,11.61%,7.973MiB / 192MiB
|
||||
2026-10-15T18:57:31Z,mtusi-messenger-lab3-api-15,10.35%,8.109MiB / 192MiB
|
||||
2026-10-15T18:57:31Z,mtusi-messenger-lab3-lb-1,11.84%,5.238MiB / 64MiB
|
||||
2026-10-15T18:57:31Z,mtusi-messenger-lab3-postgres-1,55.60%,374.4MiB / 512MiB
|
||||
2026-10-15T18:57:31Z,mtusi-messenger-lab3-redis-1,0.24%,8.902MiB / 192MiB
|
||||
2026-10-15T18:57:34Z,mtusi-messenger-lab3-api-14,11.33%,10.71MiB / 192MiB
|
||||
2026-10-15T18:57:34Z,mtusi-messenger-lab3-api-12,11.12%,10.79MiB / 192MiB
|
||||
2026-10-15T18:57:34Z,mtusi-messenger-lab3-api-13,10.73%,8.008MiB / 192MiB
|
||||
2026-10-15T18:57:34Z,mtusi-messenger-lab3-api-15,11.07%,8.113MiB / 192MiB
|
||||
2026-10-15T18:57:34Z,mtusi-messenger-lab3-lb-1,11.94%,5.219MiB / 64MiB
|
||||
2026-10-15T18:57:34Z,mtusi-messenger-lab3-postgres-1,57.04%,374.8MiB / 512MiB
|
||||
2026-10-15T18:57:34Z,mtusi-messenger-lab3-redis-1,0.22%,8.902MiB / 192MiB
|
||||
2026-10-15T18:57:37Z,mtusi-messenger-lab3-api-14,11.17%,10.71MiB / 192MiB
|
||||
2026-10-15T18:57:37Z,mtusi-messenger-lab3-api-12,11.53%,10.78MiB / 192MiB
|
||||
2026-10-15T18:57:37Z,mtusi-messenger-lab3-api-13,10.99%,8.012MiB / 192MiB
|
||||
2026-10-15T18:57:37Z,mtusi-messenger-lab3-api-15,11.45%,8.113MiB / 192MiB
|
||||
2026-10-15T18:57:37Z,mtusi-messenger-lab3-lb-1,12.00%,5.262MiB / 64MiB
|
||||
2026-10-15T18:57:37Z,mtusi-messenger-lab3-postgres-1,56.21%,375.2MiB / 512MiB
|
||||
2026-10-15T18:57:37Z,mtusi-messenger-lab3-redis-1,0.72%,8.902MiB / 192MiB
|
||||
2026-10-15T18:57:40Z,mtusi-messenger-lab3-api-14,11.37%,10.74MiB / 192MiB
|
||||
2026-10-15T18:57:40Z,mtusi-messenger-lab3-api-12,12.16%,10.82MiB / 192MiB
|
||||
2026-10-15T18:57:40Z,mtusi-messenger-lab3-api-13,11.42%,8.012MiB / 192MiB
|
||||
2026-10-15T18:57:40Z,mtusi-messenger-lab3-api-15,11.23%,8.109MiB / 192MiB
|
||||
2026-10-15T18:57:40Z,mtusi-messenger-lab3-lb-1,12.41%,5.227MiB / 64MiB
|
||||
2026-10-15T18:57:40Z,mtusi-messenger-lab3-postgres-1,58.84%,375.2MiB / 512MiB
|
||||
2026-10-15T18:57:40Z,mtusi-messenger-lab3-redis-1,0.27%,8.902MiB / 192MiB
|
||||
2026-10-15T18:57:43Z,mtusi-messenger-lab3-api-14,11.68%,10.74MiB / 192MiB
|
||||
2026-10-15T18:57:43Z,mtusi-messenger-lab3-api-12,11.09%,10.7MiB / 192MiB
|
||||
2026-10-15T18:57:43Z,mtusi-messenger-lab3-api-13,11.18%,8.012MiB / 192MiB
|
||||
2026-10-15T18:57:43Z,mtusi-messenger-lab3-api-15,11.29%,8.113MiB / 192MiB
|
||||
2026-10-15T18:57:43Z,mtusi-messenger-lab3-lb-1,12.02%,5.254MiB / 64MiB
|
||||
2026-10-15T18:57:43Z,mtusi-messenger-lab3-postgres-1,56.89%,375.2MiB / 512MiB
|
||||
2026-10-15T18:57:43Z,mtusi-messenger-lab3-redis-1,0.22%,8.902MiB / 192MiB
|
||||
2026-10-15T18:57:46Z,mtusi-messenger-lab3-api-14,11.33%,10.74MiB / 192MiB
|
||||
2026-10-15T18:57:46Z,mtusi-messenger-lab3-api-12,10.95%,10.68MiB / 192MiB
|
||||
2026-10-15T18:57:46Z,mtusi-messenger-lab3-api-13,11.35%,7.98MiB / 192MiB
|
||||
2026-10-15T18:57:46Z,mtusi-messenger-lab3-api-15,11.22%,8.117MiB / 192MiB
|
||||
2026-10-15T18:57:46Z,mtusi-messenger-lab3-lb-1,12.18%,5.211MiB / 64MiB
|
||||
2026-10-15T18:57:46Z,mtusi-messenger-lab3-postgres-1,56.31%,375.3MiB / 512MiB
|
||||
2026-10-15T18:57:46Z,mtusi-messenger-lab3-redis-1,0.22%,8.902MiB / 192MiB
|
||||
2026-10-15T18:57:50Z,mtusi-messenger-lab3-api-14,12.25%,10.77MiB / 192MiB
|
||||
2026-10-15T18:57:50Z,mtusi-messenger-lab3-api-12,11.52%,10.67MiB / 192MiB
|
||||
2026-10-15T18:57:50Z,mtusi-messenger-lab3-api-13,10.86%,7.98MiB / 192MiB
|
||||
2026-10-15T18:57:50Z,mtusi-messenger-lab3-api-15,11.16%,8.129MiB / 192MiB
|
||||
2026-10-15T18:57:50Z,mtusi-messenger-lab3-lb-1,12.07%,5.234MiB / 64MiB
|
||||
2026-10-15T18:57:50Z,mtusi-messenger-lab3-postgres-1,57.45%,375.6MiB / 512MiB
|
||||
2026-10-15T18:57:50Z,mtusi-messenger-lab3-redis-1,0.22%,8.902MiB / 192MiB
|
||||
2026-10-15T18:57:53Z,mtusi-messenger-lab3-api-14,10.93%,10.64MiB / 192MiB
|
||||
2026-10-15T18:57:53Z,mtusi-messenger-lab3-api-12,11.22%,10.61MiB / 192MiB
|
||||
2026-10-15T18:57:53Z,mtusi-messenger-lab3-api-13,10.72%,7.98MiB / 192MiB
|
||||
2026-10-15T18:57:53Z,mtusi-messenger-lab3-api-15,10.13%,8.125MiB / 192MiB
|
||||
2026-10-15T18:57:53Z,mtusi-messenger-lab3-lb-1,11.38%,5.227MiB / 64MiB
|
||||
2026-10-15T18:57:53Z,mtusi-messenger-lab3-postgres-1,64.93%,376.7MiB / 512MiB
|
||||
2026-10-15T18:57:53Z,mtusi-messenger-lab3-redis-1,0.74%,8.902MiB / 192MiB
|
||||
2026-10-15T18:57:56Z,mtusi-messenger-lab3-api-14,9.79%,10.76MiB / 192MiB
|
||||
2026-10-15T18:57:56Z,mtusi-messenger-lab3-api-12,10.31%,10.54MiB / 192MiB
|
||||
2026-10-15T18:57:56Z,mtusi-messenger-lab3-api-13,10.61%,7.977MiB / 192MiB
|
||||
2026-10-15T18:57:56Z,mtusi-messenger-lab3-api-15,10.44%,8.164MiB / 192MiB
|
||||
2026-10-15T18:57:56Z,mtusi-messenger-lab3-lb-1,10.97%,5.215MiB / 64MiB
|
||||
2026-10-15T18:57:56Z,mtusi-messenger-lab3-postgres-1,59.73%,400.8MiB / 512MiB
|
||||
2026-10-15T18:57:56Z,mtusi-messenger-lab3-redis-1,0.21%,8.902MiB / 192MiB
|
||||
2026-10-15T18:57:59Z,mtusi-messenger-lab3-api-14,11.41%,10.67MiB / 192MiB
|
||||
2026-10-15T18:57:59Z,mtusi-messenger-lab3-api-12,11.64%,10.52MiB / 192MiB
|
||||
2026-10-15T18:57:59Z,mtusi-messenger-lab3-api-13,11.26%,7.98MiB / 192MiB
|
||||
2026-10-15T18:57:59Z,mtusi-messenger-lab3-api-15,11.14%,8.133MiB / 192MiB
|
||||
2026-10-15T18:57:59Z,mtusi-messenger-lab3-lb-1,11.72%,5.16MiB / 64MiB
|
||||
2026-10-15T18:57:59Z,mtusi-messenger-lab3-postgres-1,59.47%,374.6MiB / 512MiB
|
||||
2026-10-15T18:57:59Z,mtusi-messenger-lab3-redis-1,0.21%,8.902MiB / 192MiB
|
||||
2026-10-15T18:58:02Z,mtusi-messenger-lab3-api-14,11.13%,10.67MiB / 192MiB
|
||||
2026-10-15T18:58:02Z,mtusi-messenger-lab3-api-12,11.24%,10.64MiB / 192MiB
|
||||
2026-10-15T18:58:02Z,mtusi-messenger-lab3-api-13,11.16%,7.984MiB / 192MiB
|
||||
2026-10-15T18:58:02Z,mtusi-messenger-lab3-api-15,11.33%,8.133MiB / 192MiB
|
||||
2026-10-15T18:58:02Z,mtusi-messenger-lab3-lb-1,11.92%,5.277MiB / 64MiB
|
||||
2026-10-15T18:58:02Z,mtusi-messenger-lab3-postgres-1,56.04%,375.2MiB / 512MiB
|
||||
2026-10-15T18:58:02Z,mtusi-messenger-lab3-redis-1,0.79%,8.902MiB / 192MiB
|
||||
2026-10-15T18:58:05Z,mtusi-messenger-lab3-api-14,11.31%,10.68MiB / 192MiB
|
||||
2026-10-15T18:58:05Z,mtusi-messenger-lab3-api-12,11.53%,10.64MiB / 192MiB
|
||||
2026-10-15T18:58:05Z,mtusi-messenger-lab3-api-13,11.23%,7.98MiB / 192MiB
|
||||
2026-10-15T18:58:05Z,mtusi-messenger-lab3-api-15,10.91%,8.129MiB / 192MiB
|
||||
2026-10-15T18:58:05Z,mtusi-messenger-lab3-lb-1,12.27%,5.215MiB / 64MiB
|
||||
2026-10-15T18:58:05Z,mtusi-messenger-lab3-postgres-1,57.13%,374.8MiB / 512MiB
|
||||
2026-10-15T18:58:05Z,mtusi-messenger-lab3-redis-1,0.22%,8.902MiB / 192MiB
|
||||
2026-10-15T18:58:08Z,mtusi-messenger-lab3-api-14,11.45%,10.68MiB / 192MiB
|
||||
2026-10-15T18:58:08Z,mtusi-messenger-lab3-api-12,10.75%,10.68MiB / 192MiB
|
||||
2026-10-15T18:58:08Z,mtusi-messenger-lab3-api-13,11.08%,7.984MiB / 192MiB
|
||||
2026-10-15T18:58:08Z,mtusi-messenger-lab3-api-15,11.10%,8.133MiB / 192MiB
|
||||
2026-10-15T18:58:08Z,mtusi-messenger-lab3-lb-1,12.17%,5.254MiB / 64MiB
|
||||
2026-10-15T18:58:08Z,mtusi-messenger-lab3-postgres-1,58.10%,374.8MiB / 512MiB
|
||||
2026-10-15T18:58:08Z,mtusi-messenger-lab3-redis-1,0.22%,8.902MiB / 192MiB
|
||||
2026-10-15T18:58:11Z,mtusi-messenger-lab3-api-14,11.56%,10.68MiB / 192MiB
|
||||
2026-10-15T18:58:11Z,mtusi-messenger-lab3-api-12,11.41%,10.68MiB / 192MiB
|
||||
2026-10-15T18:58:11Z,mtusi-messenger-lab3-api-13,11.35%,7.984MiB / 192MiB
|
||||
2026-10-15T18:58:11Z,mtusi-messenger-lab3-api-15,11.07%,8.133MiB / 192MiB
|
||||
2026-10-15T18:58:11Z,mtusi-messenger-lab3-lb-1,12.28%,5.238MiB / 64MiB
|
||||
2026-10-15T18:58:11Z,mtusi-messenger-lab3-postgres-1,56.66%,375.5MiB / 512MiB
|
||||
2026-10-15T18:58:11Z,mtusi-messenger-lab3-redis-1,0.22%,8.902MiB / 192MiB
|
||||
2026-10-15T18:58:14Z,mtusi-messenger-lab3-api-14,0.00%,10.64MiB / 192MiB
|
||||
2026-10-15T18:58:14Z,mtusi-messenger-lab3-api-12,0.00%,10.54MiB / 192MiB
|
||||
2026-10-15T18:58:14Z,mtusi-messenger-lab3-api-13,0.00%,7.969MiB / 192MiB
|
||||
2026-10-15T18:58:14Z,mtusi-messenger-lab3-api-15,0.00%,8.117MiB / 192MiB
|
||||
2026-10-15T18:58:14Z,mtusi-messenger-lab3-lb-1,5.89%,5.09MiB / 64MiB
|
||||
2026-10-15T18:58:14Z,mtusi-messenger-lab3-postgres-1,0.69%,397.3MiB / 512MiB
|
||||
2026-10-15T18:58:14Z,mtusi-messenger-lab3-redis-1,0.53%,8.902MiB / 192MiB
|
||||
|
@@ -0,0 +1,81 @@
|
||||
timestamp,container,cpu_percent,mem_usage
|
||||
2026-10-15T18:47:53Z,mtusi-messenger-lab3-api-12,34.03%,43.53MiB / 768MiB
|
||||
2026-10-15T18:47:53Z,mtusi-messenger-lab3-lb-1,8.17%,5.148MiB / 64MiB
|
||||
2026-10-15T18:47:53Z,mtusi-messenger-lab3-postgres-1,62.49%,200.3MiB / 512MiB
|
||||
2026-10-15T18:47:53Z,mtusi-messenger-lab3-redis-1,0.22%,8.785MiB / 192MiB
|
||||
2026-10-15T18:47:56Z,mtusi-messenger-lab3-api-12,35.63%,12.06MiB / 768MiB
|
||||
2026-10-15T18:47:56Z,mtusi-messenger-lab3-lb-1,12.65%,5.219MiB / 64MiB
|
||||
2026-10-15T18:47:56Z,mtusi-messenger-lab3-postgres-1,62.03%,200.4MiB / 512MiB
|
||||
2026-10-15T18:47:56Z,mtusi-messenger-lab3-redis-1,0.23%,8.785MiB / 192MiB
|
||||
2026-10-15T18:47:59Z,mtusi-messenger-lab3-api-12,33.94%,12.25MiB / 768MiB
|
||||
2026-10-15T18:47:59Z,mtusi-messenger-lab3-lb-1,12.23%,5.223MiB / 64MiB
|
||||
2026-10-15T18:47:59Z,mtusi-messenger-lab3-postgres-1,59.32%,200.8MiB / 512MiB
|
||||
2026-10-15T18:47:59Z,mtusi-messenger-lab3-redis-1,0.26%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:02Z,mtusi-messenger-lab3-api-12,35.16%,11.56MiB / 768MiB
|
||||
2026-10-15T18:48:02Z,mtusi-messenger-lab3-lb-1,12.27%,5.23MiB / 64MiB
|
||||
2026-10-15T18:48:02Z,mtusi-messenger-lab3-postgres-1,58.94%,201.5MiB / 512MiB
|
||||
2026-10-15T18:48:02Z,mtusi-messenger-lab3-redis-1,0.22%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:05Z,mtusi-messenger-lab3-api-12,32.84%,11.99MiB / 768MiB
|
||||
2026-10-15T18:48:05Z,mtusi-messenger-lab3-lb-1,12.75%,5.254MiB / 64MiB
|
||||
2026-10-15T18:48:05Z,mtusi-messenger-lab3-postgres-1,57.71%,201.4MiB / 512MiB
|
||||
2026-10-15T18:48:05Z,mtusi-messenger-lab3-redis-1,0.23%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:08Z,mtusi-messenger-lab3-api-12,35.02%,11.9MiB / 768MiB
|
||||
2026-10-15T18:48:08Z,mtusi-messenger-lab3-lb-1,12.15%,5.223MiB / 64MiB
|
||||
2026-10-15T18:48:08Z,mtusi-messenger-lab3-postgres-1,59.55%,201.4MiB / 512MiB
|
||||
2026-10-15T18:48:08Z,mtusi-messenger-lab3-redis-1,0.22%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:11Z,mtusi-messenger-lab3-api-12,34.26%,11.89MiB / 768MiB
|
||||
2026-10-15T18:48:11Z,mtusi-messenger-lab3-lb-1,12.68%,5.242MiB / 64MiB
|
||||
2026-10-15T18:48:11Z,mtusi-messenger-lab3-postgres-1,61.05%,201.6MiB / 512MiB
|
||||
2026-10-15T18:48:11Z,mtusi-messenger-lab3-redis-1,0.22%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:14Z,mtusi-messenger-lab3-api-12,33.43%,12.06MiB / 768MiB
|
||||
2026-10-15T18:48:14Z,mtusi-messenger-lab3-lb-1,12.22%,5.203MiB / 64MiB
|
||||
2026-10-15T18:48:14Z,mtusi-messenger-lab3-postgres-1,58.64%,201.6MiB / 512MiB
|
||||
2026-10-15T18:48:14Z,mtusi-messenger-lab3-redis-1,0.69%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:17Z,mtusi-messenger-lab3-api-12,35.60%,11.98MiB / 768MiB
|
||||
2026-10-15T18:48:17Z,mtusi-messenger-lab3-lb-1,12.79%,5.227MiB / 64MiB
|
||||
2026-10-15T18:48:17Z,mtusi-messenger-lab3-postgres-1,58.58%,201.8MiB / 512MiB
|
||||
2026-10-15T18:48:17Z,mtusi-messenger-lab3-redis-1,0.22%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:20Z,mtusi-messenger-lab3-api-12,35.81%,12.09MiB / 768MiB
|
||||
2026-10-15T18:48:20Z,mtusi-messenger-lab3-lb-1,13.59%,5.211MiB / 64MiB
|
||||
2026-10-15T18:48:20Z,mtusi-messenger-lab3-postgres-1,59.69%,201.8MiB / 512MiB
|
||||
2026-10-15T18:48:20Z,mtusi-messenger-lab3-redis-1,0.25%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:24Z,mtusi-messenger-lab3-api-12,34.89%,12.11MiB / 768MiB
|
||||
2026-10-15T18:48:24Z,mtusi-messenger-lab3-lb-1,13.21%,5.234MiB / 64MiB
|
||||
2026-10-15T18:48:24Z,mtusi-messenger-lab3-postgres-1,59.59%,201.6MiB / 512MiB
|
||||
2026-10-15T18:48:24Z,mtusi-messenger-lab3-redis-1,0.89%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:27Z,mtusi-messenger-lab3-api-12,35.18%,11.83MiB / 768MiB
|
||||
2026-10-15T18:48:27Z,mtusi-messenger-lab3-lb-1,12.88%,5.219MiB / 64MiB
|
||||
2026-10-15T18:48:27Z,mtusi-messenger-lab3-postgres-1,58.39%,201.6MiB / 512MiB
|
||||
2026-10-15T18:48:27Z,mtusi-messenger-lab3-redis-1,0.24%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:30Z,mtusi-messenger-lab3-api-12,34.20%,11.85MiB / 768MiB
|
||||
2026-10-15T18:48:30Z,mtusi-messenger-lab3-lb-1,12.83%,5.262MiB / 64MiB
|
||||
2026-10-15T18:48:30Z,mtusi-messenger-lab3-postgres-1,57.98%,201.9MiB / 512MiB
|
||||
2026-10-15T18:48:30Z,mtusi-messenger-lab3-redis-1,0.87%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:33Z,mtusi-messenger-lab3-api-12,34.70%,12.09MiB / 768MiB
|
||||
2026-10-15T18:48:33Z,mtusi-messenger-lab3-lb-1,12.71%,5.203MiB / 64MiB
|
||||
2026-10-15T18:48:33Z,mtusi-messenger-lab3-postgres-1,59.42%,201.9MiB / 512MiB
|
||||
2026-10-15T18:48:33Z,mtusi-messenger-lab3-redis-1,0.25%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:36Z,mtusi-messenger-lab3-api-12,35.79%,12.21MiB / 768MiB
|
||||
2026-10-15T18:48:36Z,mtusi-messenger-lab3-lb-1,12.85%,5.234MiB / 64MiB
|
||||
2026-10-15T18:48:36Z,mtusi-messenger-lab3-postgres-1,59.84%,204.3MiB / 512MiB
|
||||
2026-10-15T18:48:36Z,mtusi-messenger-lab3-redis-1,0.26%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:39Z,mtusi-messenger-lab3-api-12,33.87%,12.23MiB / 768MiB
|
||||
2026-10-15T18:48:39Z,mtusi-messenger-lab3-lb-1,12.54%,5.219MiB / 64MiB
|
||||
2026-10-15T18:48:39Z,mtusi-messenger-lab3-postgres-1,61.40%,204.3MiB / 512MiB
|
||||
2026-10-15T18:48:39Z,mtusi-messenger-lab3-redis-1,0.74%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:42Z,mtusi-messenger-lab3-api-12,35.42%,12.21MiB / 768MiB
|
||||
2026-10-15T18:48:42Z,mtusi-messenger-lab3-lb-1,13.30%,5.25MiB / 64MiB
|
||||
2026-10-15T18:48:42Z,mtusi-messenger-lab3-postgres-1,60.56%,204.3MiB / 512MiB
|
||||
2026-10-15T18:48:42Z,mtusi-messenger-lab3-redis-1,0.24%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:45Z,mtusi-messenger-lab3-api-12,34.88%,12.2MiB / 768MiB
|
||||
2026-10-15T18:48:45Z,mtusi-messenger-lab3-lb-1,12.89%,5.266MiB / 64MiB
|
||||
2026-10-15T18:48:45Z,mtusi-messenger-lab3-postgres-1,59.24%,204.5MiB / 512MiB
|
||||
2026-10-15T18:48:45Z,mtusi-messenger-lab3-redis-1,0.23%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:48Z,mtusi-messenger-lab3-api-12,34.41%,12.45MiB / 768MiB
|
||||
2026-10-15T18:48:48Z,mtusi-messenger-lab3-lb-1,12.72%,5.266MiB / 64MiB
|
||||
2026-10-15T18:48:48Z,mtusi-messenger-lab3-postgres-1,61.24%,204.4MiB / 512MiB
|
||||
2026-10-15T18:48:48Z,mtusi-messenger-lab3-redis-1,0.21%,8.785MiB / 192MiB
|
||||
2026-10-15T18:48:51Z,mtusi-messenger-lab3-api-12,30.12%,12.04MiB / 768MiB
|
||||
2026-10-15T18:48:51Z,mtusi-messenger-lab3-lb-1,10.95%,5.09MiB / 64MiB
|
||||
2026-10-15T18:48:51Z,mtusi-messenger-lab3-postgres-1,61.53%,206MiB / 512MiB
|
||||
2026-10-15T18:48:51Z,mtusi-messenger-lab3-redis-1,0.22%,8.785MiB / 192MiB
|
||||
|
@@ -0,0 +1,101 @@
|
||||
timestamp,container,cpu_percent,mem_usage
|
||||
2026-10-15T18:49:09Z,mtusi-messenger-lab3-api-12,19.78%,169.6MiB / 384MiB
|
||||
2026-10-15T18:49:09Z,mtusi-messenger-lab3-api-13,18.91%,137.6MiB / 384MiB
|
||||
2026-10-15T18:49:09Z,mtusi-messenger-lab3-lb-1,12.50%,5.23MiB / 64MiB
|
||||
2026-10-15T18:49:09Z,mtusi-messenger-lab3-postgres-1,58.06%,219.3MiB / 512MiB
|
||||
2026-10-15T18:49:09Z,mtusi-messenger-lab3-redis-1,0.23%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:12Z,mtusi-messenger-lab3-api-12,20.42%,11.84MiB / 384MiB
|
||||
2026-10-15T18:49:12Z,mtusi-messenger-lab3-api-13,20.61%,10.52MiB / 384MiB
|
||||
2026-10-15T18:49:12Z,mtusi-messenger-lab3-lb-1,12.35%,5.215MiB / 64MiB
|
||||
2026-10-15T18:49:12Z,mtusi-messenger-lab3-postgres-1,58.24%,219.9MiB / 512MiB
|
||||
2026-10-15T18:49:12Z,mtusi-messenger-lab3-redis-1,0.23%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:15Z,mtusi-messenger-lab3-api-12,20.19%,11.6MiB / 384MiB
|
||||
2026-10-15T18:49:15Z,mtusi-messenger-lab3-api-13,20.58%,10.54MiB / 384MiB
|
||||
2026-10-15T18:49:15Z,mtusi-messenger-lab3-lb-1,12.49%,5.227MiB / 64MiB
|
||||
2026-10-15T18:49:15Z,mtusi-messenger-lab3-postgres-1,59.29%,220MiB / 512MiB
|
||||
2026-10-15T18:49:15Z,mtusi-messenger-lab3-redis-1,0.75%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:19Z,mtusi-messenger-lab3-api-12,20.70%,11.54MiB / 384MiB
|
||||
2026-10-15T18:49:19Z,mtusi-messenger-lab3-api-13,20.54%,10.47MiB / 384MiB
|
||||
2026-10-15T18:49:19Z,mtusi-messenger-lab3-lb-1,12.54%,5.211MiB / 64MiB
|
||||
2026-10-15T18:49:19Z,mtusi-messenger-lab3-postgres-1,57.77%,220.6MiB / 512MiB
|
||||
2026-10-15T18:49:19Z,mtusi-messenger-lab3-redis-1,0.22%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:22Z,mtusi-messenger-lab3-api-12,20.49%,11.72MiB / 384MiB
|
||||
2026-10-15T18:49:22Z,mtusi-messenger-lab3-api-13,20.19%,10.38MiB / 384MiB
|
||||
2026-10-15T18:49:22Z,mtusi-messenger-lab3-lb-1,12.47%,5.223MiB / 64MiB
|
||||
2026-10-15T18:49:22Z,mtusi-messenger-lab3-postgres-1,57.24%,220.8MiB / 512MiB
|
||||
2026-10-15T18:49:22Z,mtusi-messenger-lab3-redis-1,0.24%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:25Z,mtusi-messenger-lab3-api-12,19.98%,11.73MiB / 384MiB
|
||||
2026-10-15T18:49:25Z,mtusi-messenger-lab3-api-13,20.01%,10.38MiB / 384MiB
|
||||
2026-10-15T18:49:25Z,mtusi-messenger-lab3-lb-1,12.21%,5.254MiB / 64MiB
|
||||
2026-10-15T18:49:25Z,mtusi-messenger-lab3-postgres-1,57.31%,221.2MiB / 512MiB
|
||||
2026-10-15T18:49:25Z,mtusi-messenger-lab3-redis-1,0.77%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:28Z,mtusi-messenger-lab3-api-12,20.14%,11.59MiB / 384MiB
|
||||
2026-10-15T18:49:28Z,mtusi-messenger-lab3-api-13,20.19%,10.51MiB / 384MiB
|
||||
2026-10-15T18:49:28Z,mtusi-messenger-lab3-lb-1,12.22%,5.242MiB / 64MiB
|
||||
2026-10-15T18:49:28Z,mtusi-messenger-lab3-postgres-1,57.38%,221MiB / 512MiB
|
||||
2026-10-15T18:49:28Z,mtusi-messenger-lab3-redis-1,0.24%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:31Z,mtusi-messenger-lab3-api-12,19.90%,11.73MiB / 384MiB
|
||||
2026-10-15T18:49:31Z,mtusi-messenger-lab3-api-13,19.76%,10.48MiB / 384MiB
|
||||
2026-10-15T18:49:31Z,mtusi-messenger-lab3-lb-1,12.04%,5.137MiB / 64MiB
|
||||
2026-10-15T18:49:31Z,mtusi-messenger-lab3-postgres-1,57.33%,221.6MiB / 512MiB
|
||||
2026-10-15T18:49:31Z,mtusi-messenger-lab3-redis-1,0.22%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:34Z,mtusi-messenger-lab3-api-12,20.30%,11.74MiB / 384MiB
|
||||
2026-10-15T18:49:34Z,mtusi-messenger-lab3-api-13,20.00%,10.51MiB / 384MiB
|
||||
2026-10-15T18:49:34Z,mtusi-messenger-lab3-lb-1,12.24%,5.262MiB / 64MiB
|
||||
2026-10-15T18:49:34Z,mtusi-messenger-lab3-postgres-1,58.70%,223MiB / 512MiB
|
||||
2026-10-15T18:49:34Z,mtusi-messenger-lab3-redis-1,0.22%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:37Z,mtusi-messenger-lab3-api-12,20.80%,11.75MiB / 384MiB
|
||||
2026-10-15T18:49:37Z,mtusi-messenger-lab3-api-13,20.51%,10.38MiB / 384MiB
|
||||
2026-10-15T18:49:37Z,mtusi-messenger-lab3-lb-1,12.14%,5.262MiB / 64MiB
|
||||
2026-10-15T18:49:37Z,mtusi-messenger-lab3-postgres-1,57.95%,224.3MiB / 512MiB
|
||||
2026-10-15T18:49:37Z,mtusi-messenger-lab3-redis-1,0.25%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:40Z,mtusi-messenger-lab3-api-12,20.00%,11.78MiB / 384MiB
|
||||
2026-10-15T18:49:40Z,mtusi-messenger-lab3-api-13,20.04%,10.43MiB / 384MiB
|
||||
2026-10-15T18:49:40Z,mtusi-messenger-lab3-lb-1,12.20%,5.219MiB / 64MiB
|
||||
2026-10-15T18:49:40Z,mtusi-messenger-lab3-postgres-1,58.68%,224.6MiB / 512MiB
|
||||
2026-10-15T18:49:40Z,mtusi-messenger-lab3-redis-1,0.22%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:43Z,mtusi-messenger-lab3-api-12,20.31%,11.56MiB / 384MiB
|
||||
2026-10-15T18:49:43Z,mtusi-messenger-lab3-api-13,20.66%,10.54MiB / 384MiB
|
||||
2026-10-15T18:49:43Z,mtusi-messenger-lab3-lb-1,12.71%,5.27MiB / 64MiB
|
||||
2026-10-15T18:49:43Z,mtusi-messenger-lab3-postgres-1,59.62%,224.6MiB / 512MiB
|
||||
2026-10-15T18:49:43Z,mtusi-messenger-lab3-redis-1,0.24%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:46Z,mtusi-messenger-lab3-api-12,20.07%,11.44MiB / 384MiB
|
||||
2026-10-15T18:49:46Z,mtusi-messenger-lab3-api-13,19.94%,10.42MiB / 384MiB
|
||||
2026-10-15T18:49:46Z,mtusi-messenger-lab3-lb-1,12.64%,5.211MiB / 64MiB
|
||||
2026-10-15T18:49:46Z,mtusi-messenger-lab3-postgres-1,58.70%,235.3MiB / 512MiB
|
||||
2026-10-15T18:49:46Z,mtusi-messenger-lab3-redis-1,0.21%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:49Z,mtusi-messenger-lab3-api-12,21.10%,11.56MiB / 384MiB
|
||||
2026-10-15T18:49:49Z,mtusi-messenger-lab3-api-13,20.33%,10.41MiB / 384MiB
|
||||
2026-10-15T18:49:49Z,mtusi-messenger-lab3-lb-1,12.39%,5.211MiB / 64MiB
|
||||
2026-10-15T18:49:49Z,mtusi-messenger-lab3-postgres-1,59.80%,235.1MiB / 512MiB
|
||||
2026-10-15T18:49:49Z,mtusi-messenger-lab3-redis-1,0.21%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:52Z,mtusi-messenger-lab3-api-12,19.94%,11.56MiB / 384MiB
|
||||
2026-10-15T18:49:52Z,mtusi-messenger-lab3-api-13,18.43%,10.51MiB / 384MiB
|
||||
2026-10-15T18:49:52Z,mtusi-messenger-lab3-lb-1,11.02%,5.227MiB / 64MiB
|
||||
2026-10-15T18:49:52Z,mtusi-messenger-lab3-postgres-1,70.40%,252.3MiB / 512MiB
|
||||
2026-10-15T18:49:52Z,mtusi-messenger-lab3-redis-1,0.23%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:55Z,mtusi-messenger-lab3-api-12,21.55%,11.56MiB / 384MiB
|
||||
2026-10-15T18:49:55Z,mtusi-messenger-lab3-api-13,21.09%,10.44MiB / 384MiB
|
||||
2026-10-15T18:49:55Z,mtusi-messenger-lab3-lb-1,12.84%,5.23MiB / 64MiB
|
||||
2026-10-15T18:49:55Z,mtusi-messenger-lab3-postgres-1,59.42%,240.2MiB / 512MiB
|
||||
2026-10-15T18:49:55Z,mtusi-messenger-lab3-redis-1,0.23%,8.785MiB / 192MiB
|
||||
2026-10-15T18:49:59Z,mtusi-messenger-lab3-api-12,21.17%,11.43MiB / 384MiB
|
||||
2026-10-15T18:49:59Z,mtusi-messenger-lab3-api-13,20.65%,10.5MiB / 384MiB
|
||||
2026-10-15T18:49:59Z,mtusi-messenger-lab3-lb-1,12.96%,5.277MiB / 64MiB
|
||||
2026-10-15T18:49:59Z,mtusi-messenger-lab3-postgres-1,60.85%,240.2MiB / 512MiB
|
||||
2026-10-15T18:49:59Z,mtusi-messenger-lab3-redis-1,0.23%,8.785MiB / 192MiB
|
||||
2026-10-15T18:50:02Z,mtusi-messenger-lab3-api-12,20.45%,11.68MiB / 384MiB
|
||||
2026-10-15T18:50:02Z,mtusi-messenger-lab3-api-13,19.61%,10.49MiB / 384MiB
|
||||
2026-10-15T18:50:02Z,mtusi-messenger-lab3-lb-1,12.55%,5.227MiB / 64MiB
|
||||
2026-10-15T18:50:02Z,mtusi-messenger-lab3-postgres-1,58.17%,240.3MiB / 512MiB
|
||||
2026-10-15T18:50:02Z,mtusi-messenger-lab3-redis-1,0.25%,8.785MiB / 192MiB
|
||||
2026-10-15T18:50:05Z,mtusi-messenger-lab3-api-12,20.51%,11.59MiB / 384MiB
|
||||
2026-10-15T18:50:05Z,mtusi-messenger-lab3-api-13,19.89%,10.51MiB / 384MiB
|
||||
2026-10-15T18:50:05Z,mtusi-messenger-lab3-lb-1,12.50%,5.242MiB / 64MiB
|
||||
2026-10-15T18:50:05Z,mtusi-messenger-lab3-postgres-1,59.90%,240.3MiB / 512MiB
|
||||
2026-10-15T18:50:05Z,mtusi-messenger-lab3-redis-1,0.77%,8.785MiB / 192MiB
|
||||
2026-10-15T18:50:08Z,mtusi-messenger-lab3-api-12,18.64%,11.56MiB / 384MiB
|
||||
2026-10-15T18:50:08Z,mtusi-messenger-lab3-api-13,17.88%,10.54MiB / 384MiB
|
||||
2026-10-15T18:50:08Z,mtusi-messenger-lab3-lb-1,10.92%,5.094MiB / 64MiB
|
||||
2026-10-15T18:50:08Z,mtusi-messenger-lab3-postgres-1,51.77%,240.5MiB / 512MiB
|
||||
2026-10-15T18:50:08Z,mtusi-messenger-lab3-redis-1,0.23%,8.785MiB / 192MiB
|
||||
|
@@ -0,0 +1,141 @@
|
||||
timestamp,container,cpu_percent,mem_usage
|
||||
2026-10-15T18:50:28Z,mtusi-messenger-lab3-api-14,0.88%,73.6MiB / 192MiB
|
||||
2026-10-15T18:50:28Z,mtusi-messenger-lab3-api-12,2.22%,74.57MiB / 192MiB
|
||||
2026-10-15T18:50:28Z,mtusi-messenger-lab3-api-13,11.81%,137.7MiB / 192MiB
|
||||
2026-10-15T18:50:28Z,mtusi-messenger-lab3-api-15,15.53%,137.8MiB / 192MiB
|
||||
2026-10-15T18:50:28Z,mtusi-messenger-lab3-lb-1,0.96%,5.227MiB / 64MiB
|
||||
2026-10-15T18:50:28Z,mtusi-messenger-lab3-postgres-1,4.74%,233.7MiB / 512MiB
|
||||
2026-10-15T18:50:28Z,mtusi-messenger-lab3-redis-1,0.40%,8.914MiB / 192MiB
|
||||
2026-10-15T18:50:31Z,mtusi-messenger-lab3-api-14,12.00%,94.01MiB / 192MiB
|
||||
2026-10-15T18:50:31Z,mtusi-messenger-lab3-api-12,11.00%,93.99MiB / 192MiB
|
||||
2026-10-15T18:50:31Z,mtusi-messenger-lab3-api-13,11.24%,158.4MiB / 192MiB
|
||||
2026-10-15T18:50:31Z,mtusi-messenger-lab3-api-15,11.72%,158.4MiB / 192MiB
|
||||
2026-10-15T18:50:31Z,mtusi-messenger-lab3-lb-1,12.47%,5.168MiB / 64MiB
|
||||
2026-10-15T18:50:31Z,mtusi-messenger-lab3-postgres-1,57.38%,234.9MiB / 512MiB
|
||||
2026-10-15T18:50:31Z,mtusi-messenger-lab3-redis-1,0.94%,8.914MiB / 192MiB
|
||||
2026-10-15T18:50:34Z,mtusi-messenger-lab3-api-14,11.38%,116.2MiB / 192MiB
|
||||
2026-10-15T18:50:34Z,mtusi-messenger-lab3-api-12,11.82%,115.7MiB / 192MiB
|
||||
2026-10-15T18:50:34Z,mtusi-messenger-lab3-api-13,11.65%,180.1MiB / 192MiB
|
||||
2026-10-15T18:50:34Z,mtusi-messenger-lab3-api-15,11.78%,180MiB / 192MiB
|
||||
2026-10-15T18:50:34Z,mtusi-messenger-lab3-lb-1,11.55%,5.223MiB / 64MiB
|
||||
2026-10-15T18:50:34Z,mtusi-messenger-lab3-postgres-1,53.31%,234.3MiB / 512MiB
|
||||
2026-10-15T18:50:34Z,mtusi-messenger-lab3-redis-1,0.24%,8.914MiB / 192MiB
|
||||
2026-10-15T18:50:37Z,mtusi-messenger-lab3-api-14,14.56%,11.51MiB / 192MiB
|
||||
2026-10-15T18:50:37Z,mtusi-messenger-lab3-api-12,14.93%,11.57MiB / 192MiB
|
||||
2026-10-15T18:50:37Z,mtusi-messenger-lab3-lb-1,9.90%,5.289MiB / 64MiB
|
||||
2026-10-15T18:50:37Z,mtusi-messenger-lab3-postgres-1,40.70%,235.1MiB / 512MiB
|
||||
2026-10-15T18:50:37Z,mtusi-messenger-lab3-redis-1,0.23%,8.836MiB / 192MiB
|
||||
2026-10-15T18:50:37Z,mtusi-messenger-lab3-api-15,5.16%,7.41MiB / 192MiB
|
||||
2026-10-15T18:50:37Z,mtusi-messenger-lab3-api-13,10.58%,7.609MiB / 192MiB
|
||||
2026-10-15T18:50:41Z,mtusi-messenger-lab3-api-14,10.46%,11.5MiB / 192MiB
|
||||
2026-10-15T18:50:41Z,mtusi-messenger-lab3-api-12,12.08%,11.59MiB / 192MiB
|
||||
2026-10-15T18:50:41Z,mtusi-messenger-lab3-api-13,11.31%,8.086MiB / 192MiB
|
||||
2026-10-15T18:50:41Z,mtusi-messenger-lab3-api-15,11.27%,8.395MiB / 192MiB
|
||||
2026-10-15T18:50:41Z,mtusi-messenger-lab3-lb-1,11.90%,5.199MiB / 64MiB
|
||||
2026-10-15T18:50:41Z,mtusi-messenger-lab3-postgres-1,55.13%,237.3MiB / 512MiB
|
||||
2026-10-15T18:50:41Z,mtusi-messenger-lab3-redis-1,0.26%,8.832MiB / 192MiB
|
||||
2026-10-15T18:50:44Z,mtusi-messenger-lab3-api-14,10.76%,11.34MiB / 192MiB
|
||||
2026-10-15T18:50:44Z,mtusi-messenger-lab3-api-12,11.70%,11.48MiB / 192MiB
|
||||
2026-10-15T18:50:44Z,mtusi-messenger-lab3-api-13,10.29%,8.047MiB / 192MiB
|
||||
2026-10-15T18:50:44Z,mtusi-messenger-lab3-api-15,10.09%,10.81MiB / 192MiB
|
||||
2026-10-15T18:50:44Z,mtusi-messenger-lab3-lb-1,11.30%,5.246MiB / 64MiB
|
||||
2026-10-15T18:50:44Z,mtusi-messenger-lab3-postgres-1,52.60%,237.5MiB / 512MiB
|
||||
2026-10-15T18:50:44Z,mtusi-messenger-lab3-redis-1,0.23%,8.832MiB / 192MiB
|
||||
2026-10-15T18:50:48Z,mtusi-messenger-lab3-api-14,11.38%,11.28MiB / 192MiB
|
||||
2026-10-15T18:50:48Z,mtusi-messenger-lab3-api-12,11.33%,11.37MiB / 192MiB
|
||||
2026-10-15T18:50:48Z,mtusi-messenger-lab3-api-13,11.57%,8.062MiB / 192MiB
|
||||
2026-10-15T18:50:48Z,mtusi-messenger-lab3-api-15,11.07%,10.82MiB / 192MiB
|
||||
2026-10-15T18:50:48Z,mtusi-messenger-lab3-lb-1,12.37%,5.121MiB / 64MiB
|
||||
2026-10-15T18:50:48Z,mtusi-messenger-lab3-postgres-1,58.03%,237.9MiB / 512MiB
|
||||
2026-10-15T18:50:48Z,mtusi-messenger-lab3-redis-1,0.23%,8.832MiB / 192MiB
|
||||
2026-10-15T18:50:51Z,mtusi-messenger-lab3-api-14,11.30%,11.36MiB / 192MiB
|
||||
2026-10-15T18:50:51Z,mtusi-messenger-lab3-api-12,11.19%,11.4MiB / 192MiB
|
||||
2026-10-15T18:50:51Z,mtusi-messenger-lab3-api-13,11.42%,8.062MiB / 192MiB
|
||||
2026-10-15T18:50:51Z,mtusi-messenger-lab3-api-15,11.13%,10.82MiB / 192MiB
|
||||
2026-10-15T18:50:51Z,mtusi-messenger-lab3-lb-1,12.39%,5.238MiB / 64MiB
|
||||
2026-10-15T18:50:51Z,mtusi-messenger-lab3-postgres-1,57.05%,237.9MiB / 512MiB
|
||||
2026-10-15T18:50:51Z,mtusi-messenger-lab3-redis-1,0.22%,8.832MiB / 192MiB
|
||||
2026-10-15T18:50:54Z,mtusi-messenger-lab3-api-14,11.27%,11.52MiB / 192MiB
|
||||
2026-10-15T18:50:54Z,mtusi-messenger-lab3-api-12,11.58%,11.41MiB / 192MiB
|
||||
2026-10-15T18:50:54Z,mtusi-messenger-lab3-api-13,10.49%,8.062MiB / 192MiB
|
||||
2026-10-15T18:50:54Z,mtusi-messenger-lab3-api-15,10.82%,10.89MiB / 192MiB
|
||||
2026-10-15T18:50:54Z,mtusi-messenger-lab3-lb-1,11.54%,5.219MiB / 64MiB
|
||||
2026-10-15T18:50:54Z,mtusi-messenger-lab3-postgres-1,55.31%,251.3MiB / 512MiB
|
||||
2026-10-15T18:50:54Z,mtusi-messenger-lab3-redis-1,0.21%,8.832MiB / 192MiB
|
||||
2026-10-15T18:50:57Z,mtusi-messenger-lab3-api-14,11.24%,11.33MiB / 192MiB
|
||||
2026-10-15T18:50:57Z,mtusi-messenger-lab3-api-12,11.61%,11.43MiB / 192MiB
|
||||
2026-10-15T18:50:57Z,mtusi-messenger-lab3-api-13,11.05%,8.379MiB / 192MiB
|
||||
2026-10-15T18:50:57Z,mtusi-messenger-lab3-api-15,10.87%,10.89MiB / 192MiB
|
||||
2026-10-15T18:50:57Z,mtusi-messenger-lab3-lb-1,12.12%,5.223MiB / 64MiB
|
||||
2026-10-15T18:50:57Z,mtusi-messenger-lab3-postgres-1,56.32%,251.3MiB / 512MiB
|
||||
2026-10-15T18:50:57Z,mtusi-messenger-lab3-redis-1,0.23%,8.832MiB / 192MiB
|
||||
2026-10-15T18:51:00Z,mtusi-messenger-lab3-api-14,11.18%,11.47MiB / 192MiB
|
||||
2026-10-15T18:51:00Z,mtusi-messenger-lab3-api-12,10.97%,11.48MiB / 192MiB
|
||||
2026-10-15T18:51:00Z,mtusi-messenger-lab3-api-13,11.05%,8.191MiB / 192MiB
|
||||
2026-10-15T18:51:00Z,mtusi-messenger-lab3-api-15,11.08%,10.89MiB / 192MiB
|
||||
2026-10-15T18:51:00Z,mtusi-messenger-lab3-lb-1,11.87%,5.23MiB / 64MiB
|
||||
2026-10-15T18:51:00Z,mtusi-messenger-lab3-postgres-1,56.71%,251.5MiB / 512MiB
|
||||
2026-10-15T18:51:00Z,mtusi-messenger-lab3-redis-1,0.23%,8.832MiB / 192MiB
|
||||
2026-10-15T18:51:03Z,mtusi-messenger-lab3-api-14,11.21%,11.31MiB / 192MiB
|
||||
2026-10-15T18:51:03Z,mtusi-messenger-lab3-api-12,11.19%,11.46MiB / 192MiB
|
||||
2026-10-15T18:51:03Z,mtusi-messenger-lab3-api-13,11.30%,8.168MiB / 192MiB
|
||||
2026-10-15T18:51:03Z,mtusi-messenger-lab3-api-15,10.90%,10.89MiB / 192MiB
|
||||
2026-10-15T18:51:03Z,mtusi-messenger-lab3-lb-1,11.80%,5.207MiB / 64MiB
|
||||
2026-10-15T18:51:03Z,mtusi-messenger-lab3-postgres-1,56.75%,253.6MiB / 512MiB
|
||||
2026-10-15T18:51:03Z,mtusi-messenger-lab3-redis-1,0.22%,8.832MiB / 192MiB
|
||||
2026-10-15T18:51:06Z,mtusi-messenger-lab3-api-14,11.04%,11.18MiB / 192MiB
|
||||
2026-10-15T18:51:06Z,mtusi-messenger-lab3-api-12,11.46%,11.4MiB / 192MiB
|
||||
2026-10-15T18:51:06Z,mtusi-messenger-lab3-api-13,11.10%,8.105MiB / 192MiB
|
||||
2026-10-15T18:51:06Z,mtusi-messenger-lab3-api-15,10.99%,10.9MiB / 192MiB
|
||||
2026-10-15T18:51:06Z,mtusi-messenger-lab3-lb-1,11.79%,5.254MiB / 64MiB
|
||||
2026-10-15T18:51:06Z,mtusi-messenger-lab3-postgres-1,59.05%,256.3MiB / 512MiB
|
||||
2026-10-15T18:51:06Z,mtusi-messenger-lab3-redis-1,0.24%,8.832MiB / 192MiB
|
||||
2026-10-15T18:51:09Z,mtusi-messenger-lab3-api-14,11.09%,11.26MiB / 192MiB
|
||||
2026-10-15T18:51:09Z,mtusi-messenger-lab3-api-12,11.75%,11.02MiB / 192MiB
|
||||
2026-10-15T18:51:09Z,mtusi-messenger-lab3-api-13,10.91%,8.227MiB / 192MiB
|
||||
2026-10-15T18:51:09Z,mtusi-messenger-lab3-api-15,10.73%,10.93MiB / 192MiB
|
||||
2026-10-15T18:51:09Z,mtusi-messenger-lab3-lb-1,11.73%,5.223MiB / 64MiB
|
||||
2026-10-15T18:51:09Z,mtusi-messenger-lab3-postgres-1,56.01%,254.8MiB / 512MiB
|
||||
2026-10-15T18:51:09Z,mtusi-messenger-lab3-redis-1,0.23%,8.832MiB / 192MiB
|
||||
2026-10-15T18:51:12Z,mtusi-messenger-lab3-api-14,11.43%,11.25MiB / 192MiB
|
||||
2026-10-15T18:51:12Z,mtusi-messenger-lab3-api-12,11.16%,11.32MiB / 192MiB
|
||||
2026-10-15T18:51:12Z,mtusi-messenger-lab3-api-13,11.60%,8.352MiB / 192MiB
|
||||
2026-10-15T18:51:12Z,mtusi-messenger-lab3-api-15,11.03%,10.9MiB / 192MiB
|
||||
2026-10-15T18:51:12Z,mtusi-messenger-lab3-lb-1,11.70%,5.234MiB / 64MiB
|
||||
2026-10-15T18:51:12Z,mtusi-messenger-lab3-postgres-1,56.18%,255.3MiB / 512MiB
|
||||
2026-10-15T18:51:12Z,mtusi-messenger-lab3-redis-1,0.24%,8.832MiB / 192MiB
|
||||
2026-10-15T18:51:15Z,mtusi-messenger-lab3-api-14,11.10%,11.25MiB / 192MiB
|
||||
2026-10-15T18:51:15Z,mtusi-messenger-lab3-api-12,10.99%,11.32MiB / 192MiB
|
||||
2026-10-15T18:51:15Z,mtusi-messenger-lab3-api-13,11.22%,8.207MiB / 192MiB
|
||||
2026-10-15T18:51:15Z,mtusi-messenger-lab3-api-15,10.42%,10.9MiB / 192MiB
|
||||
2026-10-15T18:51:15Z,mtusi-messenger-lab3-lb-1,11.73%,5.227MiB / 64MiB
|
||||
2026-10-15T18:51:15Z,mtusi-messenger-lab3-postgres-1,56.27%,255.7MiB / 512MiB
|
||||
2026-10-15T18:51:15Z,mtusi-messenger-lab3-redis-1,0.24%,8.832MiB / 192MiB
|
||||
2026-10-15T18:51:18Z,mtusi-messenger-lab3-api-14,11.73%,11.25MiB / 192MiB
|
||||
2026-10-15T18:51:18Z,mtusi-messenger-lab3-api-12,11.93%,11.14MiB / 192MiB
|
||||
2026-10-15T18:51:18Z,mtusi-messenger-lab3-api-13,11.25%,8.164MiB / 192MiB
|
||||
2026-10-15T18:51:18Z,mtusi-messenger-lab3-api-15,10.55%,10.93MiB / 192MiB
|
||||
2026-10-15T18:51:18Z,mtusi-messenger-lab3-lb-1,11.94%,5.219MiB / 64MiB
|
||||
2026-10-15T18:51:18Z,mtusi-messenger-lab3-postgres-1,57.76%,258.4MiB / 512MiB
|
||||
2026-10-15T18:51:18Z,mtusi-messenger-lab3-redis-1,0.23%,8.832MiB / 192MiB
|
||||
2026-10-15T18:51:22Z,mtusi-messenger-lab3-api-14,11.11%,11.37MiB / 192MiB
|
||||
2026-10-15T18:51:22Z,mtusi-messenger-lab3-api-12,11.29%,11.12MiB / 192MiB
|
||||
2026-10-15T18:51:22Z,mtusi-messenger-lab3-api-13,11.07%,8.164MiB / 192MiB
|
||||
2026-10-15T18:51:22Z,mtusi-messenger-lab3-api-15,11.31%,10.93MiB / 192MiB
|
||||
2026-10-15T18:51:22Z,mtusi-messenger-lab3-lb-1,11.94%,5.254MiB / 64MiB
|
||||
2026-10-15T18:51:22Z,mtusi-messenger-lab3-postgres-1,56.94%,259.1MiB / 512MiB
|
||||
2026-10-15T18:51:22Z,mtusi-messenger-lab3-redis-1,0.22%,8.906MiB / 192MiB
|
||||
2026-10-15T18:51:25Z,mtusi-messenger-lab3-api-14,11.12%,11.37MiB / 192MiB
|
||||
2026-10-15T18:51:25Z,mtusi-messenger-lab3-api-12,11.82%,11.08MiB / 192MiB
|
||||
2026-10-15T18:51:25Z,mtusi-messenger-lab3-api-13,10.33%,8.137MiB / 192MiB
|
||||
2026-10-15T18:51:25Z,mtusi-messenger-lab3-api-15,10.75%,10.93MiB / 192MiB
|
||||
2026-10-15T18:51:25Z,mtusi-messenger-lab3-lb-1,11.60%,5.238MiB / 64MiB
|
||||
2026-10-15T18:51:25Z,mtusi-messenger-lab3-postgres-1,54.92%,264.6MiB / 512MiB
|
||||
2026-10-15T18:51:25Z,mtusi-messenger-lab3-redis-1,0.25%,8.906MiB / 192MiB
|
||||
2026-10-15T18:51:28Z,mtusi-messenger-lab3-api-14,9.16%,11.36MiB / 192MiB
|
||||
2026-10-15T18:51:28Z,mtusi-messenger-lab3-api-12,9.40%,11.11MiB / 192MiB
|
||||
2026-10-15T18:51:28Z,mtusi-messenger-lab3-api-13,8.80%,8.152MiB / 192MiB
|
||||
2026-10-15T18:51:28Z,mtusi-messenger-lab3-api-15,9.24%,10.95MiB / 192MiB
|
||||
2026-10-15T18:51:28Z,mtusi-messenger-lab3-lb-1,9.74%,5.086MiB / 64MiB
|
||||
2026-10-15T18:51:28Z,mtusi-messenger-lab3-postgres-1,50.77%,276.2MiB / 512MiB
|
||||
2026-10-15T18:51:28Z,mtusi-messenger-lab3-redis-1,0.24%,8.906MiB / 192MiB
|
||||
|
@@ -0,0 +1,12 @@
|
||||
# Трек 1: цена масштабирования
|
||||
|
||||
| профиль | реплик | бюджет CPU | CPU/реплика | успешный RPS | p50 мс | p95 мс | p99 мс | ошибки | API CPU (сумма) | API RAM max (сумма, MiB) | PG CPU | LB CPU |
|
||||
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
||||
| g05 | 2 | 0.5 | 0.25 | 1905.841 | 4.032 | 6.456 | 9.098 | 340 | 19.87 | 195.4 | 55.19 | 11.25 |
|
||||
| g10 | 2 | 1.0 | 0.5 | 1953.781 | 3.923 | 6.062 | 8.041 | 1984 | 19.21 | 171.0 | 56.17 | 11.77 |
|
||||
| g15 | 2 | 1.5 | 0.75 | 1856.809 | 4.132 | 6.761 | 9.34 | 0 | 19.97 | 172.1 | 59.21 | 11.92 |
|
||||
| pool10 | 4 | 1.0 | 0.25 | 1890.142 | 4.133 | 6.416 | 8.487 | 0 | 11.31 | 174.2 | 55.51 | 11.45 |
|
||||
| pool5 | 4 | 1.0 | 0.25 | 1817.2 | 4.258 | 6.758 | 9.171 | 0 | 10.53 | 185.0 | 52.15 | 11.14 |
|
||||
| r1 | 1 | 1.0 | 1.0 | 1895.027 | 4.031 | 6.507 | 8.906 | 0 | 34.46 | 43.5 | 59.86 | 12.42 |
|
||||
| r2 | 2 | 1.0 | 0.5 | 1956.481 | 3.957 | 6.18 | 8.499 | 0 | 20.16 | 169.6 | 58.83 | 12.3 |
|
||||
| r4 | 4 | 1.0 | 0.25 | 1786.838 | 4.288 | 7.051 | 10.001 | 0 | 10.92 | 180.1 | 52.6 | 11.12 |
|
||||
@@ -0,0 +1,234 @@
|
||||
# Track 1: the price of scaling
|
||||
# generated: 2026-10-15T18:47:12Z
|
||||
# host: Darwin arm64
|
||||
# cpu: Apple M5 Pro
|
||||
# ram bytes: 51539607552
|
||||
# load: tests/load.py closed loop; postgres/redis/lb limits are fixed in compose.yaml
|
||||
# each profile line below records the budget it was run with
|
||||
docker engine 29.5.2
|
||||
Docker Compose version 5.5.1
|
||||
|
||||
=== invocation 2026-10-15T18:47:12Z: REPLICAS="1 2 4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
||||
|
||||
=== profile label=r1 replicas=1 cpu=1.00 mem=768M ===
|
||||
=== invocation 2026-10-15T18:47:37Z: REPLICAS="1 2 4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
||||
|
||||
=== profile label=r1 replicas=1 cpu=1.00 mem=768M ===
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.02,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 113740,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1895.027,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.031,
|
||||
"p95": 6.507,
|
||||
"p99": 8.906
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
postgres_connections=19
|
||||
postgres_max_connections=100
|
||||
messages_rows=368298
|
||||
idempotency_rows=368298
|
||||
|
||||
=== profile label=r2 replicas=2 cpu=0.50 mem=384M ===
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.023,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 117433,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1956.481,
|
||||
"successful_latency_ms": {
|
||||
"p50": 3.957,
|
||||
"p95": 6.18,
|
||||
"p99": 8.499
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
postgres_connections=23
|
||||
postgres_max_connections=100
|
||||
messages_rows=516197
|
||||
idempotency_rows=516197
|
||||
|
||||
=== profile label=r4 replicas=4 cpu=0.25 mem=192M ===
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.014,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 107236,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1786.838,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.288,
|
||||
"p95": 7.051,
|
||||
"p99": 10.001
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
postgres_connections=23
|
||||
postgres_max_connections=100
|
||||
messages_rows=652759
|
||||
idempotency_rows=652759
|
||||
|
||||
=== invocation 2026-10-15T18:51:38Z: REPLICAS="2" TOTAL_CPU=0.5 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
||||
|
||||
=== profile label=g05 replicas=2 cpu=0.25 mem=384M ===
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.02,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 114389,
|
||||
"failed_requests": 340,
|
||||
"error_ratio": 0.002964,
|
||||
"successful_rps": 1905.841,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.032,
|
||||
"p95": 6.456,
|
||||
"p99": 9.098
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
postgres_connections=19
|
||||
postgres_max_connections=100
|
||||
messages_rows=797321
|
||||
idempotency_rows=797321
|
||||
|
||||
=== invocation 2026-10-15T18:53:02Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
||||
|
||||
=== profile label=g10 replicas=2 cpu=0.50 mem=384M ===
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.02,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 117266,
|
||||
"failed_requests": 1984,
|
||||
"error_ratio": 0.016637,
|
||||
"successful_rps": 1953.781,
|
||||
"successful_latency_ms": {
|
||||
"p50": 3.923,
|
||||
"p95": 6.062,
|
||||
"p99": 8.041
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
postgres_connections=19
|
||||
postgres_max_connections=100
|
||||
messages_rows=944961
|
||||
idempotency_rows=944961
|
||||
|
||||
=== invocation 2026-10-15T18:54:19Z: REPLICAS="2" TOTAL_CPU=1.5 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
||||
|
||||
=== profile label=g15 replicas=2 cpu=0.75 mem=384M ===
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.018,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 111442,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1856.809,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.132,
|
||||
"p95": 6.761,
|
||||
"p99": 9.34
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
postgres_connections=19
|
||||
postgres_max_connections=100
|
||||
messages_rows=1086579
|
||||
idempotency_rows=1086579
|
||||
|
||||
=== invocation 2026-10-15T18:55:35Z: REPLICAS="4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
||||
|
||||
=== profile label=pool10 replicas=4 cpu=0.25 mem=192M ===
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.016,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 113438,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1890.142,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.133,
|
||||
"p95": 6.416,
|
||||
"p99": 8.487
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
postgres_connections=23
|
||||
postgres_max_connections=100
|
||||
messages_rows=1229412
|
||||
idempotency_rows=1229412
|
||||
|
||||
=== invocation 2026-10-15T18:56:54Z: REPLICAS="4" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
||||
|
||||
=== profile label=pool5 replicas=4 cpu=0.25 mem=192M ===
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.023,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 109073,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1817.2,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.258,
|
||||
"p95": 6.758,
|
||||
"p99": 9.171
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
postgres_connections=23
|
||||
postgres_max_connections=100
|
||||
messages_rows=1366625
|
||||
idempotency_rows=1366625
|
||||
|
||||
=== invocation 2026-10-15T19:05:27Z: REPLICAS="2" TOTAL_CPU=1.0 TOTAL_MEM_MB=768 DURATION=60 CONCURRENCY=8 WARMUP=15 ===
|
||||
|
||||
=== profile label=db1cpu replicas=2 cpu=0.50 mem=384M ===
|
||||
{
|
||||
"lab": 3,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 60.0,
|
||||
"elapsed_seconds": 60.02,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 117712,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1961.212,
|
||||
"successful_latency_ms": {
|
||||
"p50": 3.984,
|
||||
"p95": 6.09,
|
||||
"p99": 8.13
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
postgres_connections=19
|
||||
postgres_max_connections=100
|
||||
messages_rows=1722748
|
||||
idempotency_rows=1722748
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
module mtusi-messenger
|
||||
|
||||
go 1.27.0
|
||||
|
||||
require (
|
||||
github.com/go-faster/errors v0.8.0
|
||||
github.com/go-faster/jx v1.2.0
|
||||
github.com/go-playground/validator/v10 v10.30.5
|
||||
github.com/google/uuid v1.6.0
|
||||
github.com/jackc/pgx/v5 v5.11.0
|
||||
github.com/ogen-go/ogen v1.24.0
|
||||
github.com/pressly/goose/v3 v3.28.0
|
||||
github.com/redis/go-redis/v9 v9.22.0
|
||||
github.com/spf13/viper v1.21.0
|
||||
github.com/stretchr/testify v1.12.1
|
||||
go.uber.org/zap v1.28.0
|
||||
go.uber.org/zap/exp v0.3.0
|
||||
golang.org/x/crypto v0.57.0
|
||||
golang.org/x/sync v0.23.0
|
||||
)
|
||||
|
||||
require (
|
||||
cel.dev/expr v0.25.2 // indirect
|
||||
filippo.io/edwards25519 v1.2.0 // indirect
|
||||
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
|
||||
github.com/brunoga/deep v1.3.1 // indirect
|
||||
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
||||
github.com/clipperhouse/uax29/v2 v2.2.0 // indirect
|
||||
github.com/coreos/go-semver v0.3.1 // indirect
|
||||
github.com/cubicdaiya/gonp v1.0.4 // indirect
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
||||
github.com/dlclark/regexp2 v1.12.0 // indirect
|
||||
github.com/fatih/color v1.19.0 // indirect
|
||||
github.com/fatih/structs v1.1.0 // indirect
|
||||
github.com/fatih/structtag v1.2.0 // indirect
|
||||
github.com/fsnotify/fsnotify v1.9.0 // indirect
|
||||
github.com/gabriel-vasile/mimetype v1.4.15 // indirect
|
||||
github.com/ghodss/yaml v1.0.0 // indirect
|
||||
github.com/go-faster/yaml v0.4.6 // indirect
|
||||
github.com/go-playground/locales v0.14.1 // indirect
|
||||
github.com/go-playground/universal-translator v0.18.1 // indirect
|
||||
github.com/go-sql-driver/mysql v1.10.0 // indirect
|
||||
github.com/go-viper/mapstructure/v2 v2.5.0 // indirect
|
||||
github.com/google/cel-go v0.28.0 // indirect
|
||||
github.com/huandu/xstrings v1.5.0 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
||||
github.com/jackc/pgpassfile v1.0.0 // indirect
|
||||
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
||||
github.com/jackc/puddle/v2 v2.2.2 // indirect
|
||||
github.com/jedib0t/go-pretty/v6 v6.7.8 // indirect
|
||||
github.com/jinzhu/inflection v1.0.0 // indirect
|
||||
github.com/knadh/koanf/maps v0.1.2 // indirect
|
||||
github.com/knadh/koanf/parsers/yaml v1.1.0 // indirect
|
||||
github.com/knadh/koanf/providers/env v1.1.0 // indirect
|
||||
github.com/knadh/koanf/providers/file v1.2.1 // indirect
|
||||
github.com/knadh/koanf/providers/posflag v1.0.1 // indirect
|
||||
github.com/knadh/koanf/providers/structs v1.0.0 // indirect
|
||||
github.com/knadh/koanf/v2 v2.3.2 // indirect
|
||||
github.com/leodido/go-urn v1.5.0 // indirect
|
||||
github.com/mattn/go-colorable v0.1.14 // indirect
|
||||
github.com/mattn/go-isatty v0.0.24 // indirect
|
||||
github.com/mattn/go-runewidth v0.0.19 // indirect
|
||||
github.com/mfridman/interpolate v0.0.2 // indirect
|
||||
github.com/mitchellh/copystructure v1.2.0 // indirect
|
||||
github.com/mitchellh/reflectwalk v1.0.2 // indirect
|
||||
github.com/ncruces/go-sqlite3 v0.32.0 // indirect
|
||||
github.com/ncruces/julianday v1.0.0 // indirect
|
||||
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
|
||||
github.com/pganalyze/pg_query_go/v6 v6.2.2 // indirect
|
||||
github.com/pingcap/errors v0.11.5-0.20250523034308-74f78ae071ee // indirect
|
||||
github.com/pingcap/failpoint v0.0.0-20240528011301-b51a646c7c86 // indirect
|
||||
github.com/pingcap/log v1.1.0 // indirect
|
||||
github.com/pingcap/tidb/pkg/parser v0.0.0-20260418072757-ce92298d1124 // indirect
|
||||
github.com/riza-io/grpc-go v0.2.0 // indirect
|
||||
github.com/rs/zerolog v1.34.0 // indirect
|
||||
github.com/sagikazarmark/locafero v0.11.0 // indirect
|
||||
github.com/segmentio/asm v1.2.1 // indirect
|
||||
github.com/sethvargo/go-retry v0.4.0 // indirect
|
||||
github.com/shopspring/decimal v1.4.0 // indirect
|
||||
github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect
|
||||
github.com/spf13/afero v1.15.0 // indirect
|
||||
github.com/spf13/cast v1.10.0 // indirect
|
||||
github.com/spf13/cobra v1.10.2 // indirect
|
||||
github.com/spf13/pflag v1.0.10 // indirect
|
||||
github.com/sqlc-dev/doubleclick v1.0.0 // indirect
|
||||
github.com/sqlc-dev/sqlc v1.31.1 // indirect
|
||||
github.com/stretchr/objx v0.5.3 // indirect
|
||||
github.com/subosito/gotenv v1.6.0 // indirect
|
||||
github.com/tetratelabs/wazero v1.11.0 // indirect
|
||||
github.com/vektra/mockery/v3 v3.8.0 // indirect
|
||||
github.com/wasilibs/go-pgquery v0.0.0-20250409022910-10ac41983c07 // indirect
|
||||
github.com/wasilibs/wazero-helpers v0.0.0-20240620070341-3dff1577cd52 // indirect
|
||||
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
|
||||
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
|
||||
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
|
||||
github.com/yuin/goldmark v1.8.2 // indirect
|
||||
go.uber.org/atomic v1.11.0 // indirect
|
||||
go.uber.org/multierr v1.11.0 // indirect
|
||||
go.yaml.in/yaml/v3 v3.0.5 // indirect
|
||||
golang.org/x/exp v0.0.0-20260824195058-e88cd73687aa // indirect
|
||||
golang.org/x/mod v0.41.0 // indirect
|
||||
golang.org/x/net v0.58.0 // indirect
|
||||
golang.org/x/sys v0.48.0 // indirect
|
||||
golang.org/x/term v0.46.0 // indirect
|
||||
golang.org/x/text v0.42.0 // indirect
|
||||
golang.org/x/tools v0.49.0 // indirect
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260831171406-18b4a7587f8a // indirect
|
||||
google.golang.org/grpc v1.83.2 // indirect
|
||||
google.golang.org/protobuf v1.36.12 // indirect
|
||||
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
|
||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
||||
tool (
|
||||
github.com/ogen-go/ogen/cmd/ogen
|
||||
github.com/sqlc-dev/sqlc/cmd/sqlc
|
||||
github.com/vektra/mockery/v3
|
||||
)
|
||||
@@ -0,0 +1,322 @@
|
||||
cel.dev/expr v0.25.2 h1:K6j46C81hXtZQfuX60cVWQFBJahKSE2gfRbNuvr5bFs=
|
||||
cel.dev/expr v0.25.2/go.mod h1:hrXvqGP6G6gyx8UAHSHJ5RGk//1Oj5nXQ2NI02Nrsg4=
|
||||
filippo.io/edwards25519 v1.2.0 h1:crnVqOiS4jqYleHd9vaKZ+HKtHfllngJIiOpNpoJsjo=
|
||||
filippo.io/edwards25519 v1.2.0/go.mod h1:xzAOLCNug/yB62zG1bQ8uziwrIqIuxhctzJT18Q77mc=
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ=
|
||||
github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmOABFgjdkM7Nw=
|
||||
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
|
||||
github.com/brunoga/deep v1.3.1 h1:bSrL6FhAZa6JlVv4vsi7Hg8SLwroDb1kgDERRVipBCo=
|
||||
github.com/brunoga/deep v1.3.1/go.mod h1:GDV6dnXqn80ezsLSZ5Wlv1PdKAWAO4L5PnKYtv2dgaI=
|
||||
github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs=
|
||||
github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdbAV9g4c=
|
||||
github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA=
|
||||
github.com/bsm/gomega v1.27.10/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0H+O0=
|
||||
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
|
||||
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||
github.com/clipperhouse/uax29/v2 v2.2.0 h1:ChwIKnQN3kcZteTXMgb1wztSgaU+ZemkgWdohwgs8tY=
|
||||
github.com/clipperhouse/uax29/v2 v2.2.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM=
|
||||
github.com/coreos/go-semver v0.3.1 h1:yi21YpKnrx1gt5R+la8n5WgS0kCrsPp33dmEyHReZr4=
|
||||
github.com/coreos/go-semver v0.3.1/go.mod h1:irMmmIw/7yzSRPWryHsK7EYSg09caPQL03VsM8rvUec=
|
||||
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
|
||||
github.com/cubicdaiya/gonp v1.0.4 h1:ky2uIAJh81WiLcGKBVD5R7KsM/36W6IqqTy6Bo6rGws=
|
||||
github.com/cubicdaiya/gonp v1.0.4/go.mod h1:iWGuP/7+JVTn02OWhRemVbMmG1DOUnmrGTYYACpOI0I=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/dlclark/regexp2 v1.12.0 h1:0j4c5qQmnC6XOWNjP3PIXURXN2gWx76rd3KvgdPkCz8=
|
||||
github.com/dlclark/regexp2 v1.12.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
|
||||
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
|
||||
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
|
||||
github.com/fatih/color v1.19.0 h1:Zp3PiM21/9Ld6FzSKyL5c/BULoe/ONr9KlbYVOfG8+w=
|
||||
github.com/fatih/color v1.19.0/go.mod h1:zNk67I0ZUT1bEGsSGyCZYZNrHuTkJJB+r6Q9VuMi0LE=
|
||||
github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo=
|
||||
github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M=
|
||||
github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4=
|
||||
github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94=
|
||||
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
|
||||
github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
|
||||
github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
|
||||
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
|
||||
github.com/gabriel-vasile/mimetype v1.4.15 h1:05iP/CYtZ/w455R/KZM6rZ5ieAdh99UPtd+d3YzLmaI=
|
||||
github.com/gabriel-vasile/mimetype v1.4.15/go.mod h1:azpTcoLcDZRNgFou5j+APrqQx9HqVPWa6ijYQIIVswQ=
|
||||
github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
|
||||
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
|
||||
github.com/go-faster/errors v0.8.0 h1:9T9eJrM+72dFk7n4DfhuaDDe6cyuFCSW2oNUkN77Yqc=
|
||||
github.com/go-faster/errors v0.8.0/go.mod h1:5ySTjWFiphBs07IKuiL69nxdfd5+fzh1u7FPGZP2quo=
|
||||
github.com/go-faster/jx v1.2.0 h1:T2YHJPrFaYu21fJtUxC9GzmluKu8rVIFDwwGBKTDseI=
|
||||
github.com/go-faster/jx v1.2.0/go.mod h1:UWLOVDmMG597a5tBFPLIWJdUxz5/2emOpfsj9Neg0PE=
|
||||
github.com/go-faster/yaml v0.4.6 h1:lOK/EhI04gCpPgPhgt0bChS6bvw7G3WwI8xxVe0sw9I=
|
||||
github.com/go-faster/yaml v0.4.6/go.mod h1:390dRIvV4zbnO7qC9FGo6YYutc+wyyUSHBgbXL52eXk=
|
||||
github.com/go-logr/logr v1.4.4 h1:tG4xh9yMsRCAiodLVTxyrkzSZ9+o0L1Kg/+cPVcbP/8=
|
||||
github.com/go-logr/logr v1.4.4/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
|
||||
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
|
||||
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
|
||||
github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
|
||||
github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
|
||||
github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA=
|
||||
github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
|
||||
github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
|
||||
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
|
||||
github.com/go-playground/validator/v10 v10.30.5 h1:YyCXvVShZbs2Sm3Mb53eNOlhRXctSOzW5QJAouCTZL4=
|
||||
github.com/go-playground/validator/v10 v10.30.5/go.mod h1:wEqiaov48pXX1kjhc3Da8y0M0Dtg/BK7gurFBLgwFrQ=
|
||||
github.com/go-sql-driver/mysql v1.10.0 h1:Q+1LV8DkHJvSYAdR83XzuhDaTykuDx0l6fkXxoWCWfw=
|
||||
github.com/go-sql-driver/mysql v1.10.0/go.mod h1:M+cqaI7+xxXGG9swrdeUIoPG3Y3KCkF0pZej+SK+nWk=
|
||||
github.com/go-viper/mapstructure/v2 v2.5.0 h1:vM5IJoUAy3d7zRSVtIwQgBj7BiWtMPfmPEgAXnvj1Ro=
|
||||
github.com/go-viper/mapstructure/v2 v2.5.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
|
||||
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
|
||||
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
|
||||
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
|
||||
github.com/google/cel-go v0.28.0 h1:KjSWstCpz/MN5t4a8gnGJNIYUsJRpdi/r97xWDphIQc=
|
||||
github.com/google/cel-go v0.28.0/go.mod h1:X0bD6iVNR8pkROSOoHVdgTkzmRcosof7WQqCD6wcMc8=
|
||||
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
|
||||
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
|
||||
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
||||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI=
|
||||
github.com/huandu/xstrings v1.5.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
|
||||
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
|
||||
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
|
||||
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
|
||||
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
|
||||
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7UlwOQYpKFhBabPMi4aNAfoODPEFNiAnClxo=
|
||||
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=
|
||||
github.com/jackc/pgx/v5 v5.11.0 h1:IzBBtyK9AHqf98cctWFifYSci2hgQR/cd56wB4p+ogg=
|
||||
github.com/jackc/pgx/v5 v5.11.0/go.mod h1:mal1tBGAFfLHvZzaYh77YS/eC6IX9OWbRV1QIIM0Jn4=
|
||||
github.com/jackc/puddle/v2 v2.2.2 h1:PR8nw+E/1w0GLuRFSmiioY6UooMp6KJv0/61nB7icHo=
|
||||
github.com/jackc/puddle/v2 v2.2.2/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
|
||||
github.com/jedib0t/go-pretty/v6 v6.7.8 h1:BVYrDy5DPBA3Qn9ICT+PokP9cvCv1KaHv2i+Hc8sr5o=
|
||||
github.com/jedib0t/go-pretty/v6 v6.7.8/go.mod h1:YwC5CE4fJ1HFUDeivSV1r//AmANFHyqczZk+U6BDALU=
|
||||
github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E=
|
||||
github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc=
|
||||
github.com/klauspost/cpuid/v2 v2.2.10 h1:tBs3QSyvjDyFTq3uoc/9xFpCuOsJQFNPiAhYdw2skhE=
|
||||
github.com/klauspost/cpuid/v2 v2.2.10/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
|
||||
github.com/knadh/koanf/maps v0.1.2 h1:RBfmAW5CnZT+PJ1CVc1QSJKf4Xu9kxfQgYVQSu8hpbo=
|
||||
github.com/knadh/koanf/maps v0.1.2/go.mod h1:npD/QZY3V6ghQDdcQzl1W4ICNVTkohC8E73eI2xW4yI=
|
||||
github.com/knadh/koanf/parsers/yaml v1.1.0 h1:3ltfm9ljprAHt4jxgeYLlFPmUaunuCgu1yILuTXRdM4=
|
||||
github.com/knadh/koanf/parsers/yaml v1.1.0/go.mod h1:HHmcHXUrp9cOPcuC+2wrr44GTUB0EC+PyfN3HZD9tFg=
|
||||
github.com/knadh/koanf/providers/env v1.1.0 h1:U2VXPY0f+CsNDkvdsG8GcsnK4ah85WwWyJgef9oQMSc=
|
||||
github.com/knadh/koanf/providers/env v1.1.0/go.mod h1:QhHHHZ87h9JxJAn2czdEl6pdkNnDh/JS1Vtsyt65hTY=
|
||||
github.com/knadh/koanf/providers/file v1.2.1 h1:bEWbtQwYrA+W2DtdBrQWyXqJaJSG3KrP3AESOJYp9wM=
|
||||
github.com/knadh/koanf/providers/file v1.2.1/go.mod h1:bp1PM5f83Q+TOUu10J/0ApLBd9uIzg+n9UgthfY+nRA=
|
||||
github.com/knadh/koanf/providers/posflag v1.0.1 h1:EnMxHSrPkYCFnKgBUl5KBgrjed8gVFrcXDzaW4l/C6Y=
|
||||
github.com/knadh/koanf/providers/posflag v1.0.1/go.mod h1:3Wn3+YG3f4ljzRyCUgIwH7G0sZ1pMjCOsNBovrbKmAk=
|
||||
github.com/knadh/koanf/providers/structs v1.0.0 h1:DznjB7NQykhqCar2LvNug3MuxEQsZ5KvfgMbio+23u4=
|
||||
github.com/knadh/koanf/providers/structs v1.0.0/go.mod h1:kjo5TFtgpaZORlpoJqcbeLowM2cINodv8kX+oFAeQ1w=
|
||||
github.com/knadh/koanf/v2 v2.3.2 h1:Ee6tuzQYFwcZXQpc2MiVeC6qHMandf5SMUJJNoFp/c4=
|
||||
github.com/knadh/koanf/v2 v2.3.2/go.mod h1:gRb40VRAbd4iJMYYD5IxZ6hfuopFcXBpc9bbQpZwo28=
|
||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
|
||||
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
|
||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
||||
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||
github.com/leodido/go-urn v1.5.0 h1:pLqT2kq1zpHW/1D18QMjMpdtX7cekxqtJJjg5ANyWw0=
|
||||
github.com/leodido/go-urn v1.5.0/go.mod h1:9BORnCDhdPBJNDEX+w1bJisa8yOKYi116VeO96s4ifE=
|
||||
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
|
||||
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
|
||||
github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
|
||||
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
|
||||
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||
github.com/mattn/go-isatty v0.0.24 h1:tGZZoVgT/KiqK1c8ocVLeDS8BSWMRd47J3Lbz7vsReI=
|
||||
github.com/mattn/go-isatty v0.0.24/go.mod h1:nMCL3Zebbrt45jsMDgnfIwz6ydEQApk5oEI3HqDio6A=
|
||||
github.com/mattn/go-runewidth v0.0.19 h1:v++JhqYnZuu5jSKrk9RbgF5v4CGUjqRfBm05byFGLdw=
|
||||
github.com/mattn/go-runewidth v0.0.19/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs=
|
||||
github.com/mfridman/interpolate v0.0.2 h1:pnuTK7MQIxxFz1Gr+rjSIx9u7qVjf5VOoM/u6BbAxPY=
|
||||
github.com/mfridman/interpolate v0.0.2/go.mod h1:p+7uk6oE07mpE/Ik1b8EckO0O4ZXiGAfshKBWLUM9Xg=
|
||||
github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw=
|
||||
github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s=
|
||||
github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ=
|
||||
github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
|
||||
github.com/ncruces/go-sqlite3 v0.32.0 h1:hNBUXp88LrfQCsuyXLqWTbTUG35sUuktDsqhhgHvU20=
|
||||
github.com/ncruces/go-sqlite3 v0.32.0/go.mod h1:MIWTK60ONDl0oVY073zYvJP21C3Dly6P9bxVpgkLwdQ=
|
||||
github.com/ncruces/go-strftime v1.0.0 h1:HMFp8mLCTPp341M/ZnA4qaf7ZlsbTc+miZjCLOFAw7w=
|
||||
github.com/ncruces/go-strftime v1.0.0/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
|
||||
github.com/ncruces/julianday v1.0.0 h1:fH0OKwa7NWvniGQtxdJRxAgkBMolni2BjDHaWTxqt7M=
|
||||
github.com/ncruces/julianday v1.0.0/go.mod h1:Dusn2KvZrrovOMJuOt0TNXL6tB7U2E8kvza5fFc9G7g=
|
||||
github.com/ogen-go/ogen v1.24.0 h1:NehBG/8s0JeM6jYHPJeFJntBG3cE/xQgZd1q8BchPNM=
|
||||
github.com/ogen-go/ogen v1.24.0/go.mod h1:hcg4aTzLcu/MS1SGGahUriPBEOZB3c82RGIC6dYcdFU=
|
||||
github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4=
|
||||
github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
|
||||
github.com/pganalyze/pg_query_go/v6 v6.2.2 h1:O0L6zMC226R82RF3X5n0Ki6HjytDsoAzuzp4ATVAHNo=
|
||||
github.com/pganalyze/pg_query_go/v6 v6.2.2/go.mod h1:Cn6+j4870kJz3iYNsb0VsNG04vpSWgEvBwc590J4qD0=
|
||||
github.com/pingcap/errors v0.11.0/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8=
|
||||
github.com/pingcap/errors v0.11.5-0.20250523034308-74f78ae071ee h1:/IDPbpzkzA97t1/Z1+C3KlxbevjMeaI6BQYxvivu4u8=
|
||||
github.com/pingcap/errors v0.11.5-0.20250523034308-74f78ae071ee/go.mod h1:X2r9ueLEUZgtx2cIogM0v4Zj5uvvzhuuiu7Pn8HzMPg=
|
||||
github.com/pingcap/failpoint v0.0.0-20240528011301-b51a646c7c86 h1:tdMsjOqUR7YXHoBitzdebTvOjs/swniBTOLy5XiMtuE=
|
||||
github.com/pingcap/failpoint v0.0.0-20240528011301-b51a646c7c86/go.mod h1:exzhVYca3WRtd6gclGNErRWb1qEgff3LYta0LvRmON4=
|
||||
github.com/pingcap/log v1.1.0 h1:ELiPxACz7vdo1qAvvaWJg1NrYFoY6gqAh/+Uo6aXdD8=
|
||||
github.com/pingcap/log v1.1.0/go.mod h1:DWQW5jICDR7UJh4HtxXSM20Churx4CQL0fwL/SoOSA4=
|
||||
github.com/pingcap/tidb/pkg/parser v0.0.0-20260418072757-ce92298d1124 h1:zYmP5fBH+i2yhhU6f5uOol6zxHtR2/sD47BsJLfy0oU=
|
||||
github.com/pingcap/tidb/pkg/parser v0.0.0-20260418072757-ce92298d1124/go.mod h1:zDLDsfNBU5+L6T4J9/OgWAHc/WZvMUjbpgHqQ/t3yKo=
|
||||
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/pressly/goose/v3 v3.28.0 h1:D2M+iL31GmpZxSHOhX8mqyqAT3CXnokUmm0eKoSP+Vc=
|
||||
github.com/pressly/goose/v3 v3.28.0/go.mod h1:v26MOuB8bL3kzzrt3Vqhb3R0PRVsl8hFQKdrht/L6Rk=
|
||||
github.com/redis/go-redis/v9 v9.22.0 h1:laDvpYXTJtZLloinw1fA5Kqd6HAEH2XKxOkG/PDq2F0=
|
||||
github.com/redis/go-redis/v9 v9.22.0/go.mod h1:y2g0Wj8rQvuK0ELM+oxSudcLtC09JScs98I/X9gRWY4=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
|
||||
github.com/riza-io/grpc-go v0.2.0 h1:2HxQKFVE7VuYstcJ8zqpN84VnAoJ4dCL6YFhJewNcHQ=
|
||||
github.com/riza-io/grpc-go v0.2.0/go.mod h1:2bDvR9KkKC3KhtlSHfR3dAXjUMT86kg4UfWFyVGWqi8=
|
||||
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
|
||||
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
|
||||
github.com/rs/xid v1.6.0/go.mod h1:7XoLgs4eV+QndskICGsho+ADou8ySMSjJKDIan90Nz0=
|
||||
github.com/rs/zerolog v1.34.0 h1:k43nTLIwcTVQAncfCw4KZ2VY6ukYoZaBPNOE8txlOeY=
|
||||
github.com/rs/zerolog v1.34.0/go.mod h1:bJsvje4Z08ROH4Nhs5iH600c3IkWhwp44iRc54W6wYQ=
|
||||
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||
github.com/sagikazarmark/locafero v0.11.0 h1:1iurJgmM9G3PA/I+wWYIOw/5SyBtxapeHDcg+AAIFXc=
|
||||
github.com/sagikazarmark/locafero v0.11.0/go.mod h1:nVIGvgyzw595SUSUE6tvCp3YYTeHs15MvlmU87WwIik=
|
||||
github.com/segmentio/asm v1.2.1 h1:DTNbBqs57ioxAD4PrArqftgypG4/qNpXoJx8TVXxPR0=
|
||||
github.com/segmentio/asm v1.2.1/go.mod h1:BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr5aAcs=
|
||||
github.com/sethvargo/go-retry v0.4.0 h1:9qy1OoIAxBL+gBYnkTnTnWle5wlfsXQlwRzIbbpdqPw=
|
||||
github.com/sethvargo/go-retry v0.4.0/go.mod h1:tvsjdKG6xfiCx4LSiUZ06kcv38xvdVQwv8R6/VnnVWg=
|
||||
github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k=
|
||||
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
|
||||
github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 h1:+jumHNA0Wrelhe64i8F6HNlS8pkoyMv5sreGx2Ry5Rw=
|
||||
github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8/go.mod h1:3n1Cwaq1E1/1lhQhtRK2ts/ZwZEhjcQeJQ1RuC6Q/8U=
|
||||
github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I=
|
||||
github.com/spf13/afero v1.15.0/go.mod h1:NC2ByUVxtQs4b3sIUphxK0NioZnmxgyCrfzeuq8lxMg=
|
||||
github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY=
|
||||
github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
|
||||
github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU=
|
||||
github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4=
|
||||
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
|
||||
github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/spf13/viper v1.21.0 h1:x5S+0EU27Lbphp4UKm1C+1oQO+rKx36vfCoaVebLFSU=
|
||||
github.com/spf13/viper v1.21.0/go.mod h1:P0lhsswPGWD/1lZJ9ny3fYnVqxiegrlNrEmgLjbTCAY=
|
||||
github.com/sqlc-dev/doubleclick v1.0.0 h1:2/OApfQ2eLgcfa/Fqs8WSMA6atH0G8j9hHbQIgMfAXI=
|
||||
github.com/sqlc-dev/doubleclick v1.0.0/go.mod h1:ODHRroSrk/rr5neRHlWMSRijqOak8YmNaO3VAZCNl5Y=
|
||||
github.com/sqlc-dev/sqlc v1.31.1 h1:+V+BjBJfFNPX/RFfL8eiZD9jk9lVJUEGGllWvnYNqbc=
|
||||
github.com/sqlc-dev/sqlc v1.31.1/go.mod h1:6ZPww/Jd3G6MzJeW6NrqizjL+52vYNaaXP9yMeJ/Nao=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/objx v0.5.3 h1:jmXUvGomnU1o3W/V5h2VEradbpJDwGrzugQQvL0POH4=
|
||||
github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+QYS+U0=
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE=
|
||||
github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg=
|
||||
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
|
||||
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
|
||||
github.com/tetratelabs/wazero v1.11.0 h1:+gKemEuKCTevU4d7ZTzlsvgd1uaToIDtlQlmNbwqYhA=
|
||||
github.com/tetratelabs/wazero v1.11.0/go.mod h1:eV28rsN8Q+xwjogd7f4/Pp4xFxO7uOGbLcD/LzB1wiU=
|
||||
github.com/vektra/mockery/v3 v3.8.0 h1:Tklqcx844iV8GtYziqJXam1a8RdcKip4UErMa66Nxps=
|
||||
github.com/vektra/mockery/v3 v3.8.0/go.mod h1:K+L72OoFVizA9eWtO4L+kU65oylgreiJEJ57Gu8g9Ew=
|
||||
github.com/wasilibs/go-pgquery v0.0.0-20250409022910-10ac41983c07 h1:mJdDDPblDfPe7z7go8Dvv1AJQDI3eQ/5xith3q2mFlo=
|
||||
github.com/wasilibs/go-pgquery v0.0.0-20250409022910-10ac41983c07/go.mod h1:Ak17IJ037caFp4jpCw/iQQ7/W74Sqpb1YuKJU6HTKfM=
|
||||
github.com/wasilibs/wazero-helpers v0.0.0-20240620070341-3dff1577cd52 h1:OvLBa8SqJnZ6P+mjlzc2K7PM22rRUPE1x32G9DTPrC4=
|
||||
github.com/wasilibs/wazero-helpers v0.0.0-20240620070341-3dff1577cd52/go.mod h1:jMeV4Vpbi8osrE/pKUxRZkVaA0EX7NZN0A9/oRzgpgY=
|
||||
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
|
||||
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo=
|
||||
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
|
||||
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0=
|
||||
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ=
|
||||
github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74=
|
||||
github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y=
|
||||
github.com/yuin/goldmark v1.8.2 h1:kEGpgqJXdgbkhcOgBxkC0X0PmoPG1ZyoZ117rDVp4zE=
|
||||
github.com/yuin/goldmark v1.8.2/go.mod h1:ip/1k0VRfGynBgxOz0yCqHrbZXhcjxyuS66Brc7iBKg=
|
||||
github.com/zeebo/xxh3 v1.1.0 h1:s7DLGDK45Dyfg7++yxI0khrfwq9661w9EN78eP/UZVs=
|
||||
github.com/zeebo/xxh3 v1.1.0/go.mod h1:IisAie1LELR4xhVinxWS5+zf1lA4p0MW4T+w+W07F5s=
|
||||
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
|
||||
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
|
||||
go.opentelemetry.io/otel v1.46.0 h1:FHt5/CDyVxi/8IM1CH7VE/rRgq3kLHa2mSTVMO8AWyc=
|
||||
go.opentelemetry.io/otel v1.46.0/go.mod h1:Gj3SEScelsNC45tp4nSxRYlS+f5iez7W8XPMCt905kE=
|
||||
go.opentelemetry.io/otel/metric v1.46.0 h1:yBnkXvgV7AXFILZc5K6IZe/CBFF3OS7BJ8ov6/lj0K8=
|
||||
go.opentelemetry.io/otel/metric v1.46.0/go.mod h1:iPmdWqifKUdzziPkvvzIJXITl56fQx2mGM/DHLB3/2o=
|
||||
go.opentelemetry.io/otel/sdk v1.45.0 h1:4VVSMgQ83dUgW2aoX5f6JgLvHwIvzcuLnF9lUdCSpCw=
|
||||
go.opentelemetry.io/otel/sdk v1.45.0/go.mod h1:Sr40LgXV7DsKMMJMKOhUWOgMWTfAaqvm2kF0g7ilwuA=
|
||||
go.opentelemetry.io/otel/sdk/metric v1.45.0 h1:oVFszMfyj1Am6s24Vtc7wBb8BKLcwepJjNEYILuiE3o=
|
||||
go.opentelemetry.io/otel/sdk/metric v1.45.0/go.mod h1:vUWUxDZvu1WVRj8JA8S0AdhsPrZoDpA2DdZauIh4mDA=
|
||||
go.opentelemetry.io/otel/trace v1.46.0 h1:OULy7ccdJnZtJ0UDYFOIGaCmiWzJ8Vi2G/Rsu60qs1c=
|
||||
go.opentelemetry.io/otel/trace v1.46.0/go.mod h1:J7GAXweO77XSFkB/rmAqk9D6ihszhFjLU+d9WuUxDLI=
|
||||
go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
|
||||
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||
go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||
go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=
|
||||
go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
|
||||
go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A=
|
||||
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
|
||||
go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak=
|
||||
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
||||
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
||||
go.uber.org/zap v1.19.0/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI=
|
||||
go.uber.org/zap v1.28.0 h1:IZzaP1Fv73/T/pBMLk4VutPl36uNC+OSUh3JLG3FIjo=
|
||||
go.uber.org/zap v1.28.0/go.mod h1:rDLpOi171uODNm/mxFcuYWxDsqWSAVkFdX4XojSKg/Q=
|
||||
go.uber.org/zap/exp v0.3.0 h1:6JYzdifzYkGmTdRR59oYH+Ng7k49H9qVpWwNSsGJj3U=
|
||||
go.uber.org/zap/exp v0.3.0/go.mod h1:5I384qq7XGxYyByIhHm6jg5CHkGY0nsTfbDLgDDlgJQ=
|
||||
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
|
||||
go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw=
|
||||
go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.57.0 h1:3ZVCjf8Ggz7zneR/EHRVx68Ctf+2pmIMP2UFhh9cC6M=
|
||||
golang.org/x/crypto v0.57.0/go.mod h1:Fdz0i5U6CoizGwLda9DttjSk6qlZo25zYNtR+ycvuZA=
|
||||
golang.org/x/exp v0.0.0-20260824195058-e88cd73687aa h1:QSyA8ishJCyT21kER9KwNt0b7BM3iRK4x9QXhjN5Fdk=
|
||||
golang.org/x/exp v0.0.0-20260824195058-e88cd73687aa/go.mod h1:zeBbvyFKDaLwa7CH/zI8KXt7gTl14SF7sO08Pl5jBCM=
|
||||
golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/mod v0.41.0 h1:qJmnOUb4YB+FsEuM3HcWucdZASCPGhsX6uljO6pog0c=
|
||||
golang.org/x/mod v0.41.0/go.mod h1:Ek9pY8RKWXwsWvd3rQiHYtMqkjSUV+s1Rj7j4H5Ur6o=
|
||||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To=
|
||||
golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.23.0 h1:KameEIfc1IkluZyXWLn39Wd4tURc6GbCiISGiZm2bQk=
|
||||
golang.org/x/sync v0.23.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo=
|
||||
golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
|
||||
golang.org/x/term v0.46.0 h1:3+OXuTbaKDgwk8jTi3aSLHRlmWqHEUDUtxnbFigO4YE=
|
||||
golang.org/x/term v0.46.0/go.mod h1:+K02xbkittuwc0Am4abfA3Fc+XRGXkvBXNO88NCXPoc=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI=
|
||||
golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E=
|
||||
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.49.0 h1:3NI7VXzL9+1WZD52Dx2ttoPwD5DWrFGpl9mFZDlmisI=
|
||||
golang.org/x/tools v0.49.0/go.mod h1:SJNXV9DBKT0UbdttsQjbfJlAE/q+y36++zo3uL3N0Oo=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4=
|
||||
gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa h1:Kjn0N0tCrDgiAFW+lGO4JZ3ck44CehvJQMAwj9QF0G8=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa/go.mod h1:q4lMZS6kskjT5HvCPrnnypcDPVJqT/f4nfxmkE7gryY=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260831171406-18b4a7587f8a h1:3Dnd1cDaZlB68lziofO+bJXpjOy8UfRv8Unt+yH8tQ4=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260831171406-18b4a7587f8a/go.mod h1:DjtHYE8FKJLivXcBEjGwndXfIC23G0VpXiXKqG179uA=
|
||||
google.golang.org/grpc v1.83.2 h1:EManeRomTObA0BU7I8vXgg/78uE5MJ9M8B39EX2WscU=
|
||||
google.golang.org/grpc v1.83.2/go.mod h1:YPI1hK3kDked6iHvgX3tR0y+nX/qpMFKhPgFsokw1S8=
|
||||
google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc=
|
||||
google.golang.org/protobuf v1.36.12/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
|
||||
gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k=
|
||||
gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST95x9zc=
|
||||
gopkg.in/natefinch/lumberjack.v2 v2.2.1/go.mod h1:YD8tP3GAjkrDg1eZH7EGmyESg/lsYskCTPBJVb9jqSc=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
|
||||
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
modernc.org/libc v1.75.6 h1:yKk8qo+Di4gkmvRboK8ocCqH22FiUCR6jRy2OwtCRus=
|
||||
modernc.org/libc v1.75.6/go.mod h1:bO5o2ztHxBb2rjz0PgdHN0sSMw57CgxGFLZ3Qd/QpVQ=
|
||||
modernc.org/mathutil v1.7.1 h1:GCZVGXdaN8gTqB1Mf/usp1Y/hSqgI2vAGGP4jZMCxOU=
|
||||
modernc.org/mathutil v1.7.1/go.mod h1:4p5IwJITfppl0G4sUEDtCr4DthTaT47/N3aT6MhfgJg=
|
||||
modernc.org/memory v1.12.1 h1:nFMiWrpStgZczNl6XI9GnIk/rWhYIyHGUaR04pGbp9g=
|
||||
modernc.org/memory v1.12.1/go.mod h1:/JP4VbVC+K5sU2wZi9bHoq2MAkCnrt2r98UGeSK7Mjw=
|
||||
modernc.org/sqlite v1.57.0 h1:qNQP6xnx5M0ISNtlnxoOX0+cD5bJ0/gr9aMmndFczzg=
|
||||
modernc.org/sqlite v1.57.0/go.mod h1:yCJ2cmAaIkHQ25oXWrF8H4O1lIfPYPR26yCEDj2P3pQ=
|
||||
@@ -0,0 +1,72 @@
|
||||
# Load balancer for the lab3 stand (nginx OSS, container `lb`).
|
||||
#
|
||||
# Two static API replica addresses, discovered through Docker's embedded DNS
|
||||
# (127.0.0.11). `resolve` re-resolves the names every 5s, so a replica that is
|
||||
# stopped or recreated with a new address is picked up without an nginx reload.
|
||||
# Passive health checks: one failed attempt takes the replica out for 3s.
|
||||
# Retries include non-idempotent methods: replaying a POST is safe here because
|
||||
# lab3 requires Idempotency-Key on message creation.
|
||||
worker_processes auto;
|
||||
error_log /dev/stderr warn;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
access_log /dev/stdout combined;
|
||||
default_type application/json;
|
||||
server_tokens off;
|
||||
|
||||
resolver 127.0.0.11 valid=5s ipv6=off;
|
||||
resolver_timeout 2s;
|
||||
|
||||
upstream api_backend {
|
||||
zone api_backend 64k;
|
||||
least_conn;
|
||||
# Общее имя -> все адреса реплик (общий network alias в compose.yaml).
|
||||
# `resolve` переразрешает имя каждые 5 с, поэтому номера контейнеров и их
|
||||
# IP могут меняться без правки конфига и без reload.
|
||||
# max_fails=0 (пассивные проверки выключены) осознанно: upstream'ов всего
|
||||
# два, и исключение последней живой реплики из-за одного медленного
|
||||
# ответа превращается в полный отказ («no live upstreams», измерено в
|
||||
# rolling update). Удалённую реплику и так убирают retry и DNS.
|
||||
server api-replica:8080 resolve max_fails=1 fail_timeout=3s;
|
||||
keepalive 32;
|
||||
keepalive_requests 1000;
|
||||
keepalive_timeout 60s;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
# Client headers (including X-Instance-Id and Idempotency-Key) and
|
||||
# response headers (including X-Instance-Id) are forwarded as-is.
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
proxy_connect_timeout 1s;
|
||||
# Короткий read timeout: запрос, попавший в keepalive-соединение к уже
|
||||
# удалённой реплике, ждёт таймаута, после чего уходит на живую реплику.
|
||||
# 5 с многократно больше любой легитимной задержки этого API.
|
||||
proxy_send_timeout 30s;
|
||||
proxy_read_timeout 5s;
|
||||
|
||||
# Retry the other replica on connect error/timeout, or on 502/503/504,
|
||||
# for every method (POST included, see the header comment above).
|
||||
proxy_next_upstream error timeout http_502 http_503 http_504 non_idempotent;
|
||||
proxy_next_upstream_tries 3;
|
||||
proxy_next_upstream_timeout 10s;
|
||||
|
||||
# /health/live and /health/ready are proxied to a replica unchanged.
|
||||
location / {
|
||||
proxy_pass http://api_backend;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"net"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/go-playground/validator/v10"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"mtusi-messenger/internal/logger"
|
||||
)
|
||||
|
||||
const (
|
||||
configEnvKey = "APP_CONFIG"
|
||||
envKey = "APP_ENV"
|
||||
configName = "config"
|
||||
defaultEnv = "dev"
|
||||
configDir = "./config/"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
Env string `mapstructure:"env" validate:"omitempty,eq=dev"`
|
||||
Server Server `mapstructure:"server"`
|
||||
Log Log `mapstructure:"log"`
|
||||
Postgres Postgres `mapstructure:"postgres"`
|
||||
Redis Redis `mapstructure:"redis"`
|
||||
Cache Cache `mapstructure:"cache"`
|
||||
Session Session `mapstructure:"session"`
|
||||
Idempotency Idempotency `mapstructure:"idempotency"`
|
||||
}
|
||||
|
||||
type Session struct {
|
||||
TTLSeconds int `mapstructure:"ttl_seconds" validate:"required,gt=0"`
|
||||
}
|
||||
|
||||
// Idempotency holds the retention window of a message Idempotency-Key (contract
|
||||
// 1.3.0 requires at least 24 hours).
|
||||
type Idempotency struct {
|
||||
TTLSeconds int `mapstructure:"ttl_seconds" validate:"required,gt=0"`
|
||||
}
|
||||
|
||||
type Redis struct {
|
||||
Enabled bool `mapstructure:"enabled"`
|
||||
Host string `mapstructure:"host" validate:"omitempty,hostname|ip"`
|
||||
Port int `mapstructure:"port" validate:"omitempty,min=1,max=65535"`
|
||||
Password string `mapstructure:"password"`
|
||||
DB int `mapstructure:"db" validate:"omitempty,gte=0,lte=15"`
|
||||
MaxRetries int `mapstructure:"max_retries" validate:"omitempty,gte=-1"`
|
||||
DialTimeout time.Duration `mapstructure:"dial_timeout" validate:"omitempty,gt=0"`
|
||||
ReadTimeout time.Duration `mapstructure:"read_timeout" validate:"omitempty,gt=0"`
|
||||
WriteTimeout time.Duration `mapstructure:"write_timeout" validate:"omitempty,gt=0"`
|
||||
PoolSize int `mapstructure:"pool_size" validate:"omitempty,gt=0"`
|
||||
}
|
||||
|
||||
type Cache struct {
|
||||
Enabled bool `mapstructure:"enabled"`
|
||||
ChatListTTL time.Duration `mapstructure:"chat_list_ttl" validate:"required,gt=0"`
|
||||
LockTTL time.Duration `mapstructure:"lock_ttl" validate:"required,gt=1s"`
|
||||
LockWaitTimeout time.Duration `mapstructure:"lock_wait_timeout" validate:"required,gt=0"`
|
||||
}
|
||||
|
||||
type Server struct {
|
||||
Host string `mapstructure:"host" validate:"required,hostname|ip"`
|
||||
Port int `mapstructure:"port" validate:"required,min=1,max=65535"`
|
||||
ReadHeaderTimeout time.Duration `mapstructure:"read_header_timeout" validate:"required,gt=0"`
|
||||
ShutdownTimeout time.Duration `mapstructure:"shutdown_timeout" validate:"required,gt=0"`
|
||||
}
|
||||
|
||||
type Log struct {
|
||||
Level string `mapstructure:"level" validate:"required,oneof=debug info warn error"`
|
||||
Format string `mapstructure:"format" validate:"required,oneof=json console"`
|
||||
}
|
||||
|
||||
type Postgres struct {
|
||||
Host string `mapstructure:"host" validate:"omitempty,hostname|ip"`
|
||||
Port int `mapstructure:"port" validate:"omitempty,min=1,max=65535"`
|
||||
Database string `mapstructure:"database" validate:"omitempty,min=1"`
|
||||
User string `mapstructure:"user" validate:"omitempty,min=1"`
|
||||
Password string `mapstructure:"password"`
|
||||
SSLMode string `mapstructure:"ssl_mode" validate:"omitempty,oneof=disable require verify-ca verify-full"`
|
||||
MaxConns int32 `mapstructure:"max_conns" validate:"omitempty,gt=0"`
|
||||
MinConns int32 `mapstructure:"min_conns" validate:"omitempty,gte=0"`
|
||||
MaxConnLifetime time.Duration `mapstructure:"max_conn_lifetime" validate:"omitempty,gt=0"`
|
||||
MaxConnIdleTime time.Duration `mapstructure:"max_conn_idle_time" validate:"omitempty,gt=0"`
|
||||
ConnectTimeout time.Duration `mapstructure:"connect_timeout" validate:"omitempty,gt=0"`
|
||||
QueryTimeout time.Duration `mapstructure:"query_timeout" validate:"omitempty,gt=0"`
|
||||
}
|
||||
|
||||
func (p Postgres) DSN() string {
|
||||
u := &url.URL{
|
||||
Scheme: "postgres",
|
||||
Host: net.JoinHostPort(p.Host, strconv.Itoa(p.Port)),
|
||||
Path: "/" + p.Database,
|
||||
}
|
||||
|
||||
if p.Password == "" {
|
||||
u.User = url.User(p.User)
|
||||
} else {
|
||||
u.User = url.UserPassword(p.User, p.Password)
|
||||
}
|
||||
|
||||
query := url.Values{}
|
||||
query.Set("sslmode", p.SSLMode)
|
||||
u.RawQuery = query.Encode()
|
||||
|
||||
return u.String()
|
||||
}
|
||||
|
||||
var defaults = map[string]any{
|
||||
"env": "dev",
|
||||
"server.host": "0.0.0.0",
|
||||
"server.port": 8080,
|
||||
"server.read_header_timeout": "10s",
|
||||
"server.shutdown_timeout": "10s",
|
||||
"log.level": "info",
|
||||
"log.format": "json",
|
||||
"session.ttl_seconds": 3600,
|
||||
"idempotency.ttl_seconds": 86400,
|
||||
"redis.enabled": false,
|
||||
"redis.host": "localhost",
|
||||
"redis.port": 6379,
|
||||
"redis.db": 0,
|
||||
"redis.max_retries": -1,
|
||||
"redis.dial_timeout": "300ms",
|
||||
"redis.read_timeout": "200ms",
|
||||
"redis.write_timeout": "200ms",
|
||||
"redis.pool_size": 10,
|
||||
"cache.enabled": false,
|
||||
"cache.chat_list_ttl": "5m",
|
||||
"cache.lock_ttl": "10s",
|
||||
"cache.lock_wait_timeout": "2s",
|
||||
}
|
||||
|
||||
func Load() (Config, error) {
|
||||
v := viper.New()
|
||||
|
||||
if err := configureSource(v); err != nil {
|
||||
return Config{}, err
|
||||
}
|
||||
|
||||
v.AllowEmptyEnv(true)
|
||||
v.AutomaticEnv()
|
||||
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
|
||||
|
||||
for key := range defaults {
|
||||
if err := v.BindEnv(key); err != nil {
|
||||
return Config{}, fmt.Errorf("bind env %q: %w", key, err)
|
||||
}
|
||||
}
|
||||
|
||||
var cfg Config
|
||||
if err := v.Unmarshal(&cfg); err != nil {
|
||||
return Config{}, fmt.Errorf("unmarshal config: %w", err)
|
||||
}
|
||||
|
||||
if err := validate.Struct(cfg); err != nil {
|
||||
return Config{}, fmt.Errorf("validate config: %w", err)
|
||||
}
|
||||
|
||||
if err := cfg.validateDependencies(); err != nil {
|
||||
return Config{}, err
|
||||
}
|
||||
|
||||
return cfg, nil
|
||||
}
|
||||
|
||||
func (c Config) validateDependencies() error {
|
||||
if c.Cache.Enabled && !c.Redis.Enabled {
|
||||
return errors.New("validate config: cache.enabled requires redis.enabled")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func configureSource(v *viper.Viper) error {
|
||||
for key, value := range defaults {
|
||||
v.SetDefault(key, value)
|
||||
}
|
||||
|
||||
v.SetConfigType("yaml")
|
||||
|
||||
if path := os.Getenv(configEnvKey); path != "" {
|
||||
v.SetConfigFile(path)
|
||||
} else {
|
||||
env := os.Getenv(envKey)
|
||||
if env == "" {
|
||||
env = defaultEnv
|
||||
}
|
||||
|
||||
v.SetConfigName(configName)
|
||||
v.AddConfigPath(filepath.Join(configDir, env))
|
||||
}
|
||||
|
||||
if err := v.ReadInConfig(); err != nil {
|
||||
var notFound viper.ConfigFileNotFoundError
|
||||
if errors.As(err, ¬Found) {
|
||||
return nil
|
||||
}
|
||||
|
||||
return fmt.Errorf("read config: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c Config) Addr() string {
|
||||
return net.JoinHostPort(c.Server.Host, strconv.Itoa(c.Server.Port))
|
||||
}
|
||||
|
||||
func (c Config) SlogLevel() slog.Level {
|
||||
level, _ := logger.ParseLevel(c.Log.Level)
|
||||
|
||||
return level
|
||||
}
|
||||
|
||||
func (c Config) LoggerFormat() logger.Format {
|
||||
format, _ := logger.ParseFormat(c.Log.Format)
|
||||
|
||||
return format
|
||||
}
|
||||
|
||||
var validate = newValidator()
|
||||
|
||||
func newValidator() *validator.Validate {
|
||||
v := validator.New(validator.WithRequiredStructEnabled())
|
||||
v.RegisterTagNameFunc(envName)
|
||||
|
||||
return v
|
||||
}
|
||||
|
||||
func envName(field reflect.StructField) string {
|
||||
key := field.Tag.Get("mapstructure")
|
||||
if key == "" {
|
||||
return field.Name
|
||||
}
|
||||
|
||||
return strings.ToUpper(key)
|
||||
}
|
||||
@@ -0,0 +1,343 @@
|
||||
package config_test
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/go-playground/validator/v10"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"mtusi-messenger/internal/config"
|
||||
"mtusi-messenger/internal/logger"
|
||||
)
|
||||
|
||||
func TestDefaults(t *testing.T) {
|
||||
cfg, err := config.Load()
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.Equal(t, "0.0.0.0", cfg.Server.Host)
|
||||
assert.Equal(t, 8080, cfg.Server.Port)
|
||||
assert.Equal(t, 10*time.Second, cfg.Server.ReadHeaderTimeout)
|
||||
assert.Equal(t, 10*time.Second, cfg.Server.ShutdownTimeout)
|
||||
assert.Equal(t, "info", cfg.Log.Level)
|
||||
assert.Equal(t, "json", cfg.Log.Format)
|
||||
assert.Equal(t, config.Postgres{}, cfg.Postgres, "postgres defaults live in the adapter")
|
||||
}
|
||||
|
||||
func TestEnvOverridesDefaults(t *testing.T) {
|
||||
t.Setenv("SERVER_HOST", "127.0.0.1")
|
||||
t.Setenv("SERVER_PORT", "9090")
|
||||
t.Setenv("SERVER_READ_HEADER_TIMEOUT", "3s")
|
||||
t.Setenv("SERVER_SHUTDOWN_TIMEOUT", "30s")
|
||||
t.Setenv("LOG_LEVEL", "debug")
|
||||
t.Setenv("LOG_FORMAT", "console")
|
||||
|
||||
cfg, err := config.Load()
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.Equal(t, "127.0.0.1", cfg.Server.Host)
|
||||
assert.Equal(t, 9090, cfg.Server.Port)
|
||||
assert.Equal(t, 3*time.Second, cfg.Server.ReadHeaderTimeout)
|
||||
assert.Equal(t, 30*time.Second, cfg.Server.ShutdownTimeout)
|
||||
assert.Equal(t, "debug", cfg.Log.Level)
|
||||
assert.Equal(t, "console", cfg.Log.Format)
|
||||
}
|
||||
|
||||
func TestDsnEncodesCredentials(t *testing.T) {
|
||||
cfg := config.Postgres{
|
||||
Host: "db",
|
||||
Port: 5432,
|
||||
Database: "app",
|
||||
User: "user",
|
||||
Password: "p@ss:w/rd",
|
||||
SSLMode: "disable",
|
||||
}
|
||||
|
||||
assert.Equal(t, "postgres://user:p%40ss%3Aw%2Frd@db:5432/app?sslmode=disable", cfg.DSN())
|
||||
}
|
||||
|
||||
func writeConfig(t *testing.T, body string) string {
|
||||
t.Helper()
|
||||
|
||||
path := filepath.Join(t.TempDir(), "config.yaml")
|
||||
require.NoError(t, os.WriteFile(path, []byte(body), 0o600))
|
||||
|
||||
return path
|
||||
}
|
||||
|
||||
func TestLoadsYAMLFile(t *testing.T) {
|
||||
path := writeConfig(t, `
|
||||
env: dev
|
||||
server:
|
||||
host: 10.0.0.1
|
||||
port: 9999
|
||||
read_header_timeout: 3s
|
||||
shutdown_timeout: 7s
|
||||
log:
|
||||
level: debug
|
||||
format: console
|
||||
postgres:
|
||||
host: db
|
||||
port: 5433
|
||||
database: app
|
||||
user: app
|
||||
password: secret
|
||||
ssl_mode: disable
|
||||
max_conns: 7
|
||||
min_conns: 2
|
||||
max_conn_lifetime: 2h
|
||||
max_conn_idle_time: 10m
|
||||
connect_timeout: 2s
|
||||
query_timeout: 3s
|
||||
`)
|
||||
|
||||
t.Setenv("APP_CONFIG", path)
|
||||
|
||||
cfg, err := config.Load()
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.Equal(t, "10.0.0.1", cfg.Server.Host)
|
||||
assert.Equal(t, 9999, cfg.Server.Port)
|
||||
assert.Equal(t, 3*time.Second, cfg.Server.ReadHeaderTimeout)
|
||||
assert.Equal(t, "debug", cfg.Log.Level)
|
||||
assert.Equal(t, "console", cfg.Log.Format)
|
||||
assert.Equal(t, "db", cfg.Postgres.Host)
|
||||
assert.Equal(t, 5433, cfg.Postgres.Port)
|
||||
assert.Equal(t, "app", cfg.Postgres.Database)
|
||||
assert.Equal(t, int32(7), cfg.Postgres.MaxConns)
|
||||
assert.Equal(t, 2*time.Second, cfg.Postgres.ConnectTimeout)
|
||||
}
|
||||
|
||||
func TestEnvOverridesYAML(t *testing.T) {
|
||||
path := writeConfig(t, `
|
||||
env: dev
|
||||
server:
|
||||
host: 10.0.0.1
|
||||
port: 9999
|
||||
read_header_timeout: 3s
|
||||
shutdown_timeout: 7s
|
||||
log:
|
||||
level: debug
|
||||
format: console
|
||||
postgres:
|
||||
host: db
|
||||
port: 5433
|
||||
database: app
|
||||
user: app
|
||||
password: file
|
||||
ssl_mode: disable
|
||||
`)
|
||||
|
||||
t.Setenv("APP_CONFIG", path)
|
||||
t.Setenv("SERVER_HOST", "127.0.0.1")
|
||||
t.Setenv("POSTGRES_PASSWORD", "env")
|
||||
|
||||
cfg, err := config.Load()
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.Equal(t, "127.0.0.1", cfg.Server.Host, "env переопределяет YAML")
|
||||
assert.Equal(t, 9999, cfg.Server.Port)
|
||||
assert.Equal(t, "env", cfg.Postgres.Password)
|
||||
}
|
||||
|
||||
func TestSessionTTLFromContractEnv(t *testing.T) {
|
||||
t.Setenv("SESSION_TTL_SECONDS", "2")
|
||||
|
||||
cfg, err := config.Load()
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.Equal(t, 2, cfg.Session.TTLSeconds)
|
||||
}
|
||||
|
||||
func TestInvalidValues(t *testing.T) {
|
||||
tests := map[string]map[string]string{
|
||||
"пустой server.host": {"SERVER_HOST": ""},
|
||||
"host не адрес и не имя": {"SERVER_HOST": "не адрес"},
|
||||
"порт ниже диапазона": {"SERVER_PORT": "0"},
|
||||
"порт выше диапазона": {"SERVER_PORT": "65536"},
|
||||
"нулевой read header timeout": {"SERVER_READ_HEADER_TIMEOUT": "0s"},
|
||||
"отрицательный shutdown": {"SERVER_SHUTDOWN_TIMEOUT": "-1s"},
|
||||
"неизвестный log level": {"LOG_LEVEL": "trace"},
|
||||
"неизвестный log format": {"LOG_FORMAT": "xml"},
|
||||
}
|
||||
|
||||
for name, env := range tests {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
for key, value := range env {
|
||||
t.Setenv(key, value)
|
||||
}
|
||||
|
||||
_, err := config.Load()
|
||||
require.Error(t, err)
|
||||
|
||||
var validationErrs validator.ValidationErrors
|
||||
require.ErrorAs(t, err, &validationErrs)
|
||||
require.NotEmpty(t, validationErrs)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestInvalidPostgresValues(t *testing.T) {
|
||||
path := writeConfig(t, `
|
||||
env: dev
|
||||
postgres:
|
||||
host: db
|
||||
port: 5432
|
||||
database: messenger
|
||||
user: messenger
|
||||
ssl_mode: disable
|
||||
max_conns: 10
|
||||
`)
|
||||
|
||||
tests := map[string]map[string]string{
|
||||
"неизвестный ssl mode": {"POSTGRES_SSL_MODE": "bogus"},
|
||||
"отрицательный max_conns": {"POSTGRES_MAX_CONNS": "-1"},
|
||||
}
|
||||
|
||||
for name, env := range tests {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
t.Setenv("APP_CONFIG", path)
|
||||
for key, value := range env {
|
||||
t.Setenv(key, value)
|
||||
}
|
||||
|
||||
_, err := config.Load()
|
||||
require.Error(t, err)
|
||||
|
||||
var validationErrs validator.ValidationErrors
|
||||
require.ErrorAs(t, err, &validationErrs)
|
||||
require.NotEmpty(t, validationErrs)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestUnparsableValues(t *testing.T) {
|
||||
tests := map[string]map[string]string{
|
||||
"порт не число": {"SERVER_PORT": "не-число"},
|
||||
"timeout не duration": {"SERVER_READ_HEADER_TIMEOUT": "быстро"},
|
||||
}
|
||||
|
||||
for name, env := range tests {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
for key, value := range env {
|
||||
t.Setenv(key, value)
|
||||
}
|
||||
|
||||
_, err := config.Load()
|
||||
require.Error(t, err)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestLoggerSettings(t *testing.T) {
|
||||
t.Setenv("LOG_LEVEL", "warn")
|
||||
t.Setenv("LOG_FORMAT", "console")
|
||||
|
||||
cfg, err := config.Load()
|
||||
require.NoError(t, err)
|
||||
|
||||
level, err := logger.ParseLevel(cfg.Log.Level)
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, level, cfg.SlogLevel())
|
||||
|
||||
format, err := logger.ParseFormat(cfg.Log.Format)
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, format, cfg.LoggerFormat())
|
||||
}
|
||||
|
||||
func TestAddr(t *testing.T) {
|
||||
t.Setenv("SERVER_HOST", "0.0.0.0")
|
||||
t.Setenv("SERVER_PORT", "8080")
|
||||
|
||||
cfg, err := config.Load()
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.Equal(t, "0.0.0.0:8080", cfg.Addr())
|
||||
}
|
||||
|
||||
func TestAddrWithIPv6Host(t *testing.T) {
|
||||
t.Setenv("SERVER_HOST", "::1")
|
||||
|
||||
cfg, err := config.Load()
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.Equal(t, "[::1]:8080", cfg.Addr())
|
||||
}
|
||||
|
||||
func TestLoadIsIndependentOfProcessState(t *testing.T) {
|
||||
t.Setenv("SERVER_PORT", "7070")
|
||||
|
||||
first, err := config.Load()
|
||||
require.NoError(t, err)
|
||||
|
||||
second, err := config.Load()
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.Equal(t, first, second)
|
||||
}
|
||||
|
||||
func TestRedisDefaultsDisabled(t *testing.T) {
|
||||
cfg, err := config.Load()
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.False(t, cfg.Redis.Enabled)
|
||||
assert.Equal(t, "localhost", cfg.Redis.Host)
|
||||
assert.Equal(t, 6379, cfg.Redis.Port)
|
||||
assert.Equal(t, -1, cfg.Redis.MaxRetries)
|
||||
assert.Equal(t, 300*time.Millisecond, cfg.Redis.DialTimeout)
|
||||
assert.Equal(t, 200*time.Millisecond, cfg.Redis.ReadTimeout)
|
||||
assert.Equal(t, 200*time.Millisecond, cfg.Redis.WriteTimeout)
|
||||
assert.False(t, cfg.Cache.Enabled)
|
||||
assert.Equal(t, 5*time.Minute, cfg.Cache.ChatListTTL)
|
||||
assert.Equal(t, 10*time.Second, cfg.Cache.LockTTL)
|
||||
assert.Equal(t, 2*time.Second, cfg.Cache.LockWaitTimeout)
|
||||
}
|
||||
|
||||
func TestRedisEnvOverrides(t *testing.T) {
|
||||
t.Setenv("REDIS_ENABLED", "true")
|
||||
t.Setenv("REDIS_HOST", "cache")
|
||||
t.Setenv("REDIS_PORT", "6380")
|
||||
t.Setenv("CACHE_ENABLED", "true")
|
||||
t.Setenv("CACHE_CHAT_LIST_TTL", "1m")
|
||||
t.Setenv("CACHE_LOCK_TTL", "7s")
|
||||
t.Setenv("CACHE_LOCK_WAIT_TIMEOUT", "1500ms")
|
||||
|
||||
cfg, err := config.Load()
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.True(t, cfg.Redis.Enabled)
|
||||
assert.Equal(t, "cache", cfg.Redis.Host)
|
||||
assert.Equal(t, 6380, cfg.Redis.Port)
|
||||
assert.True(t, cfg.Cache.Enabled)
|
||||
assert.Equal(t, time.Minute, cfg.Cache.ChatListTTL)
|
||||
assert.Equal(t, 7*time.Second, cfg.Cache.LockTTL)
|
||||
assert.Equal(t, 1500*time.Millisecond, cfg.Cache.LockWaitTimeout)
|
||||
}
|
||||
|
||||
func TestInvalidCacheTTL(t *testing.T) {
|
||||
for _, key := range []string{
|
||||
"CACHE_CHAT_LIST_TTL",
|
||||
"CACHE_LOCK_TTL",
|
||||
"CACHE_LOCK_WAIT_TIMEOUT",
|
||||
} {
|
||||
for _, value := range []string{"0s", "-1s"} {
|
||||
t.Run(key+"/"+value, func(t *testing.T) {
|
||||
t.Setenv(key, value)
|
||||
_, err := config.Load()
|
||||
require.Error(t, err)
|
||||
var validationErrs validator.ValidationErrors
|
||||
require.ErrorAs(t, err, &validationErrs)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestCacheRequiresRedis(t *testing.T) {
|
||||
t.Setenv("CACHE_ENABLED", "true")
|
||||
|
||||
_, err := config.Load()
|
||||
require.ErrorContains(t, err, "cache.enabled requires redis.enabled")
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"slices"
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type Chat struct {
|
||||
ID uuid.UUID
|
||||
Title string
|
||||
MemberIDs []uuid.UUID
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
func (c Chat) HasMember(userID uuid.UUID) bool {
|
||||
return slices.Contains(c.MemberIDs, userID)
|
||||
}
|
||||
|
||||
type ChatDraft struct {
|
||||
Title string
|
||||
MemberIDs []uuid.UUID
|
||||
CallerID uuid.UUID
|
||||
}
|
||||
|
||||
func (d ChatDraft) Validate() error {
|
||||
if err := validateNotBlank("title", d.Title); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if len(d.MemberIDs) == 0 {
|
||||
return fmt.Errorf("member_ids must not be empty: %w", ErrValidation)
|
||||
}
|
||||
|
||||
seen := make(map[uuid.UUID]struct{}, len(d.MemberIDs))
|
||||
for _, id := range d.MemberIDs {
|
||||
if _, ok := seen[id]; ok {
|
||||
return fmt.Errorf("member_ids contains duplicates: %w", ErrValidation)
|
||||
}
|
||||
|
||||
seen[id] = struct{}{}
|
||||
}
|
||||
|
||||
if _, ok := seen[d.CallerID]; !ok {
|
||||
return fmt.Errorf("member_ids must contain the caller: %w", ErrValidation)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type Cursor struct {
|
||||
Scope uuid.UUID
|
||||
CreatedAt time.Time
|
||||
ID uuid.UUID
|
||||
}
|
||||
|
||||
func (c Cursor) BelongsTo(scope uuid.UUID) bool {
|
||||
return c.Scope == scope
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package domain
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrNotFound = errors.New("not found")
|
||||
ErrUsernameTaken = errors.New("username already taken")
|
||||
ErrUnknownMember = errors.New("member does not exist")
|
||||
ErrValidation = errors.New("validation failed")
|
||||
ErrInvalidCursor = errors.New("invalid cursor")
|
||||
ErrConflict = errors.New("conflict")
|
||||
ErrIdempotency = errors.New("idempotency key already used with another payload")
|
||||
ErrUnauthenticated = errors.New("unauthenticated")
|
||||
ErrUnavailable = errors.New("temporarily unavailable")
|
||||
)
|
||||
@@ -0,0 +1,44 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"crypto/sha256"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type Message struct {
|
||||
ID uuid.UUID
|
||||
ChatID uuid.UUID
|
||||
SenderID uuid.UUID
|
||||
Text string
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
// MessageIdempotency is the client Idempotency-Key together with the fingerprint
|
||||
// of the payload it was first used with. The same key and fingerprint replay the
|
||||
// stored message; the same key with another payload is a conflict.
|
||||
type MessageIdempotency struct {
|
||||
Key string
|
||||
RequestHash [sha256.Size]byte
|
||||
}
|
||||
|
||||
type MessageDraft struct {
|
||||
ChatID uuid.UUID
|
||||
SenderID uuid.UUID
|
||||
Text string
|
||||
Idempotency MessageIdempotency
|
||||
}
|
||||
|
||||
func (d MessageDraft) Validate() error {
|
||||
if err := validateNotBlank("text", d.Text); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if d.Idempotency.Key == "" {
|
||||
return fmt.Errorf("idempotency key is missing: %w", ErrValidation)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package domain
|
||||
|
||||
const DefaultPageLimit = 50
|
||||
|
||||
type Page[T any] struct {
|
||||
Items []T
|
||||
Next *Cursor
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type Session struct {
|
||||
Token string
|
||||
ExpiresAt time.Time
|
||||
User User
|
||||
}
|
||||
|
||||
type NewSession struct {
|
||||
TokenHash []byte
|
||||
UserID uuid.UUID
|
||||
ExpiresAt time.Time
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func validateNotBlank(field, value string) error {
|
||||
if strings.TrimSpace(value) == "" {
|
||||
return fmt.Errorf("%s consists of whitespace only: %w", field, ErrValidation)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type User struct {
|
||||
ID uuid.UUID
|
||||
Username string
|
||||
DisplayName string
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
type UserDraft struct {
|
||||
Username string
|
||||
DisplayName string
|
||||
Password string
|
||||
}
|
||||
|
||||
func (d UserDraft) Validate() error {
|
||||
if err := validateNotBlank("display_name", d.DisplayName); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if length := len([]rune(d.Password)); length < 12 || length > 128 {
|
||||
return fmt.Errorf("password length must be between 12 and 128 code points: %w", ErrValidation)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
type NewUser struct {
|
||||
Username string
|
||||
DisplayName string
|
||||
PasswordHash string
|
||||
}
|
||||
|
||||
type UserCredentials struct {
|
||||
User User
|
||||
PasswordHash string
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user