137 lines
5.8 KiB
Plaintext
137 lines
5.8 KiB
Plaintext
# Rolling update under load (surge, one replica at a time)
|
|
# generated: 2026-10-16T14:26:39Z
|
|
# load: tolerant loader, duration=60s concurrency=8
|
|
# проверки готовности LB: httpchk /health/ready, inter 2s fall 2 rise 2, timeout check 1s
|
|
|
|
time="2026-10-16T17:26:40+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 238kB
|
|
|
|
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 . .
|
|
---> 198f052f6cce
|
|
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 658437823eb9
|
|
---> Removed intermediate container 658437823eb9
|
|
---> 10a89d0bb592
|
|
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
|
|
---> 703f8f10d2cc
|
|
Step 18/25 : COPY --from=build --chown=10001:10001 /out/migrate /usr/local/bin/migrate
|
|
---> Using cache
|
|
---> c9121622dae2
|
|
Step 19/25 : COPY --chown=10001:10001 config/dev/config.yaml /etc/messenger/dev/config.yaml
|
|
---> Using cache
|
|
---> 0379076307ea
|
|
Step 20/25 : USER 10001:10001
|
|
---> Using cache
|
|
---> 2ff943b7d2e0
|
|
Step 21/25 : EXPOSE 8080
|
|
---> Using cache
|
|
---> 01674ab574a6
|
|
Step 22/25 : STOPSIGNAL SIGTERM
|
|
---> Using cache
|
|
---> 6c30af2a102c
|
|
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
|
|
---> 76379f8db08d
|
|
Step 24/25 : ENTRYPOINT ["/usr/local/bin/messenger"]
|
|
---> Using cache
|
|
---> 778babec5020
|
|
Step 25/25 : LABEL com.docker.compose.image.builder=classic
|
|
---> Using cache
|
|
---> 9e7e0224c87c
|
|
Successfully built 9e7e0224c87c
|
|
Successfully tagged mtusi-messenger:lab3
|
|
Image mtusi-messenger:lab3 Built
|
|
Image mtusi-messenger:lab3 Built
|
|
реплик до обновления: 2
|
|
образ старых реплик: sha256:9e7e0224c87cee0ccfa05d5799ec8e2a84b836e51fbda6f1dc3d175d5c0d4640
|
|
образ новой ревизии: sha256:9e7e0224c87cee0ccfa05d5799ec8e2a84b836e51fbda6f1dc3d175d5c0d4640
|
|
ревизия меняется: нет (образ не изменился)
|
|
слотов UP до: 3; restarts до: mtusi-messenger-lab3-api-1=0 mtusi-messenger-lab3-api-2=0
|
|
|
|
step 1: lb-rollout-1 обслуживает (образ 9e7e0224c87cee0ccfa05d5799ec8e2a84b836e51fbda6f1dc3d175d5c0d4640, instance 8782633d0431), старый контейнер 2ed432da6dd1 (2ed432da6dd1) снят; UP-слотов 3; 5xx накоплено 416; старт шага 2026-10-16T14:27:22Z
|
|
step 2: lb-rollout-2 обслуживает (образ 9e7e0224c87cee0ccfa05d5799ec8e2a84b836e51fbda6f1dc3d175d5c0d4640, instance 4248067e3f04), старый контейнер f00a99f95855 (f00a99f95855) снят; UP-слотов 4; 5xx накоплено 419; старт шага 2026-10-16T14:27:22Z
|
|
|
|
load summary (tolerant generator):
|
|
{
|
|
"lab": 3,
|
|
"workload": "closed-loop POST messages; failures counted, not raised",
|
|
"requested_duration_seconds": 60.0,
|
|
"elapsed_seconds": 60.013,
|
|
"concurrency": 8,
|
|
"successful_requests": 97359,
|
|
"failed_requests": 3,
|
|
"error_ratio": 3.1e-05,
|
|
"errors_by_kind": {
|
|
"http_error": 3
|
|
},
|
|
"successful_rps": 1622.308,
|
|
"successful_latency_ms": {
|
|
"p50": 4.011,
|
|
"p95": 8.688,
|
|
"p99": 23.718
|
|
},
|
|
"instances": {
|
|
"f00a99f95855": 594,
|
|
"8782633d0431": 48162,
|
|
"4248067e3f04": 48603
|
|
},
|
|
"bootstrap_attempts": 1,
|
|
"note": "Percentiles cover successful writes only; transitional errors are expected during a rolling update."
|
|
}
|
|
|
|
5xx от LB за время обновления (hrsp_5xx frontend): 3
|
|
restarts после: lb-rollout-2=0 lb-rollout-1=0
|
|
|
|
возврат стенда под управление compose:
|
|
Container mtusi-messenger-lab3-api-2 Creating
|
|
Container mtusi-messenger-lab3-api-1 Creating
|
|
Container mtusi-messenger-lab3-api-1 Created
|
|
Container mtusi-messenger-lab3-api-2 Created
|
|
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
|
|
снято временных контейнеров наплыва: проверено
|
|
UP-слотов после: 3; restarts в конце: mtusi-messenger-lab3-api-1=0 mtusi-messenger-lab3-api-2=0
|
|
API containers после обновления:
|
|
mtusi-messenger-lab3-api-1 Up Less than a second (health: starting)
|
|
mtusi-messenger-lab3-api-2 Up Less than a second (health: starting)
|