From e579c9076373fcd57f2776408de80e026bc7a483 Mon Sep 17 00:00:00 2001 From: hzq Date: Sun, 8 Nov 2026 00:59:11 +0800 Subject: [PATCH 01/89] Add Paozhu --- frameworks/paozhu/Dockerfile | 109 +++ frameworks/paozhu/README.md | 77 ++ frameworks/paozhu/meta.json | 28 + frameworks/paozhu/src/CMakeLists.txt | 812 ++++++++++++++++++ frameworks/paozhu/src/conf/openssl.cnf | 11 + frameworks/paozhu/src/conf/orm.conf | 35 + frameworks/paozhu/src/conf/server-h1.conf | 56 ++ frameworks/paozhu/src/conf/server.conf | 55 ++ .../paozhu/src/controller/src/arena.cpp | 640 ++++++++++++++ frameworks/paozhu/src/controller/src/db.cpp | 358 ++++++++ frameworks/paozhu/src/entrypoint.sh | 73 ++ frameworks/paozhu/src/mini_project.sh | 629 ++++++++++++++ frameworks/paozhu/src/startup/main_docker.cpp | 124 +++ 13 files changed, 3007 insertions(+) create mode 100644 frameworks/paozhu/Dockerfile create mode 100644 frameworks/paozhu/README.md create mode 100644 frameworks/paozhu/meta.json create mode 100644 frameworks/paozhu/src/CMakeLists.txt create mode 100644 frameworks/paozhu/src/conf/openssl.cnf create mode 100644 frameworks/paozhu/src/conf/orm.conf create mode 100644 frameworks/paozhu/src/conf/server-h1.conf create mode 100644 frameworks/paozhu/src/conf/server.conf create mode 100644 frameworks/paozhu/src/controller/src/arena.cpp create mode 100644 frameworks/paozhu/src/controller/src/db.cpp create mode 100644 frameworks/paozhu/src/entrypoint.sh create mode 100755 frameworks/paozhu/src/mini_project.sh create mode 100755 frameworks/paozhu/src/startup/main_docker.cpp diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile new file mode 100644 index 0000000000..9adededeea --- /dev/null +++ b/frameworks/paozhu/Dockerfile @@ -0,0 +1,109 @@ +# paozhu — HttpArena entry +# +# A build stage fetches the pinned upstream framework source and compiles the +# app, then a slim runtime stage whose CMD is the server. paozhu is not a +# linkable library: the application *is* a paozhu project, so its build graph +# comes from the pinned src/CMakeLists.txt — a snapshot of the upstream file +# with ENABLE_BENCHMARK=ON and the foreground main_docker.cpp entry baked in. + +FROM debian:bookworm AS build + +# Optional apt mirror for networks where deb.debian.org is slow; empty keeps +# the distro default, e.g. --build-arg APT_MIRROR=mirrors.aliyun.com +ARG APT_MIRROR="" +RUN if [ -n "$APT_MIRROR" ]; then \ + find /etc/apt -name '*.sources' -o -name 'sources.list' | \ + xargs -r sed -i "s|deb.debian.org/debian|${APT_MIRROR}/debian|g"; \ + fi + +RUN apt-get update && apt-get install -y --no-install-recommends \ + build-essential \ + cmake \ + curl \ + ca-certificates \ + unzip \ + libssl-dev \ + zlib1g-dev \ + libbrotli-dev \ + && rm -rf /var/lib/apt/lists/* + +# Pinned so mini_project.sh, the controller generator and the CMake entry point +# stay in sync with the scaffold this entry was written against. +ARG PAOZHU_REF=903cbd82c795330fd53f81a59305ef3c0feec240 +WORKDIR /paozhu +# Prefer a source archive shipped in the build context (offline / slow-GitHub +# environments); otherwise fetch the pinned revision from codeload. The direct +# codeload URL avoids github.com's /archive/ 302, which some networks block. +COPY . /ctx/ +RUN if [ -f /ctx/vendor/paozhu-src.tar.gz ]; then \ + tar --strip-components=1 -xzf /ctx/vendor/paozhu-src.tar.gz; \ + else \ + curl -LSs "https://codeload.github.com/hggq/paozhu/tar.gz/${PAOZHU_REF}" | \ + tar --strip-components=1 -xz; \ + fi + +# Upstream's clean-project initializer empties the ORM/view/demo layers and +# leaves only the framework core; paozhu_pre (run by CMake at build time) +# regenerates the router table from controller/src/*.cpp. The pinned copy in +# src/ carries one fix for 903cbd82: its Step 2 aborts under `set -e` when +# `grep -c` finds no RBAC markers in the stripped entry points. +COPY src/mini_project.sh /paozhu/mini_project.sh +RUN bash mini_project.sh && \ + rm -f controller/src/*.cpp && \ + unzip -q -o asio.zip + +COPY src/controller/ /paozhu/controller/ +COPY src/conf/ /paozhu/conf/ + +# A macOS-created build context can carry AppleDouble ._* sidecars. CMake globs +# every .cpp under controller/src, so ._arena.cpp would be compiled as C++. +RUN find /paozhu/controller /paozhu/conf -type f -name '._*' -delete && \ + find /paozhu/controller /paozhu/conf -type f -name '.DS_Store' -delete + +# src/CMakeLists.txt already defaults ENABLE_BENCHMARK to ON and compiles +# startup/main_docker.cpp in every config, so no build-time patching is needed. +COPY src/CMakeLists.txt /paozhu/CMakeLists.txt +# The foreground entry itself is pinned too: it resolves argv[1] to a conf file +# and installs the SIGTERM handler that the two-conf-dir layout relies on. +COPY src/startup/main_docker.cpp /paozhu/startup/main_docker.cpp +RUN cmake -B build -S . \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CXX_FLAGS="-O3 -march=native" && \ + cmake --build build -j"$(nproc)" + +FROM debian:bookworm-slim + +RUN apt-get update && apt-get install -y --no-install-recommends \ + libssl3 \ + zlib1g \ + libbrotli1 \ + libstdc++6 \ + ca-certificates \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /app +COPY --from=build /paozhu/bin/paozhu /server +# httpserver::run() prefers /conf/server.conf and only honours argv[1] +# when that file is absent. Two conf dirs (and no /app/conf/server.conf) make +# each process load its own file, hence its own ports. +COPY --from=build /paozhu/conf/server.conf /app/conf/main/server.conf +COPY --from=build /paozhu/conf/server-h1.conf /app/conf/h1/server.conf +COPY --from=build /paozhu/conf/dh4096.pem /app/conf/main/dh4096.pem +COPY --from=build /paozhu/conf/dh4096.pem /app/conf/h1/dh4096.pem +COPY src/conf/openssl.cnf /app/conf/openssl.cnf +# Rendered by entrypoint.sh into /app/conf/main/orm.conf when the harness +# injects DATABASE_URL. Kept as .tpl so startup_orm_init() never sees it. +COPY src/conf/orm.conf /app/conf/orm.conf.tpl +COPY src/entrypoint.sh /entrypoint.sh + +RUN mkdir -p /app/www/default /app/module/view /app/module/controller \ + /app/models /app/orm /app/view /app/temp /app/log /app/cache \ + /app/temp-h1 /app/log-h1 /app/plugins /app/libs && \ + printf 'Hello World! Paozhu\n' > /app/www/default/index.html && \ + chmod +x /entrypoint.sh + +# Keeps the harness' RSA-2048 certificate while refusing TLS < 1.2 and the +# weak cipher families the TLS quality probe asks about. +ENV OPENSSL_CONF=/app/conf/openssl.cnf +EXPOSE 8080 8081 8082 8443 +ENTRYPOINT ["/entrypoint.sh"] diff --git a/frameworks/paozhu/README.md b/frameworks/paozhu/README.md new file mode 100644 index 0000000000..6ce4150d0e --- /dev/null +++ b/frameworks/paozhu/README.md @@ -0,0 +1,77 @@ +# paozhu + +C++20 web framework entry built from the upstream [paozhu](https://github.com/hggq/paozhu) clean scaffold. The image fetches the pinned upstream tree — or uses a source archive shipped in the build context — runs its `mini_project.sh` to strip the ORM / view / demo layers, then compiles the framework core together with the benchmark controllers in `src/controller/src/` (`arena.cpp` for the CPU/static routes, `db.cpp` for the Postgres ones). + +## Stack + +- **Language:** C++20 +- **Engine:** paozhu (standalone Asio event loop, native HTTP/2) +- **Build:** `debian:bookworm` → `debian:bookworm-slim`, GCC with `-O3 -march=native`, `-DENABLE_BENCHMARK=ON` +- **Source:** upstream commit pinned by the `PAOZHU_REF` build arg (`903cbd82`, `v1.17.4-9`); local development tree is `/Users/hzq/paozhu`. When `vendor/paozhu-src.tar.gz` is present the Dockerfile unpacks that archive instead and `PAOZHU_REF` is ignored. + +## Pinned `CMakeLists.txt` + +paozhu is not a linkable library: the app *is* a paozhu project, and its build definition has to reproduce the whole upstream graph (globbing `vendor/`, `libs/`, `common/`, `controller/`, running `paozhu_pre` to generate the router table and linking OpenSSL/zlib/brotli). `src/CMakeLists.txt` is a checked-in snapshot of that file at `903cbd82`, so the Dockerfile no longer patches upstream text at build time. It has exactly two local changes: + +1. `option(ENABLE_BENCHMARK "Enable benchmarks" ON)` — benchmark tier is the default for any `cmake` invocation, not just one with `-D`. `BENCHMARK` drops per-request logging, keepalive/stream caps and the disk pre-check for dotted URLs (which would otherwise shadow `/static/:filename`). +2. Both branches of the `add_executable` generator expression point at `startup/main_docker.cpp` — the upstream Release default `main_daemon.cpp` forks and would make PID 1 exit immediately. + +`Dockerfile` copies this file over the unpacked upstream tree after `mini_project.sh`. When bumping `PAOZHU_REF`, refresh the snapshot and re-apply those two changes; the pinned upstream source still supplies everything else the file globs. + +`src/mini_project.sh` is pinned for the same reason. Upstream `903cbd82` aborts its Step 2 under `set -euo pipefail`: `left=$(grep -c ...)` returns 1 once no RBAC markers remain in the stripped `startup/main_dev.cpp`, so the ORM/view layers are never cleared. The checked-in copy adds `|| true` to that single assignment (verified end-to-end); refresh it together with the CMakeLists snapshot when bumping `PAOZHU_REF`. + +`src/startup/main_docker.cpp` is pinned too (byte-identical to upstream apart from a header comment): it resolves `argv[1]` to a conf file and installs the SIGTERM handler that the two-conf-dir layout relies on. `mini_project.sh` leaves `startup/` alone, so the file is simply copied over the unpacked tree. + +`paozhu_pre` regenerates `common/autocontrolmethod.hpp` and `controller/include/arena.h` from the `//@urlpath` annotations on every build; those generated files are deliberately not checked in. + +## Listeners + +paozhu opens exactly one plaintext and one TLS port per process, while HttpArena needs four listeners. `src/entrypoint.sh` therefore runs two instances of the same binary, each with its own conf directory: + +| Port | Protocols | Instance | Profiles | +|------|-----------|----------|----------| +| 8080 | HTTP/1.1 | `conf/main/server.conf` | baseline, pipelined, limited-conn | +| 8081 | HTTP/1.1 + TLS (ALPN `http/1.1` only) | `conf/h1/server.conf` | json-tls | +| 8082 | h2c (prior-knowledge, cleartext) | `conf/h1/server.conf` | json-h2c | +| 8443 | h2 + TLS (ALPN `h2`) | `conf/main/server.conf` | baseline-h2, static-h2 | + +The second instance keeps `http2_enable = 0`, so its ALPN callback never selects `h2` — the json-tls profile requires HTTP/1.1. That switch only governs TLS negotiation: cleartext h2c is detected from the `PRI * HTTP/2.0` connection preface by `checkhttp2()` and works with `http2_enable = 0`, which is why the same instance can serve both :8081 and :8082. + +**Why separate conf directories:** `httpserver::run(argv[1])` calls `serverconfig::init_path()` first, which picks `/conf/server.conf` when present and only falls back to `argv[1]` when that file is missing. Two conf files in one directory would make both processes load the first one and bind the same ports (SO_REUSEPORT hides the mistake). The image deliberately has no `/app/conf/server.conf`. `serverconfig` also resolves TLS file names relative to each conf file's own directory, so `entrypoint.sh` stages `/certs/server.crt` and `/certs/server.key` into both `conf/main/` and `conf/h1/`. + +`/certs` is mounted by `validate.sh` / `benchmark.sh`; missing certificates leave the plaintext listener working and only affect the TLS listeners. + +## Endpoints + +Registered through paozhu annotations; path parameters must be the final segment. + +| Endpoint | Method | Description | +|----------|--------|-------------| +| `/pipeline` | GET | Returns `ok` (plain text) | +| `/baseline11` | GET / POST | Sums query parameter values, plus the decimal POST body | +| `/baseline2` | GET | Sums query parameter values | +| `/json/{count}?m={multiplier}` | GET | Serializes the first `count` dataset items with `total = price × quantity × m` | +| `/static/{filename}` | GET | Reads `/data/static/{filename}` from disk and serves it with a MIME type | +| `/async-db?min=&max=&limit=` | GET | Async Postgres range query over `items`, returns `{"items":[...],"count":N}` | +| `/fortunes` | GET | Reads the 200 `fortune` rows, appends a runtime row, sorts and renders an HTML table | + +`/data/dataset.json` is parsed once at startup into typed fields. String fields are kept as the raw bytes between the source quotes, so escapes round-trip exactly; the response body is serialized per request because `m` varies. A missing or malformed dataset makes `/json` return 400 rather than taking the other profiles down. + +Static files are read on every request (no preloaded copy), so a replaced file in the mounted directory shows up immediately. File names are restricted to `[A-Za-z0-9._-]` and must not contain `..`. + +## Notes + +- `src/conf/openssl.cnf` is exported as `OPENSSL_CONF`: it keeps TLS 1.3 available while refusing TLS < 1.2 and the weak cipher families probed by the TLS checks. It does not change the certificate. +- `src/conf/orm.conf` is a template copied to `/app/conf/orm.conf.tpl`; `entrypoint.sh` renders it into `/app/conf/main/orm.conf` only when the harness injects `DATABASE_URL` / `DATABASE_MAX_CONN`. Without a DB profile there is no `orm.conf` beside either `server.conf`: `startup_orm_init()` calls `init_orm_conn_pool()` unconditionally, and `get_orm_config_file()` returns an empty list when the file is absent, so no pool is created. `serverconfig` resolves `orm.conf` relative to each conf file's own directory, which is why only the main instance (the one serving :8080) gets one. Both `[pg]` groups must carry full connection settings: `type = main` fills `conf_data[0]` (edit pool), `type = second` fills `conf_data[1]`, which `async_get_pg_select_conn()` actually uses for SELECTs. +- `/async-db` and `/fortunes` use `orm::db_conn("pg")` with `co_await async_query()` plus small `set_val` row types instead of a generated ORM model — `mini_project.sh` empties `orm/` and `models/`. paozhu's own Asio Postgres driver (SCRAM-SHA-256) is compiled into the binary, so no `libpq` is needed. Both handlers share an async gate that caps in-flight queries below `DATABASE_MAX_CONN`, because the upstream pool grows on demand without honouring `maxpool`. +- `/fortunes` renders the HTML per request in the handler: `mini_project.sh` also empties `view/` and `viewsrc/`, so `peer->view()` has no template to load. The runtime row, byte-ordinal sort and HTML escaping live in `src/controller/src/db.cpp`. +- Every `//@urlpath` handler in `arena.cpp` and `db.cpp` uses the coroutine form (`asio::awaitable` + `co_return ""`), so `paozhu_pre` registers them all through `co_reg`. Only the DB routes really suspend (`co_await async_query()`); the CPU/static handlers have no `co_await` but share the same handler shape. +- paozhu streams raw (`text/plain`) POST bodies to a temp file rather than exposing them in `httppeer::rawcontent`. `arena_baseline11` reads that file and unlinks it immediately; otherwise a POST-heavy run would fill `/app/temp` faster than `httpwatch` sweeps it. +- Only the `[default]` site section is configured, so every `Host` / SNI falls back to site 0. +- `usehtmlcache` is intentionally absent from both conf files; a present key enables the disk pre-check for dotted URLs. +- The two processes use separate `temppath` / `logpath` directories so they never race on scratch files. +- `PAOZHU_REF` selects the upstream revision. The Dockerfile uses a direct `codeload.github.com` tarball URL: `github.com/.../archive/...` 302-redirects to codeload and that hop is blocked on some networks. +- On slow or offline networks, ship a source archive in the build context instead of downloading it: `git -C /Users/hzq/paozhu archive --format=tar.gz --prefix=paozhu-/ -o frameworks/paozhu/vendor/paozhu-src.tar.gz HEAD`. The Dockerfile prefers `vendor/paozhu-src.tar.gz` when present. The archive is ~36 MB and is deliberately not checked in. +- `APT_MIRROR` is an optional build arg for networks where `deb.debian.org` is slow, e.g. `--build-arg APT_MIRROR=mirrors.aliyun.com`; empty keeps the distro default. +- Local development: `docker build -t httparena-paozhu frameworks/paozhu && VALIDATE_SKIP_BUILD=1 ./scripts/validate.sh paozhu`. Without `VALIDATE_SKIP_BUILD=1`, `validate.sh` rebuilds with `--no-cache` and repeats the full C++ compile. `PAOZHU_REF` can be overridden with `--build-arg PAOZHU_REF=`. +- Measured on a 4-core / 16 GB Ubuntu 26.04 host: `validate.sh paozhu` reports **59 passed, 3 failed** with `async-db`, `fortunes` and `json-h2c` subscribed (all 11 of their checks pass; the DB profiles use a `postgres:18` sidecar), TLS verdict **pass**. A 300-request / 64-parallel `/async-db` plus 150-request / 64-parallel `/fortunes` smoke run returned 200 for every request with 129 live PG connections. The three failures are all chunked POST bodies: paozhu rejects every `Transfer-Encoding` header during header parsing with `400 Bad Request / Error Code 40098` (`vendor/httpserver/src/http_parse.cpp:1045`), and its own test `g9_transfer_encoding_refused_at_header_stage` asserts that behaviour. There is no chunked decoder to enable, so this is a framework capability limit rather than an entry misconfiguration; a fully green baseline would require patching paozhu's HTTP/1 parser. diff --git a/frameworks/paozhu/meta.json b/frameworks/paozhu/meta.json new file mode 100644 index 0000000000..d34da7205f --- /dev/null +++ b/frameworks/paozhu/meta.json @@ -0,0 +1,28 @@ +{ + "display_name": "paozhu", + "language": "C++", + "type": "emerging", + "mode": "standard", + "completeness": { + "routing": true, + "middleware": true, + "request": true, + "response": true + }, + "engine": "paozhu", + "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static on every request, and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for json-h2c.", + "repo": "https://github.com/hggq/paozhu", + "enabled": true, + "tests": [ + "baseline", + "pipelined", + "limited-conn", + "json-tls", + "baseline-h2", + "static-h2", + "async-db", + "fortunes", + "json-h2c" + ], + "maintainers": [] +} diff --git a/frameworks/paozhu/src/CMakeLists.txt b/frameworks/paozhu/src/CMakeLists.txt new file mode 100644 index 0000000000..bfdbd15b1c --- /dev/null +++ b/frameworks/paozhu/src/CMakeLists.txt @@ -0,0 +1,812 @@ +# Pinned build definition for the HttpArena paozhu entry. +# Snapshot of upstream CMakeLists.txt at 903cbd82c795330fd53f81a59305ef3c0feec240. +# Local changes: ENABLE_BENCHMARK defaults to ON, and both build configs compile +# startup/main_docker.cpp (foreground Docker entry) instead of the forking +# main_daemon.cpp / interactive main_dev.cpp. +# Keep in sync with PAOZHU_REF when bumping the upstream revision. + +cmake_minimum_required(VERSION 3.21) + +# ---- Policies ---- +cmake_policy(SET CMP0048 NEW) +if(POLICY CMP0077) + cmake_policy(SET CMP0077 NEW) +endif() + +if(POLICY CMP0092) + cmake_policy(SET CMP0092 NEW) +endif() + +# ---- Project ---- +project(Paozhu_web_framework + VERSION 1.0.0 + LANGUAGES CXX +) + +# ---- Set the default build type to Debug ---- +if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release") + message(STATUS "No build type specified, defaulting to Debug") +endif() + +# ---- Options ---- +option(ENABLE_VCPKG "Use vcpkg toolchain" OFF) +option(ENABLE_VIEWSO "Enable view-template .so loading (dlopen/LoadLibrary)" OFF) +option(ENABLE_MODELSO "Enable controller .so loading (dlopen/LoadLibrary)" OFF) +option(ENABLE_GD "Enable GD graphics and QR" OFF) +option(ENABLE_BENCHMARK "Enable benchmarks" ON) +option(ENABLE_OFFICE "Enable pzexcel pzword support" OFF) +option(ENABLE_IMAGE "Enable image support" OFF) +option(ENABLE_PDF "Enable pz::webpdf support" OFF) +option(ENABLE_SMS "Enable SMS support" OFF) +option(ENABLE_WEBPAY "Enable webpay support (alipay/wxpay)" OFF) +option(ENABLE_CHART "Enable chart support" OFF) +option(ENABLE_ZIP "Enable pzzip support" OFF) +option(ENABLE_SQLITE "Enable SQLite database support" OFF) +option(ENABLE_FASTCGI "Enable FastCGI (PHP) support" OFF) +option(ENABLE_REDIS "Enable pzredis (Redis client) support" OFF) +option(ENABLE_REDIS_CLIENT "Enable framework Redis pub/sub long-connect client support" OFF) +if(ENABLE_REDIS_CLIENT AND NOT ENABLE_REDIS) + message(FATAL_ERROR "ENABLE_REDIS_CLIENT=ON requires ENABLE_REDIS=ON") +endif() +option(ENABLE_WEBSOCKETS_CLIENT "Enable framework WebSocket long-connect client support" ON) +option(ENABLE_SOCKETS_CLIENT "Enable framework bare TCP Socket long-connect client support" ON) +option(ENABLE_MQTT_CLIENT "Enable framework MQTT broker long-connect client support" ON) +option(ENABLE_TESTS "Build test executables in tests/" OFF) + + +# Sanitizer switches. ASan is enabled automatically for Debug builds (see target_compile_options below), so: +# ENABLE_TSAN cannot be combined with ASan => requires a non-Debug CMAKE_BUILD_TYPE (e.g. RelWithDebInfo) +# ENABLE_UBSAN can be used together with ASan +# Applies only to the paozhu target; asio is header-only, so nothing extra is compiled for it. +option(ENABLE_TSAN "Build paozhu with ThreadSanitizer (needs a non-Debug CMAKE_BUILD_TYPE)" OFF) +option(ENABLE_UBSAN "Build paozhu with UndefinedBehaviorSanitizer" OFF) +if(ENABLE_TSAN AND ENABLE_UBSAN) + message(FATAL_ERROR "ENABLE_TSAN and ENABLE_UBSAN are mutually exclusive") +endif() +if(ENABLE_TSAN AND CMAKE_BUILD_TYPE STREQUAL "Debug") + message(FATAL_ERROR "Debug already forces ASan; ENABLE_TSAN needs a non-Debug build type (e.g. RelWithDebInfo)") +endif() +if((ENABLE_TSAN OR ENABLE_UBSAN) AND MSVC) + message(FATAL_ERROR "ENABLE_TSAN/ENABLE_UBSAN are only wired for GNU/Clang/AppleClang") +endif() + +if(ENABLE_SQLITE) + message(STATUS "ENABLE_SQLITE = ${ENABLE_SQLITE}") +else() + message(STATUS "SQLite support disabled (ENABLE_SQLITE=OFF)") +endif() + +# ---- Feature dependencies ---- +# pzword(docx) relies on pz::zip for packaging. When ENABLE_OFFICE is enabled, ENABLE_ZIP is automatically enabled +if(ENABLE_OFFICE AND NOT ENABLE_ZIP) + set(ENABLE_ZIP ON) + message(STATUS "ENABLE_OFFICE requires ENABLE_ZIP: auto-enabled") +endif() + +# ---- Vcpkg toolchain ---- +if(ENABLE_VCPKG) + if(NOT DEFINED CMAKE_TOOLCHAIN_FILE) + if(DEFINED ENV{VCPKG_ROOT}) + set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" + CACHE STRING "Vcpkg toolchain file") + else() + message(FATAL_ERROR "ENABLE_VCPKG is ON but VCPKG_ROOT environment variable is not set") + endif() + endif() + + macro(auto_enable_vcpkg_feature opt feature) + if(${opt}) + if(NOT ";${VCPKG_MANIFEST_FEATURES};" MATCHES ";${feature};") + message(STATUS "Auto append vcpkg feature: ${feature}") + list(APPEND VCPKG_MANIFEST_FEATURES ${feature}) + endif() + endif() + endmacro() + + auto_enable_vcpkg_feature(ENABLE_GD "gd") + auto_enable_vcpkg_feature(ENABLE_OFFICE "pzexcel pzword") + auto_enable_vcpkg_feature(ENABLE_IMAGE "image") + auto_enable_vcpkg_feature(ENABLE_PDF "webpdf") + auto_enable_vcpkg_feature(ENABLE_ZIP "zipfile") +endif() + +# ---- C++ standard ---- +set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) + +# ---- Common compiler options (interface library) ---- +add_library(project_warnings INTERFACE) +if(MSVC) + target_compile_options(project_warnings INTERFACE /W4 /utf-8 /EHsc) +else() + target_compile_options(project_warnings INTERFACE + -Wall + -Wextra + -Wpedantic + -Wshadow + -Wnon-virtual-dtor + $<$:-Wno-gnu-anonymous-struct> + $<$:-Wno-nested-anon-types> + $<$:-Wno-misleading-indentation> + $<$:-flarge-source-files> + ) +endif() + +# ---- Output directories ---- +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin") +# Sanitizer builds output to a separate bin_san dir: relinking would clobber an instance running from bin/paozhu +if(ENABLE_TSAN OR ENABLE_UBSAN) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin_san") + file(MAKE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin_san") +endif() +file(MAKE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/temp") +file(MAKE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/log") +file(MAKE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/cache") +file(MAKE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/orm") + +# ---- Export compile commands ---- +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + +# ---- Helper: recursive include directories (kept for compatibility) ---- +# For system/third-party library directories (internal warnings suppressed) +function(include_system_dirs_recursively root_dir) + if(IS_DIRECTORY ${root_dir}) + message(STATUS "include dir (system): ${root_dir}") + include_directories(SYSTEM ${root_dir}) + endif() + file(GLOB_RECURSE subdirs LIST_DIRECTORIES true RELATIVE ${root_dir} ${root_dir}/*) + foreach(sub IN LISTS subdirs) + if(IS_DIRECTORY ${root_dir}/${sub}) + include_system_dirs_recursively(${root_dir}/${sub}) + endif() + endforeach() +endfunction() + +# For project business code (strict warnings kept) +function(include_project_dirs_recursively root_dir) + if(IS_DIRECTORY ${root_dir}) + message(STATUS "include dir (project): ${root_dir}") + include_directories(${root_dir}) # without SYSTEM + endif() + file(GLOB_RECURSE subdirs LIST_DIRECTORIES true RELATIVE ${root_dir} ${root_dir}/*) + foreach(sub IN LISTS subdirs) + if(IS_DIRECTORY ${root_dir}/${sub}) + include_project_dirs_recursively(${root_dir}/${sub}) + endif() + endforeach() +endfunction() + +# ---- Source files (with CONFIGURE_DEPENDS for automatic update) ---- +file(GLOB_RECURSE orm_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/orm/*.cpp") +file(GLOB_RECURSE source_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/models/*.cpp") +file(GLOB_RECURSE framework_cpps CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/*.cpp") +file(GLOB_RECURSE common_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/common/*.cpp") +file(GLOB_RECURSE controller_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/controller/src/*.cpp") +file(GLOB_RECURSE viewsrc_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/viewsrc/view/*.cpp") +file(GLOB_RECURSE reflect_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/libs/*.cpp") +file(GLOB_RECURSE src_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp") + +if(ENABLE_OFFICE) + file(GLOB_RECURSE pzexcel_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/vendor/pzexcel/src/*.cpp") + file(GLOB_RECURSE pzword_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/vendor/pzword/src/*.cpp") +endif() + +if(ENABLE_IMAGE) + file(GLOB_RECURSE pzimage_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/vendor/pzimage/src/*.cpp") +endif() + +if(ENABLE_PDF) + file(GLOB_RECURSE webpdf_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/vendor/webpdf/src/*.cpp") +endif() + +if(ENABLE_SMS) + file(GLOB_RECURSE sms_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/vendor/sms/src/*.cpp") +endif() + +if(ENABLE_CHART) + file(GLOB_RECURSE charts_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/vendor/pzcharts/src/*.cpp") +endif() + +if(ENABLE_WEBPAY) + file(GLOB_RECURSE webpay_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/vendor/webpay/src/*.cpp") +endif() + +if(ENABLE_ZIP) + file(GLOB_RECURSE pzzip_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/vendor/pzzip/src/*.cpp") +endif() + +if(ENABLE_REDIS) + file(GLOB_RECURSE pzredis_list CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/vendor/pzredis/src/*.cpp") +endif() + +# Auto-generate missing header stubs for controllers +foreach(cppfile IN LISTS controller_list) + string(REGEX REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/controller/src/" "" rel_path "${cppfile}") + string(FIND "${rel_path}" "/" pos) + if(pos GREATER_EQUAL 0) + string(REGEX MATCHALL "([A-Za-z0-9._-]+)/" dirs "${rel_path}") + set(fullpath "${CMAKE_CURRENT_SOURCE_DIR}/controller/include/") + foreach(dir IN LISTS dirs) + string(REPLACE "/" "" dirname "${dir}") + string(APPEND fullpath "${dirname}") + if(NOT IS_DIRECTORY "${fullpath}") + file(MAKE_DIRECTORY "${fullpath}") + endif() + string(APPEND fullpath "/") + endforeach() + endif() + string(REGEX REPLACE ".cpp$" "" basename "${rel_path}") + if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/controller/include/${basename}.h") + file(TOUCH "${CMAKE_CURRENT_SOURCE_DIR}/controller/include/${basename}.h") + endif() +endforeach() + + +# ---- pgconnect sources (shared between MySQL and PostgreSQL) ---- +set(PGCONN_SRCS + "${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/src/orm_common.cpp" + "${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/src/pg_conn.cpp" + "${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/src/mysql_conn.cpp" + "${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/src/orm_conn_pool.cpp" + "${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/src/orm_connect_mar.cpp" + "${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/src/orm_query.cpp" + "${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/src/clientdatacache.cpp" + "${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/src/unicode.cpp" + "${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/src/sqlite_conn_stub.cpp" + "${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/src/parse_ini.cpp" + "${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/src/request.cpp" +) + +# SQLite connection sources (always compile; sqlite_conn.cpp has #ifdef ENABLE_SQLITE guard) +set(SQLITE_CONN_SRCS + "${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/src/sqlite_conn.cpp" +) + +# CLI tool +add_executable(paozhu_cli + "${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpcli/http_cli.cpp" + ${PGCONN_SRCS} + ${ORM_CMS_MODEL_SRCS} + ${ORM_PG_MODEL_SRCS} +) +if(ENABLE_SQLITE) + target_sources(paozhu_cli PRIVATE ${SQLITE_CONN_SRCS}) +endif() +target_include_directories(paozhu_cli PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}" + "${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/include" + "${CMAKE_CURRENT_SOURCE_DIR}/include" + "${CMAKE_CURRENT_SOURCE_DIR}/orm" + "${CMAKE_CURRENT_SOURCE_DIR}/models" +) + +# Main target +set(paozhu_srcs + ${common_list} + ${viewsrc_list} + ${framework_cpps} + ${orm_list} + ${reflect_list} + ${src_list} + ${source_list} + ${controller_list} +) + +if(ENABLE_OFFICE) + list(APPEND paozhu_srcs ${pzexcel_list}) + list(APPEND paozhu_srcs ${pzword_list}) +endif() + +if(ENABLE_IMAGE) + list(APPEND paozhu_srcs ${pzimage_list}) +endif() + +if(ENABLE_PDF) + list(APPEND paozhu_srcs ${webpdf_list}) +endif() + +if(ENABLE_SMS) + list(APPEND paozhu_srcs ${sms_list}) +endif() + +if(ENABLE_CHART) + list(APPEND paozhu_srcs ${charts_list}) +endif() + +if(ENABLE_WEBPAY) + list(APPEND paozhu_srcs ${webpay_list}) +endif() + +if(ENABLE_ZIP) + list(APPEND paozhu_srcs ${pzzip_list}) +endif() + +if(ENABLE_REDIS) + list(APPEND paozhu_srcs ${pzredis_list}) +endif() + +add_executable(paozhu + $, + ${CMAKE_CURRENT_SOURCE_DIR}/startup/main_docker.cpp, + ${CMAKE_CURRENT_SOURCE_DIR}/startup/main_docker.cpp> + ${paozhu_srcs} +) + +# ---- Compile definitions & common options ---- +target_compile_definitions(paozhu PRIVATE ASIO_STANDALONE) +if(ENABLE_BENCHMARK) + target_compile_definitions(paozhu PRIVATE BENCHMARK) +endif() +if(ENABLE_OFFICE) + target_compile_definitions(paozhu PRIVATE ENABLE_OFFICE) +endif() + +if(ENABLE_IMAGE) + target_compile_definitions(paozhu PRIVATE ENABLE_IMAGE) +endif() + +if(ENABLE_PDF) + target_compile_definitions(paozhu PRIVATE ENABLE_PDF) +endif() + +if(ENABLE_SMS) + target_compile_definitions(paozhu PRIVATE ENABLE_SMS) +endif() + +if(ENABLE_CHART) + target_compile_definitions(paozhu PRIVATE ENABLE_CHART) +endif() + +if(ENABLE_WEBPAY) + target_compile_definitions(paozhu PRIVATE ENABLE_WEBPAY) +endif() + +if(ENABLE_ZIP) + target_compile_definitions(paozhu PRIVATE ENABLE_ZIP) +endif() + +if(ENABLE_FASTCGI) + target_compile_definitions(paozhu PRIVATE ENABLE_FASTCGI) +endif() + +if(ENABLE_REDIS) + target_compile_definitions(paozhu PRIVATE ENABLE_REDIS) +endif() + +if(ENABLE_REDIS_CLIENT) + target_compile_definitions(paozhu PRIVATE ENABLE_REDIS_CLIENT) +endif() + +if(ENABLE_WEBSOCKETS_CLIENT) + target_compile_definitions(paozhu PRIVATE ENABLE_WEBSOCKETS_CLIENT) +endif() + +if(ENABLE_SOCKETS_CLIENT) + target_compile_definitions(paozhu PRIVATE ENABLE_SOCKETS_CLIENT) +endif() + +if(ENABLE_MQTT_CLIENT) + target_compile_definitions(paozhu PRIVATE ENABLE_MQTT_CLIENT) +endif() + +if(ENABLE_SQLITE) + target_compile_definitions(paozhu PUBLIC ENABLE_SQLITE) + target_compile_definitions(paozhu_cli PUBLIC ENABLE_SQLITE) +endif() + +target_link_libraries(paozhu PRIVATE project_warnings) +target_link_libraries(paozhu_cli PRIVATE project_warnings) + +# Debug options +target_compile_options(paozhu PRIVATE + $<$,$>:-g -fsanitize=address -fno-omit-frame-pointer> + $<$,$>:/fsanitize=address> +) +target_link_options(paozhu PRIVATE + $<$,$>:-fsanitize=address> +) + +# Sanitizer builds: applied only to the paozhu target; paozhu_cli keeps its default build. +# TSan uses -O1: -fsanitize=thread with -O2 inlines away stack frames, so reported stacks lose the call chain. +if(ENABLE_TSAN) + target_compile_options(paozhu PRIVATE -g -O1 -fsanitize=thread -fno-omit-frame-pointer) + target_link_options(paozhu PRIVATE -fsanitize=thread) +endif() +if(ENABLE_UBSAN) + target_compile_options(paozhu PRIVATE -g -fsanitize=undefined -fno-omit-frame-pointer) + target_link_options(paozhu PRIVATE -fsanitize=undefined) +endif() + +target_compile_definitions(paozhu PRIVATE + $<$:DEBUG> +) + +# ---- Include directories (recursive legacy includes) ---- +include_system_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver") +include_system_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/orm") +include_system_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/models") + +include_project_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/controller/include") +include_project_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/libs") +include_project_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/include") +include_project_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/common") + +if(ENABLE_OFFICE) + include_system_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/vendor/pzexcel/include") + include_system_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/vendor/pzword/include") +endif() + +if(ENABLE_IMAGE) + include_system_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/vendor/pzimage/include") +endif() + +if(ENABLE_SMS) + include_system_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/vendor/sms/include") +endif() + +if(ENABLE_CHART) + include_system_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/vendor/pzcharts/include") +endif() + +if(ENABLE_WEBPAY) + include_system_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/vendor/webpay/include") +endif() + +if(ENABLE_PDF) + include_system_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/vendor/webpdf/include") +endif() + +if(ENABLE_ZIP) + include_system_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/vendor/pzzip/include") +endif() + +if(ENABLE_REDIS) + include_system_dirs_recursively("${CMAKE_CURRENT_SOURCE_DIR}/vendor/pzredis/include") +endif() + +if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/bin/paozhu_pre) + file(REMOVE ${CMAKE_CURRENT_SOURCE_DIR}/bin/paozhu_pre) +endif() +set(PAOZHU_PRE paozhu_pre) +add_executable(${PAOZHU_PRE} ${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpcli/autopickmethod.cpp ${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/src/md5.cpp) + + +# Non-recursive include directories from original script +target_include_directories(paozhu PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}" + "${CMAKE_CURRENT_SOURCE_DIR}/viewsrc/include" + "${CMAKE_CURRENT_SOURCE_DIR}/viewsrc" + "${CMAKE_CURRENT_SOURCE_DIR}/websockets" + "${CMAKE_CURRENT_SOURCE_DIR}/sockets" + "${CMAKE_CURRENT_SOURCE_DIR}/mqtt" +) + +# Additional global includes from original script +include_directories("${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpcli") +include_directories("${CMAKE_CURRENT_SOURCE_DIR}/controller") + +# ===== Code generation: paozhu_pre (runs on every build) ===== +add_custom_target(paozhu_codegen ALL + COMMAND $ "${CMAKE_CURRENT_SOURCE_DIR}" + DEPENDS paozhu_pre + WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" + COMMENT "Running paozhu_pre to generate controller stubs..." +) + +# ===== Make the main paozhu target wait until code generation finishes ===== +add_dependencies(paozhu paozhu_codegen) + +# ---- Platform specific settings ---- +if(WIN32) + target_compile_definitions(paozhu PRIVATE WIN32_LEAN_AND_MEAN NOMINMAX _WIN32_WINNT=0x0601) + target_link_libraries(paozhu PRIVATE ws2_32 psapi) + target_link_libraries(paozhu_cli PRIVATE ws2_32) +endif() + +# ---- ASAN runtime DLL auto-copy for MSVC Debug (64-bit only) ---- +if(MSVC AND WIN32) + # Get the directory of cl.exe (compiler), ASAN DLL typically lives next to it + get_filename_component(CL_DIR "${CMAKE_CXX_COMPILER}" DIRECTORY) + + # Try to find the ASAN dynamic runtime (64-bit) + find_file(ASAN_DLL_SOURCE + NAMES clang_rt.asan_dynamic-x86_64.dll + PATHS "${CL_DIR}" + NO_DEFAULT_PATH + ) + + if(NOT ASAN_DLL_SOURCE) + set(ASAN_DLL_SOURCE "" CACHE FILEPATH "Full path to clang_rt.asan_dynamic-x86_64.dll (set manually if needed)") + if(NOT ASAN_DLL_SOURCE) + message(WARNING + "ASAN runtime DLL not found automatically.\n" + " Please locate clang_rt.asan_dynamic-x86_64.dll (typically in your Visual Studio installation,\n" + " e.g., VC/Tools/MSVC//bin/Hostx64/x64/) and set ASAN_DLL_SOURCE to its full path:\n" + " cmake -DASAN_DLL_SOURCE=\"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/clang_rt.asan_dynamic-x86_64.dll\" ..\n" + " The DLL will then be automatically copied to the executable directory (e.g., bin/Debug/)." + ) + endif() + endif() + + # Only copy in Debug mode (ASAN is usually enabled there) + if(ASAN_DLL_SOURCE AND CMAKE_BUILD_TYPE STREQUAL "Debug") + add_custom_command(TARGET paozhu POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + "${ASAN_DLL_SOURCE}" + "$" + COMMENT "Copying ASAN runtime DLL to output directory" + ) + endif() +endif() + +# ============================================================================ +# Dependency handling +# ============================================================================ + +if(ENABLE_VCPKG) + # ---- Using vcpkg ---- + target_compile_definitions(paozhu PRIVATE ENABLE_VCPKG) + + find_package(asio CONFIG REQUIRED) + target_link_libraries(paozhu PRIVATE asio::asio) + target_link_libraries(paozhu_cli PRIVATE asio::asio) + + find_package(OpenSSL REQUIRED) + target_link_libraries(paozhu PRIVATE OpenSSL::SSL OpenSSL::Crypto) + target_link_libraries(paozhu_cli PRIVATE OpenSSL::SSL OpenSSL::Crypto) + + find_package(ZLIB REQUIRED) + target_link_libraries(paozhu PRIVATE ZLIB::ZLIB) + + find_package(unofficial-brotli CONFIG REQUIRED) + target_link_libraries(paozhu PRIVATE unofficial::brotli::brotlidec unofficial::brotli::brotlienc) + + if(ENABLE_GD) + find_package(PkgConfig) + pkg_check_modules(LIBGD REQUIRED IMPORTED_TARGET gdlib) + target_link_libraries(paozhu PRIVATE PkgConfig::LIBGD) + + find_path(QRENCODE_INCLUDE_DIR NAMES qrencode.h) + find_library(QRENCODE_LIBRARY_RELEASE qrencode) + target_include_directories(paozhu PRIVATE ${QRENCODE_INCLUDE_DIR}) + target_link_libraries(paozhu PRIVATE ${QRENCODE_LIBRARY_RELEASE}) + + find_package(PNG REQUIRED) + target_link_libraries(paozhu PRIVATE PNG::PNG) + + find_package(Freetype REQUIRED) + target_link_libraries(paozhu PRIVATE Freetype::Freetype) + + if(WIN32) + # Copy qrencode.dll to bin + if(MSVC) + set(qrencode_dll "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/bin/qrencode.dll") + elseif(MINGW) + set(qrencode_dll "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/libqrencode.dll") + endif() + add_custom_command(TARGET paozhu POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different "${qrencode_dll}" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}" + ) + endif() + endif() + + if(ENABLE_SQLITE) + find_package(SQLite3 REQUIRED) + target_link_libraries(paozhu PRIVATE SQLite::SQLite3) + target_link_libraries(paozhu_cli PRIVATE SQLite::SQLite3) + endif() + +else() + # ---- Not using vcpkg: system libraries ---- + # On Windows, we highly recommend using vcpkg; exit with a helpful message if not. + if(WIN32) + message(FATAL_ERROR + "On Windows, ENABLE_VCPKG must be ON. " + "Please install vcpkg and set VCPKG_ROOT, or enable ENABLE_VCPKG." + ) + endif() + + # ASIO —— 如果 asio/ 目录缺失但 asio.zip 在,自动解压 + # Auto-extract asio.zip if the asio/ directory is missing. + if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/asio/asio.hpp" + AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/asio.zip") + message(STATUS "asio/ not found, extracting asio.zip ...") + file(ARCHIVE_EXTRACT + INPUT "${CMAKE_CURRENT_SOURCE_DIR}/asio.zip" + DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}") + endif() + + add_library(asio INTERFACE) + target_compile_definitions(asio INTERFACE ASIO_STANDALONE) + if(APPLE) + find_path(ASIO_INCLUDE_DIR asio.hpp + PATHS /usr/local/opt/asio/include /usr/local/include /opt/homebrew/opt/asio + "${CMAKE_CURRENT_SOURCE_DIR}/asio" + ) + else() + find_path(ASIO_INCLUDE_DIR asio.hpp + PATHS "${CMAKE_CURRENT_SOURCE_DIR}/asio" /usr/include + ) + endif() + if(NOT ASIO_INCLUDE_DIR) + message(FATAL_ERROR "Standalone Asio not found") + endif() + target_include_directories(asio INTERFACE ${ASIO_INCLUDE_DIR}) + target_link_libraries(paozhu PRIVATE asio) + target_link_libraries(paozhu_cli PRIVATE asio) + + # OpenSSL + find_package(OpenSSL REQUIRED) + target_link_libraries(paozhu PRIVATE OpenSSL::SSL OpenSSL::Crypto) + target_link_libraries(paozhu_cli PRIVATE OpenSSL::SSL OpenSSL::Crypto) + + # ZLIB + find_package(ZLIB REQUIRED) + target_link_libraries(paozhu PRIVATE ZLIB::ZLIB) + + # Module loading (.so/.dylib/.dll) uses pz_dll (dlopen/LoadLibrary). + + # GD, qrencode, PNG, Freetype + if(ENABLE_GD) + target_compile_definitions(paozhu PRIVATE ENABLE_GD) + + # ---- GD (library + header) ---- + find_library(GD_LIBRARY gd + PATHS /usr/local/opt/gd/lib /opt/homebrew/opt/gd/lib + /usr/lib64 /usr/lib/x86_64-linux-gnu /usr/lib + ) + if(NOT GD_LIBRARY) + message(FATAL_ERROR "GD library not found") + endif() + find_path(GD_INCLUDE_DIR gd.h + PATHS /usr/local/opt/gd/include /opt/homebrew/opt/gd/include + /usr/include /usr/local/include + ) + if(NOT GD_INCLUDE_DIR) + message(FATAL_ERROR "GD header not found") + endif() + target_link_libraries(paozhu PRIVATE ${GD_LIBRARY}) + target_include_directories(paozhu PRIVATE ${GD_INCLUDE_DIR}) + message(STATUS "Found GD: ${GD_LIBRARY} (include: ${GD_INCLUDE_DIR})") + + # ---- qrencode (library + header) ---- + find_library(QRENCODE_LIBRARY qrencode + PATHS /usr/local/opt/qrencode/lib /opt/homebrew/opt/qrencode/lib + /usr/lib64 /usr/lib/x86_64-linux-gnu /usr/lib + ) + if(NOT QRENCODE_LIBRARY) + message(FATAL_ERROR "qrencode library not found") + endif() + find_path(QRENCODE_INCLUDE_DIR qrencode.h + PATHS /usr/local/opt/qrencode/include /opt/homebrew/opt/qrencode/include + /usr/include /usr/local/include + ) + if(NOT QRENCODE_INCLUDE_DIR) + message(FATAL_ERROR "qrencode header not found") + endif() + target_link_libraries(paozhu PRIVATE ${QRENCODE_LIBRARY}) + target_include_directories(paozhu PRIVATE ${QRENCODE_INCLUDE_DIR}) + message(STATUS "Found qrencode: ${QRENCODE_LIBRARY} (include: ${QRENCODE_INCLUDE_DIR})") + + # ---- PNG and Freetype via CMake modules ---- + find_package(PNG REQUIRED) + target_link_libraries(paozhu PRIVATE PNG::PNG) + + find_package(Freetype REQUIRED) + target_link_libraries(paozhu PRIVATE Freetype::Freetype) + endif() + + + + # Brotli + find_library(BROTLI_ENC brotlienc + PATHS /usr/lib64 /usr/lib/x86_64-linux-gnu /usr/lib + /usr/local/opt/brotli/lib /opt/homebrew/opt/brotli/lib + ) + find_library(BROTLI_DEC brotlidec + PATHS /usr/lib64 /usr/lib/x86_64-linux-gnu /usr/lib + /usr/local/opt/brotli/lib /opt/homebrew/opt/brotli/lib + ) + if(NOT BROTLI_ENC OR NOT BROTLI_DEC) + message(FATAL_ERROR "Brotli libraries not found") + endif() + message(STATUS "Found Brotli encoder: ${BROTLI_ENC}") + message(STATUS "Found Brotli decoder: ${BROTLI_DEC}") + target_link_libraries(paozhu PRIVATE ${BROTLI_ENC} ${BROTLI_DEC}) + if(APPLE) + foreach(prefix /usr/local/opt /opt/homebrew/opt) + if(IS_DIRECTORY "${prefix}/brotli/include") + target_include_directories(paozhu PRIVATE "${prefix}/brotli/include") + endif() + endforeach() + endif() + + # SQLite3 + if(ENABLE_SQLITE) + find_path(SQLITE3_INCLUDE_DIR sqlite3.h + PATHS /usr/include /usr/local/include /opt/homebrew/include + ) + find_library(SQLITE3_LIBRARY NAMES sqlite3 + PATHS /usr/lib /usr/local/lib /opt/homebrew/lib + ) + if(NOT SQLITE3_LIBRARY) + message(FATAL_ERROR "ENABLE_SQLITE=ON but SQLite3 not found. Install via: brew install sqlite3") + endif() + if(SQLITE3_INCLUDE_DIR) + message(STATUS "Found SQLite3: ${SQLITE3_LIBRARY} (${SQLITE3_INCLUDE_DIR})") + else() + message(STATUS "Found SQLite3: ${SQLITE3_LIBRARY} (system default include)") + endif() + target_link_libraries(paozhu PRIVATE ${SQLITE3_LIBRARY}) + target_link_libraries(paozhu_cli PRIVATE ${SQLITE3_LIBRARY}) + if(SQLITE3_INCLUDE_DIR) + target_include_directories(paozhu PRIVATE ${SQLITE3_INCLUDE_DIR}) + target_include_directories(paozhu_cli PRIVATE ${SQLITE3_INCLUDE_DIR}) + endif() + endif() +endif() + +# ---- Module .so loading (dlopen/LoadLibrary) ---- +if(ENABLE_VIEWSO) + target_compile_definitions(paozhu PRIVATE ENABLE_VIEWSO) +endif() +if(ENABLE_MODELSO) + target_compile_definitions(paozhu PRIVATE ENABLE_MODELSO) +endif() + +if(ENABLE_VIEWSO OR ENABLE_MODELSO) + target_link_libraries(paozhu PRIVATE ${CMAKE_DL_LIBS}) + # 模块 .so 自带框架源码副本,唯一带不进去的 http::get_server_app() 由宿主解析,故宿主需导出符号 + set_target_properties(paozhu PROPERTIES ENABLE_EXPORTS ON) +endif() + +# ---- Final common libraries ---- +if(UNIX) + find_package(Threads REQUIRED) + target_link_libraries(paozhu PRIVATE Threads::Threads) + if(CMAKE_SYSTEM_NAME STREQUAL "Linux") + target_link_libraries(paozhu PRIVATE m dl) + endif() + target_link_libraries(paozhu_cli PRIVATE Threads::Threads) +endif() + +# ---- Install config files (Unix only, opt-in) ---- +# Only executed during make install, not during configure: otherwise, anyone running cmake once will +# replace the content currently being read by the deployed instance at /usr/local/etc/paozhu +# (the second fallback candidate for serverconfig::init_path) with the repository content. +# Measured with cmake 4.2: file(COPY) will overwrite the target file when the content differs, +# regardless of timestamps — this is an explicitly noted behavior, with no protection added. +option(ENABLE_CONF_INSTALL "Copy the whole conf/ dir to PAOZHU_CONF_DIR during 'make install'" OFF) +set(PAOZHU_CONF_DIR "/usr/local/etc/paozhu" CACHE PATH "Target dir for conf during 'make install'") + +if(ENABLE_CONF_INSTALL AND UNIX) + install(CODE " + # —— 先尝试创建目录,失败(无权限)则跳过 conf 拷贝 —— + # Try mkdir first; skip conf copy if permission denied. + set(_paozhu_confdir [=[${PAOZHU_CONF_DIR}]=]) + set(_paozhu_confsrc [=[${CMAKE_CURRENT_SOURCE_DIR}/conf/]=]) + + if(NOT IS_DIRECTORY \"\${_paozhu_confdir}\") + file(MAKE_DIRECTORY \"\${_paozhu_confdir}\") + endif() + if(IS_DIRECTORY \"\${_paozhu_confdir}\") + file(COPY \"\${_paozhu_confsrc}\" DESTINATION \"\${_paozhu_confdir}\") + message(STATUS \"paozhu: conf/ copied to \${_paozhu_confdir}\") + else() + get_filename_component(_paozhu_parent \"\${_paozhu_confdir}\" DIRECTORY) + message(WARNING \"paozhu: no write permission to \${_paozhu_parent}, skipped conf/ install\") + endif() + ") + message(STATUS "paozhu: 'make install' will copy conf/ to ${PAOZHU_CONF_DIR}") +endif() + +# ---- Tests (cmake -DENABLE_TESTS=ON) ---- +# 放在依赖处理之后:tests 目标要复用 asio / OpenSSL / Threads / SQLite 等依赖目标 +if(ENABLE_TESTS) + include(CTest) + enable_testing() + add_subdirectory(tests) +endif() diff --git a/frameworks/paozhu/src/conf/openssl.cnf b/frameworks/paozhu/src/conf/openssl.cnf new file mode 100644 index 0000000000..2cadef4e39 --- /dev/null +++ b/frameworks/paozhu/src/conf/openssl.cnf @@ -0,0 +1,11 @@ +openssl_conf = default_conf + +[default_conf] +ssl_conf = ssl_sect + +[ssl_sect] +system_default = system_default_sect + +[system_default_sect] +MinProtocol = TLSv1.2 +CipherString = DEFAULT:@SECLEVEL=2 diff --git a/frameworks/paozhu/src/conf/orm.conf b/frameworks/paozhu/src/conf/orm.conf new file mode 100644 index 0000000000..d7733ddf34 --- /dev/null +++ b/frameworks/paozhu/src/conf/orm.conf @@ -0,0 +1,35 @@ +# paozhu ORM pool config for the HttpArena Postgres sidecar. +# +# Template only: entrypoint.sh substitutes the __DB_*__ placeholders from +# DATABASE_URL / DATABASE_MAX_CONN and writes /app/conf/main/orm.conf. It is +# intentionally NOT installed next to server.conf: without a DB profile the +# harness injects no DATABASE_URL and paozhu must not open a pool at all. +# +# Two groups are required. paozhu's get_orm_config_file() splits on repeated +# keys: `type=main` populates conf_data[0] (edit pool), `type=second` +# populates conf_data[1], which async_get_pg_select_conn() actually uses for +# SELECTs. Both need the full connection settings. +[pg] +type = main +host = __DB_HOST__ +port = __DB_PORT__ +dbname = __DB_NAME__ +user = __DB_USER__ +password = __DB_PASSWORD__ +pretable = +maxpool = __DB_MAX_CONN__ +minpool = 64 +dbtype = postgresql +charset = utf8 + +type = second +host = __DB_HOST__ +port = __DB_PORT__ +dbname = __DB_NAME__ +user = __DB_USER__ +password = __DB_PASSWORD__ +pretable = +maxpool = __DB_MAX_CONN__ +minpool = 64 +dbtype = postgresql +charset = utf8 diff --git a/frameworks/paozhu/src/conf/server-h1.conf b/frameworks/paozhu/src/conf/server-h1.conf new file mode 100644 index 0000000000..323b2eee41 --- /dev/null +++ b/frameworks/paozhu/src/conf/server-h1.conf @@ -0,0 +1,56 @@ +; Second instance: HTTP/1.1-only TLS on 8081 for json-tls, plus cleartext +; HTTP/2 (h2c prior-knowledge) on 8082 for json-h2c. paozhu opens exactly one +; plaintext and one TLS port per process, so this listener needs its own process. +; http2_enable = 0 only affects the TLS ALPN callback (it advertises http/1.1 +; exclusively); cleartext h2c is detected from the PRI * HTTP/2.0 preface by +; checkhttp2() and does not consult this switch. + +[default] +threadmax = 1024 +threadmin = 5 +cothreadnum = 8 + +httpport = 8082 +httpsport = 8081 + +http2_enable = 0 +global_http2_enable = 0 + +debug_enable = 0 +deamon_enable = 0 +show_visitinfo = 0 +ip6_listen_enable = 0 +mainhost = localhost + +certificate_chain_file = server.crt +private_key_file = server.key +tmp_dh_file = dh4096.pem +chain_crt_file = server.crt + +session_type = 1 +static_file_compress_cache = 0 +staticfile_cache_num = 0 +resident_client_show = 0 +rate_limit_status = 0 +acme_auto = 0 +ocsp_intv_time = 14400 + +modelspath = ./models +serverpath = ./ +viewpath = ./view +viewsopath = ./module/view +controlpath = ./controller +controlsopath = ./module/controller +; Separate scratch dirs so the two processes never race on temp/log files. +temppath = ./temp-h1 +logpath = ./log-h1 +wwwpath = ./www/default +pluginspath = ./plugins +libspath = ./libs + +directorylist = 0 +index = index.html +rewrite_404 = 0 +upload_max_size = 16777216 +siteid = 1 +groupid = 0 diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf new file mode 100644 index 0000000000..bb53e54e2b --- /dev/null +++ b/frameworks/paozhu/src/conf/server.conf @@ -0,0 +1,55 @@ +; Main instance: plaintext HTTP/1.1 on 8080, ALPN h2 + HTTP/1.1 on 8443. +; Only the [default] section is defined, so every Host/SNI falls back to site 0. + +[default] +threadmax = 1024 +threadmin = 5 +cothreadnum = 8 + +httpport = 8080 +httpsport = 8443 + +http2_enable = 1 +global_http2_enable = 1 + +debug_enable = 0 +deamon_enable = 0 +show_visitinfo = 0 +ip6_listen_enable = 0 +mainhost = localhost + +; Resolved against this file's directory by serverconfig.cpp; entrypoint.sh +; stages /certs/server.crt and /certs/server.key under these names. +certificate_chain_file = server.crt +private_key_file = server.key +tmp_dh_file = dh4096.pem +chain_crt_file = server.crt + +session_type = 1 +static_file_compress_cache = 0 +staticfile_cache_num = 0 +resident_client_show = 0 +rate_limit_status = 0 +acme_auto = 0 +ocsp_intv_time = 14400 + +modelspath = ./models +serverpath = ./ +viewpath = ./view +viewsopath = ./module/view +controlpath = ./controller +controlsopath = ./module/controller +temppath = ./temp +logpath = ./log +wwwpath = ./www/default +pluginspath = ./plugins +libspath = ./libs + +directorylist = 0 +index = index.html +; usehtmlcache is intentionally absent: a present key turns on the disk +; pre-check for dotted URLs, which would bypass the /static/:filename route. +rewrite_404 = 0 +upload_max_size = 16777216 +siteid = 1 +groupid = 0 diff --git a/frameworks/paozhu/src/controller/src/arena.cpp b/frameworks/paozhu/src/controller/src/arena.cpp new file mode 100644 index 0000000000..22490967d9 --- /dev/null +++ b/frameworks/paozhu/src/controller/src/arena.cpp @@ -0,0 +1,640 @@ +#include "httppeer.h" + +#include +#include +#include +#include +#include +#include +#include + +// HttpArena handlers for the paozhu clean scaffold. +// +// Routes are picked up by paozhu_pre at build time: every //@urlpath(...) +// annotation registers the function that follows it. Path parameters must be +// the last segment, so /json/:count and /static/:filename are registered as the +// fixed prefixes /json and /static with a parameter-name table. +namespace +{ + +struct arena_item +{ + long long id = 0; + long long price = 0; + long long quantity = 0; + long long score = 0; + long long rating_count = 0; + bool active = false; + // Raw bytes between the source quotes. Re-emitting them verbatim keeps any + // JSON escape sequence in the dataset intact. + std::string name; + std::string category; + std::vector tags; +}; + +// A small scanner scoped to data/dataset.json's shape. Containers are skipped by +// structure rather than by searching for the next key, so a string that looks +// like a key cannot desynchronize the parse. +struct json_scanner +{ + const char *p = nullptr; + const char *e = nullptr; + bool ok = true; + + void ws() + { + while (p < e && (*p == ' ' || *p == '\t' || *p == '\r' || *p == '\n')) + { + ++p; + } + } + + std::string str() + { + if (p >= e || *p != '"') + { + ok = false; + return {}; + } + ++p; + const char *begin = p; + while (p < e && *p != '"') + { + if (*p == '\\' && p + 1 < e) + { + ++p; + } + ++p; + } + if (p >= e) + { + ok = false; + return {}; + } + std::string out(begin, static_cast(p - begin)); + ++p; + return out; + } + + long long num() + { + ws(); + bool neg = false; + if (p < e && *p == '-') + { + neg = true; + ++p; + } + long long n = 0; + while (p < e && *p >= '0' && *p <= '9') + { + n = n * 10 + (*p - '0'); + ++p; + } + return neg ? -n : n; + } + + void skip_value() + { + ws(); + if (p >= e) + { + ok = false; + return; + } + if (*p == '"') + { + str(); + return; + } + if (*p == '{' || *p == '[') + { + const char close = (*p == '{') ? '}' : ']'; + ++p; + while (ok && p < e) + { + ws(); + if (p >= e) + { + break; + } + if (*p == close) + { + ++p; + return; + } + if (*p == ',') + { + ++p; + continue; + } + if (close == '}') + { + str(); + ws(); + if (!ok || p >= e || *p != ':') + { + ok = false; + return; + } + ++p; + } + skip_value(); + } + ok = false; + return; + } + while (p < e && *p != ',' && *p != '}' && *p != ']' && + *p != ' ' && *p != '\t' && *p != '\r' && *p != '\n') + { + ++p; + } + } + + bool parse_item(arena_item &it) + { + if (p >= e || *p != '{') + { + ok = false; + return false; + } + ++p; + while (ok && p < e) + { + ws(); + if (p >= e) + { + ok = false; + break; + } + if (*p == '}') + { + ++p; + return ok; + } + if (*p == ',') + { + ++p; + continue; + } + + std::string key = str(); + ws(); + if (!ok || p >= e || *p != ':') + { + ok = false; + break; + } + ++p; + ws(); + + if (key == "id") + { + it.id = num(); + } + else if (key == "price") + { + it.price = num(); + } + else if (key == "quantity") + { + it.quantity = num(); + } + else if (key == "name") + { + it.name = str(); + } + else if (key == "category") + { + it.category = str(); + } + else if (key == "active") + { + it.active = (p < e && *p == 't'); + skip_value(); + } + else if (key == "tags") + { + if (p >= e || *p != '[') + { + ok = false; + break; + } + ++p; + while (ok && p < e) + { + ws(); + if (p >= e) + { + break; + } + if (*p == ']') + { + ++p; + break; + } + if (*p == ',') + { + ++p; + continue; + } + std::string tag = str(); + if (!ok) + { + break; + } + it.tags.emplace_back(std::move(tag)); + } + } + else if (key == "rating") + { + if (p >= e || *p != '{') + { + ok = false; + break; + } + ++p; + while (ok && p < e) + { + ws(); + if (p >= e) + { + break; + } + if (*p == '}') + { + ++p; + break; + } + if (*p == ',') + { + ++p; + continue; + } + std::string rkey = str(); + ws(); + if (!ok || p >= e || *p != ':') + { + ok = false; + break; + } + ++p; + ws(); + if (rkey == "score") + { + it.score = num(); + } + else if (rkey == "count") + { + it.rating_count = num(); + } + else + { + skip_value(); + } + } + } + else + { + skip_value(); + } + } + if (p >= e) + { + ok = false; + } + return ok; + } +}; + +std::vector load_dataset() +{ + std::ifstream in("/data/dataset.json", std::ios::binary); + if (!in) + { + return {}; + } + const std::string raw((std::istreambuf_iterator(in)), + std::istreambuf_iterator()); + json_scanner sc{raw.data(), raw.data() + raw.size()}; + sc.ws(); + if (sc.p >= sc.e || *sc.p != '[') + { + return {}; + } + ++sc.p; + + std::vector items; + while (sc.ok && sc.p < sc.e) + { + sc.ws(); + if (sc.p >= sc.e || *sc.p == ']') + { + break; + } + if (*sc.p == ',') + { + ++sc.p; + continue; + } + if (*sc.p != '{') + { + sc.ok = false; + break; + } + arena_item it; + if (!sc.parse_item(it)) + { + break; + } + items.emplace_back(std::move(it)); + } + return sc.ok ? items : std::vector{}; +} + +const std::vector &dataset() +{ + // Function-local static: initialized once, thread-safe under C++11+. + static const std::vector items = load_dataset(); + return items; +} + +std::string render_json(std::size_t count, long long multiplier, + const std::vector &items) +{ + std::string out; + out.reserve(32 + count * 256); + out += "{\"items\":["; + for (std::size_t i = 0; i < count; ++i) + { + const arena_item &it = items[i]; + if (i != 0) + { + out += ','; + } + out += "{\"id\":"; + out += std::to_string(it.id); + out += ",\"name\":\""; + out += it.name; + out += "\",\"category\":\""; + out += it.category; + out += "\",\"price\":"; + out += std::to_string(it.price); + out += ",\"quantity\":"; + out += std::to_string(it.quantity); + out += ",\"active\":"; + out += it.active ? "true" : "false"; + out += ",\"tags\":["; + for (std::size_t t = 0; t < it.tags.size(); ++t) + { + if (t != 0) + { + out += ','; + } + out += '"'; + out += it.tags[t]; + out += '"'; + } + out += "],\"rating\":{\"score\":"; + out += std::to_string(it.score); + out += ",\"count\":"; + out += std::to_string(it.rating_count); + out += "},\"total\":"; + out += std::to_string(it.price * it.quantity * multiplier); + out += '}'; + } + out += "],\"count\":"; + out += std::to_string(count); + out += '}'; + return out; +} + +// Split "a=1&b=2" without decoding: the harness sends plain decimal values. +// Returns false once the segment is exhausted. +bool next_query_pair(const std::string &q, std::size_t &pos, + std::string &key, std::string &value) +{ + if (pos >= q.size()) + { + return false; + } + if (q[pos] == '?' || q[pos] == '&') + { + ++pos; + } + const std::size_t amp = q.find('&', pos); + const std::size_t end = (amp == std::string::npos) ? q.size() : amp; + const std::size_t eq = q.find('=', pos); + if (eq != std::string::npos && eq < end) + { + key = q.substr(pos, eq - pos); + value = q.substr(eq + 1, end - eq - 1); + } + else + { + key = q.substr(pos, end - pos); + value.clear(); + } + pos = end + 1; + return true; +} + +long long sum_query(const std::string &q) +{ + long long sum = 0; + std::size_t pos = 0; + std::string key, value; + while (next_query_pair(q, pos, key, value)) + { + if (value.empty()) + { + continue; + } + char *end = nullptr; + const long long n = std::strtoll(value.c_str(), &end, 10); + if (end != value.c_str()) + { + sum += n; + } + } + return sum; +} + +long long query_multiplier(const std::string &q) +{ + long long multiplier = 1; + std::size_t pos = 0; + std::string key, value; + while (next_query_pair(q, pos, key, value)) + { + if (key == "m" && !value.empty()) + { + char *end = nullptr; + const long long n = std::strtoll(value.c_str(), &end, 10); + if (end != value.c_str()) + { + multiplier = n; + } + break; + } + } + return multiplier; +} + +long long body_number(const std::string &body) +{ + char buf[32]; + const std::size_t n = body.size() < sizeof(buf) - 1 ? body.size() : sizeof(buf) - 1; + for (std::size_t i = 0; i < n; ++i) + { + buf[i] = body[i]; + } + buf[n] = '\0'; + const char *p = buf; + while (*p != '\0' && static_cast(*p) <= ' ') + { + ++p; + } + char *end = nullptr; + const long long value = std::strtoll(p, &end, 10); + return end == p ? 0 : value; +} + +// paozhu streams raw (non-form, non-JSON) request bodies to a temp file and +// leaves peer->rawcontent empty for them (http_parse.cpp posttype 5). Read that +// file back for POST /baseline11 and unlink it immediately: the benchmark sends +// a POST-heavy workload and httpwatch only sweeps old files periodically. +std::string raw_body(const std::shared_ptr &peer) +{ + if (!peer->rawcontent.empty()) + { + return peer->rawcontent; + } + const std::string path = peer->files["rawcontent"]["tempfile"].to_string(); + if (path.empty()) + { + return {}; + } + std::ifstream in(path, std::ios::binary); + const std::string body((std::istreambuf_iterator(in)), + std::istreambuf_iterator()); + std::remove(path.c_str()); + return body; +} + +const char *mime_of(const std::string &filename) +{ + const std::size_t dot = filename.rfind('.'); + if (dot == std::string::npos) + { + return "application/octet-stream"; + } + const std::string ext = filename.substr(dot + 1); + if (ext == "css") return "text/css"; + if (ext == "js") return "application/javascript"; + if (ext == "html") return "text/html"; + if (ext == "json") return "application/json"; + if (ext == "svg") return "image/svg+xml"; + if (ext == "webp") return "image/webp"; + if (ext == "woff2") return "font/woff2"; + return "application/octet-stream"; +} + +bool safe_filename(const std::string &name) +{ + if (name.empty() || name.size() > 128 || name.find("..") != std::string::npos) + { + return false; + } + for (char c : name) + { + const bool allowed = (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || + (c >= '0' && c <= '9') || c == '.' || c == '-' || c == '_'; + if (!allowed) + { + return false; + } + } + return true; +} + +} // namespace + +namespace http +{ + +//@urlpath(null,pipeline) +asio::awaitable arena_pipeline(std::shared_ptr peer) +{ + peer->type("text/plain"); + peer->output = "ok"; + co_return ""; +} + +//@urlpath(null,baseline11) +asio::awaitable arena_baseline11(std::shared_ptr peer) +{ + long long sum = sum_query(peer->querystring); + if (peer->method == POST) + { + sum += body_number(raw_body(peer)); + } + peer->type("text/plain"); + peer->output = std::to_string(sum); + co_return ""; +} + +//@urlpath(null,baseline2) +asio::awaitable arena_baseline2(std::shared_ptr peer) +{ + peer->type("text/plain"); + peer->output = std::to_string(sum_query(peer->querystring)); + co_return ""; +} + +//@urlpath(null,json/:count) +asio::awaitable arena_json(std::shared_ptr peer) +{ + const std::vector &items = dataset(); + const long long count = peer->get["count"].to_int(); + const long long multiplier = query_multiplier(peer->querystring); + + peer->type("application/json"); + if (items.empty() || count < 1 || count > static_cast(items.size())) + { + peer->status(400); + peer->output = "{}"; + co_return ""; + } + peer->output = render_json(static_cast(count), multiplier, items); + co_return ""; +} + +//@urlpath(null,static/:filename) +asio::awaitable arena_static(std::shared_ptr peer) +{ + const std::string filename = peer->get["filename"].to_string(); + // Read on every request: the validation suite replaces a mounted file and + // expects the next response to carry the new bytes. + std::ifstream in; + if (safe_filename(filename)) + { + in.open("/data/static/" + filename, std::ios::binary); + } + // is_open(), not operator bool(): a default-constructed ifstream has a + // goodbit state even though no file is attached, so a rejected filename + // would otherwise fall through to a 200 with an empty body. + if (!in.is_open()) + { + peer->status(404); + peer->type("text/plain"); + peer->output = "Not Found"; + co_return ""; + } + peer->output.assign(std::istreambuf_iterator(in), + std::istreambuf_iterator()); + peer->type(mime_of(filename)); + co_return ""; +} + +} // namespace http diff --git a/frameworks/paozhu/src/controller/src/db.cpp b/frameworks/paozhu/src/controller/src/db.cpp new file mode 100644 index 0000000000..9638d63482 --- /dev/null +++ b/frameworks/paozhu/src/controller/src/db.cpp @@ -0,0 +1,358 @@ +#include "httppeer.h" +#include "orm_query.h" + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace +{ + // paozhu's Postgres driver hands every column back as text. Supplying a + // `set_val` row type is enough for orm::db_conn::async_query() — no + // generated ORM model is needed (mini_project.sh empties orm/ + models/). + struct item_row + { + std::string id, name, category, price, quantity, active, tags, rating_score, rating_count; + + void set_val(const std::string &col, const unsigned char *data, std::size_t len, unsigned char) + { + std::string value(reinterpret_cast(data), len); + if (col == "id") { id = std::move(value); } + else if (col == "name") { name = std::move(value); } + else if (col == "category") { category = std::move(value); } + else if (col == "price") { price = std::move(value); } + else if (col == "quantity") { quantity = std::move(value); } + else if (col == "active") { active = std::move(value); } + else if (col == "tags") { tags = std::move(value); } + else if (col == "rating_score") { rating_score = std::move(value); } + else if (col == "rating_count") { rating_count = std::move(value); } + } + }; + + struct fortune_row + { + long long id = 0; + std::string message; + + void set_val(const std::string &col, const unsigned char *data, std::size_t len, unsigned char) + { + std::string value(reinterpret_cast(data), len); + if (col == "id") + { + long long parsed = 0; + std::from_chars(value.data(), value.data() + value.size(), parsed); + id = parsed; + } + else if (col == "message") + { + message = std::move(value); + } + } + }; + + // The upstream PG pool grows on demand without honouring maxpool, so cap + // in-flight queries below DATABASE_MAX_CONN to keep under Postgres' + // max_connections. Waiting uses an asio timer, never a blocking semaphore: + // blocking an io thread can deadlock the coroutine that holds a ticket. + class db_ticket + { + static std::atomic &in_flight() + { + static std::atomic count{0}; + return count; + } + + static int limit() + { + static const int value = [] { + const char *env = std::getenv("DATABASE_MAX_CONN"); + int n = env ? std::atoi(env) : 256; + if (n < 8) n = 8; + if (n > 256) n = 256; + return n > 24 ? n - 24 : n; + }(); + return value; + } + + bool owns_ = false; + + public: + db_ticket() = default; + db_ticket(const db_ticket &) = delete; + db_ticket &operator=(const db_ticket &) = delete; + ~db_ticket() + { + if (owns_) + { + in_flight().fetch_sub(1, std::memory_order_relaxed); + } + } + + bool try_enter() + { + int current = in_flight().load(std::memory_order_relaxed); + while (current < limit()) + { + if (in_flight().compare_exchange_weak(current, current + 1, + std::memory_order_relaxed)) + { + owns_ = true; + return true; + } + } + return false; + } + }; + + asio::awaitable enter_db_gate(db_ticket &ticket) + { + if (ticket.try_enter()) + { + co_return true; + } + auto executor = co_await asio::this_coro::executor; + for (unsigned attempt = 0; attempt < 250; ++attempt) + { + asio::steady_timer timer(executor); + timer.expires_after(std::chrono::milliseconds(2)); + co_await timer.async_wait(asio::use_awaitable); + if (ticket.try_enter()) + { + co_return true; + } + } + co_return false; + } + + long long to_int(std::string_view value, long long fallback = 0) + { + long long parsed = 0; + auto result = std::from_chars(value.data(), value.data() + value.size(), parsed); + return result.ec == std::errc{} ? parsed : fallback; + } + + long long query_int(const std::string &query, std::string_view key, long long fallback) + { + std::size_t pos = 0; + while (pos < query.size()) + { + const std::size_t amp = query.find('&', pos); + const std::size_t end = amp == std::string::npos ? query.size() : amp; + std::string_view pair(query.data() + pos, end - pos); + const std::size_t eq = pair.find('='); + if (eq != std::string_view::npos && pair.substr(0, eq) == key) + { + return to_int(pair.substr(eq + 1), fallback); + } + if (amp == std::string::npos) + { + break; + } + pos = amp + 1; + } + return fallback; + } + + std::string integer_or_zero(const std::string &value) + { + return std::to_string(to_int(value)); + } + + bool is_true(const std::string &value) + { + return value == "t" || value == "T" || value == "true" || + value == "TRUE" || value == "1"; + } + + void append_json_string(std::string &out, std::string_view value) + { + static const char *hex = "0123456789abcdef"; + out.push_back('"'); + for (unsigned char ch : value) + { + switch (ch) + { + case '"': out += "\\\""; break; + case '\\': out += "\\\\"; break; + case '\b': out += "\\b"; break; + case '\f': out += "\\f"; break; + case '\n': out += "\\n"; break; + case '\r': out += "\\r"; break; + case '\t': out += "\\t"; break; + default: + if (ch < 0x20) + { + out += "\\u00"; + out.push_back(hex[ch >> 4]); + out.push_back(hex[ch & 0x0F]); + } + else + { + out.push_back(static_cast(ch)); + } + } + } + out.push_back('"'); + } + + void append_html_escaped(std::string &out, std::string_view value) + { + for (char ch : value) + { + switch (ch) + { + case '&': out += "&"; break; + case '<': out += "<"; break; + case '>': out += ">"; break; + case '"': out += """; break; + case '\'': out += "'"; break; + default: out.push_back(ch); + } + } + } + + std::string render_items(const std::vector &rows) + { + std::string out; + out.reserve(rows.size() * 256 + 64); + out += "{\"items\":["; + for (std::size_t i = 0; i < rows.size(); ++i) + { + const item_row &r = rows[i]; + if (i > 0) + { + out.push_back(','); + } + out += "{\"id\":"; + out += integer_or_zero(r.id); + out += ",\"name\":"; + append_json_string(out, r.name); + out += ",\"category\":"; + append_json_string(out, r.category); + out += ",\"price\":"; + out += integer_or_zero(r.price); + out += ",\"quantity\":"; + out += integer_or_zero(r.quantity); + out += ",\"active\":"; + out += is_true(r.active) ? "true" : "false"; + out += ",\"tags\":"; + // jsonb arrives as a JSON array in text form; keep it verbatim. + if (r.tags.size() > 1 && r.tags.front() == '[' && r.tags.back() == ']') + { + out += r.tags; + } + else + { + out += "[]"; + } + out += ",\"rating\":{\"score\":"; + out += integer_or_zero(r.rating_score); + out += ",\"count\":"; + out += integer_or_zero(r.rating_count); + out += "}}"; + } + out += "],\"count\":"; + out += std::to_string(rows.size()); + out.push_back('}'); + return out; + } + + std::string render_fortunes(std::vector &rows) + { + rows.push_back(fortune_row{0, "Additional fortune added at request time."}); + std::sort(rows.begin(), rows.end(), [](const fortune_row &a, const fortune_row &b) { + return a.message < b.message; // std::string::compare is byte-ordinal + }); + + std::string out; + out.reserve(rows.size() * 140 + 256); + out += "Fortunes"; + out += ""; + for (const fortune_row &r : rows) + { + out += ""; + } + out += "
idmessage
"; + out += std::to_string(r.id); + out += ""; + append_html_escaped(out, r.message); + out += "
"; + return out; + } +} // namespace + +namespace http +{ +//@urlpath(null,async-db) +asio::awaitable arena_async_db(std::shared_ptr peer) +{ + peer->type("application/json"); + + const long long min_price = query_int(peer->querystring, "min", 10); + const long long max_price = query_int(peer->querystring, "max", 50); + long long limit = query_int(peer->querystring, "limit", 50); + if (limit < 1) limit = 1; + if (limit > 50) limit = 50; + + db_ticket ticket; + std::vector rows; + if (co_await enter_db_gate(ticket)) + { + try + { + std::string sql = "SELECT id,name,category,price,quantity,active,tags,rating_score,rating_count FROM items WHERE price BETWEEN "; + sql += std::to_string(min_price); + sql += " AND "; + sql += std::to_string(max_price); + sql += " LIMIT "; + sql += std::to_string(limit); + + auto link = std::make_unique("pg"); + rows.reserve(static_cast(limit)); + co_await link->async_query(sql, rows); + } + catch (const std::exception &) + { + rows.clear(); + } + } + + peer->output = render_items(rows); + co_return ""; +} + +//@urlpath(null,fortunes) +asio::awaitable arena_fortunes(std::shared_ptr peer) +{ + peer->type("text/html; charset=utf-8"); + + db_ticket ticket; + std::vector rows; + if (co_await enter_db_gate(ticket)) + { + try + { + auto link = std::make_unique("pg"); + rows.reserve(201); + co_await link->async_query("SELECT id,message FROM fortune", rows); + } + catch (const std::exception &) + { + rows.clear(); + } + } + + peer->output = render_fortunes(rows); + co_return ""; +} +} // namespace http diff --git a/frameworks/paozhu/src/entrypoint.sh b/frameworks/paozhu/src/entrypoint.sh new file mode 100644 index 0000000000..02775a2826 --- /dev/null +++ b/frameworks/paozhu/src/entrypoint.sh @@ -0,0 +1,73 @@ +#!/usr/bin/env bash +# paozhu has one plaintext and one TLS port per process. HttpArena needs four +# listeners, so run two instances with two conf files: the main one serves +# :8080 (HTTP/1.1) and :8443 (ALPN h2), the second serves :8081 with ALPN +# pinned to http/1.1 for json-tls plus :8082 cleartext h2c for json-h2c. +# See README.md. +set -euo pipefail + +cd /app + +# serverconfig resolves the four TLS file names relative to each conf file's +# own directory, so stage the harness pair into both conf dirs. +if [ -f /certs/server.crt ] && [ -f /certs/server.key ]; then + for d in /app/conf/main /app/conf/h1; do + cp /certs/server.crt "$d/server.crt" + cp /certs/server.key "$d/server.key" + chmod 600 "$d/server.key" + done +fi + +# HttpArena injects DATABASE_URL / DATABASE_MAX_CONN only for the DB profiles. +# startup_orm_init() unconditionally reads /orm.conf, so render +# src/conf/orm.conf into the main instance's conf dir from the environment +# instead of shipping hardcoded credentials. The h1 instance has no pool: +# /async-db and /fortunes are served on :8080 by the main instance. +if [ -n "${DATABASE_URL:-}" ]; then + db_url="${DATABASE_URL#*://}" + db_credentials="${db_url%%@*}" + db_endpoint="${db_url#*@}" + db_user="${db_credentials%%:*}" + db_password="${db_credentials#*:}" + db_host="${db_endpoint%%:*}" + db_path="${db_endpoint#*:}" + db_port="${db_path%%/*}" + db_name="${db_path#*/}" + db_name="${db_name%%\?*}" + db_max="${DATABASE_MAX_CONN:-256}" + case "$db_max" in ''|*[!0-9]*) db_max=256 ;; esac + if [ "$db_max" -lt 8 ]; then db_max=8; fi + if [ "$db_max" -gt 255 ]; then db_max=255; fi + + # Bash parameter substitution, not sed: passwords may contain '&', '\' + # or '/', all of which are special in a sed replacement. + while IFS= read -r line; do + line="${line//__DB_HOST__/$db_host}" + line="${line//__DB_PORT__/$db_port}" + line="${line//__DB_NAME__/$db_name}" + line="${line//__DB_USER__/$db_user}" + line="${line//__DB_PASSWORD__/$db_password}" + line="${line//__DB_MAX_CONN__/$db_max}" + printf '%s\n' "$line" + done < /app/conf/orm.conf.tpl > /app/conf/main/orm.conf +fi + +# No /app/conf/server.conf exists, so httpserver::run() falls back to argv[1] +# and each instance loads its own ports (8080/8443 vs 8082/8081). +/server /app/conf/h1/server.conf & +H1_PID=$! +/server /app/conf/main/server.conf & +MAIN_PID=$! + +shutdown() { + trap - TERM INT + kill -TERM "$MAIN_PID" "$H1_PID" 2>/dev/null || true + wait "$MAIN_PID" 2>/dev/null || true + wait "$H1_PID" 2>/dev/null || true +} +trap shutdown TERM INT + +# If either server exits, take the other one down too — the container should +# not look healthy with a dead listener. +wait -n "$MAIN_PID" "$H1_PID" || true +shutdown diff --git a/frameworks/paozhu/src/mini_project.sh b/frameworks/paozhu/src/mini_project.sh new file mode 100755 index 0000000000..30ef2db7c3 --- /dev/null +++ b/frameworks/paozhu/src/mini_project.sh @@ -0,0 +1,629 @@ +#!/usr/bin/env bash +# Pinned for 903cbd82: upstream Step 2 aborts under set -e when grep -c +# finds no RBAC markers; the left=... assignment below has || true added. +# Refresh from PAOZHU_REF when bumping the upstream revision. +# +# mini_project.sh - Trim the full Paozhu project into a clean scaffold +# Follows "Clean Project Initialization" five-step flow +# +# Usage: +# ./mini_project.sh Trim to clean scaffold (framework core + testhello) +# ./mini_project.sh --benchmark Trim then overlay TechEmpower benchmark files +# +# Re-exec with bash when invoked via `sh` (dash on Debian/Ubuntu) which lacks +# bash-only features like pipefail and BASH_SOURCE. +if [ -z "${BASH_VERSION:-}" ]; then + exec bash "$0" "$@" +fi + +set -euo pipefail + +# ---- Argument parsing ---- +BENCHMARK_MODE=0 +if [ "${1:-}" = "--benchmark" ]; then + BENCHMARK_MODE=1 +fi + +# Normal mode: 5 steps; benchmark mode appends the techempower overlay -> 6. +TOTAL_STEPS=5 +if [ "$BENCHMARK_MODE" -eq 1 ]; then + TOTAL_STEPS=6 +fi + +# ---- Locate project root (script directory) ---- +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +cd "$SCRIPT_DIR" + +# ---- Safety: refuse to run from .bak or on an already-trimmed tree ---- +# Guards against someone accidentally re-running the script on a real project. +SCRIPT_NAME="$(basename "${BASH_SOURCE[0]}")" +if [[ "$SCRIPT_NAME" == *.bak ]]; then + echo "ERROR: Refusing to run — this is the backup copy ($SCRIPT_NAME)." + echo "Restore it as mini_project.sh if you really need to re-run." + exit 1 +fi +if [ ! -d "controller/src/admin" ] && [ ! -d "controller/src/github" ] && [ ! -d "controller/src/oauth" ]; then + echo "ERROR: This project tree looks already trimmed (no admin/github/oauth demos found)." + echo "Refusing to run again to avoid wiping your real project." + echo "If you know what you're doing, delete mini_project.sh.bak manually." + exit 1 +fi + +# Benchmark source directory +BENCHMARK_SRC="$SCRIPT_DIR/Benchmark/paozhu_benchmark" + +echo "==============================================" +echo " Paozhu Clean Project Initialization" +echo " Project root: $SCRIPT_DIR" +if [ "$BENCHMARK_MODE" -eq 1 ]; then + echo " Mode: TechEmpower Benchmark" + echo " Benchmark src: $BENCHMARK_SRC" +fi +echo "==============================================" + +# ---- Safety check: must be in the paozhu project root ---- +if [ ! -f "CMakeLists.txt" ] || [ ! -d "vendor/httpserver" ]; then + echo "ERROR: Not in paozhu project root (missing CMakeLists.txt or vendor/httpserver)" + exit 1 +fi + +# ============================================================ +# Step 1 — Clean common/ registration files +# Keep the includes that define the registration table types and the +# type-def required includes, empty out all registration function bodies +# (signatures kept) +# ============================================================ +echo "" +echo "[Step 1/${TOTAL_STEPS}] Cleaning common/ registration files..." + +cat > common/autocontrolmethod.hpp << 'EOF' +#ifndef __HTTP_AUTO_REG_CONTROL_HTTPMETHOD_HPP +#define __HTTP_AUTO_REG_CONTROL_HTTPMETHOD_HPP + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma once +#endif // defined(_MSC_VER) && (_MSC_VER >= 1200) + +#include "httppeer.h" + +namespace http +{ + // The build regenerates this file from controller/src (the paozhu_codegen target + // runs paozhu_pre before compiling the server), so an empty body is enough to keep + // an unbuilt tree compiling: server.cpp calls _initauto_all_httputils() with no + // arguments. The old per-map _initauto_*_httpmethodregto() set is gone. + void _initauto_all_httputils() + { + } + +} +#endif +EOF + +cat > common/autorestfulpaths.hpp << 'EOF' +#ifndef __HTTP_AUTO_REG_CONTROL_HTTPRESTFUL_HPP +#define __HTTP_AUTO_REG_CONTROL_HTTPRESTFUL_HPP + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma once +#endif // defined(_MSC_VER) && (_MSC_VER >= 1200) + +#include "httppeer.h" + +namespace http +{ + void _initauto_control_httprestful_paths(std::map> &restfulmethod) + { + } + + void _initauto_domain_httprestful_paths(std::map>> &restfulmethod) + { + std::map> temp_path; + std::map>>::iterator domain_iterator; + + domain_iterator=restfulmethod.begin(); + temp_path.clear(); + } + +} + +#endif +EOF + +cat > common/reghttpmethod.hpp << 'EOF' +#ifndef __HTTP_REGHTTPMETHOD_HPP +#define __HTTP_REGHTTPMETHOD_HPP + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma once +#endif// defined(_MSC_VER) && (_MSC_VER >= 1200) + +#include "httppeer.h" +namespace http +{ +// No-arg since the v6 router rewrite: registrations go through the reg_raw / +// REG_SYNC_SYNC macros straight into the router, and server.cpp calls it with no +// arguments. The old std::map & parameter is gone -- +// keeping that spelling here breaks the build with "too few arguments to function". +inline void _inithttpmethodregto() +{ +} + +}// namespace http +#endif +EOF + +cat > common/reghttpmethod_pre.hpp << 'EOF' +#ifndef __HTTP_REGHTTPMETHOD_PRE_HPP +#define __HTTP_REGHTTPMETHOD_PRE_HPP + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma once +#endif // defined(_MSC_VER) && (_MSC_VER >= 1200) + +#include "httppeer.h" +namespace http +{ +// Same rewrite as reghttpmethod.hpp: server.cpp calls this with no arguments. +inline void _inithttpmethodregto_pre() +{ +} + +} +#endif +EOF + +# sockets_method_reg.hpp — keep http_socket.h (defines HTTP_SOCKET_REG) +cat > common/sockets_method_reg.hpp << 'EOF' +#pragma once +#include +#include "httppeer.h" +#include "http_socket.h" + +namespace http +{ +void _inithttpsocketmethodregto(HTTP_SOCKET_REG &methodcallback) +{ +} + +}// namespace http +EOF + +# websockets_method_reg.hpp — keep websockets_callback.h (defines WEBSOCKET_REG) +cat > common/websockets_method_reg.hpp << 'EOF' +#pragma once +#include +#include "httppeer.h" +#include "websockets_callback.h" + +namespace http +{ +void _initwebsocketmethodregto(WEBSOCKET_REG &methodcallback) +{ +} + +}// namespace http +EOF + +# mqtt_method_reg.hpp — inbound MQTT handlers. Included UNCONDITIONALLY by +# vendor/httpserver/src/mqtt_reg.cpp and server.cpp, so the signature and the +# table-type include must stay; only the body is emptied. +cat > common/mqtt_method_reg.hpp << 'EOF' +#pragma once +#include "mqtt_reg.h" +#include "mqtt_session.h" + +namespace http +{ +// Business mqtt_api subclasses live in mqtt/ and are included + emplaced here +// (reg_key is the Client ID prefix). +inline void _initmqttmethodregto(MQTT_REG ®) +{ +} + +}// namespace http +EOF + +# The four resident outbound-client registries below are each double-guarded: +# server.cpp includes them inside #ifdef ENABLE_*_CLIENT, and the file body is +# wrapped in the same #ifdef. Keep the guard + the table-type include so the +# name stays available in both build tiers; only the emplace lines are removed. + +# redis_regmethod.hpp — keep redis_subpub_reg.h (defines REDIS_SUBPUB_REG) +cat > common/redis_regmethod.hpp << 'EOF' +#pragma once + +#ifdef ENABLE_REDIS_CLIENT +// Business pz::redis::redis_subpub_client subclasses live in redis/ and are +// included + emplaced here; server.cpp spawns one resident coroutine per entry. +#include "redis_subpub_reg.h" + +namespace http +{ + +inline void _initredissubpubregto(pz::redis::REDIS_SUBPUB_REG ®) +{ +} + +} // namespace http + +#endif // ENABLE_REDIS_CLIENT +EOF + +# ws_client_regmethod.hpp — keep ws_subpub_reg.h (defines WS_SUBPUB_REG) +cat > common/ws_client_regmethod.hpp << 'EOF' +#pragma once + +#ifdef ENABLE_WEBSOCKETS_CLIENT +// Business http::ws_subpub_client subclasses live in websockets/ and are +// included + emplaced here; server.cpp spawns one resident coroutine per entry. +#include "ws_subpub_reg.h" + +namespace http +{ + +inline void _initwssubpubregto(http::WS_SUBPUB_REG ®) +{ +} + +} // namespace http + +#endif // ENABLE_WEBSOCKETS_CLIENT +EOF + +# sock_client_regmethod.hpp — keep sock_subpub_reg.h (defines SOCK_SUBPUB_REG) +cat > common/sock_client_regmethod.hpp << 'EOF' +#pragma once + +#ifdef ENABLE_SOCKETS_CLIENT +// Business http::sock_subpub_client subclasses live in sockets/ and are +// included + emplaced here; server.cpp spawns one resident coroutine per entry. +#include "sock_subpub_reg.h" + +namespace http +{ + +inline void _initsockssubpubregto(http::SOCK_SUBPUB_REG ®) +{ +} + +} // namespace http + +#endif // ENABLE_SOCKETS_CLIENT +EOF + +# mqtt_client_regmethod.hpp — keep mqtt_subpub_reg.h (defines MQTT_SUBPUB_REG) +cat > common/mqtt_client_regmethod.hpp << 'EOF' +#pragma once + +#ifdef ENABLE_MQTT_CLIENT +// Business http::mqtt_subpub_client subclasses live in mqtt/ and are included + +// emplaced here; server.cpp spawns one resident coroutine per entry (outbound +// to an external broker). +#include "mqtt_subpub_reg.h" + +namespace http +{ + +inline void _initmqttsubpubregto(http::MQTT_SUBPUB_REG ®) +{ +} + +} // namespace http + +#endif // ENABLE_MQTT_CLIENT +EOF + +echo " OK cleaned 11 registration files:" +echo " http: autocontrolmethod / autorestfulpaths / reghttpmethod /" +echo " reghttpmethod_pre" +echo " inbound: sockets_method_reg / websockets_method_reg / mqtt_method_reg" +echo " resident: redis_regmethod / ws_client_regmethod / sock_client_regmethod /" +echo " mqtt_client_regmethod" + +# ============================================================ +# Step 2 — Remove resident-client and business demo code +# redis/ mqtt/ sockets/ websockets/ are header-only demo clients +# (echo_* / my_test_* / *_websockets.hpp). Their only consumers are the +# registration files emptied in Step 1, and CMake adds them as include +# directories only — nothing is compiled out of them — so the content goes +# and the directories stay for business clients. +# +# libs/webpay/ is the order/pay-channel layer bound to the [cms] tables; it +# is globbed into the build by file(GLOB_RECURSE reflect_list ... libs/*.cpp) +# (CMake) and add_files("libs/**.cpp") (xmake), so leaving it in a scaffold +# that has no generated ORM makes the build fail on the first business model. +# libs/oauth/ is the OAuth 2.1 authorization-server store, same reason: its +# oauth_store.cpp includes "orm.h" for the three oauth_* tables of [cms]. +# libs/github/ is the GitHub OAuth store, same reason: its github_store.cpp +# includes "orm.h" for the user binding tables. +# libs/oauth_client/ is the generic OAuth 2.x client library——no ORM +# dependency (only httpclient + SHA-256 + base64url), kept in scaffolds. +# libs/rbac/ is the RBAC runtime (sysrole / sysperms / sysuserrole of [cms]), +# same reason as webpay/oauth/github; the route hook it installs is guarded by +# the // paozhu-rbac sentinels in startup/main_dev.cpp and startup/main_daemon.cpp +# and those blocks are removed together with it. +# The other libs/ directories (img / markdown / pinyin / ipdata / types / +# department) are framework utilities with no ORM dependency and are kept. +# ============================================================ +echo "" +echo "[Step 2/${TOTAL_STEPS}] Removing demo code (redis/ mqtt/ sockets/ websockets/ libs/webpay/ libs/oauth/ libs/github/ libs/rbac/)..." + +for demo_dir in redis mqtt sockets websockets; do + rm -rf "$demo_dir"/* 2>/dev/null || true + mkdir -p "$demo_dir" +done + +rm -rf libs/webpay/* 2>/dev/null || true +mkdir -p libs/webpay + +rm -rf libs/oauth/* 2>/dev/null || true +mkdir -p libs/oauth + +rm -rf libs/github/* 2>/dev/null || true +mkdir -p libs/github + +# libs/rbac/ is the RBAC runtime (rbac.cpp / route_cache.cpp / route_guard.cpp): +# it includes "orm.h" for the sysrole / sysperms / sysuserrole tables of [cms], +# so it is globbed into the build like the three directories above and must go. +rm -rf libs/rbac/* 2>/dev/null || true +mkdir -p libs/rbac + +# The RBAC route hook is installed by the app entry points, between the +# // paozhu-rbac:begin / // paozhu-rbac:end sentinels. With libs/rbac emptied, +# those two blocks are the only references left, so cut them out; the router +# then never calls a hook and mask-code routes would 403 by themselves. +# NB: the print rule is `skip == 0`, not `!skip` — a `!` inside the program +# text is escaped by some shells and awk then refuses to parse the program. +rbac_strip_awk=' +/^[[:space:]]*\/\/ paozhu-rbac:begin[[:space:]]*$/ { skip = 1 } +/^[[:space:]]*\/\/ paozhu-rbac:end[[:space:]]*$/ { skip = 0; next } +skip == 0 +' +for entry_file in startup/main_dev.cpp startup/main_daemon.cpp; do + if [ -f "$entry_file" ]; then + before_lines=$(grep -c "" "$entry_file") + awk "$rbac_strip_awk" "$entry_file" > "$entry_file.tmp" && mv "$entry_file.tmp" "$entry_file" + left=$(grep -c "paozhu-rbac\|install_route_guard" "$entry_file") || true + after_lines=$(grep -c "" "$entry_file") + echo " OK $entry_file: $before_lines → $after_lines lines, rbac references left: $left" + fi +done + +echo " OK redis/ mqtt/ sockets/ websockets/ libs/webpay/ libs/oauth/ libs/github/ libs/rbac/ emptied (directories kept)" +echo " OK startup/main_dev.cpp + startup/main_daemon.cpp: paozhu-rbac blocks removed" + +# ============================================================ +# Step 3 — Remove ORM layer +# models/* schema/* orm/* (directories themselves kept) +# +# One file is kept: an empty orm/orm.h. Business code does +# #include "orm.h" (the ORM unified entry) and CMake only puts orm/ on the +# include path because it exists, so deleting it too makes every remaining +# consumer — including code the scaffold author writes later — fail with +# "orm.h: 没有那个文件或目录" instead of compiling until a model is actually +# used. `paozhu_cli orm ` overwrites this placeholder with the generated +# per-tag model includes. +# ============================================================ +echo "" +echo "[Step 3/${TOTAL_STEPS}] Removing ORM layer (models/ schema/ orm/)..." + +rm -rf models/* +rm -rf schema/* +rm -rf orm/* +mkdir -p orm + +cat > orm/orm.h << 'EOF' +// ORM unified entry — placeholder kept by mini_project.sh. +// Run ./bin/paozhu_cli orm to generate the models, this file is then +// rewritten with one #include per generated model of every tag. +EOF + +echo " OK models/ schema/ orm/ emptied (empty orm/orm.h kept)" + +# ============================================================ +# Step 4 — Clean view files (keep registration skeleton) +# 4.1 Remove viewsrc/view/, empty view/ (directory kept) +# 4.2 Empty the namespace view body inside viewsrc/include/viewsrc.h +# 4.3 Empty function bodies in viewsrc/include/regviewmethod.hpp +# ============================================================ +echo "" +echo "[Step 4/${TOTAL_STEPS}] Cleaning view files..." + +# 4.1 Remove the compiled view sources; empty view/ but keep the directory. +# view/ is an INPUT: paozhu_cli view only warns "view directory not in +# current path" when it is missing and never creates it, so leave an empty +# dir behind. viewsrc/view/ is an OUTPUT — the generator create_directories() +# the destination before writing, so that one may go. +rm -rf viewsrc/view/ +rm -rf view/* +mkdir -p view + +# 4.2 Empty the internal namespace in viewsrc.h +cat > viewsrc/include/viewsrc.h << 'EOF' +#ifndef __HTTP_VIEWSRC_ALL_METHOD_H +#define __HTTP_VIEWSRC_ALL_METHOD_H + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma once +#endif // defined(_MSC_VER) && (_MSC_VER >= 1200) + +#include +#include +#include +#include "request.h" +#include "viewso_param.h" + +namespace http { +namespace view { + +} + +} +#endif +EOF + +# 4.3 Empty the function body in regviewmethod.hpp +cat > viewsrc/include/regviewmethod.hpp << 'EOF' +#ifndef __HTTP_REG_VIEW_METHOD_HPP +#define __HTTP_REG_VIEW_METHOD_HPP + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma once +#endif // defined(_MSC_VER) && (_MSC_VER >= 1200) + +#include +#include +#include +#include "request.h" +#include "viewso_param.h" +#include "viewmethold_reg.h" +#include "viewsrc.h" + +namespace http +{ + void _initview_method_regto(VIEW_REG &_viewmetholdreg) + { + } +} +#endif +EOF + +echo " OK viewsrc/view/ removed, view/ emptied (directory kept)" +echo " OK viewsrc.h / regviewmethod.hpp registration content emptied" + +# 4.4 Clean www/default, keep only index.html (content: Hello World! Paozhu) +rm -rf www/default/* +echo "Hello World! Paozhu" > www/default/index.html +echo " OK www/default cleaned, only index.html kept" + +# ============================================================ +# Step 5 — Clean controller +# Normal mode: keep testhello.cpp + serverwatch.cpp +# Benchmark mode: delete all (techempower overlaid next) +# +# serverwatch.cpp is kept in normal mode because router looks up the handler +# frametasks_timeloop BY NAME (call_sync_regfun / find_sitecontent): without +# that file no interval task is ever registered and the only trace is a +# "frametasks_timeloop not registered" debug log. It also carries the +# /paozhu_status and /paozhu_routes self-check pages. +# ============================================================ +echo "" +if [ "$BENCHMARK_MODE" -eq 1 ]; then + echo "[Step 5/${TOTAL_STEPS}] Cleaning controller (benchmark mode: delete all)..." + rm -rf controller/include/* + find controller/src -type f -delete + find controller/src -mindepth 1 -type d -empty -delete 2>/dev/null || true + echo " OK controller emptied (techempower to be overlaid)" +else + echo "[Step 5/${TOTAL_STEPS}] Cleaning controller (keep testhello.cpp + serverwatch.cpp)..." + rm -rf controller/include/* + find controller/src -type f ! -name 'testhello.cpp' ! -name 'serverwatch.cpp' -delete + find controller/src -mindepth 1 -type d -empty -delete 2>/dev/null || true + echo " OK controller: testhello.cpp + serverwatch.cpp kept" +fi + +# ============================================================ +# Step 6 — Benchmark mode: overlay TechEmpower benchmark files +# Copy business files from Benchmark/paozhu_benchmark/ +# Do NOT overwrite framework files (CMakeLists.txt / vendor / startup / etc.) +# ============================================================ +if [ "$BENCHMARK_MODE" -eq 1 ]; then + echo "" + echo "[Step 6/${TOTAL_STEPS}] Overlaying TechEmpower benchmark files..." + + if [ ! -d "$BENCHMARK_SRC" ]; then + echo "ERROR: Benchmark source dir not found: $BENCHMARK_SRC" + exit 1 + fi + + # controller: techempower + mkdir -p controller/include controller/src + cp "$BENCHMARK_SRC/controller/include/techempower.h" controller/include/ + cp "$BENCHMARK_SRC/controller/src/techempower.cpp" controller/src/ + echo " OK controller: techempower" + + # models: World, Fortune + rm -rf models/* + mkdir -p models/include + cp -r "$BENCHMARK_SRC/models/." models/ + echo " OK models: World, Fortune" + + # orm: world_base, fortune_base + rm -rf orm/* + cp -r "$BENCHMARK_SRC/orm/." orm/ + echo " OK orm: world_base, fortune_base" + + # libs/types: techempower_json + rm -f libs/types/techempower_json.h libs/types/techempower_json_jsonreflect.cpp + cp "$BENCHMARK_SRC/libs/types/techempower_json.h" libs/types/ + cp "$BENCHMARK_SRC/libs/types/techempower_json_jsonreflect.cpp" libs/types/ + echo " OK libs/types: techempower_json" + + # view: fortunes.html + rm -rf view/* + mkdir -p view/techempower + cp "$BENCHMARK_SRC/view/techempower/fortunes.html" view/techempower/ + echo " OK view: fortunes.html" + + # viewsrc: viewsrc.h, regviewmethod.hpp, fortunes.cpp + rm -rf viewsrc/* + cp -r "$BENCHMARK_SRC/viewsrc/." viewsrc/ + echo " OK viewsrc: viewsrc.h / regviewmethod.hpp / fortunes.cpp" + + # common registration files: techempower versions of autocontrolmethod / json_reflect_headers + cp "$BENCHMARK_SRC/common/autocontrolmethod.hpp" common/ + cp "$BENCHMARK_SRC/common/json_reflect_headers.h" common/ + echo " OK common: autocontrolmethod.hpp / json_reflect_headers.h" + + # conf: server.conf (port 8888), orm.conf (tfb-database) + cp "$BENCHMARK_SRC/conf/server.conf" conf/ + cp "$BENCHMARK_SRC/conf/orm.conf" conf/ + echo " OK conf: server.conf (8888) / orm.conf (tfb-database)" +fi + +# ============================================================ +# Done +# ============================================================ +echo "" +echo "==============================================" +echo " Cleanup complete!" +echo "==============================================" +echo "" +if [ "$BENCHMARK_MODE" -eq 1 ]; then + echo "Mode: TechEmpower Benchmark" + echo "Entry: startup/main_docker.cpp (CMakeLists.txt default ENABLE_BENCHMARK=ON)" + echo "Port: 8888" + echo "" + echo "Build:" + echo " cmake . -B build -DCMAKE_BUILD_TYPE=Release" + echo " cmake --build build -j\$(nproc)" + echo "" + echo "Benchmark endpoints: /json /plaintext /db /queries /fortunes /updates" +else + echo "Mode: Clean scaffold (framework core + testhello)" + echo "" + echo "Build:" + echo " cd build && cmake .. && make -j\$(sysctl -n hw.ncpu)" + echo "" + echo "Start and visit http://127.0.0.1/hello to verify" + echo "" + echo "Resident outbound clients: 0 registered." + echo " The client classes themselves are framework code and still build —" + echo " CMakeLists.txt defaults ENABLE_WEBSOCKETS/SOCKETS/MQTT_CLIENT to ON," + echo " so startup prints \"[ws_subpub] init: registered 0 clients\" and the like." + echo " To add one: put the subclass in redis/ mqtt/ sockets/ websockets/ and" + echo " emplace it in the matching common/*_regmethod.hpp skeleton." + echo "" + echo "RBAC route hook: not installed (libs/rbac/ emptied, // paozhu-rbac blocks" + echo " removed from the two entry points). mask_code == 0 routes — which is every" + echo " route left here — never consult it, so /hello and /paozhu_status behave as" + echo " before. A route registered with a non-zero maskcode would answer 403." +fi +echo "" + +# ---- Self-cleanup: rename to .bak so the trimmed scaffold is clean ---- +if [ -f "mini_project.sh" ]; then + mv -f mini_project.sh mini_project.sh.bak + echo "[Self] mini_project.sh renamed → mini_project.sh.bak" +fi diff --git a/frameworks/paozhu/src/startup/main_docker.cpp b/frameworks/paozhu/src/startup/main_docker.cpp new file mode 100755 index 0000000000..3cfc0f3a93 --- /dev/null +++ b/frameworks/paozhu/src/startup/main_docker.cpp @@ -0,0 +1,124 @@ +// Pinned for 903cbd82 (identical to upstream; kept under this entry's control). +// Refresh from PAOZHU_REF when bumping the upstream revision. + +#include +#include +#include +#include +#include +#include +#include +#include "server.h" + +namespace fs = std::filesystem; + +// Docker 模式: 直接前台运行, PID 1 = 服务进程 +// - 不 fork, 让 Docker 管理进程生命周期 +// - 捕获 SIGTERM/SIGINT 优雅关闭 (关闭 acceptor → listener 线程退出 → join 完成) +// - 崩溃重启由 compose 的 restart: unless-stopped 负责 + +// 信号处理器只置标志位:stop() 会取互斥锁、join 线程,在信号上下文里调用属于未定义行为。 +// Signal handler only sets a flag: stop() takes mutexes and joins threads, which is +// undefined behaviour inside a signal context. +static volatile sig_atomic_t g_stop_requested = 0; +static std::atomic g_run_finished{false}; + +static void signal_handler(int signo) +{ + (void)signo; + g_stop_requested = 1; +} + +int main(int argc, char *argv[]) +{ + std::string argv_str; + if (argc > 1) + { + // server.conf filepath or confpath + argv_str.append(argv[1]); + fs::path conf_path = argv_str; + if (!fs::is_regular_file(conf_path)) + { + if (argv_str.back() == '/') + { + argv_str = argv_str + "server.conf"; + } + else + { + argv_str = argv_str + "/server.conf"; + } + conf_path = argv_str; + if (!fs::is_regular_file(conf_path)) + { + // 容器里这条路径尤其要响:静默 return 0 会被 docker 当成"正常跑完", + // restart 策略再把同一个失败重复一遍,日志里一行线索都没有。 + std::cerr << "paozhu: server.conf not found, tried: " << argv[1] << " and " + << argv_str << "\n"; + return 1; + } + } + } + else + { + fs::path conf_path = fs::current_path(); + argv_str = conf_path.string() + "/conf/server.conf"; + conf_path = argv_str; + if (!fs::is_regular_file(conf_path)) + { + argv_str = "/usr/local/etc/paozhu/server.conf"; + conf_path = argv_str; + if (!fs::is_regular_file(conf_path)) + { + // 这里的候选只有两条,比配置加载器(serverconfig::init_path)少一条 + // /etc/paozhu/conf/server.conf:装在那儿的部署走不到加载器就先退出了。 + std::cerr << "paozhu: server.conf not found, tried: " << argv_str + << " and /usr/local/etc/paozhu/server.conf; mount the conf dir or pass the path\n"; + return 1; + } + } + } + + // 注册信号: docker stop 发送 SIGTERM, Ctrl+C 发送 SIGINT + // Windows 无 SIGTERM, 仅注册 SIGINT +#ifdef _WIN32 + std::signal(SIGINT, signal_handler); +#else + std::signal(SIGTERM, signal_handler); + std::signal(SIGINT, signal_handler); +#endif + + // 轮询线程负责真正调用 stop():信号处理器只置位,由普通线程上下文完成 + // 关 acceptor、唤醒 listener、join 这一整套动作。 + // The poller performs the real stop() from a normal thread context. + std::thread stopper; + try + { + http::httpserver &httpmy = http::get_server_app(); + stopper = std::thread( + [&httpmy]() + { + while (!g_run_finished.load()) + { + if (g_stop_requested != 0) + { + httpmy.stop(); + return; + } + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + } + }); + + httpmy.run(argv_str); + } + catch (std::exception &e) + { + std::printf("Exception: %s\n", e.what()); + } + // 无论 run() 正常返回还是异常退出,都要让轮询线程收尾,避免 joinable 线程析构 + g_run_finished.store(true); + if (stopper.joinable()) + { + stopper.join(); + } + return 0; +} From 15e347be9c8959522050a684468c4562e9965894 Mon Sep 17 00:00:00 2001 From: hzq Date: Sun, 8 Nov 2026 14:46:53 +0800 Subject: [PATCH 02/89] Add Paozhu http1 post chunked --- frameworks/paozhu/Dockerfile | 4 ++-- frameworks/paozhu/README.md | 8 ++++---- frameworks/paozhu/src/CMakeLists.txt | 2 +- frameworks/paozhu/src/mini_project.sh | 2 +- frameworks/paozhu/src/startup/main_docker.cpp | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 9adededeea..f2023e8249 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=903cbd82c795330fd53f81a59305ef3c0feec240 +ARG PAOZHU_REF=25104601b49fdbdedb36e5fb1a47b67206c0bc5c WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct @@ -45,7 +45,7 @@ RUN if [ -f /ctx/vendor/paozhu-src.tar.gz ]; then \ # Upstream's clean-project initializer empties the ORM/view/demo layers and # leaves only the framework core; paozhu_pre (run by CMake at build time) # regenerates the router table from controller/src/*.cpp. The pinned copy in -# src/ carries one fix for 903cbd82: its Step 2 aborts under `set -e` when +# src/ carries one fix for 25104601: its Step 2 aborts under `set -e` when # `grep -c` finds no RBAC markers in the stripped entry points. COPY src/mini_project.sh /paozhu/mini_project.sh RUN bash mini_project.sh && \ diff --git a/frameworks/paozhu/README.md b/frameworks/paozhu/README.md index 6ce4150d0e..3f99bcf90f 100644 --- a/frameworks/paozhu/README.md +++ b/frameworks/paozhu/README.md @@ -7,18 +7,18 @@ C++20 web framework entry built from the upstream [paozhu](https://github.com/hg - **Language:** C++20 - **Engine:** paozhu (standalone Asio event loop, native HTTP/2) - **Build:** `debian:bookworm` → `debian:bookworm-slim`, GCC with `-O3 -march=native`, `-DENABLE_BENCHMARK=ON` -- **Source:** upstream commit pinned by the `PAOZHU_REF` build arg (`903cbd82`, `v1.17.4-9`); local development tree is `/Users/hzq/paozhu`. When `vendor/paozhu-src.tar.gz` is present the Dockerfile unpacks that archive instead and `PAOZHU_REF` is ignored. +- **Source:** upstream commit pinned by the `PAOZHU_REF` build arg (`25104601`, `v1.17.4-12`); local development tree is `/Users/hzq/paozhu`. When `vendor/paozhu-src.tar.gz` is present the Dockerfile unpacks that archive instead and `PAOZHU_REF` is ignored. ## Pinned `CMakeLists.txt` -paozhu is not a linkable library: the app *is* a paozhu project, and its build definition has to reproduce the whole upstream graph (globbing `vendor/`, `libs/`, `common/`, `controller/`, running `paozhu_pre` to generate the router table and linking OpenSSL/zlib/brotli). `src/CMakeLists.txt` is a checked-in snapshot of that file at `903cbd82`, so the Dockerfile no longer patches upstream text at build time. It has exactly two local changes: +paozhu is not a linkable library: the app *is* a paozhu project, and its build definition has to reproduce the whole upstream graph (globbing `vendor/`, `libs/`, `common/`, `controller/`, running `paozhu_pre` to generate the router table and linking OpenSSL/zlib/brotli). `src/CMakeLists.txt` is a checked-in snapshot of that file at `25104601`, so the Dockerfile no longer patches upstream text at build time. It has exactly two local changes: 1. `option(ENABLE_BENCHMARK "Enable benchmarks" ON)` — benchmark tier is the default for any `cmake` invocation, not just one with `-D`. `BENCHMARK` drops per-request logging, keepalive/stream caps and the disk pre-check for dotted URLs (which would otherwise shadow `/static/:filename`). 2. Both branches of the `add_executable` generator expression point at `startup/main_docker.cpp` — the upstream Release default `main_daemon.cpp` forks and would make PID 1 exit immediately. `Dockerfile` copies this file over the unpacked upstream tree after `mini_project.sh`. When bumping `PAOZHU_REF`, refresh the snapshot and re-apply those two changes; the pinned upstream source still supplies everything else the file globs. -`src/mini_project.sh` is pinned for the same reason. Upstream `903cbd82` aborts its Step 2 under `set -euo pipefail`: `left=$(grep -c ...)` returns 1 once no RBAC markers remain in the stripped `startup/main_dev.cpp`, so the ORM/view layers are never cleared. The checked-in copy adds `|| true` to that single assignment (verified end-to-end); refresh it together with the CMakeLists snapshot when bumping `PAOZHU_REF`. +`src/mini_project.sh` is pinned for the same reason. Upstream `25104601` aborts its Step 2 under `set -euo pipefail`: `left=$(grep -c ...)` returns 1 once no RBAC markers remain in the stripped `startup/main_dev.cpp`, so the ORM/view layers are never cleared. The checked-in copy adds `|| true` to that single assignment (verified end-to-end); refresh it together with the CMakeLists snapshot when bumping `PAOZHU_REF`. `src/startup/main_docker.cpp` is pinned too (byte-identical to upstream apart from a header comment): it resolves `argv[1]` to a conf file and installs the SIGTERM handler that the two-conf-dir layout relies on. `mini_project.sh` leaves `startup/` alone, so the file is simply copied over the unpacked tree. @@ -74,4 +74,4 @@ Static files are read on every request (no preloaded copy), so a replaced file i - On slow or offline networks, ship a source archive in the build context instead of downloading it: `git -C /Users/hzq/paozhu archive --format=tar.gz --prefix=paozhu-/ -o frameworks/paozhu/vendor/paozhu-src.tar.gz HEAD`. The Dockerfile prefers `vendor/paozhu-src.tar.gz` when present. The archive is ~36 MB and is deliberately not checked in. - `APT_MIRROR` is an optional build arg for networks where `deb.debian.org` is slow, e.g. `--build-arg APT_MIRROR=mirrors.aliyun.com`; empty keeps the distro default. - Local development: `docker build -t httparena-paozhu frameworks/paozhu && VALIDATE_SKIP_BUILD=1 ./scripts/validate.sh paozhu`. Without `VALIDATE_SKIP_BUILD=1`, `validate.sh` rebuilds with `--no-cache` and repeats the full C++ compile. `PAOZHU_REF` can be overridden with `--build-arg PAOZHU_REF=`. -- Measured on a 4-core / 16 GB Ubuntu 26.04 host: `validate.sh paozhu` reports **59 passed, 3 failed** with `async-db`, `fortunes` and `json-h2c` subscribed (all 11 of their checks pass; the DB profiles use a `postgres:18` sidecar), TLS verdict **pass**. A 300-request / 64-parallel `/async-db` plus 150-request / 64-parallel `/fortunes` smoke run returned 200 for every request with 129 live PG connections. The three failures are all chunked POST bodies: paozhu rejects every `Transfer-Encoding` header during header parsing with `400 Bad Request / Error Code 40098` (`vendor/httpserver/src/http_parse.cpp:1045`), and its own test `g9_transfer_encoding_refused_at_header_stage` asserts that behaviour. There is no chunked decoder to enable, so this is a framework capability limit rather than an entry misconfiguration; a fully green baseline would require patching paozhu's HTTP/1 parser. +- Measured on a 4-core / 16 GB Ubuntu 26.04 host with `PAOZHU_REF=25104601` ("Add http1 post chunked"): `validate.sh paozhu` reports **62 passed, 0 failed**. All three chunked POST checks now pass (`POST /baseline11` with a chunked body and both fragmented chunked-pipeline cases), alongside `async-db`, `fortunes` and `json-h2c` (all 11 of their checks pass; the DB profiles use a `postgres:18` sidecar). TLS verdict **pass**. A 300-request / 64-parallel `/async-db` plus 150-request / 64-parallel `/fortunes` smoke run returned 200 for every request with 129 live PG connections. Upstream `http_parse.cpp` now decodes `Transfer-Encoding: chunked` into `peer->files["rawcontent"]["tempfile"]`, which is exactly what `raw_body()` in `arena.cpp` reads, so no entry-side change was needed; `40098` is only returned for HTTP/1.0 or malformed transfer encodings. diff --git a/frameworks/paozhu/src/CMakeLists.txt b/frameworks/paozhu/src/CMakeLists.txt index bfdbd15b1c..aab0d1e75e 100644 --- a/frameworks/paozhu/src/CMakeLists.txt +++ b/frameworks/paozhu/src/CMakeLists.txt @@ -1,5 +1,5 @@ # Pinned build definition for the HttpArena paozhu entry. -# Snapshot of upstream CMakeLists.txt at 903cbd82c795330fd53f81a59305ef3c0feec240. +# Snapshot of upstream CMakeLists.txt at 25104601b49fdbdedb36e5fb1a47b67206c0bc5c. # Local changes: ENABLE_BENCHMARK defaults to ON, and both build configs compile # startup/main_docker.cpp (foreground Docker entry) instead of the forking # main_daemon.cpp / interactive main_dev.cpp. diff --git a/frameworks/paozhu/src/mini_project.sh b/frameworks/paozhu/src/mini_project.sh index 30ef2db7c3..ece7c4b1ec 100755 --- a/frameworks/paozhu/src/mini_project.sh +++ b/frameworks/paozhu/src/mini_project.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Pinned for 903cbd82: upstream Step 2 aborts under set -e when grep -c +# Pinned for 25104601: upstream Step 2 aborts under set -e when grep -c # finds no RBAC markers; the left=... assignment below has || true added. # Refresh from PAOZHU_REF when bumping the upstream revision. # diff --git a/frameworks/paozhu/src/startup/main_docker.cpp b/frameworks/paozhu/src/startup/main_docker.cpp index 3cfc0f3a93..0c62285d48 100755 --- a/frameworks/paozhu/src/startup/main_docker.cpp +++ b/frameworks/paozhu/src/startup/main_docker.cpp @@ -1,4 +1,4 @@ -// Pinned for 903cbd82 (identical to upstream; kept under this entry's control). +// Pinned for 25104601 (identical to upstream; kept under this entry's control). // Refresh from PAOZHU_REF when bumping the upstream revision. #include From da7f6c3830e589e5f4544f1794ee20120ed8e9dd Mon Sep 17 00:00:00 2001 From: hzq Date: Mon, 9 Nov 2026 01:23:41 +0800 Subject: [PATCH 03/89] Add paozhu --- frameworks/paozhu/meta.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/meta.json b/frameworks/paozhu/meta.json index d34da7205f..4b3e7dcd81 100644 --- a/frameworks/paozhu/meta.json +++ b/frameworks/paozhu/meta.json @@ -14,7 +14,7 @@ "repo": "https://github.com/hggq/paozhu", "enabled": true, "tests": [ - "baseline", + "baseline","latency-1m", "latency-10k", "latency-500k-8cpu", "pipelined", "limited-conn", "json-tls", From 5be39cea85bcc670b2cb30918675c6d6188a3f1e Mon Sep 17 00:00:00 2001 From: hzq Date: Mon, 9 Nov 2026 10:11:13 +0800 Subject: [PATCH 04/89] Add Paozhu --- frameworks/paozhu/Dockerfile | 6 +++--- frameworks/paozhu/README.md | 4 ++-- frameworks/paozhu/src/CMakeLists.txt | 2 +- frameworks/paozhu/src/mini_project.sh | 2 +- frameworks/paozhu/src/startup/main_docker.cpp | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index f2023e8249..dd309b8da8 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=25104601b49fdbdedb36e5fb1a47b67206c0bc5c +ARG PAOZHU_REF=71305087d905da641b6f55eac1781566341ebbc6 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct @@ -45,8 +45,8 @@ RUN if [ -f /ctx/vendor/paozhu-src.tar.gz ]; then \ # Upstream's clean-project initializer empties the ORM/view/demo layers and # leaves only the framework core; paozhu_pre (run by CMake at build time) # regenerates the router table from controller/src/*.cpp. The pinned copy in -# src/ carries one fix for 25104601: its Step 2 aborts under `set -e` when -# `grep -c` finds no RBAC markers in the stripped entry points. +# src/ carries one fix (still needed at 71305087): its Step 2 aborts under +# `set -e` when `grep -c` finds no RBAC markers in the stripped entry points. COPY src/mini_project.sh /paozhu/mini_project.sh RUN bash mini_project.sh && \ rm -f controller/src/*.cpp && \ diff --git a/frameworks/paozhu/README.md b/frameworks/paozhu/README.md index 3f99bcf90f..c4f2cdc0fd 100644 --- a/frameworks/paozhu/README.md +++ b/frameworks/paozhu/README.md @@ -7,11 +7,11 @@ C++20 web framework entry built from the upstream [paozhu](https://github.com/hg - **Language:** C++20 - **Engine:** paozhu (standalone Asio event loop, native HTTP/2) - **Build:** `debian:bookworm` → `debian:bookworm-slim`, GCC with `-O3 -march=native`, `-DENABLE_BENCHMARK=ON` -- **Source:** upstream commit pinned by the `PAOZHU_REF` build arg (`25104601`, `v1.17.4-12`); local development tree is `/Users/hzq/paozhu`. When `vendor/paozhu-src.tar.gz` is present the Dockerfile unpacks that archive instead and `PAOZHU_REF` is ignored. +- **Source:** upstream commit pinned by the `PAOZHU_REF` build arg (`71305087`, `v1.17.4-16`); local development tree is `/Users/hzq/paozhu`. When `vendor/paozhu-src.tar.gz` is present the Dockerfile unpacks that archive instead and `PAOZHU_REF` is ignored. ## Pinned `CMakeLists.txt` -paozhu is not a linkable library: the app *is* a paozhu project, and its build definition has to reproduce the whole upstream graph (globbing `vendor/`, `libs/`, `common/`, `controller/`, running `paozhu_pre` to generate the router table and linking OpenSSL/zlib/brotli). `src/CMakeLists.txt` is a checked-in snapshot of that file at `25104601`, so the Dockerfile no longer patches upstream text at build time. It has exactly two local changes: +paozhu is not a linkable library: the app *is* a paozhu project, and its build definition has to reproduce the whole upstream graph (globbing `vendor/`, `libs/`, `common/`, `controller/`, running `paozhu_pre` to generate the router table and linking OpenSSL/zlib/brotli). `src/CMakeLists.txt` is a checked-in snapshot of that file at `71305087`, so the Dockerfile no longer patches upstream text at build time. It has exactly two local changes: 1. `option(ENABLE_BENCHMARK "Enable benchmarks" ON)` — benchmark tier is the default for any `cmake` invocation, not just one with `-D`. `BENCHMARK` drops per-request logging, keepalive/stream caps and the disk pre-check for dotted URLs (which would otherwise shadow `/static/:filename`). 2. Both branches of the `add_executable` generator expression point at `startup/main_docker.cpp` — the upstream Release default `main_daemon.cpp` forks and would make PID 1 exit immediately. diff --git a/frameworks/paozhu/src/CMakeLists.txt b/frameworks/paozhu/src/CMakeLists.txt index aab0d1e75e..157454939f 100644 --- a/frameworks/paozhu/src/CMakeLists.txt +++ b/frameworks/paozhu/src/CMakeLists.txt @@ -1,5 +1,5 @@ # Pinned build definition for the HttpArena paozhu entry. -# Snapshot of upstream CMakeLists.txt at 25104601b49fdbdedb36e5fb1a47b67206c0bc5c. +# Snapshot of upstream CMakeLists.txt at 71305087d905da641b6f55eac1781566341ebbc6. # Local changes: ENABLE_BENCHMARK defaults to ON, and both build configs compile # startup/main_docker.cpp (foreground Docker entry) instead of the forking # main_daemon.cpp / interactive main_dev.cpp. diff --git a/frameworks/paozhu/src/mini_project.sh b/frameworks/paozhu/src/mini_project.sh index ece7c4b1ec..19baf4cd0a 100755 --- a/frameworks/paozhu/src/mini_project.sh +++ b/frameworks/paozhu/src/mini_project.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Pinned for 25104601: upstream Step 2 aborts under set -e when grep -c +# Pinned for 71305087: upstream Step 2 aborts under set -e when grep -c # finds no RBAC markers; the left=... assignment below has || true added. # Refresh from PAOZHU_REF when bumping the upstream revision. # diff --git a/frameworks/paozhu/src/startup/main_docker.cpp b/frameworks/paozhu/src/startup/main_docker.cpp index 0c62285d48..651612e32a 100755 --- a/frameworks/paozhu/src/startup/main_docker.cpp +++ b/frameworks/paozhu/src/startup/main_docker.cpp @@ -1,4 +1,4 @@ -// Pinned for 25104601 (identical to upstream; kept under this entry's control). +// Pinned for 71305087 (identical to upstream; kept under this entry's control). // Refresh from PAOZHU_REF when bumping the upstream revision. #include From 5cd63b209845e20011de3ed665419b96b096252e Mon Sep 17 00:00:00 2001 From: hzq Date: Mon, 9 Nov 2026 19:14:07 +0800 Subject: [PATCH 05/89] Add paozhu --- frameworks/paozhu/README.md | 4 ++-- frameworks/paozhu/meta.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/paozhu/README.md b/frameworks/paozhu/README.md index c4f2cdc0fd..f88cc6e52f 100644 --- a/frameworks/paozhu/README.md +++ b/frameworks/paozhu/README.md @@ -18,7 +18,7 @@ paozhu is not a linkable library: the app *is* a paozhu project, and its build d `Dockerfile` copies this file over the unpacked upstream tree after `mini_project.sh`. When bumping `PAOZHU_REF`, refresh the snapshot and re-apply those two changes; the pinned upstream source still supplies everything else the file globs. -`src/mini_project.sh` is pinned for the same reason. Upstream `25104601` aborts its Step 2 under `set -euo pipefail`: `left=$(grep -c ...)` returns 1 once no RBAC markers remain in the stripped `startup/main_dev.cpp`, so the ORM/view layers are never cleared. The checked-in copy adds `|| true` to that single assignment (verified end-to-end); refresh it together with the CMakeLists snapshot when bumping `PAOZHU_REF`. +`src/mini_project.sh` is pinned for the same reason. Upstream `71305087` aborts its Step 2 under `set -euo pipefail`: `left=$(grep -c ...)` returns 1 once no RBAC markers remain in the stripped `startup/main_dev.cpp`, so the ORM/view layers are never cleared. The checked-in copy adds `|| true` to that single assignment (verified end-to-end); refresh it together with the CMakeLists snapshot when bumping `PAOZHU_REF`. `src/startup/main_docker.cpp` is pinned too (byte-identical to upstream apart from a header comment): it resolves `argv[1]` to a conf file and installs the SIGTERM handler that the two-conf-dir layout relies on. `mini_project.sh` leaves `startup/` alone, so the file is simply copied over the unpacked tree. @@ -74,4 +74,4 @@ Static files are read on every request (no preloaded copy), so a replaced file i - On slow or offline networks, ship a source archive in the build context instead of downloading it: `git -C /Users/hzq/paozhu archive --format=tar.gz --prefix=paozhu-/ -o frameworks/paozhu/vendor/paozhu-src.tar.gz HEAD`. The Dockerfile prefers `vendor/paozhu-src.tar.gz` when present. The archive is ~36 MB and is deliberately not checked in. - `APT_MIRROR` is an optional build arg for networks where `deb.debian.org` is slow, e.g. `--build-arg APT_MIRROR=mirrors.aliyun.com`; empty keeps the distro default. - Local development: `docker build -t httparena-paozhu frameworks/paozhu && VALIDATE_SKIP_BUILD=1 ./scripts/validate.sh paozhu`. Without `VALIDATE_SKIP_BUILD=1`, `validate.sh` rebuilds with `--no-cache` and repeats the full C++ compile. `PAOZHU_REF` can be overridden with `--build-arg PAOZHU_REF=`. -- Measured on a 4-core / 16 GB Ubuntu 26.04 host with `PAOZHU_REF=25104601` ("Add http1 post chunked"): `validate.sh paozhu` reports **62 passed, 0 failed**. All three chunked POST checks now pass (`POST /baseline11` with a chunked body and both fragmented chunked-pipeline cases), alongside `async-db`, `fortunes` and `json-h2c` (all 11 of their checks pass; the DB profiles use a `postgres:18` sidecar). TLS verdict **pass**. A 300-request / 64-parallel `/async-db` plus 150-request / 64-parallel `/fortunes` smoke run returned 200 for every request with 129 live PG connections. Upstream `http_parse.cpp` now decodes `Transfer-Encoding: chunked` into `peer->files["rawcontent"]["tempfile"]`, which is exactly what `raw_body()` in `arena.cpp` reads, so no entry-side change was needed; `40098` is only returned for HTTP/1.0 or malformed transfer encodings. +- Measured on a 4-core / 16 GB Ubuntu 26.04 host with `PAOZHU_REF=71305087` ("Fix http1 http2 multipart part", `v1.17.4-16`): `validate.sh paozhu` reports **62 passed, 0 failed**. All three chunked POST checks still pass (`POST /baseline11` with a chunked body and both fragmented chunked-pipeline cases), alongside `async-db`, `fortunes` and `json-h2c` (all 11 of their checks pass; the DB profiles use a `postgres:18` sidecar). TLS verdict **pass**. Upstream `http_parse.cpp` decodes `Transfer-Encoding: chunked` into `peer->files["rawcontent"]["tempfile"]`, which is exactly what `raw_body()` in `arena.cpp` reads, so no entry-side change was needed; `40098` is only returned for HTTP/1.0 or malformed transfer encodings. This revision also ships Asio 1.39.0 and fixes multipart part-header parsing; the three pinned files needed no content refresh between `25104601` and `71305087` (only their version comments changed). diff --git a/frameworks/paozhu/meta.json b/frameworks/paozhu/meta.json index 4b3e7dcd81..f6d0710390 100644 --- a/frameworks/paozhu/meta.json +++ b/frameworks/paozhu/meta.json @@ -1,7 +1,7 @@ { "display_name": "paozhu", "language": "C++", - "type": "emerging", + "type": "experimental", "mode": "standard", "completeness": { "routing": true, From 1187d4fabce9566e98ca1ea4fb8e858be572127a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 9 Nov 2026 12:01:59 +0000 Subject: [PATCH 06/89] Benchmark results: paozhu [skip ci] --- site/data/frameworks.json | 14 + site/data/results/paozhu.json | 308 ++++++++++++++++++ site/static/logs/async-db/1024/paozhu.log | 14 + site/static/logs/baseline-h2/1024/paozhu.log | 14 + site/static/logs/baseline-h2/256/paozhu.log | 14 + site/static/logs/baseline/4096/paozhu.log | 14 + site/static/logs/fortunes/1024/paozhu.log | 14 + site/static/logs/json-h2c/1024/paozhu.log | 14 + site/static/logs/json-h2c/4096/paozhu.log | 14 + site/static/logs/json-tls/4096/paozhu.log | 14 + site/static/logs/latency-10k/1024/paozhu.log | 14 + site/static/logs/latency-1m/1024/paozhu.log | 14 + .../logs/latency-500k-8cpu/1024/paozhu.log | 14 + site/static/logs/limited-conn/4096/paozhu.log | 14 + site/static/logs/pipelined/4096/paozhu.log | 14 + site/static/logs/static-h2/1024/paozhu.log | 14 + site/static/logs/static-h2/256/paozhu.log | 14 + 17 files changed, 532 insertions(+) create mode 100644 site/data/results/paozhu.json create mode 100644 site/static/logs/async-db/1024/paozhu.log create mode 100644 site/static/logs/baseline-h2/1024/paozhu.log create mode 100644 site/static/logs/baseline-h2/256/paozhu.log create mode 100644 site/static/logs/baseline/4096/paozhu.log create mode 100644 site/static/logs/fortunes/1024/paozhu.log create mode 100644 site/static/logs/json-h2c/1024/paozhu.log create mode 100644 site/static/logs/json-h2c/4096/paozhu.log create mode 100644 site/static/logs/json-tls/4096/paozhu.log create mode 100644 site/static/logs/latency-10k/1024/paozhu.log create mode 100644 site/static/logs/latency-1m/1024/paozhu.log create mode 100644 site/static/logs/latency-500k-8cpu/1024/paozhu.log create mode 100644 site/static/logs/limited-conn/4096/paozhu.log create mode 100644 site/static/logs/pipelined/4096/paozhu.log create mode 100644 site/static/logs/static-h2/1024/paozhu.log create mode 100644 site/static/logs/static-h2/256/paozhu.log diff --git a/site/data/frameworks.json b/site/data/frameworks.json index ca2f6d0703..64df0c56a3 100644 --- a/site/data/frameworks.json +++ b/site/data/frameworks.json @@ -1763,6 +1763,20 @@ "response": true } }, + "paozhu": { + "dir": "paozhu", + "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static on every request, and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for json-h2c.", + "repo": "https://github.com/hggq/paozhu", + "type": "experimental", + "engine": "paozhu", + "mode": "standard", + "completeness": { + "routing": true, + "middleware": true, + "request": true, + "response": true + } + }, "pedestal": { "dir": "pedestal", "description": "Default Pedestal Jetty connector benchmark retaining Pedestal routing and interceptors.", diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json new file mode 100644 index 0000000000..55891c3bc3 --- /dev/null +++ b/site/data/results/paozhu.json @@ -0,0 +1,308 @@ +{ + "framework": "paozhu", + "results": { + "async-db-1024": { + "framework": "paozhu", + "language": "C++", + "rps": 116530, + "avg_latency": "8.30ms", + "p99_latency": "87.50ms", + "cpu": "6053.0%", + "memory": "116MiB", + "connections": 1024, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "443.52MB/s", + "input_bw": "7.78MB/s", + "reconnects": 46232, + "status_2xx": 1165303, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "baseline-4096": { + "framework": "paozhu", + "language": "C++", + "rps": 28275, + "avg_latency": "143.64ms", + "p99_latency": "308.80ms", + "cpu": "4894.0%", + "memory": "175MiB", + "connections": 4096, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "2.86MB/s", + "input_bw": "2.18MB/s", + "reconnects": 0, + "status_2xx": 141379, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "baseline-h2-1024": { + "framework": "paozhu", + "language": "C++", + "rps": 12283, + "avg_latency": "2.45s", + "p99_latency": "4.90s", + "cpu": "155.3%", + "memory": "2.1GiB", + "connections": 1024, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "579.14KB/s", + "reconnects": 0, + "status_2xx": 62152, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "baseline-h2-256": { + "framework": "paozhu", + "language": "C++", + "rps": 12405, + "avg_latency": "1.62s", + "p99_latency": "2.05s", + "cpu": "199.9%", + "memory": "644MiB", + "connections": 256, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "574.95KB/s", + "reconnects": 0, + "status_2xx": 62399, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "fortunes-1024": { + "framework": "paozhu", + "language": "C++", + "rps": 47943, + "avg_latency": "20.23ms", + "p99_latency": "151.90ms", + "cpu": "6257.0%", + "memory": "133MiB", + "connections": 1024, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "1.07GB/s", + "reconnects": 0, + "status_2xx": 239718, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "json-h2c-1024": { + "framework": "paozhu", + "language": "C++", + "rps": 12321, + "avg_latency": "1.94s", + "p99_latency": "2.65s", + "cpu": "217.6%", + "memory": "1.3GiB", + "connections": 1024, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "41.65MB/s", + "reconnects": 0, + "status_2xx": 62224, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "json-h2c-4096": { + "framework": "paozhu", + "language": "C++", + "rps": 11861, + "avg_latency": "2.55s", + "p99_latency": "4.99s", + "cpu": "449.9%", + "memory": "4.2GiB", + "connections": 4096, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "37.98MB/s", + "reconnects": 0, + "status_2xx": 60377, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "json-tls-4096": { + "framework": "paozhu", + "language": "C++", + "rps": 321142, + "avg_latency": "12.76ms", + "p99_latency": "146.60ms", + "cpu": "6340.8%", + "memory": "603MiB", + "connections": 4096, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "1.09GB", + "reconnects": 0, + "status_2xx": 1637548, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "latency-10k-1024": { + "framework": "paozhu", + "language": "C++", + "rps": 9981, + "avg_latency": "78.5us", + "p99_latency": "106.0us", + "cpu": "49.2%", + "memory": "88MiB", + "connections": 1024, + "threads": 64, + "duration": "20s", + "pipeline": 1, + "bandwidth": "1.05MB/s", + "reconnects": 0, + "status_2xx": 199680, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0, + "cpu_usec": 10347454, + "cpu_per_req_us": 51.8202, + "target_rate": 10000, + "rate_ratio": 0.9981, + "p99_9_latency": "1071.0us" + }, + "latency-1m-1024": { + "framework": "paozhu", + "language": "C++", + "rps": 319679, + "avg_latency": "6765268.5us", + "p99_latency": "13422592.0us", + "cpu": "6310.7%", + "memory": "89MiB", + "connections": 1024, + "threads": 64, + "duration": "20s", + "pipeline": 1, + "bandwidth": "33.57MB/s", + "reconnects": 0, + "status_2xx": 6396561, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0, + "cpu_usec": 1260395706, + "cpu_per_req_us": 197.0427, + "target_rate": 1000000, + "rate_ratio": 0.3197, + "p99_9_latency": "13545472.0us" + }, + "latency-500k-8cpu-1024": { + "framework": "paozhu", + "language": "C++", + "rps": 314255, + "avg_latency": "3684497.8us", + "p99_latency": "7395328.0us", + "cpu": "793.0%", + "memory": "94MiB", + "connections": 1024, + "threads": 64, + "duration": "20s", + "pipeline": 1, + "bandwidth": "33.00MB/s", + "reconnects": 0, + "status_2xx": 6287316, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0, + "cpu_usec": 159438489, + "cpu_per_req_us": 25.3588, + "target_rate": 500000, + "rate_ratio": 0.6285, + "p99_9_latency": "7718912.0us" + }, + "limited-conn-4096": { + "framework": "paozhu", + "language": "C++", + "rps": 27714, + "avg_latency": "144.90ms", + "p99_latency": "194.10ms", + "cpu": "4808.7%", + "memory": "225MiB", + "connections": 4096, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "2.80MB/s", + "input_bw": "2.14MB/s", + "reconnects": 12332, + "status_2xx": 138570, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "pipelined-4096": { + "framework": "paozhu", + "language": "C++", + "rps": 617517, + "avg_latency": "105.68ms", + "p99_latency": "255.90ms", + "cpu": "6597.2%", + "memory": "146MiB", + "connections": 4096, + "threads": 64, + "duration": "5s", + "pipeline": 16, + "bandwidth": "62.38MB/s", + "reconnects": 0, + "status_2xx": 3087585, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "static-h2-1024": { + "framework": "paozhu", + "language": "C++", + "rps": 6588, + "avg_latency": "2.47s", + "p99_latency": "4.82s", + "cpu": "386.0%", + "memory": "4.4GiB", + "connections": 1024, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "448.33MB/s", + "reconnects": 0, + "status_2xx": 33274, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "static-h2-256": { + "framework": "paozhu", + "language": "C++", + "rps": 7203, + "avg_latency": "993.36ms", + "p99_latency": "4.90s", + "cpu": "443.6%", + "memory": "1.4GiB", + "connections": 256, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "443.42MB/s", + "reconnects": 0, + "status_2xx": 36161, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + } + } +} diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log new file mode 100644 index 0000000000..b22c67141c --- /dev/null +++ b/site/static/logs/async-db/1024/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log new file mode 100644 index 0000000000..7a9e321588 --- /dev/null +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log new file mode 100644 index 0000000000..61672439db --- /dev/null +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log new file mode 100644 index 0000000000..7507d1b226 --- /dev/null +++ b/site/static/logs/baseline/4096/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log new file mode 100644 index 0000000000..594675f4e1 --- /dev/null +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log new file mode 100644 index 0000000000..e199d30c63 --- /dev/null +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log new file mode 100644 index 0000000000..f4f72854a0 --- /dev/null +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log new file mode 100644 index 0000000000..ae6badc558 --- /dev/null +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log new file mode 100644 index 0000000000..ae6badc558 --- /dev/null +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log new file mode 100644 index 0000000000..ae6badc558 --- /dev/null +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log new file mode 100644 index 0000000000..503305fb1f --- /dev/null +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf[websockets] not found or parse fail, websocket client disabled +websockets.conf[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled + not found or parse fail, websocket client disabled[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log new file mode 100644 index 0000000000..594675f4e1 --- /dev/null +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log new file mode 100644 index 0000000000..7335557782 --- /dev/null +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[sockets] /app/conf/h1/sockets.conf + not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log new file mode 100644 index 0000000000..ae6badc558 --- /dev/null +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log new file mode 100644 index 0000000000..ae6badc558 --- /dev/null +++ b/site/static/logs/static-h2/256/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients From 70536977b3d5fbed4797ef8b8fc51cfc0c3df61e Mon Sep 17 00:00:00 2001 From: hzq Date: Tue, 10 Nov 2026 15:29:54 +0800 Subject: [PATCH 07/89] Edit mulit ioc --- frameworks/paozhu/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index dd309b8da8..979f0d4db7 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=71305087d905da641b6f55eac1781566341ebbc6 +ARG PAOZHU_REF=d46066b677142856c40a2acb7e622e1b219d0931 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct From 6d4303cc42126e5c36a1b72d377ba7e2dc1cffc9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 10 Nov 2026 09:58:02 +0000 Subject: [PATCH 08/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 220 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 10 +- site/static/logs/baseline-h2/1024/paozhu.log | 8 +- site/static/logs/baseline-h2/256/paozhu.log | 2 +- site/static/logs/fortunes/1024/paozhu.log | 8 +- site/static/logs/json-h2c/1024/paozhu.log | 10 +- site/static/logs/json-h2c/4096/paozhu.log | 8 +- site/static/logs/json-tls/4096/paozhu.log | 8 +- site/static/logs/latency-10k/1024/paozhu.log | 10 +- site/static/logs/latency-1m/1024/paozhu.log | 10 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 10 +- site/static/logs/limited-conn/4096/paozhu.log | 6 +- site/static/logs/pipelined/4096/paozhu.log | 6 +- site/static/logs/static-h2/1024/paozhu.log | 8 +- site/static/logs/static-h2/256/paozhu.log | 8 +- 15 files changed, 166 insertions(+), 166 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 55891c3bc3..9c9cb26d8c 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 116530, - "avg_latency": "8.30ms", - "p99_latency": "87.50ms", - "cpu": "6053.0%", - "memory": "116MiB", + "rps": 32330, + "avg_latency": "31.44ms", + "p99_latency": "182.20ms", + "cpu": "702.9%", + "memory": "118MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "443.52MB/s", - "input_bw": "7.78MB/s", - "reconnects": 46232, - "status_2xx": 1165303, + "bandwidth": "117.40MB/s", + "input_bw": "2.16MB/s", + "reconnects": 12469, + "status_2xx": 323308, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 28275, - "avg_latency": "143.64ms", - "p99_latency": "308.80ms", - "cpu": "4894.0%", - "memory": "175MiB", + "rps": 30712, + "avg_latency": "131.01ms", + "p99_latency": "352.40ms", + "cpu": "4655.8%", + "memory": "170MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.86MB/s", - "input_bw": "2.18MB/s", + "bandwidth": "3.10MB/s", + "input_bw": "2.37MB/s", "reconnects": 0, - "status_2xx": 141379, + "status_2xx": 153561, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,18 +44,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 12283, + "rps": 12351, "avg_latency": "2.45s", "p99_latency": "4.90s", - "cpu": "155.3%", + "cpu": "291.6%", "memory": "2.1GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "579.14KB/s", + "bandwidth": "582.30KB/s", "reconnects": 0, - "status_2xx": 62152, + "status_2xx": 62497, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -63,18 +63,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 12405, + "rps": 12434, "avg_latency": "1.62s", "p99_latency": "2.05s", - "cpu": "199.9%", - "memory": "644MiB", + "cpu": "139.2%", + "memory": "631MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "574.95KB/s", + "bandwidth": "576.31KB/s", "reconnects": 0, - "status_2xx": 62399, + "status_2xx": 62547, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -82,18 +82,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 47943, - "avg_latency": "20.23ms", - "p99_latency": "151.90ms", - "cpu": "6257.0%", - "memory": "133MiB", + "rps": 13124, + "avg_latency": "77.33ms", + "p99_latency": "348.00ms", + "cpu": "570.2%", + "memory": "115MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.07GB/s", + "bandwidth": "268.93MB/s", "reconnects": 0, - "status_2xx": 239718, + "status_2xx": 65624, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -101,18 +101,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 12321, + "rps": 12336, "avg_latency": "1.94s", "p99_latency": "2.65s", - "cpu": "217.6%", - "memory": "1.3GiB", + "cpu": "91.8%", + "memory": "1.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "41.65MB/s", + "bandwidth": "41.75MB/s", "reconnects": 0, - "status_2xx": 62224, + "status_2xx": 62424, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -120,18 +120,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 11861, + "rps": 11847, "avg_latency": "2.55s", "p99_latency": "4.99s", - "cpu": "449.9%", + "cpu": "397.3%", "memory": "4.2GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "37.98MB/s", + "bandwidth": "38.00MB/s", "reconnects": 0, - "status_2xx": 60377, + "status_2xx": 60421, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -139,18 +139,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 321142, - "avg_latency": "12.76ms", - "p99_latency": "146.60ms", - "cpu": "6340.8%", - "memory": "603MiB", + "rps": 1046820, + "avg_latency": "4.23ms", + "p99_latency": "167.32ms", + "cpu": "6137.1%", + "memory": "447MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.09GB", + "bandwidth": "3.54GB", "reconnects": 0, - "status_2xx": 1637548, + "status_2xx": 5336393, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -158,91 +158,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9981, - "avg_latency": "78.5us", - "p99_latency": "106.0us", - "cpu": "49.2%", - "memory": "88MiB", + "rps": 9979, + "avg_latency": "82.1us", + "p99_latency": "111.0us", + "cpu": "31.1%", + "memory": "82MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199680, + "status_2xx": 199598, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 10347454, - "cpu_per_req_us": 51.8202, + "cpu_usec": 6480350, + "cpu_per_req_us": 32.467, "target_rate": 10000, - "rate_ratio": 0.9981, - "p99_9_latency": "1071.0us" + "rate_ratio": 0.9979, + "p99_9_latency": "2207.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 319679, - "avg_latency": "6765268.5us", - "p99_latency": "13422592.0us", - "cpu": "6310.7%", - "memory": "89MiB", + "rps": 997642, + "avg_latency": "107.6us", + "p99_latency": "189.0us", + "cpu": "3621.8%", + "memory": "88MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "33.57MB/s", + "bandwidth": "104.75MB/s", "reconnects": 0, - "status_2xx": 6396561, + "status_2xx": 19956283, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 1260395706, - "cpu_per_req_us": 197.0427, + "cpu_usec": 656290308, + "cpu_per_req_us": 32.8864, "target_rate": 1000000, - "rate_ratio": 0.3197, - "p99_9_latency": "13545472.0us" + "rate_ratio": 0.9976, + "p99_9_latency": "1694.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 314255, - "avg_latency": "3684497.8us", - "p99_latency": "7395328.0us", - "cpu": "793.0%", - "memory": "94MiB", + "rps": 372119, + "avg_latency": "2499712.1us", + "p99_latency": "5601280.0us", + "cpu": "802.4%", + "memory": "80MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "33.00MB/s", + "bandwidth": "39.07MB/s", "reconnects": 0, - "status_2xx": 6287316, + "status_2xx": 7445070, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159438489, - "cpu_per_req_us": 25.3588, + "cpu_usec": 159648236, + "cpu_per_req_us": 21.4435, "target_rate": 500000, - "rate_ratio": 0.6285, - "p99_9_latency": "7718912.0us" + "rate_ratio": 0.7442, + "p99_9_latency": "5879808.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 27714, - "avg_latency": "144.90ms", - "p99_latency": "194.10ms", - "cpu": "4808.7%", - "memory": "225MiB", + "rps": 27143, + "avg_latency": "147.07ms", + "p99_latency": "397.30ms", + "cpu": "4835.1%", + "memory": "221MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.80MB/s", - "input_bw": "2.14MB/s", - "reconnects": 12332, - "status_2xx": 138570, + "bandwidth": "2.74MB/s", + "input_bw": "2.10MB/s", + "reconnects": 11790, + "status_2xx": 135716, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -250,18 +250,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 617517, - "avg_latency": "105.68ms", - "p99_latency": "255.90ms", - "cpu": "6597.2%", - "memory": "146MiB", + "rps": 3512713, + "avg_latency": "18.67ms", + "p99_latency": "39.00ms", + "cpu": "6251.0%", + "memory": "138MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "62.38MB/s", + "bandwidth": "354.98MB/s", "reconnects": 0, - "status_2xx": 3087585, + "status_2xx": 17563568, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -269,18 +269,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 6588, - "avg_latency": "2.47s", - "p99_latency": "4.82s", - "cpu": "386.0%", + "rps": 6589, + "avg_latency": "2.50s", + "p99_latency": "4.98s", + "cpu": "851.7%", "memory": "4.4GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "448.33MB/s", + "bandwidth": "452.36MB/s", "reconnects": 0, - "status_2xx": 33274, + "status_2xx": 33275, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -288,18 +288,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 7203, - "avg_latency": "993.36ms", - "p99_latency": "4.90s", - "cpu": "443.6%", - "memory": "1.4GiB", + "rps": 7155, + "avg_latency": "1.00s", + "p99_latency": "2.35s", + "cpu": "484.3%", + "memory": "1.3GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "443.42MB/s", + "bandwidth": "438.58MB/s", "reconnects": 0, - "status_2xx": 36161, + "status_2xx": 35993, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index b22c67141c..ae6badc558 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - -[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index 7a9e321588..45d1f7cfce 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf[websockets] not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 61672439db..f9523aac0c 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -2,8 +2,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index 594675f4e1..1f5b4353c5 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf[websockets] not found or parse fail, socket client disabled +websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] [sockets] /app/conf/main/mqtt.conf/app/conf/h1/sockets.conf not found or parse fail, mqtt client disabled not found or parse fail, socket client disabled + [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index e199d30c63..ae6badc558 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index f4f72854a0..ae6badc558 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index ae6badc558..16382da5c0 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] [sockets] /app/conf/h1/sockets.confwebsockets.conf not found or parse fail, socket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled[mqtt_client] +/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index ae6badc558..e199d30c63 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index ae6badc558..eafd3abba4 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 503305fb1f..e4d14a9bc4 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf[websockets] not found or parse fail, websocket client disabled -websockets.conf[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled - not found or parse fail, websocket client disabled[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients -[mqtt_subpub] init: registered 0 clients [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index 594675f4e1..9dc0d2ee1c 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index 7335557782..ae6badc558 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[sockets] /app/conf/h1/sockets.conf - not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index ae6badc558..76098aa040 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From efd99510040b37931f53e4c174c458b7d42f2e4c Mon Sep 17 00:00:00 2001 From: hzq Date: Tue, 10 Nov 2026 18:04:25 +0800 Subject: [PATCH 09/89] Add paozhu --- frameworks/paozhu/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 979f0d4db7..fab5684174 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=d46066b677142856c40a2acb7e622e1b219d0931 +ARG PAOZHU_REF=6fad3faa915bdcb6cd30e749ee86103bf7a4323e WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct From 2ec885f02ec60c96ca2da0dbebb2aa10a8e88b86 Mon Sep 17 00:00:00 2001 From: hzq Date: Tue, 10 Nov 2026 21:30:59 +0800 Subject: [PATCH 10/89] Add paozhu --- frameworks/paozhu/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index fab5684174..f2a3e5515f 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=6fad3faa915bdcb6cd30e749ee86103bf7a4323e +ARG PAOZHU_REF=167c661ebaa86fa1b6564b1fea602234b8f5c5bc WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct From 1e2e20378d51c56adce23e4e64892be3181f20fb Mon Sep 17 00:00:00 2001 From: hzq Date: Tue, 10 Nov 2026 22:36:02 +0800 Subject: [PATCH 11/89] Add paozhu --- frameworks/paozhu/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index f2a3e5515f..c587a9e0cb 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=167c661ebaa86fa1b6564b1fea602234b8f5c5bc +ARG PAOZHU_REF=d73100bde1de8e96452b62a6bdbf8be96170dff7 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct From c7b539e58758bd5467e4a56565f587e514b906ca Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 10 Nov 2026 14:54:10 +0000 Subject: [PATCH 12/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 232 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 2 +- site/static/logs/baseline-h2/1024/paozhu.log | 8 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline/4096/paozhu.log | 8 +- site/static/logs/fortunes/1024/paozhu.log | 8 +- site/static/logs/json-h2c/1024/paozhu.log | 8 +- site/static/logs/json-tls/4096/paozhu.log | 8 +- site/static/logs/latency-10k/1024/paozhu.log | 10 +- site/static/logs/latency-1m/1024/paozhu.log | 8 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 6 +- site/static/logs/limited-conn/4096/paozhu.log | 6 +- site/static/logs/static-h2/1024/paozhu.log | 8 +- site/static/logs/static-h2/256/paozhu.log | 8 +- 14 files changed, 164 insertions(+), 164 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 9c9cb26d8c..ffaa1963f9 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 32330, - "avg_latency": "31.44ms", - "p99_latency": "182.20ms", - "cpu": "702.9%", - "memory": "118MiB", + "rps": 27385, + "avg_latency": "37.14ms", + "p99_latency": "202.20ms", + "cpu": "657.7%", + "memory": "117MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "117.40MB/s", - "input_bw": "2.16MB/s", - "reconnects": 12469, - "status_2xx": 323308, + "bandwidth": "98.75MB/s", + "input_bw": "1.83MB/s", + "reconnects": 10520, + "status_2xx": 273852, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 30712, - "avg_latency": "131.01ms", - "p99_latency": "352.40ms", - "cpu": "4655.8%", - "memory": "170MiB", + "rps": 2596153, + "avg_latency": "1.58ms", + "p99_latency": "9.82ms", + "cpu": "6297.2%", + "memory": "146MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.10MB/s", - "input_bw": "2.37MB/s", + "bandwidth": "262.37MB/s", + "input_bw": "200.55MB/s", "reconnects": 0, - "status_2xx": 153561, + "status_2xx": 12980769, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,18 +44,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 12351, - "avg_latency": "2.45s", - "p99_latency": "4.90s", - "cpu": "291.6%", - "memory": "2.1GiB", + "rps": 244139, + "avg_latency": "363.10ms", + "p99_latency": "4.98s", + "cpu": "2117.1%", + "memory": "2.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "582.30KB/s", + "bandwidth": "11.08MB/s", "reconnects": 0, - "status_2xx": 62497, + "status_2xx": 1235346, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -63,18 +63,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 12434, - "avg_latency": "1.62s", - "p99_latency": "2.05s", - "cpu": "139.2%", - "memory": "631MiB", + "rps": 273863, + "avg_latency": "90.82ms", + "p99_latency": "1.65s", + "cpu": "2025.6%", + "memory": "632MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "576.31KB/s", + "bandwidth": "12.35MB/s", "reconnects": 0, - "status_2xx": 62547, + "status_2xx": 1377535, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -82,18 +82,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 13124, - "avg_latency": "77.33ms", - "p99_latency": "348.00ms", - "cpu": "570.2%", - "memory": "115MiB", + "rps": 27715, + "avg_latency": "35.87ms", + "p99_latency": "204.20ms", + "cpu": "1036.0%", + "memory": "120MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "268.93MB/s", + "bandwidth": "618.32MB/s", "reconnects": 0, - "status_2xx": 65624, + "status_2xx": 138576, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -101,18 +101,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 12336, - "avg_latency": "1.94s", - "p99_latency": "2.65s", - "cpu": "91.8%", - "memory": "1.2GiB", + "rps": 208134, + "avg_latency": "152.94ms", + "p99_latency": "936.99ms", + "cpu": "1684.6%", + "memory": "1.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "41.75MB/s", + "bandwidth": "716.27MB/s", "reconnects": 0, - "status_2xx": 62424, + "status_2xx": 1053162, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -120,18 +120,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 11847, - "avg_latency": "2.55s", - "p99_latency": "4.99s", - "cpu": "397.3%", - "memory": "4.2GiB", + "rps": 192542, + "avg_latency": "619.51ms", + "p99_latency": "3.91s", + "cpu": "1783.3%", + "memory": "5.6GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "38.00MB/s", + "bandwidth": "663.98MB/s", "reconnects": 0, - "status_2xx": 60421, + "status_2xx": 980042, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -139,18 +139,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1046820, - "avg_latency": "4.23ms", - "p99_latency": "167.32ms", - "cpu": "6137.1%", + "rps": 1050257, + "avg_latency": "4.41ms", + "p99_latency": "159.16ms", + "cpu": "6156.1%", "memory": "447MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.54GB", + "bandwidth": "3.55GB", "reconnects": 0, - "status_2xx": 5336393, + "status_2xx": 5357147, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,90 +159,90 @@ "framework": "paozhu", "language": "C++", "rps": 9979, - "avg_latency": "82.1us", - "p99_latency": "111.0us", - "cpu": "31.1%", - "memory": "82MiB", + "avg_latency": "88.2us", + "p99_latency": "113.0us", + "cpu": "30.4%", + "memory": "84MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199598, + "status_2xx": 199606, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 6480350, - "cpu_per_req_us": 32.467, + "cpu_usec": 6367680, + "cpu_per_req_us": 31.9012, "target_rate": 10000, "rate_ratio": 0.9979, - "p99_9_latency": "2207.0us" + "p99_9_latency": "3097.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997642, - "avg_latency": "107.6us", - "p99_latency": "189.0us", - "cpu": "3621.8%", - "memory": "88MiB", + "rps": 997892, + "avg_latency": "112.8us", + "p99_latency": "187.0us", + "cpu": "3486.5%", + "memory": "89MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.75MB/s", + "bandwidth": "104.78MB/s", "reconnects": 0, - "status_2xx": 19956283, + "status_2xx": 19961892, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 656290308, - "cpu_per_req_us": 32.8864, + "cpu_usec": 634648653, + "cpu_per_req_us": 31.793, "target_rate": 1000000, - "rate_ratio": 0.9976, - "p99_9_latency": "1694.0us" + "rate_ratio": 0.9979, + "p99_9_latency": "6246.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 372119, - "avg_latency": "2499712.1us", - "p99_latency": "5601280.0us", - "cpu": "802.4%", - "memory": "80MiB", + "rps": 373737, + "avg_latency": "2467551.3us", + "p99_latency": "5556224.0us", + "cpu": "807.2%", + "memory": "78MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "39.07MB/s", + "bandwidth": "39.24MB/s", "reconnects": 0, - "status_2xx": 7445070, + "status_2xx": 7477508, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159648236, - "cpu_per_req_us": 21.4435, + "cpu_usec": 159599136, + "cpu_per_req_us": 21.3439, "target_rate": 500000, - "rate_ratio": 0.7442, - "p99_9_latency": "5879808.0us" + "rate_ratio": 0.7475, + "p99_9_latency": "5797888.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 27143, - "avg_latency": "147.07ms", - "p99_latency": "397.30ms", - "cpu": "4835.1%", - "memory": "221MiB", + "rps": 677579, + "avg_latency": "6.02ms", + "p99_latency": "61.00ms", + "cpu": "2580.8%", + "memory": "78MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.74MB/s", - "input_bw": "2.10MB/s", - "reconnects": 11790, - "status_2xx": 135716, + "bandwidth": "68.47MB/s", + "input_bw": "52.34MB/s", + "reconnects": 338783, + "status_2xx": 3387895, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -250,18 +250,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3512713, - "avg_latency": "18.67ms", - "p99_latency": "39.00ms", - "cpu": "6251.0%", + "rps": 3674801, + "avg_latency": "17.84ms", + "p99_latency": "36.00ms", + "cpu": "6355.9%", "memory": "138MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "354.98MB/s", + "bandwidth": "371.38MB/s", "reconnects": 0, - "status_2xx": 17563568, + "status_2xx": 18374005, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -269,18 +269,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 6589, - "avg_latency": "2.50s", + "rps": 57441, + "avg_latency": "514.26ms", "p99_latency": "4.98s", - "cpu": "851.7%", - "memory": "4.4GiB", + "cpu": "3649.2%", + "memory": "5.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "452.36MB/s", + "bandwidth": "3.41GB/s", "reconnects": 0, - "status_2xx": 33275, + "status_2xx": 290655, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -288,18 +288,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 7155, - "avg_latency": "1.00s", - "p99_latency": "2.35s", - "cpu": "484.3%", - "memory": "1.3GiB", + "rps": 56996, + "avg_latency": "140.14ms", + "p99_latency": "2.32s", + "cpu": "3323.7%", + "memory": "1.7GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "438.58MB/s", + "bandwidth": "3.39GB/s", "reconnects": 0, - "status_2xx": 35993, + "status_2xx": 286692, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index ae6badc558..61672439db 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index 45d1f7cfce..ae6badc558 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf[websockets] not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index f9523aac0c..f1f9d70f9a 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf[sockets] not found or parse fail, socket client disabled/app/conf/main/sockets.conf + not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 7507d1b226..db63607e80 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf + not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index 1f5b4353c5..594675f4e1 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf[websockets] not found or parse fail, socket client disabled -websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] [sockets] /app/conf/main/mqtt.conf/app/conf/h1/sockets.conf not found or parse fail, mqtt client disabled not found or parse fail, socket client disabled - +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 16382da5c0..a86dff7f76 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] [sockets] /app/conf/h1/sockets.confwebsockets.conf not found or parse fail, socket client disabled not found or parse fail, websocket client disabled +[websockets] websockets.conf[websockets] not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled[mqtt_client] +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index e199d30c63..594675f4e1 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index eafd3abba4..40e2c64097 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index e4d14a9bc4..7507d1b226 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -2,13 +2,13 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index 9dc0d2ee1c..a781d4c2fa 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index 76098aa040..ae6badc558 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From 660298378ae9ed4f9e895419c6d73427482dc193 Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 11 Nov 2026 00:31:40 +0800 Subject: [PATCH 13/89] Add paozhu --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/README.md | 21 +++++++---- frameworks/paozhu/src/conf/server.conf | 7 +++- .../paozhu/src/controller/src/arena.cpp | 22 ++++++++---- frameworks/paozhu/src/controller/src/db.cpp | 35 ++++++++++++++++--- 5 files changed, 67 insertions(+), 20 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index c587a9e0cb..59c18cf825 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=d73100bde1de8e96452b62a6bdbf8be96170dff7 +ARG PAOZHU_REF=66c84a9e604502dc659d03f494eb18616e048486 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/README.md b/frameworks/paozhu/README.md index f88cc6e52f..8e34191d46 100644 --- a/frameworks/paozhu/README.md +++ b/frameworks/paozhu/README.md @@ -7,13 +7,13 @@ C++20 web framework entry built from the upstream [paozhu](https://github.com/hg - **Language:** C++20 - **Engine:** paozhu (standalone Asio event loop, native HTTP/2) - **Build:** `debian:bookworm` → `debian:bookworm-slim`, GCC with `-O3 -march=native`, `-DENABLE_BENCHMARK=ON` -- **Source:** upstream commit pinned by the `PAOZHU_REF` build arg (`71305087`, `v1.17.4-16`); local development tree is `/Users/hzq/paozhu`. When `vendor/paozhu-src.tar.gz` is present the Dockerfile unpacks that archive instead and `PAOZHU_REF` is ignored. +- **Source:** upstream commit pinned by the `PAOZHU_REF` build arg — currently `d73100bd` (`Add BENCHMARK send to http2`), which is what the Dockerfile builds. The results quoted in *Validation status* were produced on `71305087` (`v1.17.4-16`), and the two revisions do not behave identically (raw POST bodies, HTTP/2 send loop), so re-run `validate.sh` on `d73100bd` before attributing any number to the current pin. Local development tree is `/Users/hzq/paozhu`. When `vendor/paozhu-src.tar.gz` is present the Dockerfile unpacks that archive instead and `PAOZHU_REF` is ignored. ## Pinned `CMakeLists.txt` -paozhu is not a linkable library: the app *is* a paozhu project, and its build definition has to reproduce the whole upstream graph (globbing `vendor/`, `libs/`, `common/`, `controller/`, running `paozhu_pre` to generate the router table and linking OpenSSL/zlib/brotli). `src/CMakeLists.txt` is a checked-in snapshot of that file at `71305087`, so the Dockerfile no longer patches upstream text at build time. It has exactly two local changes: +paozhu is not a linkable library: the app *is* a paozhu project, and its build definition has to reproduce the whole upstream graph (globbing `vendor/`, `libs/`, `common/`, `controller/`, running `paozhu_pre` to generate the router table and linking OpenSSL/zlib/brotli). `src/CMakeLists.txt` is a checked-in snapshot of that file at `71305087`, so the Dockerfile no longer patches upstream text at build time. The snapshot predates the current `d73100bd` pin and has not been regenerated for it; confirming it still matches upstream is part of the pending re-validation. It has exactly two local changes: -1. `option(ENABLE_BENCHMARK "Enable benchmarks" ON)` — benchmark tier is the default for any `cmake` invocation, not just one with `-D`. `BENCHMARK` drops per-request logging, keepalive/stream caps and the disk pre-check for dotted URLs (which would otherwise shadow `/static/:filename`). +1. `option(ENABLE_BENCHMARK "Enable benchmarks" ON)` — benchmark tier is the default for any `cmake` invocation, not just one with `-D`. In upstream code `BENCHMARK` turns off exactly five things: the per-request access log (string build + mutex + list append), the 1000-requests-per-connection keepalive cap, the HTTP/2 concurrent-stream GOAWAY above 512, the 10 µs pacing floor in the HTTP/2 send loop, and the 5 s `httpwatch` maintenance loop (temp-file sweep, certificate and timed-task work) which collapses into a plain sleep. Two other guards are inert under this entry's conf: the rate-limiter removal (`rate_limit_status = 0` already) and the dotted-URL disk pre-check (it only runs when `usehtmlcache` is set, and both conf files leave the key out — see *Notes*). 2. Both branches of the `add_executable` generator expression point at `startup/main_docker.cpp` — the upstream Release default `main_daemon.cpp` forks and would make PID 1 exit immediately. `Dockerfile` copies this file over the unpacked upstream tree after `mini_project.sh`. When bumping `PAOZHU_REF`, refresh the snapshot and re-apply those two changes; the pinned upstream source still supplies everything else the file globs. @@ -63,15 +63,22 @@ Static files are read on every request (no preloaded copy), so a replaced file i - `src/conf/openssl.cnf` is exported as `OPENSSL_CONF`: it keeps TLS 1.3 available while refusing TLS < 1.2 and the weak cipher families probed by the TLS checks. It does not change the certificate. - `src/conf/orm.conf` is a template copied to `/app/conf/orm.conf.tpl`; `entrypoint.sh` renders it into `/app/conf/main/orm.conf` only when the harness injects `DATABASE_URL` / `DATABASE_MAX_CONN`. Without a DB profile there is no `orm.conf` beside either `server.conf`: `startup_orm_init()` calls `init_orm_conn_pool()` unconditionally, and `get_orm_config_file()` returns an empty list when the file is absent, so no pool is created. `serverconfig` resolves `orm.conf` relative to each conf file's own directory, which is why only the main instance (the one serving :8080) gets one. Both `[pg]` groups must carry full connection settings: `type = main` fills `conf_data[0]` (edit pool), `type = second` fills `conf_data[1]`, which `async_get_pg_select_conn()` actually uses for SELECTs. -- `/async-db` and `/fortunes` use `orm::db_conn("pg")` with `co_await async_query()` plus small `set_val` row types instead of a generated ORM model — `mini_project.sh` empties `orm/` and `models/`. paozhu's own Asio Postgres driver (SCRAM-SHA-256) is compiled into the binary, so no `libpq` is needed. Both handlers share an async gate that caps in-flight queries below `DATABASE_MAX_CONN`, because the upstream pool grows on demand without honouring `maxpool`. +- `/async-db` and `/fortunes` use `orm::db_conn("pg")` with `co_await async_query()` plus small `set_val` row types instead of a generated ORM model — `mini_project.sh` empties `orm/` and `models/`. paozhu's own Asio Postgres driver (SCRAM-SHA-256) is compiled into the binary, so no `libpq` is needed. Both handlers share an async gate that caps in-flight queries at the smaller of the `DATABASE_MAX_CONN` budget and the pool's smallest per-slot quota: the framework splits `maxpool` across io_context slots, and staying under one slot's quota keeps even a fully skewed request distribution out of the pool's wait-timeout path. - `/fortunes` renders the HTML per request in the handler: `mini_project.sh` also empties `view/` and `viewsrc/`, so `peer->view()` has no template to load. The runtime row, byte-ordinal sort and HTML escaping live in `src/controller/src/db.cpp`. - Every `//@urlpath` handler in `arena.cpp` and `db.cpp` uses the coroutine form (`asio::awaitable` + `co_return ""`), so `paozhu_pre` registers them all through `co_reg`. Only the DB routes really suspend (`co_await async_query()`); the CPU/static handlers have no `co_await` but share the same handler shape. -- paozhu streams raw (`text/plain`) POST bodies to a temp file rather than exposing them in `httppeer::rawcontent`. `arena_baseline11` reads that file and unlinks it immediately; otherwise a POST-heavy run would fill `/app/temp` faster than `httpwatch` sweeps it. +- Raw (non-form, non-JSON) POST bodies are spilled to a temp file only when they exceed `CONST_HTTP_RAW_POST_SIZE` (2 MB). At the current `d73100bd` pin a 2-byte `POST /baseline11` body therefore stays in `httppeer::rawcontent`, and `raw_body()` returns it without touching the disk; the temp-file branch only exists for oversized bodies. At `71305087` every raw POST body went to a file and `raw_body()` had to read and unlink it — which is why that branch is still there and why the earlier measurements include per-POST file I/O that the current pin does not. - Only the `[default]` site section is configured, so every `Host` / SNI falls back to site 0. -- `usehtmlcache` is intentionally absent from both conf files; a present key enables the disk pre-check for dotted URLs. +- `usehtmlcache` is intentionally absent from both conf files; a present key enables the disk pre-check for dotted URLs. Because the key is absent the pre-check never runs, so it never competes with `/static/:filename` either way, and `BENCHMARK` compiling that pre-check out is a no-op for this entry. +- Static compression is not implemented: `arena_static` ignores `Accept-Encoding` and always returns the identity bytes. The rules make compression optional for `static-h2` and only measure it when the response carries a `Content-Encoding`, so nothing fails today. Two facts for a later decision: `data/static` already ships `.br` and `.gz` twins next to every compressible original (`*.webp` and `*.woff2` have none), and the `static-h2` h2load run does send `Accept-Encoding: br;q=1, gzip;q=0.8`. Serving those twins by content negotiation is allowed by the static rules and is the largest per-request byte reduction available (about 1.24 MB of identity bodies per 20-file cycle); it is left out on purpose because it changes the bytes-per-request profile. - The two processes use separate `temppath` / `logpath` directories so they never race on scratch files. +- `cothreadnum` in both conf files is a floor, not the worker count: upstream computes `max(cothreadnum, hardware_concurrency() + 4)`. Under the profile cpuset (`0-31,64-95`, 64 CPUs) each process runs about 68 io threads, not 8, and the second process contributes a second set that stays idle while the other port is being profiled. - `PAOZHU_REF` selects the upstream revision. The Dockerfile uses a direct `codeload.github.com` tarball URL: `github.com/.../archive/...` 302-redirects to codeload and that hop is blocked on some networks. - On slow or offline networks, ship a source archive in the build context instead of downloading it: `git -C /Users/hzq/paozhu archive --format=tar.gz --prefix=paozhu-/ -o frameworks/paozhu/vendor/paozhu-src.tar.gz HEAD`. The Dockerfile prefers `vendor/paozhu-src.tar.gz` when present. The archive is ~36 MB and is deliberately not checked in. - `APT_MIRROR` is an optional build arg for networks where `deb.debian.org` is slow, e.g. `--build-arg APT_MIRROR=mirrors.aliyun.com`; empty keeps the distro default. - Local development: `docker build -t httparena-paozhu frameworks/paozhu && VALIDATE_SKIP_BUILD=1 ./scripts/validate.sh paozhu`. Without `VALIDATE_SKIP_BUILD=1`, `validate.sh` rebuilds with `--no-cache` and repeats the full C++ compile. `PAOZHU_REF` can be overridden with `--build-arg PAOZHU_REF=`. -- Measured on a 4-core / 16 GB Ubuntu 26.04 host with `PAOZHU_REF=71305087` ("Fix http1 http2 multipart part", `v1.17.4-16`): `validate.sh paozhu` reports **62 passed, 0 failed**. All three chunked POST checks still pass (`POST /baseline11` with a chunked body and both fragmented chunked-pipeline cases), alongside `async-db`, `fortunes` and `json-h2c` (all 11 of their checks pass; the DB profiles use a `postgres:18` sidecar). TLS verdict **pass**. Upstream `http_parse.cpp` decodes `Transfer-Encoding: chunked` into `peer->files["rawcontent"]["tempfile"]`, which is exactly what `raw_body()` in `arena.cpp` reads, so no entry-side change was needed; `40098` is only returned for HTTP/1.0 or malformed transfer encodings. This revision also ships Asio 1.39.0 and fixes multipart part-header parsing; the three pinned files needed no content refresh between `25104601` and `71305087` (only their version comments changed). +- **Validation status:** the `62 passed, 0 failed` figure was measured on a 4-core / 16 GB Ubuntu 26.04 host with `PAOZHU_REF=71305087` ("Fix http1 http2 multipart part", `v1.17.4-16`), with TLS verdict **pass** and all three chunked POST checks passing (`POST /baseline11` with a chunked body and both fragmented chunked-pipeline cases), alongside `async-db`, `fortunes` and `json-h2c` (all 11 of their checks pass; the DB profiles use a `postgres:18` sidecar). That revision ships Asio 1.39.0 and fixes multipart part-header parsing; it decodes `Transfer-Encoding: chunked` into `peer->files["rawcontent"]["tempfile"]`, which is what `raw_body()` in `arena.cpp` reads, and `40098` is only returned for HTTP/1.0 or malformed transfer encodings. The three pinned files needed no content refresh between `25104601` and `71305087` (only their version comments changed). +- **Pending re-validation:** the Dockerfile now pins `d73100bd`, which is *not* the revision the 62/0 run was made on, so that figure is unverified for the current pin. Both paths those checks exercise changed in between: raw POST bodies up to 2 MB stay in memory instead of going to a temp file, and the HTTP/2 send loop lost its pacing floor. No validation result exists for `d73100bd` yet — run `validate.sh paozhu` before quoting one. + +## Mode declaration + +`meta.json`'s `"mode"` is a display label only: `rebuild_site_data.py` copies it into the site data, and neither `validate.sh` nor the scoring pipeline reads it. It stays `"standard"`; changing it would not move any measured number. diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index bb53e54e2b..d68dafda4e 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -4,6 +4,9 @@ [default] threadmax = 1024 threadmin = 5 +; Floor, not the real worker count: upstream uses +; max(cothreadnum, hardware_concurrency() + 4). Under the benchmark cpuset +; (0-31,64-95, 64 CPUs) this instance ends up with about 68 io threads. cothreadnum = 8 httpport = 8080 @@ -48,7 +51,9 @@ libspath = ./libs directorylist = 0 index = index.html ; usehtmlcache is intentionally absent: a present key turns on the disk -; pre-check for dotted URLs, which would bypass the /static/:filename route. +; pre-check for dotted URLs. With the key absent that pre-check never runs, so +; it is not what keeps /static/:filename reachable, and BENCHMARK compiling the +; same pre-check out changes nothing here. rewrite_404 = 0 upload_max_size = 16777216 siteid = 1 diff --git a/frameworks/paozhu/src/controller/src/arena.cpp b/frameworks/paozhu/src/controller/src/arena.cpp index 22490967d9..324a85f7cc 100644 --- a/frameworks/paozhu/src/controller/src/arena.cpp +++ b/frameworks/paozhu/src/controller/src/arena.cpp @@ -500,10 +500,11 @@ long long body_number(const std::string &body) return end == p ? 0 : value; } -// paozhu streams raw (non-form, non-JSON) request bodies to a temp file and -// leaves peer->rawcontent empty for them (http_parse.cpp posttype 5). Read that -// file back for POST /baseline11 and unlink it immediately: the benchmark sends -// a POST-heavy workload and httpwatch only sweeps old files periodically. +// Raw (non-form, non-JSON) request bodies stay in peer->rawcontent while they +// fit in CONST_HTTP_RAW_POST_SIZE (2 MB, http_parse.cpp posttype 5); only larger +// ones are spilled to a temp file. Return the in-memory bytes when present, +// otherwise read the spilled file and unlink it right away. The benchmark's POST +// bodies are a few bytes, so the file branch is the >2 MB case. std::string raw_body(const std::shared_ptr &peer) { if (!peer->rawcontent.empty()) @@ -631,8 +632,17 @@ asio::awaitable arena_static(std::shared_ptr peer) peer->output = "Not Found"; co_return ""; } - peer->output.assign(std::istreambuf_iterator(in), - std::istreambuf_iterator()); + // Size the body once, then read straight into peer->output: no per-byte + // iterator and no second copy. Still one open + one read per request. + const std::streampos end = in.seekg(0, std::ios::end).tellg(); + const std::streamsize size = end < 0 ? 0 : static_cast(end); + peer->output.resize(static_cast(size)); + in.seekg(0, std::ios::beg); + if (size > 0 && !in.read(&peer->output[0], size)) + { + // Short read (file shrank between sizing and reading): keep what arrived. + peer->output.resize(static_cast(in.gcount())); + } peer->type(mime_of(filename)); co_return ""; } diff --git a/frameworks/paozhu/src/controller/src/db.cpp b/frameworks/paozhu/src/controller/src/db.cpp index 9638d63482..dfe78d4fb1 100644 --- a/frameworks/paozhu/src/controller/src/db.cpp +++ b/frameworks/paozhu/src/controller/src/db.cpp @@ -60,10 +60,13 @@ namespace } }; - // The upstream PG pool grows on demand without honouring maxpool, so cap - // in-flight queries below DATABASE_MAX_CONN to keep under Postgres' - // max_connections. Waiting uses an asio timer, never a blocking semaphore: - // blocking an io thread can deadlock the coroutine that holds a ticket. + // The framework splits orm.conf's maxpool budget across io_context slots + // (per-slot quota = budget / slot count). Cap global in-flight queries at + // the smallest slot quota so even a fully skewed request distribution + // never pushes a slot into the pool's wait-timeout path; the env-derived + // budget stays as the ceiling and as the fallback when no pool exists. + // Waiting uses an asio timer, never a blocking semaphore: blocking an io + // thread can deadlock the coroutine that holds a ticket. class db_ticket { static std::atomic &in_flight() @@ -79,7 +82,25 @@ namespace int n = env ? std::atoi(env) : 256; if (n < 8) n = 8; if (n > 256) n = 256; - return n > 24 ? n - 24 : n; + int cap = n > 24 ? n - 24 : n; + + auto &pools = orm::get_orm_conn_pool_obj(); + auto it = pools.find("pg"); + if (it != pools.end() && it->second && !it->second->slots.empty()) + { + const auto &pool = *it->second; + unsigned int smallest = pool.slot_max_of(1, 0);// 1 = select role + for (unsigned int i = 1; i < pool.slots.size(); ++i) + { + const unsigned int q = pool.slot_max_of(1, i); + if (q < smallest) smallest = q; + } + if (smallest >= 1 && static_cast(smallest) < cap) + { + cap = static_cast(smallest); + } + } + return cap; }(); return value; } @@ -343,6 +364,10 @@ asio::awaitable arena_fortunes(std::shared_ptr peer) try { auto link = std::make_unique("pg"); + // 201 = 200 seeded rows + the runtime row appended below. The seed is + // this repo's own: 12 TechEmpower rows plus generate_series(13,200) in + // data/pgdb-seed.sql. It is not the 12-row TE contract, so revisit this + // if the seed changes; reserve() only sets capacity either way. rows.reserve(201); co_await link->async_query("SELECT id,message FROM fortune", rows); } From e7a8d4bbbab2987d328b76da1211ed66d737d1e5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 10 Nov 2026 17:35:09 +0000 Subject: [PATCH 14/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 230 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 2 +- site/static/logs/baseline-h2/256/paozhu.log | 14 +- site/static/logs/baseline/4096/paozhu.log | 8 +- site/static/logs/fortunes/1024/paozhu.log | 10 +- site/static/logs/json-h2c/4096/paozhu.log | 8 +- site/static/logs/json-tls/4096/paozhu.log | 10 +- site/static/logs/latency-10k/1024/paozhu.log | 10 +- site/static/logs/latency-1m/1024/paozhu.log | 10 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 6 +- site/static/logs/limited-conn/4096/paozhu.log | 8 +- site/static/logs/pipelined/4096/paozhu.log | 8 +- site/static/logs/static-h2/1024/paozhu.log | 10 +- site/static/logs/static-h2/256/paozhu.log | 4 +- 14 files changed, 169 insertions(+), 169 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index ffaa1963f9..7553906d57 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 27385, - "avg_latency": "37.14ms", - "p99_latency": "202.20ms", - "cpu": "657.7%", - "memory": "117MiB", + "rps": 5617, + "avg_latency": "180.16ms", + "p99_latency": "502.00ms", + "cpu": "306.1%", + "memory": "100MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "98.75MB/s", - "input_bw": "1.83MB/s", - "reconnects": 10520, - "status_2xx": 273852, + "bandwidth": "19.54MB/s", + "input_bw": "383.97KB/s", + "reconnects": 1850, + "status_2xx": 56173, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2596153, - "avg_latency": "1.58ms", - "p99_latency": "9.82ms", - "cpu": "6297.2%", - "memory": "146MiB", + "rps": 2624077, + "avg_latency": "1.56ms", + "p99_latency": "9.76ms", + "cpu": "6239.7%", + "memory": "147MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "262.37MB/s", - "input_bw": "200.55MB/s", + "bandwidth": "265.21MB/s", + "input_bw": "202.70MB/s", "reconnects": 0, - "status_2xx": 12980769, + "status_2xx": 13120388, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,18 +44,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 244139, - "avg_latency": "363.10ms", - "p99_latency": "4.98s", - "cpu": "2117.1%", + "rps": 245605, + "avg_latency": "385.28ms", + "p99_latency": "4.89s", + "cpu": "1994.0%", "memory": "2.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "11.08MB/s", + "bandwidth": "11.13MB/s", "reconnects": 0, - "status_2xx": 1235346, + "status_2xx": 1240309, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -63,18 +63,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 273863, - "avg_latency": "90.82ms", - "p99_latency": "1.65s", - "cpu": "2025.6%", + "rps": 276091, + "avg_latency": "89.88ms", + "p99_latency": "1.50s", + "cpu": "1957.3%", "memory": "632MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "12.35MB/s", + "bandwidth": "12.43MB/s", "reconnects": 0, - "status_2xx": 1377535, + "status_2xx": 1385980, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -82,18 +82,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 27715, - "avg_latency": "35.87ms", - "p99_latency": "204.20ms", - "cpu": "1036.0%", - "memory": "120MiB", + "rps": 5026, + "avg_latency": "198.60ms", + "p99_latency": "502.10ms", + "cpu": "323.0%", + "memory": "100MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "618.32MB/s", + "bandwidth": "104.48MB/s", "reconnects": 0, - "status_2xx": 138576, + "status_2xx": 25131, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -101,18 +101,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 208134, - "avg_latency": "152.94ms", - "p99_latency": "936.99ms", - "cpu": "1684.6%", + "rps": 203491, + "avg_latency": "156.17ms", + "p99_latency": "801.62ms", + "cpu": "1727.9%", "memory": "1.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "716.27MB/s", + "bandwidth": "700.01MB/s", "reconnects": 0, - "status_2xx": 1053162, + "status_2xx": 1029669, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -120,18 +120,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 192542, - "avg_latency": "619.51ms", - "p99_latency": "3.91s", - "cpu": "1783.3%", - "memory": "5.6GiB", + "rps": 194098, + "avg_latency": "611.26ms", + "p99_latency": "3.88s", + "cpu": "1781.7%", + "memory": "5.7GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "663.98MB/s", + "bandwidth": "671.36MB/s", "reconnects": 0, - "status_2xx": 980042, + "status_2xx": 991843, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -139,18 +139,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1050257, - "avg_latency": "4.41ms", - "p99_latency": "159.16ms", - "cpu": "6156.1%", - "memory": "447MiB", + "rps": 1059821, + "avg_latency": "5.79ms", + "p99_latency": "379.93ms", + "cpu": "6575.8%", + "memory": "529MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.55GB", + "bandwidth": "3.58GB", "reconnects": 0, - "status_2xx": 5357147, + "status_2xx": 5399457, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -158,91 +158,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9979, - "avg_latency": "88.2us", - "p99_latency": "113.0us", - "cpu": "30.4%", - "memory": "84MiB", + "rps": 9983, + "avg_latency": "71.7us", + "p99_latency": "108.0us", + "cpu": "27.8%", + "memory": "82MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199606, + "status_2xx": 199680, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 6367680, - "cpu_per_req_us": 31.9012, + "cpu_usec": 6036216, + "cpu_per_req_us": 30.2294, "target_rate": 10000, - "rate_ratio": 0.9979, - "p99_9_latency": "3097.0us" + "rate_ratio": 0.9983, + "p99_9_latency": "153.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997892, - "avg_latency": "112.8us", - "p99_latency": "187.0us", - "cpu": "3486.5%", - "memory": "89MiB", + "rps": 998034, + "avg_latency": "103.5us", + "p99_latency": "189.0us", + "cpu": "3447.1%", + "memory": "86MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.78MB/s", + "bandwidth": "104.79MB/s", "reconnects": 0, - "status_2xx": 19961892, + "status_2xx": 19963994, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 634648653, - "cpu_per_req_us": 31.793, + "cpu_usec": 625747554, + "cpu_per_req_us": 31.3438, "target_rate": 1000000, - "rate_ratio": 0.9979, - "p99_9_latency": "6246.0us" + "rate_ratio": 0.998, + "p99_9_latency": "413.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 373737, - "avg_latency": "2467551.3us", - "p99_latency": "5556224.0us", - "cpu": "807.2%", + "rps": 370665, + "avg_latency": "2535832.9us", + "p99_latency": "5613568.0us", + "cpu": "807.4%", "memory": "78MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "39.24MB/s", + "bandwidth": "38.92MB/s", "reconnects": 0, - "status_2xx": 7477508, + "status_2xx": 7416230, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159599136, - "cpu_per_req_us": 21.3439, + "cpu_usec": 159633624, + "cpu_per_req_us": 21.5249, "target_rate": 500000, - "rate_ratio": 0.7475, - "p99_9_latency": "5797888.0us" + "rate_ratio": 0.7413, + "p99_9_latency": "5879808.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 677579, - "avg_latency": "6.02ms", - "p99_latency": "61.00ms", - "cpu": "2580.8%", - "memory": "78MiB", + "rps": 694477, + "avg_latency": "5.87ms", + "p99_latency": "59.50ms", + "cpu": "2630.2%", + "memory": "89MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "68.47MB/s", - "input_bw": "52.34MB/s", - "reconnects": 338783, - "status_2xx": 3387895, + "bandwidth": "70.18MB/s", + "input_bw": "53.65MB/s", + "reconnects": 347240, + "status_2xx": 3472389, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -250,18 +250,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3674801, - "avg_latency": "17.84ms", - "p99_latency": "36.00ms", - "cpu": "6355.9%", + "rps": 3622772, + "avg_latency": "18.06ms", + "p99_latency": "36.10ms", + "cpu": "6348.9%", "memory": "138MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "371.38MB/s", + "bandwidth": "366.13MB/s", "reconnects": 0, - "status_2xx": 18374005, + "status_2xx": 18113862, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -269,18 +269,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 57441, - "avg_latency": "514.26ms", - "p99_latency": "4.98s", - "cpu": "3649.2%", + "rps": 60523, + "avg_latency": "481.65ms", + "p99_latency": "4.95s", + "cpu": "1757.3%", "memory": "5.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.41GB/s", + "bandwidth": "3.56GB/s", "reconnects": 0, - "status_2xx": 290655, + "status_2xx": 306248, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -288,18 +288,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 56996, - "avg_latency": "140.14ms", - "p99_latency": "2.32s", - "cpu": "3323.7%", - "memory": "1.7GiB", + "rps": 64977, + "avg_latency": "123.29ms", + "p99_latency": "1.95s", + "cpu": "1960.6%", + "memory": "1.5GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.39GB/s", + "bandwidth": "3.86GB/s", "reconnects": 0, - "status_2xx": 286692, + "status_2xx": 326835, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index 61672439db..ae6badc558 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index f1f9d70f9a..da8fac12c5 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf[sockets] not found or parse fail, socket client disabled/app/conf/main/sockets.conf - not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients -[mqtt_subpub] init: registered 0 clients [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index db63607e80..f4f72854a0 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf - not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index 594675f4e1..e199d30c63 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index a86dff7f76..ae6badc558 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf[websockets] not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled[mqtt_client] -/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index 594675f4e1..4b8b8d6db4 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index 40e2c64097..ae6badc558 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 7507d1b226..8a53c264b3 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +/app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index a781d4c2fa..ae6badc558 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index ae6badc558..5c95c008a8 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf[websockets] not found or parse fail, mqtt client disabled +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index ae6badc558..71afbc53ff 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/h1/mqtt.conf + not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index ae6badc558..3715f01c5d 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled From a1df5936f54b3124570a0865f92971e1dc05a8e9 Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 11 Nov 2026 09:32:09 +0800 Subject: [PATCH 15/89] Add paozhu --- frameworks/paozhu/src/conf/orm.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frameworks/paozhu/src/conf/orm.conf b/frameworks/paozhu/src/conf/orm.conf index d7733ddf34..65ed305c83 100644 --- a/frameworks/paozhu/src/conf/orm.conf +++ b/frameworks/paozhu/src/conf/orm.conf @@ -18,7 +18,9 @@ user = __DB_USER__ password = __DB_PASSWORD__ pretable = maxpool = __DB_MAX_CONN__ -minpool = 64 +# The DB profiles only run SELECTs, so the edit pool stays at one resident +# connection; the PG max_connections headroom belongs to the select pool. +minpool = 1 dbtype = postgresql charset = utf8 From a4ddde4af56dd3084781caef191560503aaa46f4 Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 11 Nov 2026 10:22:06 +0800 Subject: [PATCH 16/89] Add paozhu --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/src/conf/server.conf | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 59c18cf825..d7426fbf30 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=66c84a9e604502dc659d03f494eb18616e048486 +ARG PAOZHU_REF=828ab5c0027065b62670dcf978954ca59d737927 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index d68dafda4e..80c0f00185 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -4,10 +4,8 @@ [default] threadmax = 1024 threadmin = 5 -; Floor, not the real worker count: upstream uses -; max(cothreadnum, hardware_concurrency() + 4). Under the benchmark cpuset -; (0-31,64-95, 64 CPUs) this instance ends up with about 68 io threads. -cothreadnum = 8 +cothreadnum = 64 +io_context_num = 64 ;0 with std::thread::hardware_concurrency() httpport = 8080 httpsport = 8443 From fcb0655f6195ab86f7aa1fdca5b9fe4592f3c73d Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 11 Nov 2026 14:53:52 +0800 Subject: [PATCH 17/89] Add paozhu --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/src/conf/orm.conf | 2 +- frameworks/paozhu/src/conf/server.conf | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index d7426fbf30..687af9626d 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=828ab5c0027065b62670dcf978954ca59d737927 +ARG PAOZHU_REF=8b745624346c1e9067640f2525d2cbb1d6491162 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/src/conf/orm.conf b/frameworks/paozhu/src/conf/orm.conf index 65ed305c83..7a9b838ddf 100644 --- a/frameworks/paozhu/src/conf/orm.conf +++ b/frameworks/paozhu/src/conf/orm.conf @@ -32,6 +32,6 @@ user = __DB_USER__ password = __DB_PASSWORD__ pretable = maxpool = __DB_MAX_CONN__ -minpool = 64 +minpool = 8 dbtype = postgresql charset = utf8 diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index 80c0f00185..d3ec4e3f69 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -4,14 +4,14 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 64 -io_context_num = 64 ;0 with std::thread::hardware_concurrency() +cothreadnum = 16 ; ORM slot num and co base num +per_ioc_thread_num = 16 ; httpport = 8080 httpsport = 8443 http2_enable = 1 -global_http2_enable = 1 +global_http2_enable = 1 debug_enable = 0 deamon_enable = 0 From fa07f5ef8e832706604564be2a48c86ecbac8cd8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 11 Nov 2026 09:13:32 +0000 Subject: [PATCH 18/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 234 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 10 +- site/static/logs/baseline-h2/1024/paozhu.log | 10 +- site/static/logs/baseline-h2/256/paozhu.log | 4 +- site/static/logs/baseline/4096/paozhu.log | 8 +- site/static/logs/fortunes/1024/paozhu.log | 10 +- site/static/logs/json-h2c/1024/paozhu.log | 8 +- site/static/logs/json-h2c/4096/paozhu.log | 10 +- site/static/logs/json-tls/4096/paozhu.log | 6 +- site/static/logs/latency-10k/1024/paozhu.log | 10 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 10 +- site/static/logs/limited-conn/4096/paozhu.log | 8 +- site/static/logs/pipelined/4096/paozhu.log | 8 +- site/static/logs/static-h2/1024/paozhu.log | 10 +- site/static/logs/static-h2/256/paozhu.log | 4 +- 15 files changed, 175 insertions(+), 175 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 7553906d57..a230397b96 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 5617, - "avg_latency": "180.16ms", - "p99_latency": "502.00ms", - "cpu": "306.1%", - "memory": "100MiB", + "rps": 68534, + "avg_latency": "14.63ms", + "p99_latency": "74.90ms", + "cpu": "1899.8%", + "memory": "104MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.54MB/s", - "input_bw": "383.97KB/s", - "reconnects": 1850, - "status_2xx": 56173, + "bandwidth": "264.32MB/s", + "input_bw": "4.58MB/s", + "reconnects": 27041, + "status_2xx": 685343, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2624077, - "avg_latency": "1.56ms", - "p99_latency": "9.76ms", - "cpu": "6239.7%", - "memory": "147MiB", + "rps": 2405999, + "avg_latency": "1.71ms", + "p99_latency": "3.55ms", + "cpu": "6471.9%", + "memory": "157MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "265.21MB/s", - "input_bw": "202.70MB/s", + "bandwidth": "243.16MB/s", + "input_bw": "185.86MB/s", "reconnects": 0, - "status_2xx": 13120388, + "status_2xx": 12029998, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,18 +44,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 245605, - "avg_latency": "385.28ms", - "p99_latency": "4.89s", - "cpu": "1994.0%", + "rps": 189091, + "avg_latency": "458.98ms", + "p99_latency": "4.81s", + "cpu": "2969.3%", "memory": "2.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "11.13MB/s", + "bandwidth": "8.60MB/s", "reconnects": 0, - "status_2xx": 1240309, + "status_2xx": 958692, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -63,18 +63,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 276091, - "avg_latency": "89.88ms", - "p99_latency": "1.50s", - "cpu": "1957.3%", - "memory": "632MiB", + "rps": 221027, + "avg_latency": "112.99ms", + "p99_latency": "1.96s", + "cpu": "3085.9%", + "memory": "663MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "12.43MB/s", + "bandwidth": "9.97MB/s", "reconnects": 0, - "status_2xx": 1385980, + "status_2xx": 1111766, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -82,18 +82,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 5026, - "avg_latency": "198.60ms", - "p99_latency": "502.10ms", - "cpu": "323.0%", - "memory": "100MiB", + "rps": 43480, + "avg_latency": "22.60ms", + "p99_latency": "109.60ms", + "cpu": "2600.6%", + "memory": "110MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "104.48MB/s", + "bandwidth": "1.00GB/s", "reconnects": 0, - "status_2xx": 25131, + "status_2xx": 217401, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -101,18 +101,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 203491, - "avg_latency": "156.17ms", - "p99_latency": "801.62ms", - "cpu": "1727.9%", + "rps": 133024, + "avg_latency": "232.44ms", + "p99_latency": "4.00s", + "cpu": "881.9%", "memory": "1.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "700.01MB/s", + "bandwidth": "457.08MB/s", "reconnects": 0, - "status_2xx": 1029669, + "status_2xx": 673103, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -120,18 +120,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 194098, - "avg_latency": "611.26ms", - "p99_latency": "3.88s", - "cpu": "1781.7%", - "memory": "5.7GiB", + "rps": 94932, + "avg_latency": "1.15s", + "p99_latency": "4.96s", + "cpu": "664.9%", + "memory": "5.2GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "671.36MB/s", + "bandwidth": "324.45MB/s", "reconnects": 0, - "status_2xx": 991843, + "status_2xx": 483204, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -139,18 +139,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1059821, - "avg_latency": "5.79ms", - "p99_latency": "379.93ms", - "cpu": "6575.8%", - "memory": "529MiB", + "rps": 217773, + "avg_latency": "23.61ms", + "p99_latency": "404.08ms", + "cpu": "807.2%", + "memory": "563MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.58GB", + "bandwidth": "754.28MB", "reconnects": 0, - "status_2xx": 5399457, + "status_2xx": 1110490, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -158,91 +158,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9983, - "avg_latency": "71.7us", - "p99_latency": "108.0us", - "cpu": "27.8%", - "memory": "82MiB", + "rps": 9982, + "avg_latency": "84.2us", + "p99_latency": "106.0us", + "cpu": "43.1%", + "memory": "72MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199680, + "status_2xx": 199663, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 6036216, - "cpu_per_req_us": 30.2294, + "cpu_usec": 9394243, + "cpu_per_req_us": 47.0505, "target_rate": 10000, - "rate_ratio": 0.9983, - "p99_9_latency": "153.0us" + "rate_ratio": 0.9982, + "p99_9_latency": "2065.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 998034, - "avg_latency": "103.5us", - "p99_latency": "189.0us", - "cpu": "3447.1%", - "memory": "86MiB", + "rps": 997936, + "avg_latency": "210.2us", + "p99_latency": "648.0us", + "cpu": "5335.2%", + "memory": "93MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.79MB/s", + "bandwidth": "104.78MB/s", "reconnects": 0, - "status_2xx": 19963994, + "status_2xx": 19962279, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 625747554, - "cpu_per_req_us": 31.3438, + "cpu_usec": 951194657, + "cpu_per_req_us": 47.6496, "target_rate": 1000000, - "rate_ratio": 0.998, - "p99_9_latency": "413.0us" + "rate_ratio": 0.9979, + "p99_9_latency": "1653.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 370665, - "avg_latency": "2535832.9us", - "p99_latency": "5613568.0us", - "cpu": "807.4%", - "memory": "78MiB", + "rps": 352329, + "avg_latency": "2936475.6us", + "p99_latency": "6957056.0us", + "cpu": "805.5%", + "memory": "90MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "38.92MB/s", + "bandwidth": "36.99MB/s", "reconnects": 0, - "status_2xx": 7416230, + "status_2xx": 7048927, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159633624, - "cpu_per_req_us": 21.5249, + "cpu_usec": 159626429, + "cpu_per_req_us": 22.6455, "target_rate": 500000, - "rate_ratio": 0.7413, - "p99_9_latency": "5879808.0us" + "rate_ratio": 0.7047, + "p99_9_latency": "7530496.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 694477, - "avg_latency": "5.87ms", - "p99_latency": "59.50ms", - "cpu": "2630.2%", + "rps": 527728, + "avg_latency": "7.71ms", + "p99_latency": "78.60ms", + "cpu": "3599.1%", "memory": "89MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "70.18MB/s", - "input_bw": "53.65MB/s", - "reconnects": 347240, - "status_2xx": 3472389, + "bandwidth": "53.33MB/s", + "input_bw": "40.77MB/s", + "reconnects": 263863, + "status_2xx": 2638641, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -250,18 +250,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3622772, - "avg_latency": "18.06ms", - "p99_latency": "36.10ms", - "cpu": "6348.9%", - "memory": "138MiB", + "rps": 3350718, + "avg_latency": "19.66ms", + "p99_latency": "28.80ms", + "cpu": "6455.2%", + "memory": "146MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "366.13MB/s", + "bandwidth": "337.68MB/s", "reconnects": 0, - "status_2xx": 18113862, + "status_2xx": 16753593, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -269,18 +269,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 60523, - "avg_latency": "481.65ms", + "rps": 57349, + "avg_latency": "495.61ms", "p99_latency": "4.95s", - "cpu": "1757.3%", - "memory": "5.5GiB", + "cpu": "2401.5%", + "memory": "5.9GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.56GB/s", + "bandwidth": "3.36GB/s", "reconnects": 0, - "status_2xx": 306248, + "status_2xx": 289616, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -288,18 +288,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 64977, - "avg_latency": "123.29ms", - "p99_latency": "1.95s", - "cpu": "1960.6%", - "memory": "1.5GiB", + "rps": 60270, + "avg_latency": "133.28ms", + "p99_latency": "2.22s", + "cpu": "2500.8%", + "memory": "1.7GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.86GB/s", + "bandwidth": "3.58GB/s", "reconnects": 0, - "status_2xx": 326835, + "status_2xx": 302557, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index ae6badc558..d4d3f309fd 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf[websockets] not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[sockets] +/app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index ae6badc558..b5ba085bbf 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[sockets] +/app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index da8fac12c5..594675f4e1 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -7,8 +7,8 @@ [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index f4f72854a0..3809ca1f61 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf + not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf + not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index e199d30c63..ae6badc558 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index 594675f4e1..b98ce64edf 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index ae6badc558..946f1ae070 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index 4b8b8d6db4..ae6badc558 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 8a53c264b3..b98ce64edf 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -/app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index ae6badc558..3e633a520f 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index 5c95c008a8..f8c8687c1b 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf[websockets] not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index 71afbc53ff..ae6badc558 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/h1/mqtt.conf - not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index 3715f01c5d..ae6badc558 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled From 5075d16f8f6e52fa2c3e3133e3d22cc430458a7a Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 11 Nov 2026 18:08:50 +0800 Subject: [PATCH 19/89] Add paozhu --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/meta.json | 2 +- frameworks/paozhu/src/conf/orm.conf | 2 +- frameworks/paozhu/src/conf/server.conf | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 687af9626d..b72f099597 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=8b745624346c1e9067640f2525d2cbb1d6491162 +ARG PAOZHU_REF=c82eb48ce5ba785f247286d7c9e9659c9b7c1e39 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/meta.json b/frameworks/paozhu/meta.json index f6d0710390..77d39696b6 100644 --- a/frameworks/paozhu/meta.json +++ b/frameworks/paozhu/meta.json @@ -14,7 +14,7 @@ "repo": "https://github.com/hggq/paozhu", "enabled": true, "tests": [ - "baseline","latency-1m", "latency-10k", "latency-500k-8cpu", + "baseline","async","latency-1m", "latency-10k", "latency-500k-8cpu", "pipelined", "limited-conn", "json-tls", diff --git a/frameworks/paozhu/src/conf/orm.conf b/frameworks/paozhu/src/conf/orm.conf index 7a9b838ddf..e8db667fbe 100644 --- a/frameworks/paozhu/src/conf/orm.conf +++ b/frameworks/paozhu/src/conf/orm.conf @@ -32,6 +32,6 @@ user = __DB_USER__ password = __DB_PASSWORD__ pretable = maxpool = __DB_MAX_CONN__ -minpool = 8 +minpool = 3 dbtype = postgresql charset = utf8 diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index d3ec4e3f69..2ae47e26b6 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -4,8 +4,8 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 16 ; ORM slot num and co base num -per_ioc_thread_num = 16 ; +cothreadnum = 62 ; ORM slot num and co base num +per_ioc_thread_num = 1 ; httpport = 8080 httpsport = 8443 From 61508df1b15780fd5357dbf838f9cb5dc550ec61 Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 11 Nov 2026 18:48:58 +0800 Subject: [PATCH 20/89] Add paozhu --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/README.md | 1 + frameworks/paozhu/meta.json | 2 +- frameworks/paozhu/src/conf/orm.conf | 4 +-- frameworks/paozhu/src/conf/server.conf | 4 +-- .../paozhu/src/controller/src/arena.cpp | 34 +++++++++++++++++++ 6 files changed, 41 insertions(+), 6 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index b72f099597..32634dd46a 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=c82eb48ce5ba785f247286d7c9e9659c9b7c1e39 +ARG PAOZHU_REF=005a25c1678c0f746bf25622dd1e2fbdb200c0b6 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/README.md b/frameworks/paozhu/README.md index 8e34191d46..2f7ad43481 100644 --- a/frameworks/paozhu/README.md +++ b/frameworks/paozhu/README.md @@ -54,6 +54,7 @@ Registered through paozhu annotations; path parameters must be the final segment | `/static/{filename}` | GET | Reads `/data/static/{filename}` from disk and serves it with a MIME type | | `/async-db?min=&max=&limit=` | GET | Async Postgres range query over `items`, returns `{"items":[...],"count":N}` | | `/fortunes` | GET | Reads the 200 `fortune` rows, appends a runtime row, sorts and renders an HTML table | +| `/delay/{ms}` | GET | Waits `ms` ms on a per-request Asio timer (no blocking sleep), then echoes the value as plain text | `/data/dataset.json` is parsed once at startup into typed fields. String fields are kept as the raw bytes between the source quotes, so escapes round-trip exactly; the response body is serialized per request because `m` varies. A missing or malformed dataset makes `/json` return 400 rather than taking the other profiles down. diff --git a/frameworks/paozhu/meta.json b/frameworks/paozhu/meta.json index 77d39696b6..8d744da4a0 100644 --- a/frameworks/paozhu/meta.json +++ b/frameworks/paozhu/meta.json @@ -10,7 +10,7 @@ "response": true }, "engine": "paozhu", - "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static on every request, and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for json-h2c.", + "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static on every request, and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for json-h2c.", "repo": "https://github.com/hggq/paozhu", "enabled": true, "tests": [ diff --git a/frameworks/paozhu/src/conf/orm.conf b/frameworks/paozhu/src/conf/orm.conf index e8db667fbe..b86fa583db 100644 --- a/frameworks/paozhu/src/conf/orm.conf +++ b/frameworks/paozhu/src/conf/orm.conf @@ -20,7 +20,7 @@ pretable = maxpool = __DB_MAX_CONN__ # The DB profiles only run SELECTs, so the edit pool stays at one resident # connection; the PG max_connections headroom belongs to the select pool. -minpool = 1 +minpool = 0 dbtype = postgresql charset = utf8 @@ -32,6 +32,6 @@ user = __DB_USER__ password = __DB_PASSWORD__ pretable = maxpool = __DB_MAX_CONN__ -minpool = 3 +minpool = 8 dbtype = postgresql charset = utf8 diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index 2ae47e26b6..0fcd7df90c 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -4,8 +4,8 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 62 ; ORM slot num and co base num -per_ioc_thread_num = 1 ; +cothreadnum = 31 ; ORM slot num and co base num +per_ioc_thread_num = 4 ; httpport = 8080 httpsport = 8443 diff --git a/frameworks/paozhu/src/controller/src/arena.cpp b/frameworks/paozhu/src/controller/src/arena.cpp index 324a85f7cc..2c533b9fd5 100644 --- a/frameworks/paozhu/src/controller/src/arena.cpp +++ b/frameworks/paozhu/src/controller/src/arena.cpp @@ -1,5 +1,10 @@ #include "httppeer.h" +#include +#include +#include + +#include #include #include #include @@ -647,4 +652,33 @@ asio::awaitable arena_static(std::shared_ptr peer) co_return ""; } +//@urlpath(null,delay/:ms) +asio::awaitable arena_delay(std::shared_ptr peer) +{ + // Echo the raw path parameter: /delay/0 must answer "0", not a default. + const std::string text = peer->get["ms"].to_string(); + char *end = nullptr; + const long long asked = std::strtoll(text.c_str(), &end, 10); + long long ms = (end == text.c_str() || asked < 0) ? 0 : asked; + if (ms > 5000) + { + ms = 5000; + } + + // One timer per request, suspended on the coroutine's own executor. The + // async profile holds 32K connections, so a blocking sleep here would + // exhaust the io threads long before the first response is written. + if (ms > 0) + { + auto executor = co_await asio::this_coro::executor; + asio::steady_timer timer(executor); + timer.expires_after(std::chrono::milliseconds(ms)); + co_await timer.async_wait(asio::use_awaitable); + } + + peer->type("text/plain"); + peer->output = text; + co_return ""; +} + } // namespace http From 1e9fb1df1ab48d72627934e6245798b995459a33 Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 11 Nov 2026 19:13:52 +0800 Subject: [PATCH 21/89] Add paozhu --- frameworks/paozhu/src/conf/server.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index 0fcd7df90c..977cb00e70 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -5,7 +5,7 @@ threadmax = 1024 threadmin = 5 cothreadnum = 31 ; ORM slot num and co base num -per_ioc_thread_num = 4 ; +per_ioc_thread_num = 8 ; httpport = 8080 httpsport = 8443 From 1714fd6320dc82a79a6be513b6749b1ffda57688 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 11 Nov 2026 11:31:50 +0000 Subject: [PATCH 22/89] Benchmark results: paozhu [skip ci] --- site/data/frameworks.json | 2 +- site/data/results/paozhu.json | 254 ++++++++++-------- site/static/logs/async-db/1024/paozhu.log | 10 +- site/static/logs/async/32000/paozhu.log | 14 + site/static/logs/baseline-h2/1024/paozhu.log | 8 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline/4096/paozhu.log | 10 +- site/static/logs/fortunes/1024/paozhu.log | 6 +- site/static/logs/json-h2c/4096/paozhu.log | 8 +- site/static/logs/json-tls/4096/paozhu.log | 6 +- site/static/logs/latency-10k/1024/paozhu.log | 8 +- site/static/logs/latency-1m/1024/paozhu.log | 4 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 8 +- site/static/logs/limited-conn/4096/paozhu.log | 8 +- site/static/logs/pipelined/4096/paozhu.log | 10 +- site/static/logs/static-h2/256/paozhu.log | 8 +- 16 files changed, 203 insertions(+), 169 deletions(-) create mode 100644 site/static/logs/async/32000/paozhu.log diff --git a/site/data/frameworks.json b/site/data/frameworks.json index 28742f5979..b3d42aa76c 100644 --- a/site/data/frameworks.json +++ b/site/data/frameworks.json @@ -1844,7 +1844,7 @@ }, "paozhu": { "dir": "paozhu", - "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static on every request, and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for json-h2c.", + "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static on every request, and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for json-h2c.", "repo": "https://github.com/hggq/paozhu", "type": "experimental", "engine": "paozhu", diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index a230397b96..f04f335fec 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -1,22 +1,42 @@ { "framework": "paozhu", "results": { + "async-32000": { + "framework": "paozhu", + "language": "C++", + "rps": 1514541, + "avg_latency": "19.33ms", + "p99_latency": "26.50ms", + "cpu": "6071.9%", + "memory": "687MiB", + "connections": 32000, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "153.08MB/s", + "input_bw": "69.33MB/s", + "reconnects": 0, + "status_2xx": 15145415, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 68534, - "avg_latency": "14.63ms", - "p99_latency": "74.90ms", - "cpu": "1899.8%", - "memory": "104MiB", + "rps": 34395, + "avg_latency": "29.61ms", + "p99_latency": "145.20ms", + "cpu": "1337.1%", + "memory": "102MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "264.32MB/s", - "input_bw": "4.58MB/s", - "reconnects": 27041, - "status_2xx": 685343, + "bandwidth": "132.41MB/s", + "input_bw": "2.30MB/s", + "reconnects": 13315, + "status_2xx": 343953, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2405999, - "avg_latency": "1.71ms", - "p99_latency": "3.55ms", - "cpu": "6471.9%", - "memory": "157MiB", + "rps": 2508449, + "avg_latency": "1.64ms", + "p99_latency": "3.50ms", + "cpu": "6408.3%", + "memory": "156MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "243.16MB/s", - "input_bw": "185.86MB/s", + "bandwidth": "253.51MB/s", + "input_bw": "193.77MB/s", "reconnects": 0, - "status_2xx": 12029998, + "status_2xx": 12542247, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 189091, - "avg_latency": "458.98ms", - "p99_latency": "4.81s", - "cpu": "2969.3%", + "rps": 197883, + "avg_latency": "437.78ms", + "p99_latency": "4.98s", + "cpu": "3001.3%", "memory": "2.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "8.60MB/s", + "bandwidth": "8.97MB/s", "reconnects": 0, - "status_2xx": 958692, + "status_2xx": 999311, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -63,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 221027, - "avg_latency": "112.99ms", - "p99_latency": "1.96s", - "cpu": "3085.9%", - "memory": "663MiB", + "rps": 210875, + "avg_latency": "118.33ms", + "p99_latency": "1.64s", + "cpu": "3036.4%", + "memory": "668MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "9.97MB/s", + "bandwidth": "9.51MB/s", "reconnects": 0, - "status_2xx": 1111766, + "status_2xx": 1060702, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -82,18 +102,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 43480, - "avg_latency": "22.60ms", - "p99_latency": "109.60ms", - "cpu": "2600.6%", - "memory": "110MiB", + "rps": 23630, + "avg_latency": "42.65ms", + "p99_latency": "205.70ms", + "cpu": "1781.7%", + "memory": "109MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.00GB/s", + "bandwidth": "558.29MB/s", "reconnects": 0, - "status_2xx": 217401, + "status_2xx": 118152, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -101,18 +121,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 133024, - "avg_latency": "232.44ms", - "p99_latency": "4.00s", - "cpu": "881.9%", + "rps": 132412, + "avg_latency": "234.29ms", + "p99_latency": "3.78s", + "cpu": "825.8%", "memory": "1.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "457.08MB/s", + "bandwidth": "455.05MB/s", "reconnects": 0, - "status_2xx": 673103, + "status_2xx": 670008, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -120,18 +140,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 94932, - "avg_latency": "1.15s", - "p99_latency": "4.96s", - "cpu": "664.9%", - "memory": "5.2GiB", + "rps": 109142, + "avg_latency": "1.01s", + "p99_latency": "4.76s", + "cpu": "729.1%", + "memory": "5.3GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "324.45MB/s", + "bandwidth": "373.31MB/s", "reconnects": 0, - "status_2xx": 483204, + "status_2xx": 554445, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -139,18 +159,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 217773, - "avg_latency": "23.61ms", - "p99_latency": "404.08ms", - "cpu": "807.2%", - "memory": "563MiB", + "rps": 206275, + "avg_latency": "22.81ms", + "p99_latency": "344.82ms", + "cpu": "793.6%", + "memory": "462MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "754.28MB", + "bandwidth": "714.44MB", "reconnects": 0, - "status_2xx": 1110490, + "status_2xx": 1052225, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,90 +179,90 @@ "framework": "paozhu", "language": "C++", "rps": 9982, - "avg_latency": "84.2us", - "p99_latency": "106.0us", - "cpu": "43.1%", - "memory": "72MiB", + "avg_latency": "79.8us", + "p99_latency": "103.0us", + "cpu": "48.7%", + "memory": "80MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199663, + "status_2xx": 199662, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 9394243, - "cpu_per_req_us": 47.0505, + "cpu_usec": 9801680, + "cpu_per_req_us": 49.0914, "target_rate": 10000, "rate_ratio": 0.9982, - "p99_9_latency": "2065.0us" + "p99_9_latency": "3285.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997936, - "avg_latency": "210.2us", - "p99_latency": "648.0us", - "cpu": "5335.2%", - "memory": "93MiB", + "rps": 997670, + "avg_latency": "179.5us", + "p99_latency": "518.0us", + "cpu": "5639.9%", + "memory": "89MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.78MB/s", + "bandwidth": "104.76MB/s", "reconnects": 0, - "status_2xx": 19962279, + "status_2xx": 19956899, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 951194657, - "cpu_per_req_us": 47.6496, + "cpu_usec": 1016153967, + "cpu_per_req_us": 50.9174, "target_rate": 1000000, - "rate_ratio": 0.9979, - "p99_9_latency": "1653.0us" + "rate_ratio": 0.9977, + "p99_9_latency": "1439.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 352329, - "avg_latency": "2936475.6us", - "p99_latency": "6957056.0us", - "cpu": "805.5%", - "memory": "90MiB", + "rps": 353582, + "avg_latency": "2932922.1us", + "p99_latency": "6350848.0us", + "cpu": "762.4%", + "memory": "82MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "36.99MB/s", + "bandwidth": "37.13MB/s", "reconnects": 0, - "status_2xx": 7048927, + "status_2xx": 7075030, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159626429, - "cpu_per_req_us": 22.6455, + "cpu_usec": 159671941, + "cpu_per_req_us": 22.5684, "target_rate": 500000, - "rate_ratio": 0.7047, - "p99_9_latency": "7530496.0us" + "rate_ratio": 0.7072, + "p99_9_latency": "6875136.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 527728, - "avg_latency": "7.71ms", - "p99_latency": "78.60ms", - "cpu": "3599.1%", - "memory": "89MiB", + "rps": 531988, + "avg_latency": "7.65ms", + "p99_latency": "77.70ms", + "cpu": "3700.9%", + "memory": "90MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "53.33MB/s", - "input_bw": "40.77MB/s", - "reconnects": 263863, - "status_2xx": 2638641, + "bandwidth": "53.76MB/s", + "input_bw": "41.09MB/s", + "reconnects": 265994, + "status_2xx": 2659943, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -250,18 +270,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3350718, - "avg_latency": "19.66ms", - "p99_latency": "28.80ms", - "cpu": "6455.2%", - "memory": "146MiB", + "rps": 3456006, + "avg_latency": "18.98ms", + "p99_latency": "33.70ms", + "cpu": "6424.3%", + "memory": "136MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "337.68MB/s", + "bandwidth": "349.26MB/s", "reconnects": 0, - "status_2xx": 16753593, + "status_2xx": 17280033, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -269,18 +289,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 57349, - "avg_latency": "495.61ms", - "p99_latency": "4.95s", - "cpu": "2401.5%", - "memory": "5.9GiB", + "rps": 58055, + "avg_latency": "491.51ms", + "p99_latency": "4.96s", + "cpu": "2319.0%", + "memory": "6.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.36GB/s", + "bandwidth": "3.41GB/s", "reconnects": 0, - "status_2xx": 289616, + "status_2xx": 293180, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -288,18 +308,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 60270, - "avg_latency": "133.28ms", - "p99_latency": "2.22s", - "cpu": "2500.8%", - "memory": "1.7GiB", + "rps": 59068, + "avg_latency": "135.72ms", + "p99_latency": "2.11s", + "cpu": "2566.3%", + "memory": "1.8GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.58GB/s", + "bandwidth": "3.51GB/s", "reconnects": 0, - "status_2xx": 302557, + "status_2xx": 297117, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index d4d3f309fd..ae6badc558 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf[websockets] not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[sockets] -/app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log new file mode 100644 index 0000000000..f4f72854a0 --- /dev/null +++ b/site/static/logs/async/32000/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index b5ba085bbf..b0ca2814d4 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[sockets] -/app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled[sockets] +/app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 594675f4e1..3e633a520f 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 3809ca1f61..5c28ad555e 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf - not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf - not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index ae6badc558..e71987ebaf 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index b98ce64edf..cc768c8e6e 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 946f1ae070..3e633a520f 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index ae6badc558..c6f756bd8f 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index b98ce64edf..fd83ef3a35 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index 3e633a520f..7507d1b226 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index f8c8687c1b..ae6badc558 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From d2357dc277f7201c5e166646a44e1c1f9d4d1a91 Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 11 Nov 2026 19:46:33 +0800 Subject: [PATCH 23/89] Add paozhu --- frameworks/paozhu/src/conf/orm.conf | 2 +- frameworks/paozhu/src/conf/server.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/paozhu/src/conf/orm.conf b/frameworks/paozhu/src/conf/orm.conf index b86fa583db..aae1d9263b 100644 --- a/frameworks/paozhu/src/conf/orm.conf +++ b/frameworks/paozhu/src/conf/orm.conf @@ -32,6 +32,6 @@ user = __DB_USER__ password = __DB_PASSWORD__ pretable = maxpool = __DB_MAX_CONN__ -minpool = 8 +minpool = 10 dbtype = postgresql charset = utf8 diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index 977cb00e70..10a47aa6df 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -4,8 +4,8 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 31 ; ORM slot num and co base num -per_ioc_thread_num = 8 ; +cothreadnum = 24 ; ORM slot num and co base num +per_ioc_thread_num = 10 ; httpport = 8080 httpsport = 8443 From 287cdccc78ac35fb890dd1b599efc283dcd0c267 Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 11 Nov 2026 19:51:56 +0800 Subject: [PATCH 24/89] Add paozhu --- frameworks/paozhu/src/conf/orm.conf | 2 +- frameworks/paozhu/src/conf/server.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/paozhu/src/conf/orm.conf b/frameworks/paozhu/src/conf/orm.conf index aae1d9263b..527a26c656 100644 --- a/frameworks/paozhu/src/conf/orm.conf +++ b/frameworks/paozhu/src/conf/orm.conf @@ -32,6 +32,6 @@ user = __DB_USER__ password = __DB_PASSWORD__ pretable = maxpool = __DB_MAX_CONN__ -minpool = 10 +minpool = 30 dbtype = postgresql charset = utf8 diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index 10a47aa6df..edef920393 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -4,8 +4,8 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 24 ; ORM slot num and co base num -per_ioc_thread_num = 10 ; +cothreadnum = 8 ; ORM slot num and co base num +per_ioc_thread_num = 16 ; httpport = 8080 httpsport = 8443 From 27c58e9c9511a8fa56a4afe63c8f978c7f7fd042 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 11 Nov 2026 12:37:27 +0000 Subject: [PATCH 25/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 252 +++++++++--------- site/static/logs/async/32000/paozhu.log | 10 +- site/static/logs/baseline-h2/1024/paozhu.log | 8 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline/4096/paozhu.log | 6 +- site/static/logs/fortunes/1024/paozhu.log | 8 +- site/static/logs/json-h2c/4096/paozhu.log | 4 +- site/static/logs/json-tls/4096/paozhu.log | 8 +- site/static/logs/latency-10k/1024/paozhu.log | 8 +- site/static/logs/latency-1m/1024/paozhu.log | 8 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 6 +- site/static/logs/limited-conn/4096/paozhu.log | 6 +- site/static/logs/pipelined/4096/paozhu.log | 8 +- site/static/logs/static-h2/1024/paozhu.log | 10 +- 14 files changed, 175 insertions(+), 175 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index f04f335fec..e4a1c7fdef 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1514541, - "avg_latency": "19.33ms", - "p99_latency": "26.50ms", - "cpu": "6071.9%", - "memory": "687MiB", + "rps": 1221677, + "avg_latency": "23.96ms", + "p99_latency": "32.80ms", + "cpu": "5721.6%", + "memory": "602MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "153.08MB/s", - "input_bw": "69.33MB/s", + "bandwidth": "123.48MB/s", + "input_bw": "55.92MB/s", "reconnects": 0, - "status_2xx": 15145415, + "status_2xx": 12216770, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 34395, - "avg_latency": "29.61ms", - "p99_latency": "145.20ms", - "cpu": "1337.1%", - "memory": "102MiB", + "rps": 123944, + "avg_latency": "7.73ms", + "p99_latency": "39.30ms", + "cpu": "3123.3%", + "memory": "88MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "132.41MB/s", - "input_bw": "2.30MB/s", - "reconnects": 13315, - "status_2xx": 343953, + "bandwidth": "478.03MB/s", + "input_bw": "8.27MB/s", + "reconnects": 49247, + "status_2xx": 1239445, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2508449, - "avg_latency": "1.64ms", - "p99_latency": "3.50ms", - "cpu": "6408.3%", - "memory": "156MiB", + "rps": 1833296, + "avg_latency": "2.24ms", + "p99_latency": "3.82ms", + "cpu": "6469.8%", + "memory": "144MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "253.51MB/s", - "input_bw": "193.77MB/s", + "bandwidth": "185.28MB/s", + "input_bw": "141.62MB/s", "reconnects": 0, - "status_2xx": 12542247, + "status_2xx": 9166483, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 197883, - "avg_latency": "437.78ms", - "p99_latency": "4.98s", - "cpu": "3001.3%", - "memory": "2.2GiB", + "rps": 152054, + "avg_latency": "553.81ms", + "p99_latency": "4.96s", + "cpu": "2552.3%", + "memory": "2.1GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "8.97MB/s", + "bandwidth": "6.91MB/s", "reconnects": 0, - "status_2xx": 999311, + "status_2xx": 769396, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 210875, - "avg_latency": "118.33ms", - "p99_latency": "1.64s", - "cpu": "3036.4%", - "memory": "668MiB", + "rps": 167605, + "avg_latency": "149.05ms", + "p99_latency": "2.01s", + "cpu": "2533.6%", + "memory": "624MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "9.51MB/s", + "bandwidth": "7.56MB/s", "reconnects": 0, - "status_2xx": 1060702, + "status_2xx": 843057, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,18 +102,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 23630, - "avg_latency": "42.65ms", - "p99_latency": "205.70ms", - "cpu": "1781.7%", - "memory": "109MiB", + "rps": 58401, + "avg_latency": "16.33ms", + "p99_latency": "80.70ms", + "cpu": "3301.8%", + "memory": "94MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "558.29MB/s", + "bandwidth": "1.35GB/s", "reconnects": 0, - "status_2xx": 118152, + "status_2xx": 292007, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -121,18 +121,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 132412, - "avg_latency": "234.29ms", - "p99_latency": "3.78s", - "cpu": "825.8%", + "rps": 133479, + "avg_latency": "232.56ms", + "p99_latency": "3.72s", + "cpu": "871.0%", "memory": "1.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "455.05MB/s", + "bandwidth": "458.68MB/s", "reconnects": 0, - "status_2xx": 670008, + "status_2xx": 675404, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,18 +140,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 109142, - "avg_latency": "1.01s", - "p99_latency": "4.76s", - "cpu": "729.1%", - "memory": "5.3GiB", + "rps": 100961, + "avg_latency": "1.08s", + "p99_latency": "4.95s", + "cpu": "721.9%", + "memory": "4.9GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "373.31MB/s", + "bandwidth": "346.05MB/s", "reconnects": 0, - "status_2xx": 554445, + "status_2xx": 514905, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +159,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 206275, - "avg_latency": "22.81ms", - "p99_latency": "344.82ms", - "cpu": "793.6%", - "memory": "462MiB", + "rps": 207818, + "avg_latency": "25.60ms", + "p99_latency": "526.98ms", + "cpu": "806.2%", + "memory": "518MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "714.44MB", + "bandwidth": "719.79MB", "reconnects": 0, - "status_2xx": 1052225, + "status_2xx": 1059520, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -179,90 +179,90 @@ "framework": "paozhu", "language": "C++", "rps": 9982, - "avg_latency": "79.8us", - "p99_latency": "103.0us", - "cpu": "48.7%", - "memory": "80MiB", + "avg_latency": "87.9us", + "p99_latency": "105.0us", + "cpu": "45.4%", + "memory": "66MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199662, + "status_2xx": 199671, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 9801680, - "cpu_per_req_us": 49.0914, + "cpu_usec": 9480038, + "cpu_per_req_us": 47.4783, "target_rate": 10000, "rate_ratio": 0.9982, - "p99_9_latency": "3285.0us" + "p99_9_latency": "11948.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997670, - "avg_latency": "179.5us", - "p99_latency": "518.0us", - "cpu": "5639.9%", - "memory": "89MiB", + "rps": 998239, + "avg_latency": "152.5us", + "p99_latency": "407.0us", + "cpu": "4738.7%", + "memory": "78MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.76MB/s", + "bandwidth": "104.82MB/s", "reconnects": 0, - "status_2xx": 19956899, + "status_2xx": 19968206, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 1016153967, - "cpu_per_req_us": 50.9174, + "cpu_usec": 842565755, + "cpu_per_req_us": 42.1954, "target_rate": 1000000, - "rate_ratio": 0.9977, - "p99_9_latency": "1439.0us" + "rate_ratio": 0.9982, + "p99_9_latency": "2405.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 353582, - "avg_latency": "2932922.1us", - "p99_latency": "6350848.0us", - "cpu": "762.4%", - "memory": "82MiB", + "rps": 340950, + "avg_latency": "3174184.2us", + "p99_latency": "6477824.0us", + "cpu": "803.1%", + "memory": "77MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "37.13MB/s", + "bandwidth": "35.80MB/s", "reconnects": 0, - "status_2xx": 7075030, + "status_2xx": 6821393, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159671941, - "cpu_per_req_us": 22.5684, + "cpu_usec": 159575708, + "cpu_per_req_us": 23.3934, "target_rate": 500000, - "rate_ratio": 0.7072, - "p99_9_latency": "6875136.0us" + "rate_ratio": 0.6819, + "p99_9_latency": "6776832.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 531988, - "avg_latency": "7.65ms", - "p99_latency": "77.70ms", - "cpu": "3700.9%", - "memory": "90MiB", + "rps": 447535, + "avg_latency": "9.11ms", + "p99_latency": "91.80ms", + "cpu": "3144.7%", + "memory": "69MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "53.76MB/s", - "input_bw": "41.09MB/s", - "reconnects": 265994, - "status_2xx": 2659943, + "bandwidth": "45.23MB/s", + "input_bw": "34.57MB/s", + "reconnects": 223767, + "status_2xx": 2237676, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -270,18 +270,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3456006, - "avg_latency": "18.98ms", - "p99_latency": "33.70ms", - "cpu": "6424.3%", - "memory": "136MiB", + "rps": 3278145, + "avg_latency": "20.00ms", + "p99_latency": "27.00ms", + "cpu": "6464.0%", + "memory": "132MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "349.26MB/s", + "bandwidth": "331.30MB/s", "reconnects": 0, - "status_2xx": 17280033, + "status_2xx": 16390729, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -289,18 +289,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 58055, - "avg_latency": "491.51ms", - "p99_latency": "4.96s", - "cpu": "2319.0%", - "memory": "6.0GiB", + "rps": 53481, + "avg_latency": "540.50ms", + "p99_latency": "4.93s", + "cpu": "2275.2%", + "memory": "5.8GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.41GB/s", + "bandwidth": "3.10GB/s", "reconnects": 0, - "status_2xx": 293180, + "status_2xx": 270083, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -308,18 +308,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 59068, - "avg_latency": "135.72ms", - "p99_latency": "2.11s", - "cpu": "2566.3%", - "memory": "1.8GiB", + "rps": 53067, + "avg_latency": "150.79ms", + "p99_latency": "2.67s", + "cpu": "2389.5%", + "memory": "1.6GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.51GB/s", + "bandwidth": "3.15GB/s", "reconnects": 0, - "status_2xx": 297117, + "status_2xx": 266929, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index f4f72854a0..c8ee166f54 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf[websockets] not found or parse fail, socket client disabled +websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] /app/conf/main/mqtt.conf[sockets] not found or parse fail, mqtt client disabled/app/conf/h1/sockets.conf + not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index b0ca2814d4..ae6badc558 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled[sockets] -/app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 3e633a520f..ae6badc558 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 5c28ad555e..40e2c64097 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index e71987ebaf..67e566f1b9 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf[sockets] not found or parse fail, socket client disabled/app/conf/h1/sockets.conf + not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index cc768c8e6e..daa4dee7e7 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,7 +1,7 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 3e633a520f..594675f4e1 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index 594675f4e1..f7406321e1 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index c6f756bd8f..594675f4e1 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index fd83ef3a35..1b4f46a616 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabled +websockets.conf[sockets] not found or parse fail, websocket client disabled/app/conf/main/sockets.conf not found or parse fail, socket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index 7507d1b226..61672439db 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index ae6badc558..4b8b8d6db4 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From 9222b6c9d375adea29eaccbfba4830c252e91298 Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 11 Nov 2026 21:56:31 +0800 Subject: [PATCH 26/89] Add paozhu --- frameworks/paozhu/README.md | 6 +- frameworks/paozhu/meta.json | 2 +- frameworks/paozhu/src/conf/orm.conf | 2 +- frameworks/paozhu/src/conf/server-h1.conf | 5 ++ frameworks/paozhu/src/conf/server.conf | 9 +- .../paozhu/src/controller/src/arena.cpp | 85 +++++++++++++++---- 6 files changed, 85 insertions(+), 24 deletions(-) diff --git a/frameworks/paozhu/README.md b/frameworks/paozhu/README.md index 2f7ad43481..614aac1c89 100644 --- a/frameworks/paozhu/README.md +++ b/frameworks/paozhu/README.md @@ -51,14 +51,14 @@ Registered through paozhu annotations; path parameters must be the final segment | `/baseline11` | GET / POST | Sums query parameter values, plus the decimal POST body | | `/baseline2` | GET | Sums query parameter values | | `/json/{count}?m={multiplier}` | GET | Serializes the first `count` dataset items with `total = price × quantity × m` | -| `/static/{filename}` | GET | Reads `/data/static/{filename}` from disk and serves it with a MIME type | +| `/static/{filename}` | GET | Reads `/data/static/{filename}` and serves it with a MIME type; bodies are cached in `pzcache`, revalidated by a per-request `stat` | | `/async-db?min=&max=&limit=` | GET | Async Postgres range query over `items`, returns `{"items":[...],"count":N}` | | `/fortunes` | GET | Reads the 200 `fortune` rows, appends a runtime row, sorts and renders an HTML table | | `/delay/{ms}` | GET | Waits `ms` ms on a per-request Asio timer (no blocking sleep), then echoes the value as plain text | `/data/dataset.json` is parsed once at startup into typed fields. String fields are kept as the raw bytes between the source quotes, so escapes round-trip exactly; the response body is serialized per request because `m` varies. A missing or malformed dataset makes `/json` return 400 rather than taking the other profiles down. -Static files are read on every request (no preloaded copy), so a replaced file in the mounted directory shows up immediately. File names are restricted to `[A-Za-z0-9._-]` and must not contain `..`. +`/static/{filename}` is a registered route reading the mounted `/data/static` directory. Response bodies are cached with `pzcache` (in-process `std::map` behind one mutex), but the cache only spares the open+read: every request still `stat`s the file and compares mtime+size against the cached stamp, so a file the validation suite replaces mid-run is reloaded on the next request and stale bytes cannot outlive the inode they came from. Cache entries never expire by TTL (`expnum=0`) — the stat stamp decides freshness — and `save(..., cover_data=true)` overwrites a replaced file's old body instead of keeping it. File names are restricted to `[A-Za-z0-9._-]` and must not contain `..`. ## Notes @@ -70,7 +70,7 @@ Static files are read on every request (no preloaded copy), so a replaced file i - Raw (non-form, non-JSON) POST bodies are spilled to a temp file only when they exceed `CONST_HTTP_RAW_POST_SIZE` (2 MB). At the current `d73100bd` pin a 2-byte `POST /baseline11` body therefore stays in `httppeer::rawcontent`, and `raw_body()` returns it without touching the disk; the temp-file branch only exists for oversized bodies. At `71305087` every raw POST body went to a file and `raw_body()` had to read and unlink it — which is why that branch is still there and why the earlier measurements include per-POST file I/O that the current pin does not. - Only the `[default]` site section is configured, so every `Host` / SNI falls back to site 0. - `usehtmlcache` is intentionally absent from both conf files; a present key enables the disk pre-check for dotted URLs. Because the key is absent the pre-check never runs, so it never competes with `/static/:filename` either way, and `BENCHMARK` compiling that pre-check out is a no-op for this entry. -- Static compression is not implemented: `arena_static` ignores `Accept-Encoding` and always returns the identity bytes. The rules make compression optional for `static-h2` and only measure it when the response carries a `Content-Encoding`, so nothing fails today. Two facts for a later decision: `data/static` already ships `.br` and `.gz` twins next to every compressible original (`*.webp` and `*.woff2` have none), and the `static-h2` h2load run does send `Accept-Encoding: br;q=1, gzip;q=0.8`. Serving those twins by content negotiation is allowed by the static rules and is the largest per-request byte reduction available (about 1.24 MB of identity bodies per 20-file cycle); it is left out on purpose because it changes the bytes-per-request profile. +- Static compression is not implemented: `arena_static` ignores `Accept-Encoding` and always returns the identity bytes (the pzcache body cache holds originals, not encoded variants). The rules make compression optional for `static-h2` and only measure it when the response carries a `Content-Encoding`, so nothing fails today. `data/static` ships `.br` and `.gz` twins next to every compressible original, and the `static-h2` h2load run does send `Accept-Encoding: br;q=1, gzip;q=0.8` — serving encoded variants would be the largest per-request byte reduction available, but it changes the bytes-per-request profile and is left out on purpose. - The two processes use separate `temppath` / `logpath` directories so they never race on scratch files. - `cothreadnum` in both conf files is a floor, not the worker count: upstream computes `max(cothreadnum, hardware_concurrency() + 4)`. Under the profile cpuset (`0-31,64-95`, 64 CPUs) each process runs about 68 io threads, not 8, and the second process contributes a second set that stays idle while the other port is being profiled. - `PAOZHU_REF` selects the upstream revision. The Dockerfile uses a direct `codeload.github.com` tarball URL: `github.com/.../archive/...` 302-redirects to codeload and that hop is blocked on some networks. diff --git a/frameworks/paozhu/meta.json b/frameworks/paozhu/meta.json index 8d744da4a0..e074e5aeda 100644 --- a/frameworks/paozhu/meta.json +++ b/frameworks/paozhu/meta.json @@ -10,7 +10,7 @@ "response": true }, "engine": "paozhu", - "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static on every request, and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for json-h2c.", + "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static with bodies cached in-process via pzcache (revalidated by a per-request stat of mtime+size), and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for json-h2c.", "repo": "https://github.com/hggq/paozhu", "enabled": true, "tests": [ diff --git a/frameworks/paozhu/src/conf/orm.conf b/frameworks/paozhu/src/conf/orm.conf index 527a26c656..decb00deee 100644 --- a/frameworks/paozhu/src/conf/orm.conf +++ b/frameworks/paozhu/src/conf/orm.conf @@ -32,6 +32,6 @@ user = __DB_USER__ password = __DB_PASSWORD__ pretable = maxpool = __DB_MAX_CONN__ -minpool = 30 +minpool = 40 dbtype = postgresql charset = utf8 diff --git a/frameworks/paozhu/src/conf/server-h1.conf b/frameworks/paozhu/src/conf/server-h1.conf index 323b2eee41..f54237d054 100644 --- a/frameworks/paozhu/src/conf/server-h1.conf +++ b/frameworks/paozhu/src/conf/server-h1.conf @@ -28,7 +28,12 @@ tmp_dh_file = dh4096.pem chain_crt_file = server.crt session_type = 1 +; /static/* is served by a registered route reading /data/static directly, so +; the framework's native static path (and its on-disk compress cache) is never +; reached for those URLs. static_file_compress_cache = 0 +; Dead key at this pin: nothing in vendor/httpserver reads it. Kept for conf +; parity with upstream only. staticfile_cache_num = 0 resident_client_show = 0 rate_limit_status = 0 diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index edef920393..9fa5ae9985 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -4,8 +4,8 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 8 ; ORM slot num and co base num -per_ioc_thread_num = 16 ; +cothreadnum = 6 ; ORM slot num and co base num +per_ioc_thread_num = 32 ; httpport = 8080 httpsport = 8443 @@ -27,7 +27,12 @@ tmp_dh_file = dh4096.pem chain_crt_file = server.crt session_type = 1 +; /static/* is served by a registered route reading /data/static directly, so +; the framework's native static path (and its on-disk compress cache) is never +; reached for those URLs. static_file_compress_cache = 0 +; Dead key at this pin: nothing in vendor/httpserver reads it. Kept for conf +; parity with upstream only. staticfile_cache_num = 0 resident_client_show = 0 rate_limit_status = 0 diff --git a/frameworks/paozhu/src/controller/src/arena.cpp b/frameworks/paozhu/src/controller/src/arena.cpp index 2c533b9fd5..4d9df1ce20 100644 --- a/frameworks/paozhu/src/controller/src/arena.cpp +++ b/frameworks/paozhu/src/controller/src/arena.cpp @@ -1,9 +1,12 @@ #include "httppeer.h" +#include "pzcache.h" #include #include #include +#include + #include #include #include @@ -564,6 +567,18 @@ bool safe_filename(const std::string &name) return true; } +// pzcache payload for one /data/static file. The mtime/size stamp is the +// freshness check: it is compared against a fresh stat() on EVERY request, so +// a file the validation suite replaces mid-run is reloaded immediately and a +// stale body can never outlive the inode it was read from. Only the +// open+read is cached; the stat stays. +struct static_file_entry +{ + std::string body; + long long mtime_sec = 0; + long long file_size = 0; +}; + } // namespace namespace http @@ -620,34 +635,70 @@ asio::awaitable arena_json(std::shared_ptr peer) asio::awaitable arena_static(std::shared_ptr peer) { const std::string filename = peer->get["filename"].to_string(); - // Read on every request: the validation suite replaces a mounted file and - // expects the next response to carry the new bytes. - std::ifstream in; + struct stat st {}; + bool stat_ok = false; if (safe_filename(filename)) { - in.open("/data/static/" + filename, std::ios::binary); + // stat on every request: the validation suite replaces a mounted file + // and expects the next response to carry the new bytes. The pzcache + // entry only spares the open+read, never this freshness check. + stat_ok = ::stat(("/data/static/" + filename).c_str(), &st) == 0 && + (st.st_mode & S_IFREG) != 0; } - // is_open(), not operator bool(): a default-constructed ifstream has a - // goodbit state even though no file is attached, so a rejected filename - // would otherwise fall through to a 200 with an empty body. - if (!in.is_open()) + if (!stat_ok) { peer->status(404); peer->type("text/plain"); peer->output = "Not Found"; co_return ""; } - // Size the body once, then read straight into peer->output: no per-byte - // iterator and no second copy. Still one open + one read per request. - const std::streampos end = in.seekg(0, std::ios::end).tellg(); - const std::streamsize size = end < 0 ? 0 : static_cast(end); - peer->output.resize(static_cast(size)); - in.seekg(0, std::ios::beg); - if (size > 0 && !in.read(&peer->output[0], size)) + + pzcache &cache = pzcache::conn(); + const long long mtime_sec = static_cast(st.st_mtime); + const long long file_size = static_cast(st.st_size); + try + { + // get() throws "Not in pzcache" on miss, and the background exptime + // sweeper may erase between check() and get(), so the miss path is a + // catch rather than a check-then-get. expnum=0: the stat stamp above + // decides freshness, not a TTL. + const static_file_entry &hit = cache.get(filename); + if (hit.mtime_sec == mtime_sec && hit.file_size == file_size) + { + peer->output = hit.body; + peer->type(mime_of(filename)); + co_return ""; + } + } + catch (...) { - // Short read (file shrank between sizing and reading): keep what arrived. - peer->output.resize(static_cast(in.gcount())); } + + // Size the body once, then read straight into it: no per-byte iterator + // and no second copy. Short read (file shrank between stat and read): + // keep what arrived. A zero-size file is a valid body, not a miss. + std::ifstream in("/data/static/" + filename, std::ios::binary); + std::string body; + bool read_ok = false; + if (in.is_open()) + { + body.resize(static_cast(file_size)); + in.read(&body[0], file_size); + body.resize(static_cast(in.gcount())); + read_ok = true; + } + if (!read_ok) + { + peer->status(404); + peer->type("text/plain"); + peer->output = "Not Found"; + co_return ""; + } + // cover_data=true: a replaced file overwrites the old body instead of + // leaving it while only bumping exptime (pzcache's default). + static_file_entry entry{std::move(body), mtime_sec, file_size}; + cache.save(filename, entry, 0, true); + peer->output = std::move(entry.body); peer->type(mime_of(filename)); co_return ""; } From eece81ec79fd108659d5811edcfa955b7dc7f31b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 11 Nov 2026 14:30:49 +0000 Subject: [PATCH 27/89] Benchmark results: paozhu [skip ci] --- site/data/frameworks.json | 2 +- site/data/results/paozhu.json | 252 +++++++++--------- site/static/logs/async/32000/paozhu.log | 8 +- site/static/logs/baseline-h2/256/paozhu.log | 2 +- site/static/logs/baseline/4096/paozhu.log | 6 +- site/static/logs/fortunes/1024/paozhu.log | 10 +- site/static/logs/json-h2c/1024/paozhu.log | 8 +- site/static/logs/json-h2c/4096/paozhu.log | 4 +- site/static/logs/latency-10k/1024/paozhu.log | 8 +- site/static/logs/latency-1m/1024/paozhu.log | 8 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 8 +- site/static/logs/limited-conn/4096/paozhu.log | 2 +- site/static/logs/pipelined/4096/paozhu.log | 6 +- site/static/logs/static-h2/1024/paozhu.log | 10 +- site/static/logs/static-h2/256/paozhu.log | 6 +- 15 files changed, 170 insertions(+), 170 deletions(-) diff --git a/site/data/frameworks.json b/site/data/frameworks.json index b3d42aa76c..c35534be27 100644 --- a/site/data/frameworks.json +++ b/site/data/frameworks.json @@ -1844,7 +1844,7 @@ }, "paozhu": { "dir": "paozhu", - "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static on every request, and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for json-h2c.", + "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static with bodies cached in-process via pzcache (revalidated by a per-request stat of mtime+size), and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for json-h2c.", "repo": "https://github.com/hggq/paozhu", "type": "experimental", "engine": "paozhu", diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index e4a1c7fdef..1143e2c21a 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1221677, - "avg_latency": "23.96ms", - "p99_latency": "32.80ms", - "cpu": "5721.6%", - "memory": "602MiB", + "rps": 1082913, + "avg_latency": "27.06ms", + "p99_latency": "35.00ms", + "cpu": "5752.9%", + "memory": "618MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "123.48MB/s", - "input_bw": "55.92MB/s", + "bandwidth": "109.45MB/s", + "input_bw": "49.57MB/s", "reconnects": 0, - "status_2xx": 12216770, + "status_2xx": 10829138, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 123944, - "avg_latency": "7.73ms", - "p99_latency": "39.30ms", - "cpu": "3123.3%", - "memory": "88MiB", + "rps": 112381, + "avg_latency": "8.62ms", + "p99_latency": "45.80ms", + "cpu": "3182.7%", + "memory": "98MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "478.03MB/s", - "input_bw": "8.27MB/s", - "reconnects": 49247, - "status_2xx": 1239445, + "bandwidth": "433.41MB/s", + "input_bw": "7.50MB/s", + "reconnects": 44652, + "status_2xx": 1123810, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 1833296, - "avg_latency": "2.24ms", - "p99_latency": "3.82ms", - "cpu": "6469.8%", - "memory": "144MiB", + "rps": 1709160, + "avg_latency": "2.40ms", + "p99_latency": "3.85ms", + "cpu": "6523.3%", + "memory": "148MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "185.28MB/s", - "input_bw": "141.62MB/s", + "bandwidth": "172.75MB/s", + "input_bw": "132.03MB/s", "reconnects": 0, - "status_2xx": 9166483, + "status_2xx": 8545802, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 152054, - "avg_latency": "553.81ms", - "p99_latency": "4.96s", - "cpu": "2552.3%", - "memory": "2.1GiB", + "rps": 166946, + "avg_latency": "511.64ms", + "p99_latency": "4.95s", + "cpu": "2875.3%", + "memory": "2.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "6.91MB/s", + "bandwidth": "7.58MB/s", "reconnects": 0, - "status_2xx": 769396, + "status_2xx": 844750, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 167605, - "avg_latency": "149.05ms", - "p99_latency": "2.01s", - "cpu": "2533.6%", - "memory": "624MiB", + "rps": 175466, + "avg_latency": "142.42ms", + "p99_latency": "2.17s", + "cpu": "2888.6%", + "memory": "644MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "7.56MB/s", + "bandwidth": "7.91MB/s", "reconnects": 0, - "status_2xx": 843057, + "status_2xx": 882595, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,18 +102,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 58401, - "avg_latency": "16.33ms", - "p99_latency": "80.70ms", - "cpu": "3301.8%", - "memory": "94MiB", + "rps": 50705, + "avg_latency": "19.25ms", + "p99_latency": "93.90ms", + "cpu": "3126.8%", + "memory": "104MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.35GB/s", + "bandwidth": "1.17GB/s", "reconnects": 0, - "status_2xx": 292007, + "status_2xx": 253526, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -121,18 +121,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 133479, - "avg_latency": "232.56ms", - "p99_latency": "3.72s", - "cpu": "871.0%", + "rps": 132409, + "avg_latency": "233.81ms", + "p99_latency": "3.83s", + "cpu": "841.6%", "memory": "1.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "458.68MB/s", + "bandwidth": "454.01MB/s", "reconnects": 0, - "status_2xx": 675404, + "status_2xx": 668667, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,18 +140,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 100961, - "avg_latency": "1.08s", + "rps": 102667, + "avg_latency": "1.07s", "p99_latency": "4.95s", - "cpu": "721.9%", - "memory": "4.9GiB", + "cpu": "707.8%", + "memory": "5.3GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "346.05MB/s", + "bandwidth": "350.64MB/s", "reconnects": 0, - "status_2xx": 514905, + "status_2xx": 521551, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +159,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 207818, - "avg_latency": "25.60ms", - "p99_latency": "526.98ms", - "cpu": "806.2%", - "memory": "518MiB", + "rps": 211781, + "avg_latency": "24.02ms", + "p99_latency": "406.96ms", + "cpu": "806.9%", + "memory": "526MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "719.79MB", + "bandwidth": "733.51MB", "reconnects": 0, - "status_2xx": 1059520, + "status_2xx": 1080130, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -178,91 +178,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9982, - "avg_latency": "87.9us", - "p99_latency": "105.0us", - "cpu": "45.4%", - "memory": "66MiB", + "rps": 9981, + "avg_latency": "84.2us", + "p99_latency": "106.0us", + "cpu": "44.7%", + "memory": "67MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199671, + "status_2xx": 199646, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 9480038, - "cpu_per_req_us": 47.4783, + "cpu_usec": 9351395, + "cpu_per_req_us": 46.8399, "target_rate": 10000, - "rate_ratio": 0.9982, - "p99_9_latency": "11948.0us" + "rate_ratio": 0.9981, + "p99_9_latency": "7546.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 998239, - "avg_latency": "152.5us", - "p99_latency": "407.0us", - "cpu": "4738.7%", - "memory": "78MiB", + "rps": 998351, + "avg_latency": "284.9us", + "p99_latency": "1198.0us", + "cpu": "4689.7%", + "memory": "86MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.82MB/s", + "bandwidth": "104.83MB/s", "reconnects": 0, - "status_2xx": 19968206, + "status_2xx": 19970692, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 842565755, - "cpu_per_req_us": 42.1954, + "cpu_usec": 847751758, + "cpu_per_req_us": 42.4498, "target_rate": 1000000, - "rate_ratio": 0.9982, - "p99_9_latency": "2405.0us" + "rate_ratio": 0.9984, + "p99_9_latency": "5758.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 340950, - "avg_latency": "3174184.2us", - "p99_latency": "6477824.0us", - "cpu": "803.1%", - "memory": "77MiB", + "rps": 338424, + "avg_latency": "3206387.1us", + "p99_latency": "7288832.0us", + "cpu": "797.9%", + "memory": "93MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "35.80MB/s", + "bandwidth": "35.53MB/s", "reconnects": 0, - "status_2xx": 6821393, + "status_2xx": 6771813, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159575708, - "cpu_per_req_us": 23.3934, + "cpu_usec": 159436942, + "cpu_per_req_us": 23.5442, "target_rate": 500000, - "rate_ratio": 0.6819, - "p99_9_latency": "6776832.0us" + "rate_ratio": 0.6768, + "p99_9_latency": "8116224.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 447535, - "avg_latency": "9.11ms", - "p99_latency": "91.80ms", - "cpu": "3144.7%", - "memory": "69MiB", + "rps": 443213, + "avg_latency": "9.20ms", + "p99_latency": "92.70ms", + "cpu": "3403.2%", + "memory": "77MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "45.23MB/s", - "input_bw": "34.57MB/s", - "reconnects": 223767, - "status_2xx": 2237676, + "bandwidth": "44.79MB/s", + "input_bw": "34.24MB/s", + "reconnects": 221605, + "status_2xx": 2216068, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -270,18 +270,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3278145, - "avg_latency": "20.00ms", - "p99_latency": "27.00ms", - "cpu": "6464.0%", - "memory": "132MiB", + "rps": 2671311, + "avg_latency": "24.59ms", + "p99_latency": "33.90ms", + "cpu": "6635.7%", + "memory": "136MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "331.30MB/s", + "bandwidth": "269.97MB/s", "reconnects": 0, - "status_2xx": 16390729, + "status_2xx": 13356556, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -289,18 +289,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 53481, - "avg_latency": "540.50ms", + "rps": 56176, + "avg_latency": "523.58ms", "p99_latency": "4.93s", - "cpu": "2275.2%", - "memory": "5.8GiB", + "cpu": "2348.3%", + "memory": "6.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.10GB/s", + "bandwidth": "3.30GB/s", "reconnects": 0, - "status_2xx": 270083, + "status_2xx": 284255, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -308,18 +308,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 53067, - "avg_latency": "150.79ms", - "p99_latency": "2.67s", - "cpu": "2389.5%", - "memory": "1.6GiB", + "rps": 57071, + "avg_latency": "140.08ms", + "p99_latency": "2.18s", + "cpu": "2213.0%", + "memory": "1.8GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.15GB/s", + "bandwidth": "3.39GB/s", "reconnects": 0, - "status_2xx": 266929, + "status_2xx": 287642, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index c8ee166f54..594675f4e1 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf[websockets] not found or parse fail, socket client disabled -websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/main/mqtt.conf[sockets] not found or parse fail, mqtt client disabled/app/conf/h1/sockets.conf - not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index ae6badc558..9dc0d2ee1c 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 40e2c64097..5c28ad555e 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index 67e566f1b9..61672439db 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf[sockets] not found or parse fail, socket client disabled/app/conf/h1/sockets.conf - not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index ae6badc558..5c28ad555e 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index daa4dee7e7..8eb0722e8a 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index f7406321e1..7a9e321588 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 1b4f46a616..72b51d9f5b 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] [websockets] websockets.conf not found or parse fail, websocket client disabled -websockets.conf[sockets] not found or parse fail, websocket client disabled/app/conf/main/sockets.conf not found or parse fail, socket client disabled - -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +websockets.conf[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled + not found or parse fail, websocket client disabled[mqtt_client] +[sockets] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +/app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index 61672439db..ae6badc558 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index 594675f4e1..61672439db 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index 4b8b8d6db4..ae6badc558 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index 594675f4e1..9dc0d2ee1c 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From 1821391ef148cec8abd4f34602dfe4d57074fc66 Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 11 Nov 2026 22:39:51 +0800 Subject: [PATCH 28/89] Add paozhu --- frameworks/paozhu/src/conf/orm.conf | 2 +- frameworks/paozhu/src/conf/server.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/paozhu/src/conf/orm.conf b/frameworks/paozhu/src/conf/orm.conf index decb00deee..9d4449785c 100644 --- a/frameworks/paozhu/src/conf/orm.conf +++ b/frameworks/paozhu/src/conf/orm.conf @@ -32,6 +32,6 @@ user = __DB_USER__ password = __DB_PASSWORD__ pretable = maxpool = __DB_MAX_CONN__ -minpool = 40 +minpool = 20 dbtype = postgresql charset = utf8 diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index 9fa5ae9985..990dbafa14 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -4,8 +4,8 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 6 ; ORM slot num and co base num -per_ioc_thread_num = 32 ; +cothreadnum = 12 ; ORM slot num and co base num +per_ioc_thread_num = 10 ; httpport = 8080 httpsport = 8443 From 9a85c3a5fa2d25306be193aca96f3be3319f4135 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 11 Nov 2026 15:16:38 +0000 Subject: [PATCH 29/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 250 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 2 +- site/static/logs/async/32000/paozhu.log | 8 +- site/static/logs/baseline-h2/256/paozhu.log | 6 +- site/static/logs/baseline/4096/paozhu.log | 2 +- site/static/logs/fortunes/1024/paozhu.log | 6 +- site/static/logs/json-h2c/1024/paozhu.log | 4 +- site/static/logs/json-h2c/4096/paozhu.log | 8 +- site/static/logs/json-tls/4096/paozhu.log | 2 +- site/static/logs/latency-10k/1024/paozhu.log | 2 +- site/static/logs/latency-1m/1024/paozhu.log | 10 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 12 +- site/static/logs/pipelined/4096/paozhu.log | 6 +- site/static/logs/static-h2/1024/paozhu.log | 10 +- site/static/logs/static-h2/256/paozhu.log | 6 +- 15 files changed, 167 insertions(+), 167 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 1143e2c21a..24a1540eae 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1082913, - "avg_latency": "27.06ms", - "p99_latency": "35.00ms", - "cpu": "5752.9%", - "memory": "618MiB", + "rps": 1363166, + "avg_latency": "21.48ms", + "p99_latency": "31.90ms", + "cpu": "5777.9%", + "memory": "602MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "109.45MB/s", - "input_bw": "49.57MB/s", + "bandwidth": "137.78MB/s", + "input_bw": "62.40MB/s", "reconnects": 0, - "status_2xx": 10829138, + "status_2xx": 13631666, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 112381, - "avg_latency": "8.62ms", - "p99_latency": "45.80ms", - "cpu": "3182.7%", - "memory": "98MiB", + "rps": 90578, + "avg_latency": "10.86ms", + "p99_latency": "54.70ms", + "cpu": "2572.2%", + "memory": "86MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "433.41MB/s", - "input_bw": "7.50MB/s", - "reconnects": 44652, - "status_2xx": 1123810, + "bandwidth": "349.27MB/s", + "input_bw": "6.05MB/s", + "reconnects": 35989, + "status_2xx": 905787, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 1709160, - "avg_latency": "2.40ms", - "p99_latency": "3.85ms", - "cpu": "6523.3%", - "memory": "148MiB", + "rps": 2166876, + "avg_latency": "1.90ms", + "p99_latency": "4.04ms", + "cpu": "6653.1%", + "memory": "142MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "172.75MB/s", - "input_bw": "132.03MB/s", + "bandwidth": "218.99MB/s", + "input_bw": "167.39MB/s", "reconnects": 0, - "status_2xx": 8545802, + "status_2xx": 10834382, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 166946, - "avg_latency": "511.64ms", - "p99_latency": "4.95s", - "cpu": "2875.3%", - "memory": "2.2GiB", + "rps": 164777, + "avg_latency": "515.30ms", + "p99_latency": "4.97s", + "cpu": "2634.7%", + "memory": "2.1GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "7.58MB/s", + "bandwidth": "7.48MB/s", "reconnects": 0, - "status_2xx": 844750, + "status_2xx": 833775, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 175466, - "avg_latency": "142.42ms", - "p99_latency": "2.17s", - "cpu": "2888.6%", - "memory": "644MiB", + "rps": 177645, + "avg_latency": "140.87ms", + "p99_latency": "1.98s", + "cpu": "2678.4%", + "memory": "622MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "7.91MB/s", + "bandwidth": "8.01MB/s", "reconnects": 0, - "status_2xx": 882595, + "status_2xx": 893558, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,18 +102,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 50705, - "avg_latency": "19.25ms", - "p99_latency": "93.90ms", - "cpu": "3126.8%", - "memory": "104MiB", + "rps": 49685, + "avg_latency": "19.63ms", + "p99_latency": "96.30ms", + "cpu": "2963.0%", + "memory": "87MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.17GB/s", + "bandwidth": "1.15GB/s", "reconnects": 0, - "status_2xx": 253526, + "status_2xx": 248428, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -121,18 +121,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 132409, - "avg_latency": "233.81ms", - "p99_latency": "3.83s", - "cpu": "841.6%", + "rps": 137265, + "avg_latency": "225.70ms", + "p99_latency": "3.67s", + "cpu": "853.9%", "memory": "1.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "454.01MB/s", + "bandwidth": "471.62MB/s", "reconnects": 0, - "status_2xx": 668667, + "status_2xx": 694563, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,18 +140,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 102667, - "avg_latency": "1.07s", - "p99_latency": "4.95s", - "cpu": "707.8%", - "memory": "5.3GiB", + "rps": 84593, + "avg_latency": "1.31s", + "p99_latency": "4.98s", + "cpu": "724.3%", + "memory": "5.0GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "350.64MB/s", + "bandwidth": "288.25MB/s", "reconnects": 0, - "status_2xx": 521551, + "status_2xx": 429737, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +159,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 211781, - "avg_latency": "24.02ms", - "p99_latency": "406.96ms", - "cpu": "806.9%", - "memory": "526MiB", + "rps": 204975, + "avg_latency": "22.37ms", + "p99_latency": "357.64ms", + "cpu": "797.2%", + "memory": "449MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "733.51MB", + "bandwidth": "709.94MB", "reconnects": 0, - "status_2xx": 1080130, + "status_2xx": 1045322, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -179,9 +179,9 @@ "framework": "paozhu", "language": "C++", "rps": 9981, - "avg_latency": "84.2us", - "p99_latency": "106.0us", - "cpu": "44.7%", + "avg_latency": "80.2us", + "p99_latency": "105.0us", + "cpu": "46.2%", "memory": "67MiB", "connections": 1024, "threads": 64, @@ -189,80 +189,80 @@ "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199646, + "status_2xx": 199645, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 9351395, - "cpu_per_req_us": 46.8399, + "cpu_usec": 9709658, + "cpu_per_req_us": 48.6346, "target_rate": 10000, "rate_ratio": 0.9981, - "p99_9_latency": "7546.0us" + "p99_9_latency": "203.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 998351, - "avg_latency": "284.9us", - "p99_latency": "1198.0us", - "cpu": "4689.7%", - "memory": "86MiB", + "rps": 997557, + "avg_latency": "159.7us", + "p99_latency": "504.0us", + "cpu": "4637.2%", + "memory": "81MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.83MB/s", + "bandwidth": "104.74MB/s", "reconnects": 0, - "status_2xx": 19970692, + "status_2xx": 19954443, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 847751758, - "cpu_per_req_us": 42.4498, + "cpu_usec": 827013298, + "cpu_per_req_us": 41.4451, "target_rate": 1000000, - "rate_ratio": 0.9984, - "p99_9_latency": "5758.0us" + "rate_ratio": 0.9976, + "p99_9_latency": "2303.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 338424, - "avg_latency": "3206387.1us", - "p99_latency": "7288832.0us", - "cpu": "797.9%", - "memory": "93MiB", + "rps": 341063, + "avg_latency": "3171722.5us", + "p99_latency": "6621184.0us", + "cpu": "806.2%", + "memory": "72MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "35.53MB/s", + "bandwidth": "35.81MB/s", "reconnects": 0, - "status_2xx": 6771813, + "status_2xx": 6823472, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159436942, - "cpu_per_req_us": 23.5442, + "cpu_usec": 159749459, + "cpu_per_req_us": 23.4118, "target_rate": 500000, - "rate_ratio": 0.6768, - "p99_9_latency": "8116224.0us" + "rate_ratio": 0.6821, + "p99_9_latency": "7034880.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 443213, - "avg_latency": "9.20ms", - "p99_latency": "92.70ms", - "cpu": "3403.2%", - "memory": "77MiB", + "rps": 437320, + "avg_latency": "9.31ms", + "p99_latency": "94.00ms", + "cpu": "3160.1%", + "memory": "72MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "44.79MB/s", - "input_bw": "34.24MB/s", - "reconnects": 221605, - "status_2xx": 2216068, + "bandwidth": "44.19MB/s", + "input_bw": "33.78MB/s", + "reconnects": 218655, + "status_2xx": 2186603, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -270,18 +270,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 2671311, - "avg_latency": "24.59ms", - "p99_latency": "33.90ms", - "cpu": "6635.7%", - "memory": "136MiB", + "rps": 3087493, + "avg_latency": "21.27ms", + "p99_latency": "33.60ms", + "cpu": "6632.4%", + "memory": "131MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "269.97MB/s", + "bandwidth": "312.07MB/s", "reconnects": 0, - "status_2xx": 13356556, + "status_2xx": 15437465, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -289,18 +289,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 56176, - "avg_latency": "523.58ms", - "p99_latency": "4.93s", - "cpu": "2348.3%", - "memory": "6.0GiB", + "rps": 56193, + "avg_latency": "521.81ms", + "p99_latency": "4.96s", + "cpu": "2176.9%", + "memory": "5.8GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.30GB/s", + "bandwidth": "3.29GB/s", "reconnects": 0, - "status_2xx": 284255, + "status_2xx": 283776, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -308,18 +308,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 57071, - "avg_latency": "140.08ms", - "p99_latency": "2.18s", - "cpu": "2213.0%", - "memory": "1.8GiB", + "rps": 58246, + "avg_latency": "137.58ms", + "p99_latency": "2.48s", + "cpu": "2083.6%", + "memory": "1.7GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.39GB/s", + "bandwidth": "3.45GB/s", "reconnects": 0, - "status_2xx": 287642, + "status_2xx": 292982, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index ae6badc558..61672439db 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 9dc0d2ee1c..7507d1b226 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 5c28ad555e..496f177217 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,6 +1,6 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index 61672439db..594675f4e1 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index 5c28ad555e..fd83ef3a35 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,7 +1,7 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index 8eb0722e8a..5a3ddc5d5f 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 594675f4e1..a781d4c2fa 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index 7a9e321588..ae6badc558 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index ae6badc558..762ef01efe 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 72b51d9f5b..5c3c4c6a95 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabled -websockets.conf[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled - not found or parse fail, websocket client disabled[mqtt_client] -[sockets] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -/app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled[mqtt_client] +/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index 61672439db..594675f4e1 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index ae6badc558..eafd3abba4 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index 9dc0d2ee1c..7507d1b226 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients From 2332d83b8396efca60135092ffc785d9bba5f8e5 Mon Sep 17 00:00:00 2001 From: hzq Date: Thu, 12 Nov 2026 16:33:26 +0800 Subject: [PATCH 30/89] Fix h2 orm --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/src/conf/orm.conf | 2 +- frameworks/paozhu/src/conf/server-h1.conf | 4 +++- frameworks/paozhu/src/conf/server.conf | 5 +++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 32634dd46a..bad7384e7e 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=005a25c1678c0f746bf25622dd1e2fbdb200c0b6 +ARG PAOZHU_REF=0f4e89ae1f72cb394119fa213da0ff3d109c3229 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/src/conf/orm.conf b/frameworks/paozhu/src/conf/orm.conf index 9d4449785c..3f44947313 100644 --- a/frameworks/paozhu/src/conf/orm.conf +++ b/frameworks/paozhu/src/conf/orm.conf @@ -32,6 +32,6 @@ user = __DB_USER__ password = __DB_PASSWORD__ pretable = maxpool = __DB_MAX_CONN__ -minpool = 20 +minpool = 50 dbtype = postgresql charset = utf8 diff --git a/frameworks/paozhu/src/conf/server-h1.conf b/frameworks/paozhu/src/conf/server-h1.conf index f54237d054..b1ab5f7b38 100644 --- a/frameworks/paozhu/src/conf/server-h1.conf +++ b/frameworks/paozhu/src/conf/server-h1.conf @@ -8,7 +8,9 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 8 +cothreadnum = 64 ; Use this value < number of CPU cores +per_ioc_thread_num = 1 ; +orm_ioc_num = 4 ;ORM io_context num; httpport = 8082 httpsport = 8081 diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index 990dbafa14..231e443886 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -4,8 +4,9 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 12 ; ORM slot num and co base num -per_ioc_thread_num = 10 ; +cothreadnum = 64 ; Use this value < number of CPU cores +per_ioc_thread_num = 1 ; +orm_ioc_num = 4 ;ORM io_context num; httpport = 8080 httpsport = 8443 From 99c4b28b3617abf15a601f30c3e5f413b913c1ba Mon Sep 17 00:00:00 2001 From: hzq Date: Thu, 12 Nov 2026 18:10:52 +0800 Subject: [PATCH 31/89] Fix orm init 55 --- frameworks/paozhu/src/conf/orm.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/src/conf/orm.conf b/frameworks/paozhu/src/conf/orm.conf index 3f44947313..4c9e6fa363 100644 --- a/frameworks/paozhu/src/conf/orm.conf +++ b/frameworks/paozhu/src/conf/orm.conf @@ -32,6 +32,6 @@ user = __DB_USER__ password = __DB_PASSWORD__ pretable = maxpool = __DB_MAX_CONN__ -minpool = 50 +minpool = 55 dbtype = postgresql charset = utf8 From 2d8b43b647a95ba7bfc356798933abfcdb4579da Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 12 Nov 2026 10:25:29 +0000 Subject: [PATCH 32/89] Benchmark results: paozhu [skip ci] --- site/data/frameworks.json | 16 +- site/data/results/paozhu.json | 248 +++++++++---------- site/static/logs/async-db/1024/paozhu.log | 2 +- site/static/logs/async/32000/paozhu.log | 8 +- site/static/logs/baseline-h2/256/paozhu.log | 6 +- site/static/logs/baseline/4096/paozhu.log | 8 +- site/static/logs/fortunes/1024/paozhu.log | 8 +- site/static/logs/json-h2c/1024/paozhu.log | 6 +- site/static/logs/json-h2c/4096/paozhu.log | 4 +- site/static/logs/json-tls/4096/paozhu.log | 6 +- site/static/logs/latency-10k/1024/paozhu.log | 10 +- site/static/logs/latency-1m/1024/paozhu.log | 10 +- site/static/logs/pipelined/4096/paozhu.log | 8 +- site/static/logs/static-h2/1024/paozhu.log | 10 +- site/static/logs/static-h2/256/paozhu.log | 8 +- 15 files changed, 179 insertions(+), 179 deletions(-) diff --git a/site/data/frameworks.json b/site/data/frameworks.json index 263dcc81ba..e91cfc19a8 100644 --- a/site/data/frameworks.json +++ b/site/data/frameworks.json @@ -2748,14 +2748,6 @@ "type": "engine", "engine": "veb" }, - "veil": { - "dir": "veil", - "description": "veil 0.10 reverse proxy from its published container image (full-container build: epoll readiness reactor, no tokio), one process with four listeners. A Proxy-Wasm module loaded into veil answers /baseline11 (including the POST body), /baseline2, /pipeline and /json/{count}, serializing the JSON body per request from the dataset veil loads at startup; /static/* is veil's File backend (sendfile, on-the-fly compression on every protocol, caches that follow the disk). TLS via rustls: HTTP/1.1 on :8081, h2 and h3 (quiche) on :8443, h2c on :8082.", - "repo": "https://github.com/aofusa/veil-proxy", - "type": "infrastructure", - "engine": "veil", - "website": "https://github.com/aofusa/veil-proxy" - }, "veil-api": { "dir": "veil-api", "description": "veil 0.10 API library (crates.io veil-proxy, full-container: epoll readiness reactor, no tokio or hyper). #[veil::route] handlers with path/query extraction, serde_json responses, compression through [api] compression, WebSocket through WebSocketUpgrade, gRPC services generated by veil-build (prost), /static/* through App::serve_dir. One process with four listeners from the configuration file; HTTP/3 via quiche.", @@ -2783,6 +2775,14 @@ "middleware": false } }, + "veil": { + "dir": "veil", + "description": "veil 0.10 reverse proxy from its published container image (full-container build: epoll readiness reactor, no tokio), one process with four listeners. A Proxy-Wasm module loaded into veil answers /baseline11 (including the POST body), /baseline2, /pipeline and /json/{count}, serializing the JSON body per request from the dataset veil loads at startup; /static/* is veil's File backend (sendfile, on-the-fly compression on every protocol, caches that follow the disk). TLS via rustls: HTTP/1.1 on :8081, h2 and h3 (quiche) on :8443, h2c on :8082.", + "repo": "https://github.com/aofusa/veil-proxy", + "type": "infrastructure", + "engine": "veil", + "website": "https://github.com/aofusa/veil-proxy" + }, "velocity": { "dir": "velocity", "description": "Velocity, a lightweight Express.js alternative on node:http with the cluster module for multi-core scaling.", diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 24a1540eae..ca42ec24c7 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1363166, - "avg_latency": "21.48ms", - "p99_latency": "31.90ms", - "cpu": "5777.9%", - "memory": "602MiB", + "rps": 1709802, + "avg_latency": "17.10ms", + "p99_latency": "17.40ms", + "cpu": "5752.2%", + "memory": "558MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "137.78MB/s", - "input_bw": "62.40MB/s", + "bandwidth": "172.81MB/s", + "input_bw": "78.27MB/s", "reconnects": 0, - "status_2xx": 13631666, + "status_2xx": 17098027, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 90578, - "avg_latency": "10.86ms", - "p99_latency": "54.70ms", - "cpu": "2572.2%", - "memory": "86MiB", + "rps": 152063, + "avg_latency": "6.25ms", + "p99_latency": "35.10ms", + "cpu": "3492.0%", + "memory": "93MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "349.27MB/s", - "input_bw": "6.05MB/s", - "reconnects": 35989, - "status_2xx": 905787, + "bandwidth": "586.39MB/s", + "input_bw": "10.15MB/s", + "reconnects": 60414, + "status_2xx": 1520631, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2166876, - "avg_latency": "1.90ms", - "p99_latency": "4.04ms", - "cpu": "6653.1%", - "memory": "142MiB", + "rps": 2601993, + "avg_latency": "1.58ms", + "p99_latency": "1.72ms", + "cpu": "6390.0%", + "memory": "143MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "218.99MB/s", - "input_bw": "167.39MB/s", + "bandwidth": "262.99MB/s", + "input_bw": "201.00MB/s", "reconnects": 0, - "status_2xx": 10834382, + "status_2xx": 13009967, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 164777, - "avg_latency": "515.30ms", - "p99_latency": "4.97s", - "cpu": "2634.7%", - "memory": "2.1GiB", + "rps": 257411, + "avg_latency": "367.10ms", + "p99_latency": "4.96s", + "cpu": "2015.5%", + "memory": "2.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "7.48MB/s", + "bandwidth": "11.68MB/s", "reconnects": 0, - "status_2xx": 833775, + "status_2xx": 1302504, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 177645, - "avg_latency": "140.87ms", - "p99_latency": "1.98s", - "cpu": "2678.4%", - "memory": "622MiB", + "rps": 288604, + "avg_latency": "86.97ms", + "p99_latency": "1.78s", + "cpu": "2138.1%", + "memory": "619MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "8.01MB/s", + "bandwidth": "13.02MB/s", "reconnects": 0, - "status_2xx": 893558, + "status_2xx": 1451681, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,18 +102,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 49685, - "avg_latency": "19.63ms", - "p99_latency": "96.30ms", - "cpu": "2963.0%", - "memory": "87MiB", + "rps": 60376, + "avg_latency": "15.91ms", + "p99_latency": "90.60ms", + "cpu": "3459.5%", + "memory": "107MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.15GB/s", + "bandwidth": "1.39GB/s", "reconnects": 0, - "status_2xx": 248428, + "status_2xx": 301884, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -121,18 +121,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 137265, - "avg_latency": "225.70ms", - "p99_latency": "3.67s", - "cpu": "853.9%", + "rps": 213771, + "avg_latency": "149.54ms", + "p99_latency": "803.51ms", + "cpu": "1709.4%", "memory": "1.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "471.62MB/s", + "bandwidth": "735.83MB/s", "reconnects": 0, - "status_2xx": 694563, + "status_2xx": 1081686, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,18 +140,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 84593, - "avg_latency": "1.31s", - "p99_latency": "4.98s", - "cpu": "724.3%", - "memory": "5.0GiB", + "rps": 208809, + "avg_latency": "572.51ms", + "p99_latency": "4.02s", + "cpu": "1724.4%", + "memory": "5.8GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "288.25MB/s", + "bandwidth": "719.49MB/s", "reconnects": 0, - "status_2xx": 429737, + "status_2xx": 1062840, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +159,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 204975, - "avg_latency": "22.37ms", - "p99_latency": "357.64ms", - "cpu": "797.2%", - "memory": "449MiB", + "rps": 1008136, + "avg_latency": "3.81ms", + "p99_latency": "37.70ms", + "cpu": "6093.4%", + "memory": "429MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "709.94MB", + "bandwidth": "3.41GB", "reconnects": 0, - "status_2xx": 1045322, + "status_2xx": 5141753, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -179,90 +179,90 @@ "framework": "paozhu", "language": "C++", "rps": 9981, - "avg_latency": "80.2us", + "avg_latency": "74.1us", "p99_latency": "105.0us", - "cpu": "46.2%", - "memory": "67MiB", + "cpu": "27.3%", + "memory": "73MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199645, + "status_2xx": 199635, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 9709658, - "cpu_per_req_us": 48.6346, + "cpu_usec": 5713178, + "cpu_per_req_us": 28.6181, "target_rate": 10000, "rate_ratio": 0.9981, - "p99_9_latency": "203.0us" + "p99_9_latency": "899.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997557, - "avg_latency": "159.7us", - "p99_latency": "504.0us", - "cpu": "4637.2%", - "memory": "81MiB", + "rps": 997988, + "avg_latency": "115.0us", + "p99_latency": "197.0us", + "cpu": "3082.1%", + "memory": "79MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.74MB/s", + "bandwidth": "104.79MB/s", "reconnects": 0, - "status_2xx": 19954443, + "status_2xx": 19963496, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 827013298, - "cpu_per_req_us": 41.4451, + "cpu_usec": 563801470, + "cpu_per_req_us": 28.2416, "target_rate": 1000000, - "rate_ratio": 0.9976, - "p99_9_latency": "2303.0us" + "rate_ratio": 0.998, + "p99_9_latency": "7194.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 341063, - "avg_latency": "3171722.5us", - "p99_latency": "6621184.0us", - "cpu": "806.2%", + "rps": 366562, + "avg_latency": "2630072.4us", + "p99_latency": "5400576.0us", + "cpu": "817.6%", "memory": "72MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "35.81MB/s", + "bandwidth": "38.49MB/s", "reconnects": 0, - "status_2xx": 6823472, + "status_2xx": 7333921, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159749459, - "cpu_per_req_us": 23.4118, + "cpu_usec": 159639651, + "cpu_per_req_us": 21.7673, "target_rate": 500000, - "rate_ratio": 0.6821, - "p99_9_latency": "7034880.0us" + "rate_ratio": 0.7331, + "p99_9_latency": "5568512.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 437320, - "avg_latency": "9.31ms", - "p99_latency": "94.00ms", - "cpu": "3160.1%", - "memory": "72MiB", + "rps": 664896, + "avg_latency": "6.14ms", + "p99_latency": "61.90ms", + "cpu": "2549.5%", + "memory": "70MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "44.19MB/s", - "input_bw": "33.78MB/s", - "reconnects": 218655, - "status_2xx": 2186603, + "bandwidth": "67.19MB/s", + "input_bw": "51.36MB/s", + "reconnects": 332445, + "status_2xx": 3324482, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -270,18 +270,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3087493, - "avg_latency": "21.27ms", - "p99_latency": "33.60ms", - "cpu": "6632.4%", - "memory": "131MiB", + "rps": 3562832, + "avg_latency": "18.46ms", + "p99_latency": "25.70ms", + "cpu": "6221.4%", + "memory": "133MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "312.07MB/s", + "bandwidth": "360.05MB/s", "reconnects": 0, - "status_2xx": 15437465, + "status_2xx": 17814163, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -289,18 +289,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 56193, - "avg_latency": "521.81ms", - "p99_latency": "4.96s", - "cpu": "2176.9%", - "memory": "5.8GiB", + "rps": 62013, + "avg_latency": "480.66ms", + "p99_latency": "4.97s", + "cpu": "1537.8%", + "memory": "5.4GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.29GB/s", + "bandwidth": "3.64GB/s", "reconnects": 0, - "status_2xx": 283776, + "status_2xx": 313787, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -308,18 +308,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 58246, - "avg_latency": "137.58ms", - "p99_latency": "2.48s", - "cpu": "2083.6%", - "memory": "1.7GiB", + "rps": 62901, + "avg_latency": "127.43ms", + "p99_latency": "2.00s", + "cpu": "1526.6%", + "memory": "1.5GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.45GB/s", + "bandwidth": "3.74GB/s", "reconnects": 0, - "status_2xx": 292982, + "status_2xx": 317024, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index 61672439db..7a9e321588 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,7 +1,7 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 7507d1b226..5c28ad555e 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 496f177217..9431dded1d 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index 594675f4e1..ee73fc2dca 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index fd83ef3a35..ae6badc558 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index 5a3ddc5d5f..9dc0d2ee1c 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,6 +1,6 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index a781d4c2fa..9dc0d2ee1c 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index ae6badc558..d218e86b7f 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] [mqtt_client] /app/conf/main/sockets.conf/app/conf/h1/mqtt.conf not found or parse fail, socket client disabled not found or parse fail, mqtt client disabled + [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index 762ef01efe..594675f4e1 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index eafd3abba4..ae6badc558 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index 7507d1b226..7a9e321588 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients From 70d115a9eecf707216047a0f6e9253a885a312d5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 12 Nov 2026 11:09:02 +0000 Subject: [PATCH 33/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 242 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 2 +- site/static/logs/async/32000/paozhu.log | 8 +- site/static/logs/baseline-h2/1024/paozhu.log | 2 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline/4096/paozhu.log | 8 +- site/static/logs/fortunes/1024/paozhu.log | 6 +- site/static/logs/json-h2c/1024/paozhu.log | 8 +- site/static/logs/json-h2c/4096/paozhu.log | 6 +- site/static/logs/json-tls/4096/paozhu.log | 6 +- site/static/logs/latency-10k/1024/paozhu.log | 8 +- site/static/logs/latency-1m/1024/paozhu.log | 8 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 12 +- site/static/logs/limited-conn/4096/paozhu.log | 8 +- site/static/logs/static-h2/1024/paozhu.log | 8 +- site/static/logs/static-h2/256/paozhu.log | 6 +- 16 files changed, 173 insertions(+), 173 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index ca42ec24c7..2da0ef498b 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1709802, - "avg_latency": "17.10ms", - "p99_latency": "17.40ms", - "cpu": "5752.2%", + "rps": 1718472, + "avg_latency": "17.06ms", + "p99_latency": "17.50ms", + "cpu": "5776.1%", "memory": "558MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "172.81MB/s", - "input_bw": "78.27MB/s", + "bandwidth": "173.69MB/s", + "input_bw": "78.67MB/s", "reconnects": 0, - "status_2xx": 17098027, + "status_2xx": 17184728, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 152063, - "avg_latency": "6.25ms", - "p99_latency": "35.10ms", - "cpu": "3492.0%", - "memory": "93MiB", + "rps": 149805, + "avg_latency": "6.36ms", + "p99_latency": "35.30ms", + "cpu": "3594.4%", + "memory": "95MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "586.39MB/s", - "input_bw": "10.15MB/s", - "reconnects": 60414, - "status_2xx": 1520631, + "bandwidth": "577.83MB/s", + "input_bw": "10.00MB/s", + "reconnects": 59769, + "status_2xx": 1498057, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2601993, - "avg_latency": "1.58ms", - "p99_latency": "1.72ms", - "cpu": "6390.0%", - "memory": "143MiB", + "rps": 2577934, + "avg_latency": "1.59ms", + "p99_latency": "1.74ms", + "cpu": "6353.2%", + "memory": "142MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "262.99MB/s", - "input_bw": "201.00MB/s", + "bandwidth": "260.54MB/s", + "input_bw": "199.14MB/s", "reconnects": 0, - "status_2xx": 13009967, + "status_2xx": 12889672, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 257411, - "avg_latency": "367.10ms", - "p99_latency": "4.96s", - "cpu": "2015.5%", + "rps": 260353, + "avg_latency": "361.52ms", + "p99_latency": "4.87s", + "cpu": "2013.4%", "memory": "2.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "11.68MB/s", + "bandwidth": "11.82MB/s", "reconnects": 0, - "status_2xx": 1302504, + "status_2xx": 1317391, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 288604, - "avg_latency": "86.97ms", - "p99_latency": "1.78s", - "cpu": "2138.1%", - "memory": "619MiB", + "rps": 296129, + "avg_latency": "84.80ms", + "p99_latency": "1.52s", + "cpu": "2048.0%", + "memory": "621MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "13.02MB/s", + "bandwidth": "13.38MB/s", "reconnects": 0, - "status_2xx": 1451681, + "status_2xx": 1492495, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,18 +102,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 60376, - "avg_latency": "15.91ms", + "rps": 59418, + "avg_latency": "16.14ms", "p99_latency": "90.60ms", - "cpu": "3459.5%", - "memory": "107MiB", + "cpu": "3421.8%", + "memory": "104MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.39GB/s", + "bandwidth": "1.37GB/s", "reconnects": 0, - "status_2xx": 301884, + "status_2xx": 297091, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -121,18 +121,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 213771, - "avg_latency": "149.54ms", - "p99_latency": "803.51ms", - "cpu": "1709.4%", + "rps": 214680, + "avg_latency": "148.82ms", + "p99_latency": "789.34ms", + "cpu": "1665.4%", "memory": "1.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "735.83MB/s", + "bandwidth": "738.92MB/s", "reconnects": 0, - "status_2xx": 1081686, + "status_2xx": 1086285, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,18 +140,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 208809, - "avg_latency": "572.51ms", - "p99_latency": "4.02s", - "cpu": "1724.4%", + "rps": 210550, + "avg_latency": "567.07ms", + "p99_latency": "3.51s", + "cpu": "1645.0%", "memory": "5.8GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "719.49MB/s", + "bandwidth": "726.92MB/s", "reconnects": 0, - "status_2xx": 1062840, + "status_2xx": 1073810, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +159,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1008136, - "avg_latency": "3.81ms", - "p99_latency": "37.70ms", - "cpu": "6093.4%", - "memory": "429MiB", + "rps": 1026564, + "avg_latency": "3.75ms", + "p99_latency": "30.73ms", + "cpu": "6108.0%", + "memory": "428MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.41GB", + "bandwidth": "3.47GB", "reconnects": 0, - "status_2xx": 5141753, + "status_2xx": 5235904, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -178,91 +178,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9981, - "avg_latency": "74.1us", - "p99_latency": "105.0us", - "cpu": "27.3%", - "memory": "73MiB", + "rps": 9980, + "avg_latency": "74.2us", + "p99_latency": "107.0us", + "cpu": "27.0%", + "memory": "72MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199635, + "status_2xx": 199620, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 5713178, - "cpu_per_req_us": 28.6181, + "cpu_usec": 5636838, + "cpu_per_req_us": 28.2378, "target_rate": 10000, - "rate_ratio": 0.9981, - "p99_9_latency": "899.0us" + "rate_ratio": 0.998, + "p99_9_latency": "894.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997988, - "avg_latency": "115.0us", - "p99_latency": "197.0us", - "cpu": "3082.1%", + "rps": 997727, + "avg_latency": "108.3us", + "p99_latency": "198.0us", + "cpu": "3072.7%", "memory": "79MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.79MB/s", + "bandwidth": "104.76MB/s", "reconnects": 0, - "status_2xx": 19963496, + "status_2xx": 19957794, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 563801470, - "cpu_per_req_us": 28.2416, + "cpu_usec": 558820277, + "cpu_per_req_us": 28.0001, "target_rate": 1000000, - "rate_ratio": 0.998, - "p99_9_latency": "7194.0us" + "rate_ratio": 0.9977, + "p99_9_latency": "851.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 366562, - "avg_latency": "2630072.4us", - "p99_latency": "5400576.0us", - "cpu": "817.6%", - "memory": "72MiB", + "rps": 367857, + "avg_latency": "2605980.2us", + "p99_latency": "5261312.0us", + "cpu": "812.9%", + "memory": "73MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "38.49MB/s", + "bandwidth": "38.63MB/s", "reconnects": 0, - "status_2xx": 7333921, + "status_2xx": 7359587, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159639651, - "cpu_per_req_us": 21.7673, + "cpu_usec": 159594282, + "cpu_per_req_us": 21.6852, "target_rate": 500000, - "rate_ratio": 0.7331, - "p99_9_latency": "5568512.0us" + "rate_ratio": 0.7357, + "p99_9_latency": "5462016.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 664896, - "avg_latency": "6.14ms", - "p99_latency": "61.90ms", - "cpu": "2549.5%", - "memory": "70MiB", + "rps": 675301, + "avg_latency": "6.03ms", + "p99_latency": "61.20ms", + "cpu": "2566.5%", + "memory": "93MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "67.19MB/s", - "input_bw": "51.36MB/s", - "reconnects": 332445, - "status_2xx": 3324482, + "bandwidth": "68.24MB/s", + "input_bw": "52.17MB/s", + "reconnects": 337651, + "status_2xx": 3376506, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -270,18 +270,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3562832, - "avg_latency": "18.46ms", - "p99_latency": "25.70ms", - "cpu": "6221.4%", - "memory": "133MiB", + "rps": 3542821, + "avg_latency": "18.52ms", + "p99_latency": "23.80ms", + "cpu": "6230.3%", + "memory": "132MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "360.05MB/s", + "bandwidth": "358.05MB/s", "reconnects": 0, - "status_2xx": 17814163, + "status_2xx": 17714105, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -289,18 +289,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 62013, - "avg_latency": "480.66ms", - "p99_latency": "4.97s", - "cpu": "1537.8%", + "rps": 61145, + "avg_latency": "484.44ms", + "p99_latency": "4.95s", + "cpu": "1603.1%", "memory": "5.4GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.64GB/s", + "bandwidth": "3.58GB/s", "reconnects": 0, - "status_2xx": 313787, + "status_2xx": 308785, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -308,18 +308,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 62901, - "avg_latency": "127.43ms", - "p99_latency": "2.00s", - "cpu": "1526.6%", + "rps": 63803, + "avg_latency": "125.41ms", + "p99_latency": "1.87s", + "cpu": "1610.7%", "memory": "1.5GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.74GB/s", + "bandwidth": "3.78GB/s", "reconnects": 0, - "status_2xx": 317024, + "status_2xx": 320932, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index 7a9e321588..ae6badc558 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index 594675f4e1..8bd209c3ae 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled + +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index ae6badc558..9dc0d2ee1c 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 5c28ad555e..ae6badc558 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 9431dded1d..5c28ad555e 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index ee73fc2dca..7eda3570ef 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -2,10 +2,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[sockets] [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +/app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index ae6badc558..7507d1b226 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index 9dc0d2ee1c..594675f4e1 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 9dc0d2ee1c..7507d1b226 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index d218e86b7f..f9523aac0c 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] [mqtt_client] /app/conf/main/sockets.conf/app/conf/h1/mqtt.conf not found or parse fail, socket client disabled not found or parse fail, mqtt client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 5c3c4c6a95..abceb4988e 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -2,13 +2,13 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled[mqtt_client] -/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients -[mqtt_subpub] init: registered 0 clients [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index ae6badc558..3e633a520f 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index 7a9e321588..2f7ead8401 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients From 77c98ae6301cccc1abcceb741bf589a5b9900364 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 12 Nov 2026 12:15:21 +0000 Subject: [PATCH 34/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 238 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 2 +- site/static/logs/async/32000/paozhu.log | 8 +- site/static/logs/baseline-h2/1024/paozhu.log | 6 +- site/static/logs/baseline-h2/256/paozhu.log | 2 +- site/static/logs/baseline/4096/paozhu.log | 2 +- site/static/logs/fortunes/1024/paozhu.log | 10 +- site/static/logs/json-h2c/1024/paozhu.log | 8 +- site/static/logs/json-h2c/4096/paozhu.log | 2 +- site/static/logs/json-tls/4096/paozhu.log | 8 +- site/static/logs/latency-10k/1024/paozhu.log | 4 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 12 +- site/static/logs/limited-conn/4096/paozhu.log | 10 +- site/static/logs/pipelined/4096/paozhu.log | 6 +- site/static/logs/static-h2/1024/paozhu.log | 8 +- site/static/logs/static-h2/256/paozhu.log | 8 +- 16 files changed, 167 insertions(+), 167 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 2da0ef498b..dea0ad346a 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1718472, - "avg_latency": "17.06ms", - "p99_latency": "17.50ms", - "cpu": "5776.1%", + "rps": 1735535, + "avg_latency": "16.90ms", + "p99_latency": "17.40ms", + "cpu": "5760.0%", "memory": "558MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "173.69MB/s", - "input_bw": "78.67MB/s", + "bandwidth": "175.41MB/s", + "input_bw": "79.45MB/s", "reconnects": 0, - "status_2xx": 17184728, + "status_2xx": 17355353, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 149805, - "avg_latency": "6.36ms", - "p99_latency": "35.30ms", - "cpu": "3594.4%", + "rps": 159856, + "avg_latency": "5.95ms", + "p99_latency": "33.40ms", + "cpu": "3673.1%", "memory": "95MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "577.83MB/s", - "input_bw": "10.00MB/s", - "reconnects": 59769, - "status_2xx": 1498057, + "bandwidth": "616.05MB/s", + "input_bw": "10.67MB/s", + "reconnects": 63841, + "status_2xx": 1598564, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2577934, - "avg_latency": "1.59ms", - "p99_latency": "1.74ms", - "cpu": "6353.2%", + "rps": 2493497, + "avg_latency": "1.65ms", + "p99_latency": "4.31ms", + "cpu": "5943.0%", "memory": "142MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "260.54MB/s", - "input_bw": "199.14MB/s", + "bandwidth": "252.00MB/s", + "input_bw": "192.62MB/s", "reconnects": 0, - "status_2xx": 12889672, + "status_2xx": 12467487, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 260353, - "avg_latency": "361.52ms", - "p99_latency": "4.87s", - "cpu": "2013.4%", + "rps": 264654, + "avg_latency": "356.71ms", + "p99_latency": "4.89s", + "cpu": "2025.3%", "memory": "2.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "11.82MB/s", + "bandwidth": "12.01MB/s", "reconnects": 0, - "status_2xx": 1317391, + "status_2xx": 1339150, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 296129, - "avg_latency": "84.80ms", - "p99_latency": "1.52s", - "cpu": "2048.0%", + "rps": 300495, + "avg_latency": "82.90ms", + "p99_latency": "1.57s", + "cpu": "2095.8%", "memory": "621MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "13.38MB/s", + "bandwidth": "13.55MB/s", "reconnects": 0, - "status_2xx": 1492495, + "status_2xx": 1511491, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,18 +102,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 59418, - "avg_latency": "16.14ms", - "p99_latency": "90.60ms", - "cpu": "3421.8%", - "memory": "104MiB", + "rps": 58924, + "avg_latency": "16.19ms", + "p99_latency": "90.80ms", + "cpu": "3454.8%", + "memory": "105MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.37GB/s", + "bandwidth": "1.36GB/s", "reconnects": 0, - "status_2xx": 297091, + "status_2xx": 294623, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -121,18 +121,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 214680, - "avg_latency": "148.82ms", - "p99_latency": "789.34ms", - "cpu": "1665.4%", + "rps": 215466, + "avg_latency": "148.17ms", + "p99_latency": "770.90ms", + "cpu": "1693.7%", "memory": "1.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "738.92MB/s", + "bandwidth": "740.15MB/s", "reconnects": 0, - "status_2xx": 1086285, + "status_2xx": 1088108, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,18 +140,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 210550, - "avg_latency": "567.07ms", - "p99_latency": "3.51s", - "cpu": "1645.0%", - "memory": "5.8GiB", + "rps": 204220, + "avg_latency": "583.75ms", + "p99_latency": "3.55s", + "cpu": "1740.1%", + "memory": "5.7GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "726.92MB/s", + "bandwidth": "703.16MB/s", "reconnects": 0, - "status_2xx": 1073810, + "status_2xx": 1041527, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +159,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1026564, - "avg_latency": "3.75ms", - "p99_latency": "30.73ms", - "cpu": "6108.0%", + "rps": 1013625, + "avg_latency": "3.82ms", + "p99_latency": "42.99ms", + "cpu": "6085.2%", "memory": "428MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.47GB", + "bandwidth": "3.43GB", "reconnects": 0, - "status_2xx": 5235904, + "status_2xx": 5159911, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -178,91 +178,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9980, - "avg_latency": "74.2us", + "rps": 9981, + "avg_latency": "77.1us", "p99_latency": "107.0us", - "cpu": "27.0%", - "memory": "72MiB", + "cpu": "25.8%", + "memory": "73MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199620, + "status_2xx": 199642, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 5636838, - "cpu_per_req_us": 28.2378, + "cpu_usec": 5406036, + "cpu_per_req_us": 27.0787, "target_rate": 10000, - "rate_ratio": 0.998, - "p99_9_latency": "894.0us" + "rate_ratio": 0.9981, + "p99_9_latency": "378.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997727, - "avg_latency": "108.3us", - "p99_latency": "198.0us", - "cpu": "3072.7%", + "rps": 998082, + "avg_latency": "104.7us", + "p99_latency": "197.0us", + "cpu": "3105.8%", "memory": "79MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.76MB/s", + "bandwidth": "104.80MB/s", "reconnects": 0, - "status_2xx": 19957794, + "status_2xx": 19964833, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 558820277, - "cpu_per_req_us": 28.0001, + "cpu_usec": 569077291, + "cpu_per_req_us": 28.504, "target_rate": 1000000, - "rate_ratio": 0.9977, - "p99_9_latency": "851.0us" + "rate_ratio": 0.9981, + "p99_9_latency": "407.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 367857, - "avg_latency": "2605980.2us", - "p99_latency": "5261312.0us", - "cpu": "812.9%", - "memory": "73MiB", + "rps": 366431, + "avg_latency": "2632534.5us", + "p99_latency": "5314560.0us", + "cpu": "812.3%", + "memory": "72MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "38.63MB/s", + "bandwidth": "38.48MB/s", "reconnects": 0, - "status_2xx": 7359587, + "status_2xx": 7331175, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159594282, - "cpu_per_req_us": 21.6852, + "cpu_usec": 159621012, + "cpu_per_req_us": 21.7729, "target_rate": 500000, - "rate_ratio": 0.7357, - "p99_9_latency": "5462016.0us" + "rate_ratio": 0.7329, + "p99_9_latency": "5441536.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 675301, - "avg_latency": "6.03ms", - "p99_latency": "61.20ms", - "cpu": "2566.5%", - "memory": "93MiB", + "rps": 667238, + "avg_latency": "6.11ms", + "p99_latency": "61.90ms", + "cpu": "2565.2%", + "memory": "92MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "68.24MB/s", - "input_bw": "52.17MB/s", - "reconnects": 337651, - "status_2xx": 3376506, + "bandwidth": "67.43MB/s", + "input_bw": "51.54MB/s", + "reconnects": 333619, + "status_2xx": 3336191, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -270,18 +270,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3542821, - "avg_latency": "18.52ms", - "p99_latency": "23.80ms", - "cpu": "6230.3%", - "memory": "132MiB", + "rps": 3478981, + "avg_latency": "18.87ms", + "p99_latency": "36.80ms", + "cpu": "6146.0%", + "memory": "133MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "358.05MB/s", + "bandwidth": "351.59MB/s", "reconnects": 0, - "status_2xx": 17714105, + "status_2xx": 17394905, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -289,18 +289,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 61145, - "avg_latency": "484.44ms", - "p99_latency": "4.95s", - "cpu": "1603.1%", - "memory": "5.4GiB", + "rps": 62534, + "avg_latency": "476.14ms", + "p99_latency": "4.98s", + "cpu": "1546.5%", + "memory": "5.3GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.58GB/s", + "bandwidth": "3.66GB/s", "reconnects": 0, - "status_2xx": 308785, + "status_2xx": 315800, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -308,18 +308,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 63803, - "avg_latency": "125.41ms", - "p99_latency": "1.87s", - "cpu": "1610.7%", + "rps": 62186, + "avg_latency": "129.02ms", + "p99_latency": "2.12s", + "cpu": "1481.9%", "memory": "1.5GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.78GB/s", + "bandwidth": "3.68GB/s", "reconnects": 0, - "status_2xx": 320932, + "status_2xx": 312799, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index ae6badc558..9dc0d2ee1c 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index 8bd209c3ae..594675f4e1 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled - [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index 9dc0d2ee1c..594fa68ff8 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index ae6badc558..9dc0d2ee1c 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 5c28ad555e..496f177217 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,6 +1,6 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index 7eda3570ef..b22c67141c 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -/app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index 7507d1b226..5a3ddc5d5f 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index 594675f4e1..a781d4c2fa 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 7507d1b226..a781d4c2fa 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index f9523aac0c..f67729833d 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index abceb4988e..946f1ae070 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index 3e633a520f..9e44f82e5a 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf + not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index ae6badc558..fd83ef3a35 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index 594675f4e1..5c377ced87 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf[sockets] not found or parse fail, socket client disabled/app/conf/h1/sockets.conf + not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index 2f7ead8401..d9e23ce03e 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From 5dc1f75c0e4c9558544ae1522609d2cb1d266f94 Mon Sep 17 00:00:00 2001 From: hzq Date: Thu, 12 Nov 2026 20:42:02 +0800 Subject: [PATCH 35/89] Fix orm threads pool to 64 --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/src/conf/server-h1.conf | 1 + frameworks/paozhu/src/conf/server.conf | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index bad7384e7e..f19a8a11bd 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=0f4e89ae1f72cb394119fa213da0ff3d109c3229 +ARG PAOZHU_REF=1914ab57dd84e7e118e462308a66217a07119ea3 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/src/conf/server-h1.conf b/frameworks/paozhu/src/conf/server-h1.conf index b1ab5f7b38..d7e08746da 100644 --- a/frameworks/paozhu/src/conf/server-h1.conf +++ b/frameworks/paozhu/src/conf/server-h1.conf @@ -11,6 +11,7 @@ threadmin = 5 cothreadnum = 64 ; Use this value < number of CPU cores per_ioc_thread_num = 1 ; orm_ioc_num = 4 ;ORM io_context num; +orm_thread_pool_num = 64 ;0 use hardware_concurrency() httpport = 8082 httpsport = 8081 diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index 231e443886..a717bd44c5 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -7,6 +7,7 @@ threadmin = 5 cothreadnum = 64 ; Use this value < number of CPU cores per_ioc_thread_num = 1 ; orm_ioc_num = 4 ;ORM io_context num; +orm_thread_pool_num = 64 ;0 use hardware_concurrency() httpport = 8080 httpsport = 8443 From 3a6239015796058984cadf28847d7e2a78c2ba2c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 12 Nov 2026 13:52:05 +0000 Subject: [PATCH 36/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 250 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 6 +- site/static/logs/async/32000/paozhu.log | 6 +- site/static/logs/baseline-h2/1024/paozhu.log | 6 +- site/static/logs/baseline-h2/256/paozhu.log | 2 +- site/static/logs/baseline/4096/paozhu.log | 8 +- site/static/logs/fortunes/1024/paozhu.log | 10 +- site/static/logs/json-h2c/1024/paozhu.log | 8 +- site/static/logs/json-h2c/4096/paozhu.log | 8 +- site/static/logs/latency-10k/1024/paozhu.log | 6 +- site/static/logs/latency-1m/1024/paozhu.log | 10 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 8 +- site/static/logs/limited-conn/4096/paozhu.log | 10 +- site/static/logs/pipelined/4096/paozhu.log | 10 +- site/static/logs/static-h2/1024/paozhu.log | 12 +- site/static/logs/static-h2/256/paozhu.log | 6 +- 16 files changed, 183 insertions(+), 183 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index dea0ad346a..5c4eb37cc4 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1735535, - "avg_latency": "16.90ms", - "p99_latency": "17.40ms", - "cpu": "5760.0%", - "memory": "558MiB", + "rps": 1722212, + "avg_latency": "17.00ms", + "p99_latency": "17.50ms", + "cpu": "5780.0%", + "memory": "548MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "175.41MB/s", - "input_bw": "79.45MB/s", + "bandwidth": "174.07MB/s", + "input_bw": "78.84MB/s", "reconnects": 0, - "status_2xx": 17355353, + "status_2xx": 17222127, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 159856, - "avg_latency": "5.95ms", - "p99_latency": "33.40ms", - "cpu": "3673.1%", - "memory": "95MiB", + "rps": 139188, + "avg_latency": "6.81ms", + "p99_latency": "37.90ms", + "cpu": "3197.0%", + "memory": "87MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "616.05MB/s", - "input_bw": "10.67MB/s", - "reconnects": 63841, - "status_2xx": 1598564, + "bandwidth": "536.82MB/s", + "input_bw": "9.29MB/s", + "reconnects": 55519, + "status_2xx": 1391886, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2493497, - "avg_latency": "1.65ms", - "p99_latency": "4.31ms", - "cpu": "5943.0%", - "memory": "142MiB", + "rps": 2544722, + "avg_latency": "1.61ms", + "p99_latency": "1.77ms", + "cpu": "6196.1%", + "memory": "127MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "252.00MB/s", - "input_bw": "192.62MB/s", + "bandwidth": "257.18MB/s", + "input_bw": "196.57MB/s", "reconnects": 0, - "status_2xx": 12467487, + "status_2xx": 12723614, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 264654, - "avg_latency": "356.71ms", - "p99_latency": "4.89s", - "cpu": "2025.3%", + "rps": 261148, + "avg_latency": "365.10ms", + "p99_latency": "4.96s", + "cpu": "1948.7%", "memory": "2.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "12.01MB/s", + "bandwidth": "11.85MB/s", "reconnects": 0, - "status_2xx": 1339150, + "status_2xx": 1321412, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 300495, - "avg_latency": "82.90ms", - "p99_latency": "1.57s", - "cpu": "2095.8%", - "memory": "621MiB", + "rps": 291389, + "avg_latency": "86.09ms", + "p99_latency": "1.38s", + "cpu": "2086.3%", + "memory": "608MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "13.55MB/s", + "bandwidth": "13.17MB/s", "reconnects": 0, - "status_2xx": 1511491, + "status_2xx": 1468601, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,18 +102,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 58924, - "avg_latency": "16.19ms", - "p99_latency": "90.80ms", - "cpu": "3454.8%", - "memory": "105MiB", + "rps": 51950, + "avg_latency": "18.72ms", + "p99_latency": "107.40ms", + "cpu": "2917.1%", + "memory": "96MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.36GB/s", + "bandwidth": "1.20GB/s", "reconnects": 0, - "status_2xx": 294623, + "status_2xx": 259754, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -121,18 +121,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 215466, - "avg_latency": "148.17ms", - "p99_latency": "770.90ms", - "cpu": "1693.7%", + "rps": 215677, + "avg_latency": "147.49ms", + "p99_latency": "783.28ms", + "cpu": "1694.8%", "memory": "1.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "740.15MB/s", + "bandwidth": "743.81MB/s", "reconnects": 0, - "status_2xx": 1088108, + "status_2xx": 1093483, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,18 +140,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 204220, - "avg_latency": "583.75ms", - "p99_latency": "3.55s", - "cpu": "1740.1%", - "memory": "5.7GiB", + "rps": 207811, + "avg_latency": "576.63ms", + "p99_latency": "3.88s", + "cpu": "1608.4%", + "memory": "5.9GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "703.16MB/s", + "bandwidth": "718.69MB/s", "reconnects": 0, - "status_2xx": 1041527, + "status_2xx": 1059837, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +159,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1013625, - "avg_latency": "3.82ms", - "p99_latency": "42.99ms", - "cpu": "6085.2%", - "memory": "428MiB", + "rps": 1011203, + "avg_latency": "4.93ms", + "p99_latency": "157.72ms", + "cpu": "6240.2%", + "memory": "540MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.43GB", + "bandwidth": "3.42GB", "reconnects": 0, - "status_2xx": 5159911, + "status_2xx": 5157110, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -178,91 +178,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9981, - "avg_latency": "77.1us", - "p99_latency": "107.0us", - "cpu": "25.8%", - "memory": "73MiB", + "rps": 9982, + "avg_latency": "76.2us", + "p99_latency": "109.0us", + "cpu": "28.4%", + "memory": "63MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199642, + "status_2xx": 199658, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 5406036, - "cpu_per_req_us": 27.0787, + "cpu_usec": 5920005, + "cpu_per_req_us": 29.6507, "target_rate": 10000, - "rate_ratio": 0.9981, - "p99_9_latency": "378.0us" + "rate_ratio": 0.9982, + "p99_9_latency": "1449.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 998082, - "avg_latency": "104.7us", - "p99_latency": "197.0us", - "cpu": "3105.8%", - "memory": "79MiB", + "rps": 997635, + "avg_latency": "114.2us", + "p99_latency": "201.0us", + "cpu": "3066.3%", + "memory": "68MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.80MB/s", + "bandwidth": "104.75MB/s", "reconnects": 0, - "status_2xx": 19964833, + "status_2xx": 19956249, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 569077291, - "cpu_per_req_us": 28.504, + "cpu_usec": 559110465, + "cpu_per_req_us": 28.0168, "target_rate": 1000000, - "rate_ratio": 0.9981, - "p99_9_latency": "407.0us" + "rate_ratio": 0.9976, + "p99_9_latency": "4942.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 366431, - "avg_latency": "2632534.5us", - "p99_latency": "5314560.0us", - "cpu": "812.3%", - "memory": "72MiB", + "rps": 371352, + "avg_latency": "2541606.4us", + "p99_latency": "5490688.0us", + "cpu": "817.2%", + "memory": "62MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "38.48MB/s", + "bandwidth": "38.99MB/s", "reconnects": 0, - "status_2xx": 7331175, + "status_2xx": 7429658, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159621012, - "cpu_per_req_us": 21.7729, + "cpu_usec": 159774055, + "cpu_per_req_us": 21.5049, "target_rate": 500000, - "rate_ratio": 0.7329, - "p99_9_latency": "5441536.0us" + "rate_ratio": 0.7427, + "p99_9_latency": "5724160.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 667238, - "avg_latency": "6.11ms", - "p99_latency": "61.90ms", - "cpu": "2565.2%", - "memory": "92MiB", + "rps": 687225, + "avg_latency": "5.92ms", + "p99_latency": "60.10ms", + "cpu": "2643.9%", + "memory": "70MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "67.43MB/s", - "input_bw": "51.54MB/s", - "reconnects": 333619, - "status_2xx": 3336191, + "bandwidth": "69.45MB/s", + "input_bw": "53.09MB/s", + "reconnects": 343709, + "status_2xx": 3436127, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -270,18 +270,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3478981, - "avg_latency": "18.87ms", - "p99_latency": "36.80ms", - "cpu": "6146.0%", - "memory": "133MiB", + "rps": 3505750, + "avg_latency": "18.71ms", + "p99_latency": "26.30ms", + "cpu": "6176.2%", + "memory": "121MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "351.59MB/s", + "bandwidth": "354.26MB/s", "reconnects": 0, - "status_2xx": 17394905, + "status_2xx": 17528751, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -289,18 +289,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 62534, - "avg_latency": "476.14ms", + "rps": 62042, + "avg_latency": "476.92ms", "p99_latency": "4.98s", - "cpu": "1546.5%", - "memory": "5.3GiB", + "cpu": "1542.9%", + "memory": "5.4GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.66GB/s", + "bandwidth": "3.63GB/s", "reconnects": 0, - "status_2xx": 315800, + "status_2xx": 313315, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -308,18 +308,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 62186, - "avg_latency": "129.02ms", - "p99_latency": "2.12s", - "cpu": "1481.9%", + "rps": 63793, + "avg_latency": "125.93ms", + "p99_latency": "1.90s", + "cpu": "1577.1%", "memory": "1.5GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.68GB/s", + "bandwidth": "3.78GB/s", "reconnects": 0, - "status_2xx": 312799, + "status_2xx": 320242, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index 9dc0d2ee1c..594675f4e1 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index 594675f4e1..fd83ef3a35 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index 594fa68ff8..ae6badc558 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 9dc0d2ee1c..ae6badc558 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 496f177217..c6feba13da 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [sockets] websockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf[mqtt_client] not found or parse fail, socket client disabled/app/conf/h1/mqtt.conf + not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index b22c67141c..594675f4e1 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - -[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index 5a3ddc5d5f..594675f4e1 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index a781d4c2fa..ae6badc558 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index f67729833d..594675f4e1 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index ae6badc558..844e61d413 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 946f1ae070..40e2c64097 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index 9e44f82e5a..ae6badc558 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf - not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index fd83ef3a35..2ef79952c1 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index 5c377ced87..5bf1f5a84f 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf[sockets] not found or parse fail, socket client disabled/app/conf/h1/sockets.conf - not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index d9e23ce03e..f9523aac0c 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled - [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From 6f56f5c5471a6077c8d559675fd42d5bc2ec6aa2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 12 Nov 2026 15:55:23 +0000 Subject: [PATCH 37/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 240 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 4 +- site/static/logs/async/32000/paozhu.log | 6 +- site/static/logs/baseline-h2/1024/paozhu.log | 6 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline/4096/paozhu.log | 8 +- site/static/logs/fortunes/1024/paozhu.log | 4 +- site/static/logs/json-h2c/1024/paozhu.log | 8 +- site/static/logs/json-h2c/4096/paozhu.log | 8 +- site/static/logs/json-tls/4096/paozhu.log | 8 +- site/static/logs/latency-10k/1024/paozhu.log | 8 +- site/static/logs/latency-1m/1024/paozhu.log | 10 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 8 +- site/static/logs/limited-conn/4096/paozhu.log | 4 +- site/static/logs/pipelined/4096/paozhu.log | 10 +- site/static/logs/static-h2/1024/paozhu.log | 4 +- site/static/logs/static-h2/256/paozhu.log | 4 +- 17 files changed, 174 insertions(+), 174 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 5c4eb37cc4..8ca4150c5d 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1722212, - "avg_latency": "17.00ms", - "p99_latency": "17.50ms", - "cpu": "5780.0%", + "rps": 1754289, + "avg_latency": "16.77ms", + "p99_latency": "17.20ms", + "cpu": "5830.6%", "memory": "548MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "174.07MB/s", - "input_bw": "78.84MB/s", + "bandwidth": "177.31MB/s", + "input_bw": "80.30MB/s", "reconnects": 0, - "status_2xx": 17222127, + "status_2xx": 17542894, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 139188, - "avg_latency": "6.81ms", - "p99_latency": "37.90ms", - "cpu": "3197.0%", - "memory": "87MiB", + "rps": 138080, + "avg_latency": "6.92ms", + "p99_latency": "38.60ms", + "cpu": "3198.4%", + "memory": "84MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "536.82MB/s", - "input_bw": "9.29MB/s", - "reconnects": 55519, - "status_2xx": 1391886, + "bandwidth": "532.22MB/s", + "input_bw": "9.22MB/s", + "reconnects": 54980, + "status_2xx": 1380809, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2544722, - "avg_latency": "1.61ms", - "p99_latency": "1.77ms", - "cpu": "6196.1%", - "memory": "127MiB", + "rps": 2509097, + "avg_latency": "1.64ms", + "p99_latency": "1.79ms", + "cpu": "5814.4%", + "memory": "133MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "257.18MB/s", - "input_bw": "196.57MB/s", + "bandwidth": "253.57MB/s", + "input_bw": "193.82MB/s", "reconnects": 0, - "status_2xx": 12723614, + "status_2xx": 12545489, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 261148, - "avg_latency": "365.10ms", - "p99_latency": "4.96s", - "cpu": "1948.7%", + "rps": 260836, + "avg_latency": "360.58ms", + "p99_latency": "4.98s", + "cpu": "2134.0%", "memory": "2.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "11.85MB/s", + "bandwidth": "11.84MB/s", "reconnects": 0, - "status_2xx": 1321412, + "status_2xx": 1319831, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 291389, - "avg_latency": "86.09ms", - "p99_latency": "1.38s", - "cpu": "2086.3%", + "rps": 288012, + "avg_latency": "86.75ms", + "p99_latency": "1.48s", + "cpu": "2074.1%", "memory": "608MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "13.17MB/s", + "bandwidth": "13.01MB/s", "reconnects": 0, - "status_2xx": 1468601, + "status_2xx": 1451585, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,18 +102,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 51950, - "avg_latency": "18.72ms", - "p99_latency": "107.40ms", - "cpu": "2917.1%", - "memory": "96MiB", + "rps": 50410, + "avg_latency": "19.40ms", + "p99_latency": "110.90ms", + "cpu": "2879.1%", + "memory": "98MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.20GB/s", + "bandwidth": "1.16GB/s", "reconnects": 0, - "status_2xx": 259754, + "status_2xx": 252050, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -121,18 +121,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 215677, - "avg_latency": "147.49ms", - "p99_latency": "783.28ms", - "cpu": "1694.8%", + "rps": 214122, + "avg_latency": "148.77ms", + "p99_latency": "771.49ms", + "cpu": "1739.1%", "memory": "1.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "743.81MB/s", + "bandwidth": "737.00MB/s", "reconnects": 0, - "status_2xx": 1093483, + "status_2xx": 1083460, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,18 +140,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 207811, - "avg_latency": "576.63ms", - "p99_latency": "3.88s", - "cpu": "1608.4%", - "memory": "5.9GiB", + "rps": 201866, + "avg_latency": "591.53ms", + "p99_latency": "3.66s", + "cpu": "1739.0%", + "memory": "5.7GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "718.69MB/s", + "bandwidth": "693.89MB/s", "reconnects": 0, - "status_2xx": 1059837, + "status_2xx": 1027501, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +159,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1011203, - "avg_latency": "4.93ms", - "p99_latency": "157.72ms", - "cpu": "6240.2%", - "memory": "540MiB", + "rps": 990427, + "avg_latency": "4.90ms", + "p99_latency": "149.70ms", + "cpu": "6366.8%", + "memory": "495MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.42GB", + "bandwidth": "3.35GB", "reconnects": 0, - "status_2xx": 5157110, + "status_2xx": 5051436, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -178,91 +178,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9982, - "avg_latency": "76.2us", - "p99_latency": "109.0us", - "cpu": "28.4%", - "memory": "63MiB", + "rps": 9977, + "avg_latency": "80.4us", + "p99_latency": "107.0us", + "cpu": "26.9%", + "memory": "64MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199658, + "status_2xx": 199563, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 5920005, - "cpu_per_req_us": 29.6507, + "cpu_usec": 5615030, + "cpu_per_req_us": 28.1366, "target_rate": 10000, - "rate_ratio": 0.9982, - "p99_9_latency": "1449.0us" + "rate_ratio": 0.9977, + "p99_9_latency": "6970.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997635, - "avg_latency": "114.2us", - "p99_latency": "201.0us", - "cpu": "3066.3%", + "rps": 998558, + "avg_latency": "106.2us", + "p99_latency": "196.0us", + "cpu": "3125.6%", "memory": "68MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.75MB/s", + "bandwidth": "104.85MB/s", "reconnects": 0, - "status_2xx": 19956249, + "status_2xx": 19974639, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 559110465, - "cpu_per_req_us": 28.0168, + "cpu_usec": 569628209, + "cpu_per_req_us": 28.5176, "target_rate": 1000000, - "rate_ratio": 0.9976, - "p99_9_latency": "4942.0us" + "rate_ratio": 0.9986, + "p99_9_latency": "1609.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 371352, - "avg_latency": "2541606.4us", - "p99_latency": "5490688.0us", - "cpu": "817.2%", + "rps": 366096, + "avg_latency": "2648509.9us", + "p99_latency": "5388288.0us", + "cpu": "817.4%", "memory": "62MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "38.99MB/s", + "bandwidth": "38.44MB/s", "reconnects": 0, - "status_2xx": 7429658, + "status_2xx": 7324494, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159774055, - "cpu_per_req_us": 21.5049, + "cpu_usec": 159758562, + "cpu_per_req_us": 21.8115, "target_rate": 500000, - "rate_ratio": 0.7427, - "p99_9_latency": "5724160.0us" + "rate_ratio": 0.7322, + "p99_9_latency": "5613568.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 687225, - "avg_latency": "5.92ms", - "p99_latency": "60.10ms", - "cpu": "2643.9%", - "memory": "70MiB", + "rps": 667460, + "avg_latency": "6.11ms", + "p99_latency": "61.80ms", + "cpu": "2741.1%", + "memory": "73MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "69.45MB/s", - "input_bw": "53.09MB/s", - "reconnects": 343709, - "status_2xx": 3436127, + "bandwidth": "67.45MB/s", + "input_bw": "51.56MB/s", + "reconnects": 333728, + "status_2xx": 3337303, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -270,18 +270,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3505750, - "avg_latency": "18.71ms", - "p99_latency": "26.30ms", - "cpu": "6176.2%", + "rps": 3402173, + "avg_latency": "19.31ms", + "p99_latency": "37.10ms", + "cpu": "6036.6%", "memory": "121MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "354.26MB/s", + "bandwidth": "343.83MB/s", "reconnects": 0, - "status_2xx": 17528751, + "status_2xx": 17010866, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -289,18 +289,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 62042, - "avg_latency": "476.92ms", - "p99_latency": "4.98s", - "cpu": "1542.9%", + "rps": 62553, + "avg_latency": "474.55ms", + "p99_latency": "4.99s", + "cpu": "1626.8%", "memory": "5.4GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.63GB/s", + "bandwidth": "3.66GB/s", "reconnects": 0, - "status_2xx": 313315, + "status_2xx": 315894, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -308,18 +308,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 63793, - "avg_latency": "125.93ms", - "p99_latency": "1.90s", - "cpu": "1577.1%", + "rps": 62187, + "avg_latency": "128.48ms", + "p99_latency": "2.00s", + "cpu": "1511.8%", "memory": "1.5GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.78GB/s", + "bandwidth": "3.69GB/s", "reconnects": 0, - "status_2xx": 320242, + "status_2xx": 312805, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index 594675f4e1..946f1ae070 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index fd83ef3a35..ecee79cc58 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index ae6badc558..257b29fb85 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] [mqtt_client] /app/conf/h1/mqtt.confwebsockets.conf not found or parse fail, mqtt client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index ae6badc558..4511427855 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index c6feba13da..496f177217 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] [sockets] websockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf[mqtt_client] not found or parse fail, socket client disabled/app/conf/h1/mqtt.conf - not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index 594675f4e1..08c9447f22 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index a781d4c2fa..ae6badc558 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index 594675f4e1..3715f01c5d 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index 844e61d413..ae6badc558 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 40e2c64097..fd83ef3a35 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index ae6badc558..adb1fc13c7 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin + not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index 2ef79952c1..a781d4c2fa 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index 5bf1f5a84f..d96e5c54c0 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -4,8 +4,8 @@ [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled[mqtt_client] +/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index f9523aac0c..ae6badc558 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients From 3d87d9bbd4412778486afce80c243a1e9fc620d8 Mon Sep 17 00:00:00 2001 From: hzq Date: Fri, 13 Nov 2026 01:48:57 +0800 Subject: [PATCH 38/89] Add cache httppeer --- frameworks/paozhu/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index f19a8a11bd..23a7f6d3e5 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=1914ab57dd84e7e118e462308a66217a07119ea3 +ARG PAOZHU_REF=49e4b81553837d35b3c8725eae916e5cb88a978b WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct From b267014f7e0364940fb3cbf7aac10481de683f9e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 12 Nov 2026 20:46:32 +0000 Subject: [PATCH 39/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 240 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 6 +- site/static/logs/async/32000/paozhu.log | 8 +- site/static/logs/baseline-h2/1024/paozhu.log | 6 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline/4096/paozhu.log | 6 +- site/static/logs/fortunes/1024/paozhu.log | 8 +- site/static/logs/json-h2c/4096/paozhu.log | 8 +- site/static/logs/json-tls/4096/paozhu.log | 2 +- site/static/logs/latency-10k/1024/paozhu.log | 6 +- site/static/logs/latency-1m/1024/paozhu.log | 10 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 6 +- site/static/logs/limited-conn/4096/paozhu.log | 4 +- site/static/logs/pipelined/4096/paozhu.log | 8 +- site/static/logs/static-h2/1024/paozhu.log | 10 +- site/static/logs/static-h2/256/paozhu.log | 10 +- 16 files changed, 173 insertions(+), 173 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 8ca4150c5d..70e209e467 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1754289, - "avg_latency": "16.77ms", - "p99_latency": "17.20ms", - "cpu": "5830.6%", - "memory": "548MiB", + "rps": 1698058, + "avg_latency": "17.29ms", + "p99_latency": "17.60ms", + "cpu": "5762.4%", + "memory": "550MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "177.31MB/s", - "input_bw": "80.30MB/s", + "bandwidth": "171.63MB/s", + "input_bw": "77.73MB/s", "reconnects": 0, - "status_2xx": 17542894, + "status_2xx": 16980587, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 138080, - "avg_latency": "6.92ms", - "p99_latency": "38.60ms", - "cpu": "3198.4%", - "memory": "84MiB", + "rps": 138187, + "avg_latency": "6.98ms", + "p99_latency": "39.00ms", + "cpu": "3138.7%", + "memory": "95MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "532.22MB/s", + "bandwidth": "532.88MB/s", "input_bw": "9.22MB/s", - "reconnects": 54980, - "status_2xx": 1380809, + "reconnects": 54982, + "status_2xx": 1381878, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2509097, - "avg_latency": "1.64ms", - "p99_latency": "1.79ms", - "cpu": "5814.4%", - "memory": "133MiB", + "rps": 2592714, + "avg_latency": "1.59ms", + "p99_latency": "1.74ms", + "cpu": "6338.4%", + "memory": "128MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "253.57MB/s", - "input_bw": "193.82MB/s", + "bandwidth": "262.03MB/s", + "input_bw": "200.28MB/s", "reconnects": 0, - "status_2xx": 12545489, + "status_2xx": 12963571, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 260836, - "avg_latency": "360.58ms", - "p99_latency": "4.98s", - "cpu": "2134.0%", + "rps": 263676, + "avg_latency": "361.00ms", + "p99_latency": "4.93s", + "cpu": "1961.0%", "memory": "2.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "11.84MB/s", + "bandwidth": "11.95MB/s", "reconnects": 0, - "status_2xx": 1319831, + "status_2xx": 1331564, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 288012, - "avg_latency": "86.75ms", - "p99_latency": "1.48s", - "cpu": "2074.1%", + "rps": 295958, + "avg_latency": "84.85ms", + "p99_latency": "1.40s", + "cpu": "2089.2%", "memory": "608MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "13.01MB/s", + "bandwidth": "13.32MB/s", "reconnects": 0, - "status_2xx": 1451585, + "status_2xx": 1485711, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,18 +102,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 50410, - "avg_latency": "19.40ms", - "p99_latency": "110.90ms", - "cpu": "2879.1%", - "memory": "98MiB", + "rps": 49743, + "avg_latency": "19.61ms", + "p99_latency": "111.80ms", + "cpu": "2891.2%", + "memory": "122MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.16GB/s", + "bandwidth": "1.15GB/s", "reconnects": 0, - "status_2xx": 252050, + "status_2xx": 248715, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -121,18 +121,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 214122, - "avg_latency": "148.77ms", - "p99_latency": "771.49ms", - "cpu": "1739.1%", + "rps": 214422, + "avg_latency": "149.55ms", + "p99_latency": "772.34ms", + "cpu": "1678.2%", "memory": "1.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "737.00MB/s", + "bandwidth": "738.05MB/s", "reconnects": 0, - "status_2xx": 1083460, + "status_2xx": 1084979, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,18 +140,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 201866, - "avg_latency": "591.53ms", - "p99_latency": "3.66s", - "cpu": "1739.0%", + "rps": 204778, + "avg_latency": "582.95ms", + "p99_latency": "3.52s", + "cpu": "1668.3%", "memory": "5.7GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "693.89MB/s", + "bandwidth": "705.68MB/s", "reconnects": 0, - "status_2xx": 1027501, + "status_2xx": 1042322, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +159,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 990427, - "avg_latency": "4.90ms", - "p99_latency": "149.70ms", - "cpu": "6366.8%", - "memory": "495MiB", + "rps": 1011052, + "avg_latency": "3.84ms", + "p99_latency": "37.88ms", + "cpu": "6051.3%", + "memory": "433MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.35GB", + "bandwidth": "3.42GB", "reconnects": 0, - "status_2xx": 5051436, + "status_2xx": 5154595, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -178,91 +178,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9977, - "avg_latency": "80.4us", - "p99_latency": "107.0us", + "rps": 9978, + "avg_latency": "76.4us", + "p99_latency": "108.0us", "cpu": "26.9%", - "memory": "64MiB", + "memory": "63MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199563, + "status_2xx": 199601, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 5615030, - "cpu_per_req_us": 28.1366, + "cpu_usec": 5607613, + "cpu_per_req_us": 28.0941, "target_rate": 10000, - "rate_ratio": 0.9977, - "p99_9_latency": "6970.0us" + "rate_ratio": 0.9978, + "p99_9_latency": "1213.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 998558, - "avg_latency": "106.2us", - "p99_latency": "196.0us", - "cpu": "3125.6%", - "memory": "68MiB", + "rps": 997779, + "avg_latency": "111.1us", + "p99_latency": "193.0us", + "cpu": "3045.8%", + "memory": "69MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.85MB/s", + "bandwidth": "104.77MB/s", "reconnects": 0, - "status_2xx": 19974639, + "status_2xx": 19959507, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 569628209, - "cpu_per_req_us": 28.5176, + "cpu_usec": 554745225, + "cpu_per_req_us": 27.7935, "target_rate": 1000000, - "rate_ratio": 0.9986, - "p99_9_latency": "1609.0us" + "rate_ratio": 0.9978, + "p99_9_latency": "4942.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 366096, - "avg_latency": "2648509.9us", - "p99_latency": "5388288.0us", - "cpu": "817.4%", - "memory": "62MiB", + "rps": 370308, + "avg_latency": "2557171.5us", + "p99_latency": "5167104.0us", + "cpu": "812.4%", + "memory": "59MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "38.44MB/s", + "bandwidth": "38.88MB/s", "reconnects": 0, - "status_2xx": 7324494, + "status_2xx": 7408838, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159758562, - "cpu_per_req_us": 21.8115, + "cpu_usec": 159628903, + "cpu_per_req_us": 21.5457, "target_rate": 500000, - "rate_ratio": 0.7322, - "p99_9_latency": "5613568.0us" + "rate_ratio": 0.7406, + "p99_9_latency": "5335040.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 667460, - "avg_latency": "6.11ms", - "p99_latency": "61.80ms", - "cpu": "2741.1%", - "memory": "73MiB", + "rps": 684373, + "avg_latency": "5.96ms", + "p99_latency": "60.90ms", + "cpu": "2780.2%", + "memory": "66MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "67.45MB/s", - "input_bw": "51.56MB/s", - "reconnects": 333728, - "status_2xx": 3337303, + "bandwidth": "69.16MB/s", + "input_bw": "52.87MB/s", + "reconnects": 342185, + "status_2xx": 3421868, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -270,18 +270,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3402173, - "avg_latency": "19.31ms", - "p99_latency": "37.10ms", - "cpu": "6036.6%", - "memory": "121MiB", + "rps": 3557389, + "avg_latency": "18.47ms", + "p99_latency": "19.40ms", + "cpu": "6235.5%", + "memory": "122MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "343.83MB/s", + "bandwidth": "359.52MB/s", "reconnects": 0, - "status_2xx": 17010866, + "status_2xx": 17786948, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -289,10 +289,10 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 62553, - "avg_latency": "474.55ms", - "p99_latency": "4.99s", - "cpu": "1626.8%", + "rps": 62517, + "avg_latency": "476.53ms", + "p99_latency": "4.94s", + "cpu": "1620.0%", "memory": "5.4GiB", "connections": 1024, "threads": 64, @@ -300,7 +300,7 @@ "pipeline": 1, "bandwidth": "3.66GB/s", "reconnects": 0, - "status_2xx": 315894, + "status_2xx": 315711, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -308,18 +308,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 62187, - "avg_latency": "128.48ms", - "p99_latency": "2.00s", - "cpu": "1511.8%", + "rps": 61653, + "avg_latency": "129.88ms", + "p99_latency": "2.27s", + "cpu": "1519.7%", "memory": "1.5GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.69GB/s", + "bandwidth": "3.65GB/s", "reconnects": 0, - "status_2xx": 312805, + "status_2xx": 310115, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index 946f1ae070..ae6badc558 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index ecee79cc58..594675f4e1 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index 257b29fb85..ae6badc558 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] [mqtt_client] /app/conf/h1/mqtt.confwebsockets.conf not found or parse fail, mqtt client disabled not found or parse fail, websocket client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 4511427855..ae6badc558 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 496f177217..f4f72854a0 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index 08c9447f22..61672439db 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index ae6badc558..c8e706b49b 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -8,7 +8,7 @@ [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients -[mqtt_subpub] init: registered 0 clients [ws_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index 3715f01c5d..f4f72854a0 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index ae6badc558..4b8b8d6db4 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index fd83ef3a35..594675f4e1 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index adb1fc13c7..61672439db 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,7 +1,7 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin - not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index a781d4c2fa..ae6badc558 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index d96e5c54c0..594675f4e1 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled[mqtt_client] -/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index ae6badc558..4a873d2077 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From f8ab29e6edd8ce4b7b57a2c2ba498f1eca22c94b Mon Sep 17 00:00:00 2001 From: hzq Date: Fri, 13 Nov 2026 12:04:14 +0800 Subject: [PATCH 40/89] Fix http2 send ring to 32 slot --- frameworks/paozhu/Dockerfile | 7 +- frameworks/paozhu/cost_define.h | 521 ++++++++++++++++++++++ frameworks/paozhu/src/conf/server-h1.conf | 1 + frameworks/paozhu/src/conf/server.conf | 1 + 4 files changed, 529 insertions(+), 1 deletion(-) create mode 100644 frameworks/paozhu/cost_define.h diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 23a7f6d3e5..9cba7bbfe8 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=49e4b81553837d35b3c8725eae916e5cb88a978b +ARG PAOZHU_REF=6543f280384703faa8aed86ebfd115ff90eb9538 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct @@ -66,6 +66,11 @@ COPY src/CMakeLists.txt /paozhu/CMakeLists.txt # The foreground entry itself is pinned too: it resolves argv[1] to a conf file # and installs the SIGTERM handler that the two-conf-dir layout relies on. COPY src/startup/main_docker.cpp /paozhu/startup/main_docker.cpp +# Benchmark-specific HTTP/2 send-ring parameters (32 slots / 24 backpressure / 24 feed). +# Override the upstream header so these macros are actually compiled in. Requires the +# matching 32-slot http2_ring_queue.h/.cpp in the source tree: upstream 49e4b815 hardcodes +# a 16-slot ring, and this header alone cannot change its capacity. +COPY cost_define.h /paozhu/common/cost_define.h RUN cmake -B build -S . \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS="-O3 -march=native" && \ diff --git a/frameworks/paozhu/cost_define.h b/frameworks/paozhu/cost_define.h new file mode 100644 index 0000000000..5d4a23d05b --- /dev/null +++ b/frameworks/paozhu/cost_define.h @@ -0,0 +1,521 @@ +#pragma once +#ifndef _CONST_DEFINE_FUNC_H +#define _CONST_DEFINE_FUNC_H + +#define CONST_MONEY_PART 1000000 +#define CONST_HTTP_HEADER_BODY_SIZE 16384 +#define CONST_PHP_BODY_POST_SIZE 16777216 + +#define CONST_HTTP_BODY_POST_SIZE 33554432 +#define CONST_HTTP_JSON_POST_SIZE 2097152 +#define CONST_HTTP_RAW_POST_SIZE 2097152 // raw POST 内存快路径上限,超出 spill 到磁盘 +#define CONST_MQTT_SESSION_BODY_SIZE 2097152 + +// MQTT 5 Will 延迟发布(will_delay_interval,MQTT 5 §3.2.2.26.3)的两道界。 +// 上限:客户端声明的秒数是 uint32,最大约 136 年,不钳的话一条遗嘱能把一个定时器 +// 挂到进程结束;钳到 1 小时,超出的按 1 小时发布(不丢弃、不改语义,只把等待封顶)。 +// 在途条数:反复掉线的客户端每次断开都会挂一个活定时器,不计数就是无界堆积; +// 越界丢最新一条并计数(与 WebSocket 入站水位同一口径:可丢的最新单元 + 计数,不断连)。 +// MQTT 5 Will delayed-publish caps. will_delay_interval is a client-supplied uint32 +// (~136 years) so the wait is clamped to one hour; the pending count is bounded because a +// flapping client otherwise leaves one live timer per disconnect. Over the cap the newest +// Will is dropped and counted (same policy as the WebSocket ingress watermark). +#define CONST_MQTT_WILL_DELAY_MAX_SEC 3600 +#define CONST_MQTT_WILL_DELAY_MAX_PENDING 1024 + +// socket rpc 握手(请求行 + query)累积上限(字节):超限直接断连,防对端慢速灌包耗尽内存 +// Socket RPC handshake (request line + query) cumulative cap (bytes); disconnect on hit to block slow-lorris memory exhaustion +#define CONST_TCP_HANDSHAKE_MAX 4096 + +// RPC 私有协议(vendor/httpserver/src/rpc_parse.cpp)的三道上界: +// 请求行累计字节(含查询串)、KV 段条数、KV 段总字节;超限按协议错误断连。 +// RPC private-protocol caps: request-line cumulative bytes, KV count, KV total bytes. +#define CONST_RPC_LINE_MAX 8192 +#define CONST_RPC_KV_MAX_ITEMS 64 +#define CONST_RPC_KV_MAX_BYTES (256 * 1024) +// RPC 响应 body 在内存中的上限(字节):声明大小 > 此值才落盘到临时文件, +// <= 此值留在 page.content 内存。与 WebSocket 的 16M 内存口径对齐。 +// RPC response body in-memory cap: declared size above this spills to a temp file; +// at/below stays in page.content. Aligned with the WebSocket 16MB in-memory stance. +#define CONST_RPC_BODY_MEM_LIMIT (16 * 1024 * 1024) + +#define CONST_WEBSOCKET_POST_TEXT_SIZE 16777216 +#define CONST_WEBSOCKET_POST_DATA_SIZE 4294967295 + +// WebSocket 入站限额:单帧载荷 / 分片重组消息 / 累计落盘阈值(字节) +// 口径不变式:spill < max_frame <= max_message(超限回 Close(1009),不静默截断) +// WebSocket ingress caps: per-frame payload / reassembled message / disk-spill threshold (bytes); invariant: spill < max_frame <= max_message (Close(1009), no silent truncation) +#define CONST_WEBSOCKET_MAX_FRAME_SIZE 16777216 +#define CONST_WEBSOCKET_MAX_MESSAGE_SIZE 16777216 +#define CONST_WEBSOCKET_SPILL_THRESHOLD 2097152 + +// WebSocket 出站 permessage-deflate 压缩门槛(字节):text/binary 载荷超过该值才压缩 +// WebSocket egress permessage-deflate minimum (bytes); only compress when text/binary payload exceeds this +#define CONST_WEBSOCKET_DEFLATE_MIN_SIZE 256 + +// WebSocket 入站派发水位(每连接)。两种模式各量自己的那条无界队列,共用同一组阈值: +// 非协程模式 = websockets_api::content_list 深度/载荷字节; +// 协程模式 = 在途 async_onmessage 条数/载荷字节(那条路径没有队列,协程本身就是队列)。 +// 越水位先暂停 async_read 做背压(每轮只喂 4096B,未读字节留在内核缓冲,压力退回对端 TCP 窗口), +// 有界等待到期仍未退到 LOW 水位才丢弃最新一条并计数——默认不断连。 +// 条数是主尺子(list::size() O(1) 且无漂移);字节尺子非维护计数,两把都在入队那一刻判: +// push 里同一把锁内现场遍历求和(content_list 由业务代码自行 pop_front,维护式计数必漂; +// 健康队列只有几条,堵到几十条才变贵,而那正是准备丢弃的路径)。 +// 协程模式由派发包装协程成对 reserve/release。 +// 阈值依据:本机实测合法快消费路径在 30MB/s × 100MB 洪泛下自然峰值仅 7 条 / 448KB。 +// WebSocket ingress dispatch watermark (per connection). Both modes bound their own unbounded queue: +// non-coroutine = content_list depth/bytes; coroutine = in-flight async_onmessage count/bytes. +// Over the watermark the loop first pauses async_read (backpressure to the peer's TCP window, no loss, +// no disconnect); only after the bounded wait, if still above LOW, the newest message is dropped and counted. +// Measured natural peak on a healthy consumer: 7 messages / 448 KB under a 100 MB flood. +#define CONST_WEBSOCKET_QUEUE_HIGH_ITEMS 256 +#define CONST_WEBSOCKET_QUEUE_LOW_ITEMS 64 +#define CONST_WEBSOCKET_QUEUE_HIGH_BYTES 8388608 +#define CONST_WEBSOCKET_QUEUE_LOW_BYTES 2097152 +#define CONST_WEBSOCKET_QUEUE_STALL_MAX_MS 2000 + +// WebSocket 保活(每连接)。默认值:服务端不发 ping,空闲连接靠 IDLE_LIMIT 兜底回收。 +// IDLE_LIMIT 入站活动空闲上限(秒)。读循环每收到一批字节就把回收期限推到 now+该值, +// 到点由 httpwatch 的超时扫描断连。该扫描还带 clean_cron 宽限 +// (conf/server.conf 的 t600 ⇒ 实际断连比上限晚约 11 分钟)。 +// PING_INTERVAL 服务端主动发 ping 的周期(秒);0 = 不发。空闲连接自己不会产生入站字节, +// 要把 IDLE_LIMIT 设到比对端静默时长更短就得开 ping:对端的 pong 就是那条 +// 入站活动。半开的死连接一个字节都收不到,上限一到即回收。 +// 必须小于 IDLE_LIMIT,否则连接会在下一次 ping 之前就被回收掉。 +// WebSocket keepalive per connection; defaults mean no ping and idle reaping after IDLE_LIMIT. +#define CONST_WEBSOCKET_IDLE_LIMIT 86400 +#define CONST_WEBSOCKET_PING_INTERVAL 0 + +// WebSocket 客户端保活(每条出站连接)。默认 0 = 关闭,与未实现时行为一致。 +// 客户端主动 ping 的周期(秒)。半开连接(对端进程僵死、NAT 静默过期)收不到任何入站字节, +// 只能靠 ping 换 pong 来证明对端还活着;连续 3 个周期没有入站字节即判死,交给看护线程回收。 +// 0 之外还要求连接在 client_context 的超时链表里(async_connect / add_client_task_loop 都会登记)。 +// WebSocket client keepalive ping interval in seconds; 0 disables it. Silence over 3 intervals kills the link. +#define CONST_WEBSOCKET_CLIENT_PING_INTERVAL 0 + +// socket 入站接收队列水位(每连接)。这里的单位是"一次 read 拿到的字节切片",不是"一条消息": +// read_socket 是 async_read_some 进 4096 字节缓冲(与 ws/h1 的 _cache_data 对齐),切片没有帧边界, +// 丢一片就等于把这条流咬掉一口。 +// 所以这条路不丢数据:队列满(push 在 size >= HIGH_ITEMS 或字节数 > HIGH_BYTES 时拒收)就暂停读取, +// 把压力退回对端的 TCP 窗口,停读间隔从 200ms 起每轮翻倍,200/400/800/1000 各一轮,之后固定 2s 轮询队列; +// 累计停读满 5 分钟仍然进不了队,就关闭这条连接退出。 +// 双闸:HIGH_ITEMS 防海量极小包把 list 节点数打爆(保留 512 条数上限);HIGH_BYTES 锁单连接入站内存上界。 +// 读窗口提到 4096 后,若不锁字节闸,512 片就会变成 2MB/连接——所以这里把上界显式钉成 512KB,与改窗口前一致。 +#define CONST_SOCKET_QUEUE_HIGH_ITEMS 512 +#define CONST_SOCKET_QUEUE_HIGH_BYTES (512 * 1024) + +#define CONST_SOCKET_MAX_CONN_PER_IP 10000 +#define CONST_SOCKET_QUEUE_STALL_MS 200 +#define CONST_SOCKET_QUEUE_STALL_TOP_MS 1000 +#define CONST_SOCKET_QUEUE_STALL_LOOP_MS 2000 +#define CONST_SOCKET_QUEUE_STALL_GIVEUP_MS 300000 + +// 发送线程每轮的空转兜底(纳秒)。它同时是单流吞吐的上界之一:发送序列一次调用只出一个 +// 帧、线程循环一轮至多喂两帧,所以一条还在推进的流每轮都在几微秒内干完活,这根 tick 每轮 +// 都触发 —— 上界 = 帧大小 × 每轮帧数 / 本值(16384 × 2 / 100000ns = 328 MB/s)。 +// 保持"固定睡",不要改成"补齐到本值":那是行为改动。 +// Send-loop round idle-tick (ns). Also upper bound on single-stream throughput (frame_size × 2 / tick_ns). Keep "fixed sleep", do NOT switch to "pad up to tick" — behavior change. +#define CONST_HTTP2_SlEEP_MIN_TIME 10000 + +#define CONST_ORM_CLEAR_TIME 7200 +#define CONST_ORM_CLEAR_NUMBER 1024 +#define CONST_ORM_QUERY_CONNECT_TIMEOUT 30 +#define CONST_ORM_QUERY_LOG_TIME 30 +// 异步取连接时,本槽该角色的名额(maxpool)已满后的最长等待(毫秒)。到点抛异常, +// 由 ORM 的 catch 写成 error_msg;不等下去的请求会一直占着协程。 +// Max wait (ms) for a free slot quota in async_get_*_conn before giving up and throwing. +#define CONST_ORM_CONN_WAIT_MS 5000 + +#define CONST_ERROR_COUNT_TIME 28800 +#define CONST_HARD_KILL_TIME 28800 + +// 请求落盘临时文件(pzraw_/pzup_,见 func.h)在 temp_path 下的生命周期(秒),默认 24 小时。 +// httpwatch 每隔这么长时间扫描一次 temp_path,只删除「前缀命中框架白名单」且「修改时间超过这么长时间」的文件, +// 因此 temp_path 下的会话文件(*_sess)、静态压缩缓存目录(statichtml)、业务文件都不会被碰到。 +// 可用 server.conf 的 [default] temp_clean_time 覆盖。 +// Temp-file (pzraw_/pzup_) lifetime under temp_path (seconds, default 24h). httpwatch scans at this interval; only whitelisted prefixes + files older than N are removed. Session/static-compress/business files untouched. Overridable via server.conf [default] temp_clean_time. +#define CONST_HTTP_TEMP_FILE_LIVE_TIME (3600 * 24) + +// 静态压缩缓存的年龄上限(秒,默认 7 天):按文件的最后写入时间算,超过才回收。 +// 命中会给大条目续期(见下面的 REFRESH_*),所以热点大缓存长期保留;其余条目 +// 写入 7 天后到期,下一次请求再重新压缩。实际删除时刻还要加上一个扫除周期 +// (httpwatch 的 temp_clean_time,默认 24 小时)。 +// httpwatch_clear_temp_files 是非递归的,永远扫不到 statichtml 子树;ETag 含 mtime, +// 每次发版都会生成新键,没有回收就是单向增长。 +// 不加 server.conf 键:缓存是纯派生数据,删掉最多重压一次。 +// Age limit of the static compression cache (seconds, default 7d), measured from the file's +// last-write time. Hits refresh large entries (see REFRESH_* below), so hot large caches stay +// indefinitely; everything else expires 7 days after it was written and is recompressed on the +// next request. Actual deletion happens at the first sweep (temp_clean_time, default 24h) after +// that. httpwatch_clear_temp_files is non-recursive and never reaches the statichtml subtree; +// the ETag embeds mtime so every deploy mints a new key. No server.conf key: the cache is pure +// derived data; deleting it costs one recompress. +#define CONST_HTTP_STATIC_CACHE_AGE_LIMIT (3600 * 24 * 7) + +// 命中续期门槛:源文件 ≥ 该值才续期。压缩比高的文件缓存可能只有几 KB, +// 但重压代价按源文件算,所以门槛用源文件长度,不用缓存文件长度。 +// Hits refresh the last-write time only for sources at least this large: a highly compressible +// file may cache down to a few KB, while the recompression cost still follows the source size. +#define CONST_HTTP_STATIC_CACHE_REFRESH_MIN_SIZE (1024 * 1024) +// 只在条目年龄超过该值时写一次 mtime(默认半个回收周期)。 +// Write the last-write time at most once per this age (default half the collection period). +#define CONST_HTTP_STATIC_CACHE_REFRESH_AGE ((CONST_HTTP_STATIC_CACHE_AGE_LIMIT) / 2) + +#define COOKIE_SESSION_NAME "PHPSESSID" + +// HTTP/1 keepalive 单连接请求数上限:一条连接累计应答到这么多请求就关连接。 +// 口径含 CORS 预检——预检同样占一条连接的一次请求,只是不进业务;触发上限的这一条已完整应答。 +// 编译期常量,不进 server.conf;开销是每轮循环一次比较(计数本来就在涨)。 +// Max requests served on one HTTP/1 keepalive connection: once this many are answered, the +// connection closes after the current response is flushed. CORS preflight counts too — it occupies +// a request slot on the connection, it just does not run business code. The request that reaches the +// limit is answered in full. Compile-time constant, no server.conf key. +#define CONST_HTTP1_KEEPALIVE_MAX_REQUESTS 1000 + +// ---- HTTP/2 单连接资源上限(http2_parse.cpp)---- +// 单连接上「未完成头部块」+「已建流但 body 未结束」的流数量上限。 +// server.cpp 的 steam_count 只统计「已派发」的流,客户端只发 HEADERS 不开 END_STREAM +// 时永远不会触发,因此这里必须再卡一道,否则 http_data/http_post_data 可被撑爆。 +// HTTP/2 per-connection resource caps (http2_parse.cpp). Guards against clients that send HEADERS without END_STREAM — server.cpp's stream_count only tracks dispatched streams and never fires for this case. +#define CONST_HTTP2_MAX_STREAMS 512 + +// HTTP/2 的 host / :authority 最大长度(与 HTTP/1 的 host 口径一致)。 +// 超过这个长度一律拒绝,避免超长值进入 header_host_process 的逐字符循环。 +// HTTP/2 host/:authority max length (same semantics as HTTP/1 Host). Reject oversize to avoid O(N) scan in header_host_process. +#define CONST_HTTP2_HOST_MAX_SIZE 72 + +// 本端 HPACK 解码动态表的字节上限。本端 SETTINGS 帧没有广告 0x01 +// SETTINGS_HEADER_TABLE_SIZE,按 RFC 9113 §6.5.2 就等于这个默认 4096;对端在头块里发 +// Dynamic Table Size Update 只能在本端上限以内调整(正常只会更小)。 +// 对端自己 SETTINGS 里的 header_table_size 是它那边解码表的大小,管不到本端。 +// Byte ceiling of our HPACK decoder dynamic table. Our SETTINGS frame sends no +// SETTINGS_HEADER_TABLE_SIZE (0x01), so per RFC 9113 §6.5.2 we advertise exactly this 4096; +// a peer's Dynamic Table Size Update may only resize within it. The peer's own advertised +// header_table_size bounds its decoder, not ours. +#define CONST_HTTP2_DYNAMIC_TABLE_MAX_SIZE 4096 + +// HTTP/2 协议允许的最大窗口值(2^31-1)。SETTINGS_INITIAL_WINDOW_SIZE 与 +// WINDOW_UPDATE 累加超过该值必须按 RFC 9113 §6.9.1 报 FLOW_CONTROL_ERROR。 +// HTTP/2 protocol maximum window value (2^31-1). Accumulated SETTINGS_INITIAL_WINDOW_SIZE + WINDOW_UPDATE over this ⇒ FLOW_CONTROL_ERROR per RFC 9113 §6.9.1. +#define CONST_HTTP2_MAX_WINDOW 0x7FFFFFFF + +// 连接级流控窗口的初值。RFC 9113 §6.9.2:连接的初始流控窗口固定为 65,535, +// 且 SETTINGS_INITIAL_WINDOW_SIZE 只作用于「每一条流」,不会改变连接级窗口, +// 连接级窗口只能通过 stream id = 0 的 WINDOW_UPDATE 抬升。 +// Connection-level flow-control window initial value. Per RFC 9113 §6.9.2: fixed 65535; SETTINGS_INITIAL_WINDOW_SIZE affects per-stream only; connection window rises only via WINDOW_UPDATE on stream id = 0. +#define CONST_HTTP2_DEFAULT_WINDOW 65535 + +// 本端广告给对端的 SETTINGS_INITIAL_WINDOW_SIZE(client_session::co_send_setting)。 +// 该值描述「每一条流」的初始窗口,同时也是本端接收侧流级窗口的目标水位。 +// 发送侧不得用该值初始化「连接级」窗口(见 CONST_HTTP2_DEFAULT_WINDOW)。 +// SETTINGS_INITIAL_WINDOW_SIZE advertised to peer (client_session::co_send_setting). Per-stream initial window; also our receive-side target watermark. Do NOT use to initialize connection-level window (see CONST_HTTP2_DEFAULT_WINDOW). +#define CONST_HTTP2_LOCAL_INITIAL_WINDOW 0xFFFFFF + +// 把连接级窗口从初值抬到本端目标水位所需的一次性增量:0xFFFFFF - 65535 = 16711680。 +// 只在首个 SETTINGS 之后用一次;每来一个请求就重发会顶穿 2^31-1 而被对端断连 +// (RFC 9113 §6.9.1)。 +// One-shot bump to raise connection-level window from initial to our target (0xFFFFFF − 65535 = 16711680). Send only after the initial SETTINGS; re-sending per-request overflows 2^31-1 (RFC 9113 §6.9.1). +#define CONST_HTTP2_WINDOW_UPDATE_STEP (CONST_HTTP2_LOCAL_INITIAL_WINDOW - CONST_HTTP2_DEFAULT_WINDOW) + +// 本端接收侧流级窗口低于「目标水位的一半」时才补窗口,避免每个 DATA 帧都回一个 +// WINDOW_UPDATE(RFC 9113 §6.9 允许批量化补量)。 +// Refill per-stream receive window only when below half of target watermark. Avoids a WINDOW_UPDATE per DATA frame; RFC 9113 §6.9 allows batching. +#define CONST_HTTP2_WINDOW_UPDATE_THRESHOLD (CONST_HTTP2_LOCAL_INITIAL_WINDOW / 2) + +// 收到 stream id = 0 的 WINDOW_UPDATE 时,抬升后是否仍然合法(true = 放行)。 +// +// RFC 9113 §6.9.1 的 2^31-1 上限约束的是「当前可用窗口」,不是「累计获准额度」: +// 连接级记账里 window_update_num 是累计获准、has_send_update_num 是累计已发, +// 可用额 = 两者之差。判在累计量上,一条长连接累计发满 2GB 之后每一个合法的 +// WINDOW_UPDATE 都会被判连接级 FLOW_CONTROL_ERROR,整条连接被 GOAWAY 带走。 +// +// 单独成 constexpr 函数是为了让测试代码能直接调用这一条算式本身,而不是照抄一份。 +// Validity check for incoming WINDOW_UPDATE on stream id = 0 (true = accept). +// The 2^31-1 cap in RFC 9113 §6.9.1 bounds the *current available* window, not cumulative grants. Encapsulated as constexpr so unit tests call the formula directly. +constexpr bool http2_wu_conn_avail_ok(unsigned long long granted, unsigned long long sent, unsigned long long inc) +{ + unsigned long long avail = (granted > sent) ? (granted - sent) : 0; + // 直接算和,绕开 "MAX - inc" 在 inc > MAX 时的无符号下溢(wrap 成 uint64_max,判断恒真)。 + // Sum both directly — avoids unsigned underflow of "MAX - inc" when inc > MAX (wraps to uint64_max, always true). + return avail + inc <= static_cast(CONST_HTTP2_MAX_WINDOW); +} + +// 收到流级 WINDOW_UPDATE 时,这个流 id 是否是本端认得的客户端流(true = 继续处理)。 +// ① 偶数流 id 留给服务端发起的流,本实现不开 push; +// ② 大于本连接已见过的最大客户端流 id = 这条流还没 OPEN。 +// 两道门都是纯算术,故抽成独立函数供测试代码直调;「这条流是否已经结束」还要查本端的流表, +// 留调用点自己做(见 http2parse::readwinupdate)。 +// Is a stream-level WINDOW_UPDATE on a locally known client stream (true = proceed). +// ① even ids are server-push streams (we don't push); ② sid > max seen ⇒ stream not OPEN yet. Arithmetic-only checks live here; "stream still alive" must be queried at call-site (http2parse::readwinupdate). +constexpr bool http2_wu_stream_id_ok(unsigned long long sid, unsigned long long max_seen_sid) +{ + return ((sid & 1) == 1) && sid <= max_seen_sid; +} + +// 单个 DATA 帧载荷缓冲的上限(含 9 字节帧头)。分片大小由发送额度算出, +// 这个值只规定「一轮最多打算发多少」,再与对端 SETTINGS_MAX_FRAME_SIZE 取小。 +// Single DATA frame payload buffer cap (incl. 9-byte frame header). Fragment size derived from send quota; this caps "max send per round", then clamped by peer's SETTINGS_MAX_FRAME_SIZE. +// +// BENCHMARK 模式下压到 64KB(> RFC 9113 对端默认 16384,让对端上限来卡); +// 生产保持 15360,比默认 16384 小 ~1KB,留一点安全余量。 +// Benchmark build: 64KB (above peer default 16384, so peer cap becomes the binder). +// Production: 15360 — slightly under default 16384, small safety margin. + +#define CONST_HTTP2_SEND_FRAME_BUF 15360 + +// 一条流连续多久没有任何字节真正推进,就放弃它(RST_STREAM,不断连接)。 +// 量的是「多久没推进」而不是「等了多久」:慢客户端只要一直在收, +// 等得再久也不该撤流;只有彻底没进展才该撤。 +// Stream abandoned (RST_STREAM, no GOAWAY) when no bytes actually advance for N seconds. Measures "time without progress", not "time waited" — slow clients that keep receiving are fine. +#define CONST_HTTP2_SEND_NO_PROGRESS_TIMEOUT 120 +// 每连接 HTTP/2 发送环的槽数。三条硬约束: +// 1. 必须是 2 的幂 —— 下标推进用 & (capacity_ - 1),非 2 的幂会算出错误的下一格; +// 2. 不能超过 255 —— head_/tail_ 是 unsigned char; +// 3. 环里永远留一个空槽做满/空判定(head == tail 为空),所以实际可排队 capacity - 1 帧。 +// 每槽容量不回收,常驻上界按连接数 × capacity × 单帧大小算(16KB 帧、32 槽约 496KB/连接)。 +// Per-connection HTTP/2 send-ring slots. MUST be a power of two (index uses & (capacity_-1)), +// MUST fit unsigned char (head_/tail_), and one slot stays empty for the full/empty test, +// so capacity-1 frames are queueable. +#define CONST_HTTP2_RING_QUEUE_CAPACITY 32 +// 发送环积压到几个槽就让路。32 槽环有 31 个可排槽,目标是正好留 6 个给 +// HEADERS/SETTINGS/RST/GOAWAY/WINDOW_UPDATE 这类控制帧收尾,所以阈值取 24: +// 判据是严格大于(has_size() > 24),积压 24 时仍放行一帧到 25,看到 25 就挂起, +// 稳态最大积压 25,31 − 25 = 6。取 25 会变成最大积压 26、只剩 5 格,反而不达标。 +// 8 发送线程下的已知代价:闸门是"先读 has_size() 再 push",读和 push 之间有窗口, +// 8 个推者可能同时通过同一个 24 的检查;6 格空位对 8 个推者不够,最坏一轮会有 +// 2 次 push 失败(计入 http2_ring_overflow_count,帧留在对象上由 standby_next +// 下一轮重投,不丢数据)。2 线程时 6 格足够(并发推者数 2 < 6)。 +// 发送侧的挂起条件和回灌条件必须用同一个数,否则会出现「挂起来、回灌去」的空转循环。 +// Send-ring backpressure slot threshold. 31 usable slots, exactly 6 reserved for control-frame +// tails, hence 24: the test is strictly greater, so a backlog of 24 still admits one more frame +// (to 25) and parking starts at 25; steady-state max is 25 and 31 - 25 = 6. Using 25 would make +// the max 26 and leave only 5. Known cost with 8 send threads: the gate reads has_size() before +// pushing, so up to 8 pushers may pass the same check; 6 free slots cannot absorb 8, so worst case +// 2 pushes fail per round (counted in http2_ring_overflow_count, retried via standby_next — no data +// loss). 2 threads: 6 slots are enough. +// Suspend and refill conditions MUST use the same value to avoid "hang → refill → hang" thrashing. +#define CONST_HTTP2_RING_BACKPRESSURE_SLOTS 24 +// 一条流一轮之内除了首帧还能补喂几帧:每轮最多推 SEND_FEED_MAX + 1 = 6 帧(首帧 + 5 次补喂)。 +// 首帧由闸门放行,每次补喂之前重取发送环积压,达到 CONST_HTTP2_RING_FEED_SLOTS 或 +// 额度用完就停 —— 这个上限是「一条流不许在本轮独占发送线程」的界,不是吞吐旋钮: +// 环空着的时候多喂的帧,最终仍受窗口与传输约束。 +// 要让本值真正生效,CONST_HTTP2_RING_FEED_SLOTS 必须 >= 本值 + 1,否则水位先到、一轮凑不满。 +// Max extra frames per stream per round: SEND_FEED_MAX + 1 = 6 frames per round (first + 5 extras). +// For this cap to bind, CONST_HTTP2_RING_FEED_SLOTS must be >= SEND_FEED_MAX + 1, else the +// feed-watermark cuts the round short. +#define CONST_HTTP2_SEND_FEED_MAX 5 +// 补喂允许的发送环积压水位:环里已排队帧数低于它才继续喂同一条流。取成与让路阈值同一个数 +// (24),单条流可以一路喂到积压 24 才停;31 个可排槽里剩下的 7 个留给控制帧收尾。 +// 必须 >= SEND_FEED_MAX + 1(6),否则水位先拦、一轮凑不满 6 帧。 +// Feed-watermark: keep feeding the same stream while ring queued < this. Set equal to the +// backpressure threshold (24) so one stream may fill up to 24; the remaining 7 usable slots keep +// headroom for control-frame tails. Must be >= SEND_FEED_MAX + 1 (6), else rounds get cut short. +#define CONST_HTTP2_RING_FEED_SLOTS 24 +// 发送线程最长能睡多久:等待新发送对象的条件变量带这个期限,醒来跑一次挂起表兜底扫描。 +// 取 6 而不是 5,是为了与 httpwatch 主循环那根 5 秒错开 —— 两条周期任务若同刻醒来会 +// 去抢同一批锁(idle 清理要持 socket_session_lists_mutex,兜底要持 send_data_mutex)。 +// 没有这个期限,「所有发送对象都挂在表上」这个状态本身就让发送线程睡在无超时的 wait 上, +// 而挂在表上的对象恰恰只有这一趟扫描会去续期与撤流。 +// Max send-thread sleep (seconds) — wake at least this often to run the parked-belt sweep (renews time_limit + issues RST for stuck streams). Chosen 6 (not 5) to de-phase from httpwatch's 5s cycle (avoids simultaneous lock contention). Without deadline: all sends parked ⇒ thread sleeps forever; belt never runs. +#define CONST_HTTP2_BELT_SWEEP_SECONDS 6 + +// RST_STREAM 流错误码(RFC 9113 §7)。CANCEL 表示「流被撤销」,不表示对端违反协议; +// 本地背压/过载放弃发送时应使用它,而不是 PROTOCOL_ERROR(0x01)。 +// RST_STREAM error codes (RFC 9113 §7). CANCEL means "stream cancelled", not peer protocol violation. Use it for local backpressure/overload aborts, not PROTOCOL_ERROR (0x01). +#define CONST_HTTP2_STREAM_ERROR_PROTOCOL 0x01 +// 流级窗口被对端的 WINDOW_UPDATE 顶穿 2^31-1:只撤这一条流,不带走整条连接 +// (RFC 9113 §5.1 允许流级 FLOW_CONTROL_ERROR 与连接级两种处理,取较温和的那个)。 +// Per-stream window blown past 2^31-1 by peer's WINDOW_UPDATE: RST_STREAM only, no GOAWAY. RFC 9113 §5.1 allows both per-stream and connection-level FLOW_CONTROL_ERROR; we pick the milder. +#define CONST_HTTP2_STREAM_ERROR_FLOW_CONTROL 0x03 +#define CONST_HTTP2_STREAM_ERROR_CANCEL 0x08 +#define CONST_HTTP2_STREAM_ERROR_ENHANCE_YOUR_CALM 0x0B +// INTERNAL_ERROR(0x02):响应已经承诺了 Content-Length,但本地读不出这么多字节 +// (fseek 失败 / fread 短读 / 文件在传输途中被截断)。此时发 END_STREAM 等于用一个 +// 长度不符的响应当正常结束,对端要解完 body 才发现短了;RST 能让它立刻判错。 +// INTERNAL_ERROR(0x02): Content-Length was promised but the bytes aren't there locally +// (fseek failure / short fread / file truncated mid-transport). END_STREAM here would +// launder it as a normal-but-short response; RST lets the peer fail fast. +#define CONST_HTTP2_STREAM_ERROR_INTERNAL 0x02 + +// 请求对象复用缓冲的归还阈值(字节)。响应缓冲跟着连接活到下一个请求,每次清空都收缩 +// 就等于每请求重新分配一次;只有被大响应撑到过容量阈值的才还回分配器。 +// Reuse-buffer trim threshold (bytes). Response buffers live on to the next request; shrinking +// on every clear means a fresh allocation each time. Only buffers whose capacity grew past this +// are returned to the allocator. +#define CONST_PEER_BUFFER_SHRINK_SIZE 131072 + +// OAuth 2.1 授权服务器(libs/oauth + controller/src/oauth)的编译期常量。下面每一块自带单位。 +// 授权码 5 分钟、access token 15 分钟;refresh 的这个值是配置文件里没写 refresh_ttl 时的兜底值。 +// refresh 每次轮换都按"现在 + 有效期"重算到期时间,所以它是闲置期而不是绝对上限: +// 一直轮换就一直在续,要做绝对上限得让族根自己携带到期时间。 +// OAuth 2.1 authorization server constants; each block below states its own unit. +// Code 5 min, access token 15 min; this refresh value is the fallback when conf/oauth.conf +// leaves refresh_ttl unset. Rotation recomputes "now + ttl", so it is an idle window, not a cap. +#define CONST_OAUTH_CODE_TTL 300 +#define CONST_OAUTH_ACCESS_TTL 900 +#define CONST_OAUTH_REFRESH_TTL 2592000 + +// 过期行清理:节拍每小时一拍,删除门槛是"这一行自己的 expires_at 早于 now - 保留期"。 +// 保留期必须大于 refresh 的有效期:revoked 的 refresh 行是重放检测的依据, +// 按"已撤销就立刻删"会让轮换过的旧 token 再拿到时查无此据。 +// 配置文件里的 refresh_ttl 也受这条约束,读的时候就不让写进不小于保留期的值。 +// Expired-row purge: hourly tick, deletes rows whose own expires_at is older than now - keep. +// Keep must exceed the refresh TTL: revoked refresh rows are the replay evidence for rotation. +#define CONST_OAUTH_PURGE_INTERVAL 3600 +#define CONST_OAUTH_PURGE_KEEP 7776000 +// 每一拍最多删多少行。DELETE ... LIMIT 是给 InnoDB 的 undo 与主从延迟封顶用的: +// 表里攒了几百万行过期码时,宁可几十拍打回去,不要一拍锁住整张表。 +// Rows deleted per tick; a few ticks is better than one statement that locks the whole table. +#define CONST_OAUTH_PURGE_BATCH 1000 +// 一拍里最多连着删几轮,每张表各这么多轮。某轮删不满 CONST_OAUTH_PURGE_BATCH 就收手, +// 所以空闲的一拍只有两条语句;这个上限只在"积压真的来了"时才起作用。 +// Rounds per tick, per table; a short round ends the loop, so an idle tick costs two statements. +#define CONST_OAUTH_PURGE_MAX_ROUNDS 20 + +// RS256 密钥对的文件名,conf/oauth.conf 没写 private_key_file / public_key_file 时用它兜底。 +// 口径与 server.conf 的 certificate_chain_file 相同:相对 server.conf 所在目录,绝对路径原样用。 +// 私钥只用于签发,公钥同时用于 Bearer 验签和 /oauth/jwks 输出,必须是 +// PEM_read_bio_PUBKEY 读得出的 "PUBLIC KEY" 格式(jwt.cpp 的 verify 只认这种)。 +// 两个文件缺任何一个时,token / revoke / bearerauth 一律 500 server_error, +// 不降级到对称算法。 +// Default RS256 key file names, used when conf/oauth.conf leaves the entry blank. Resolved +// against the directory that holds server.conf, same as certificate_chain_file. +// Missing either file makes token/revoke/bearerauth answer 500 server_error; there is no +// fallback to a symmetric alg. +#define CONST_OAUTH_PRIVKEY_FILE "oauth_rsa_private.pem" +#define CONST_OAUTH_PUBKEY_FILE "oauth_rsa_public.pem" +// 密钥文件的读取上限(字节)。每次请求现读这两个文件,路径又来自配置,所以先把尺寸钳住: +// 有人把 private_key_file 写成一个日志文件时,代价是"这一单签失败",不是把整份日志读进内存。 +// Per-request key files are capped at this size; an oversized file is a signing failure, +// not a memory spike. +#define CONST_OAUTH_PEM_MAX_SIZE 65536 +// JWT 头里的 kid,也是 /oauth/jwks 里那一枚密钥的 kid。轮换密钥时要一起改。 +// Fixed kid, also emitted in /oauth/jwks. Change it together with a key rotation. +#define CONST_OAUTH_KID "oauth-rs256-1" +// kid 的最大长度。它要原样拼进 JWT 头,所以先按"配置里的短标识"钳住长度,字符集另判。 +// Max kid length: the value is spliced straight into the JWT header, so it is bounded first. +#define CONST_OAUTH_KID_MAX_LEN 64 +// verify 的时钟容差:签发方与校验方同一台,留 30 秒只兜 NTP 抖动。 +// Clock skew tolerance for jwt::verify (issuer and verifier are the same process). +#define CONST_OAUTH_JWT_LEEWAY 30 +// jwt::verify() 入口对整枚令牌的长度界。三段全部解出来才判形状、扫 claim、验签,这一界是先拒 +// 再干活。取"单枚头部行"的同一个数:令牌从 Authorization 头进来,入站已经按它钳过一遍,所以框架 +// 能收到的令牌一定在界内;直接喂网络字节的调用点(不走 http 的)才有真正的作用。 +// Cap on the whole token at the verify() entry, checked before any segment is decoded. It is +// the per-header-line ceiling: a token arrives in the Authorization header, which the inbound +// parser already bounds by the same value, so nothing the transport can deliver is refused. +#define CONST_JWT_TOKEN_MAX_LEN CONST_HTTP_HEADER_BODY_SIZE +// introspect 的 token 参数长度上限。自己签的 JWT 连签名不到 1 KB(2048 位模数与签名各 342 个 +// base64url 字符),opaque 令牌恒 43 字符;4096 是给"将来换更长的密钥或更多 claim"留的余量。 +// 超长的提交在做任何验签或查库之前就回 active:false——那一格的答案与"查无此令牌"同形, +// 所以这个闸不泄露"你猜的长度对不对"。 +// Cap on the introspect token parameter; over-length input is answered before any crypto or +// query, with the same body as "no such token". +#define CONST_OAUTH_TOKEN_MAX_LEN 4096 +// 客户端注册的列宽上界,跟 oauth_client 的列声明一致(client_id varchar(64)、name varchar(128))。 +// 超长的提交在这里拒掉;MySQL 非严格模式只会静默截断,截断后的 client_id 就没人认识了。 +// Registration input bounds, matching oauth_client's column widths. Over-length input is refused +// rather than silently truncated by MySQL's non-strict mode. +#define CONST_OAUTH_CLIENT_ID_MAX_LEN 64 +#define CONST_OAUTH_CLIENT_NAME_MAX_LEN 128 +// 两列策略串的列宽上界(allowed_scopes varchar(255)、grant_types varchar(127))。 +// 超长同样是入口拒、不靠库的静默截断:截断后的白名单会少几项,表现为"合法 scope 换不到令牌"。 +// Policy-string bounds matching the two column widths; over-length input is refused at the +// registration endpoint instead of being silently truncated. +#define CONST_OAUTH_CLIENT_SCOPES_MAX_LEN 255 +#define CONST_OAUTH_CLIENT_GRANTS_MAX_LEN 127 +// redirect_uris 那一格是 TEXT(列宽 65535),所以下面这个数不是列宽,是策略界:它钳的是逗号分隔的 +// 整串。8192 按"一个客户端挂几条回调地址"给量(一条 URL 约 120 字符,放得下几十条),同时只有列宽 +// 的八分之一,离静默截断还有余量——截短的白名单少几项,表现成"合法回调换不到码", +// 和上面那两列同一个道理,一样在入口拒。 +// Policy bound (not a column width) on the whole comma-separated redirect_uris string. The column +// is TEXT, so this only has to stay clear of silent truncation while leaving room for many +// redirect URIs per client. +#define CONST_OAUTH_REDIRECT_URIS_MAX_LEN 8192 + +// GitHub OAuth 客户端这一侧(libs/github + controller/src/github)的编译期常量。 +// 与上一段的授权服务器是两套东西:这里的凭据跟着每个 admin 的绑定落在 github_account 行里, +// conf/github.conf 只存一把 master key 和通用参数,不存任何 client 凭据。 +// OAuth-client-side constants. Client credentials live per binding in github_account; +// conf/github.conf holds only the master key and shared parameters. +// AES-256-GCM 的密钥长度(字节)。配置文件里写成 64 个 hex 字符,读出来必须是这 32 字节, +// 短了就补零、长了就截断都会让同一把"配错的密钥"照样能加解密,换回来的是一堆解不开的密文。 +// AES-256 key length in bytes; a hex string of the wrong length is rejected, not padded or cut. +#define CONST_GH_CRYPTO_KEY_LEN 32 +// client_secret 的**明文**长度闸。GitHub 现发的 secret 是 40 字符 hex,128 留了三倍余量; +// 这一格必须比列宽小,因为落库存的是密文(明文 + 12 IV + 16 tag)。 +// Plaintext bound for client_secret; the column stores ciphertext, so this gate is 28 bytes +// below the column width. +#define CONST_GH_SECRET_MAX_LEN 128 +// 密文落库前的列宽闸(varbinary(255))。越界宁可拒写也不要交给 MySQL 截断—— +// 截掉的 tag 会让这一行永远解不开,且没有任何报错指向截断。 +// Ciphertext bound matching the varbinary(255) column; over-length is refused rather than +// truncated by the server. +#define CONST_GH_CIPHER_MAX_LEN 255 +// 令牌与 client_id 的列宽闸(varchar(255) / varchar(64)),与 github_account 的声明一致。 +// Token and client_id bounds, matching the github_account column widths. +#define CONST_GH_TOKEN_MAX_LEN 255 +#define CONST_GH_CLIENT_ID_MAX_LEN 64 +// redirect_uri 的列宽闸(varchar(255))。它是绑定表单里唯一由 admin 整段粘进来的 URL, +// 也是换令牌时"必须逐字节相同"的那一项——超限交给 MySQL 截断,下一次换令牌就会以 +// 一个看不出原因的 error 失败。 +// Bound for the redirect_uri column; letting the server truncate it would make every later +// token exchange fail with a reason that points nowhere. +#define CONST_GH_REDIRECT_MAX_LEN 255 +// state 票据的有效期(秒)。GitHub 那枚 code 是 10 分钟过期,这一格必须严格大于它, +// 否则票据先于 code 失效,用户授权完了我们却不认。 +// state lifetime in seconds; strictly greater than GitHub's 10-minute code expiry. +#define CONST_GH_STATE_TTL 900 +// code_verifier 的字符集长度下限(RFC 7636 是 43..128)。 +// PKCE code_verifier bounds (RFC 7636 allows 43..128 characters). +#define CONST_GH_PKCE_VERIFIER_MIN 43 +#define CONST_GH_PKCE_VERIFIER_MAX 128 +// 同步节拍(秒)与每一拍的账号数上限。间隔 900 秒 + 每账号每轮最多 1+3 次请求, +// 折合约 16 次/小时,对 5000 次/小时/令牌的额度留了两个数量级以上的余量。 +// Sync tick in seconds and accounts per tick; about 16 requests/hour per account. +#define CONST_GH_SYNC_INTERVAL 900 +#define CONST_GH_SYNC_BATCH 5 +// 每账号每轮最多翻多少页仓库。这是额度闸,不是"翻页翻到爽"的开关: +// 上限乘每页条数就是这一轮能看见的仓库数,超过的部分由"没拉到"推断,所以软删对比 +// 必须先确认这一轮真的翻完了。 +// Pages per account per round; bounds how many repos one round can see, which is what the +// soft-delete comparison has to check before it marks anything. +#define CONST_GH_SYNC_MAX_PAGES 3 +// 仓库列表一页多少条,GitHub 的上限就是 100。 +// Repos per page; GitHub's own ceiling. +#define CONST_GH_REPO_PER_PAGE 100 +// 连续失败后 next_sync_time 的指数退避封顶(秒)。 +// Ceiling for the exponential backoff applied to next_sync_time after consecutive failures. +#define CONST_GH_SYNC_BACKOFF_MAX 3600 +// 出站 HTTP 超时(秒)。框架内部把 exptime 钳在 90,写更大的值不会生效。 +// Outbound HTTP timeout in seconds; the client clamps it to 90 internally. +#define CONST_GH_HTTP_TIMEOUT 8 +// 两个端点的默认值,conf/github.conf 里留空时用它。必须是 https:client_secret 和令牌 +// 都从这两条口出去,写成 http 就是明文上网。 +// Default endpoints, used when conf/github.conf leaves the key blank. Must be https: +// the client_secret and the tokens go out over these two. +#define CONST_GH_API_BASE "https://api.github.com" +#define CONST_GH_AUTH_BASE "https://github.com" +// 默认 scope。逗号是配置文件的写法,发授权请求前要换成空格再整体 url_encode。 +// read:user 是强制附加项:没有它 GET /user 回 403,绑定行上的身份三列永远填不上。 +// Default scopes, stored comma-separated in conf and converted to space-separated at +// request time. read:user is appended unconditionally; without it GET /user is a 403. +#define CONST_GH_DEFAULT_SCOPES "repo,read:user" +// last_error 里要落库的文本长度闸(列宽 255)。落库前还要过一遍敏感片段过滤, +// 这一格限的是过滤之后再截断的长度。 +// Bound for the last_error text, applied after the secret-scrubbing pass. +#define CONST_GH_ERROR_MAX_LEN 255 +// github_repo.description 的列宽(varchar(512))。GitHub 侧的 description 没有长度上限, +// 所以这一刀必须在写库前下:非严格模式下的静默截断会把句子腰斩,严格模式下直接报错丢一整页。 +// Column width for the cached repo description; GitHub puts no bound on it, so the cut +// happens before the write instead of inside MySQL's silent truncation. +#define CONST_GH_REPO_DESC_MAX_LEN 512 +// gh_avatar 的列宽(varchar(255))。头像 URL 由 GitHub 给,长度不可预期,同上一条口径。 +// Column width for the avatar URL; GitHub decides its length, so it is bounded here too. +#define CONST_GH_AVATAR_MAX_LEN 255 +// sync_fails 那一列是 smallint unsigned,写入前先钳住:这个数只用来算退避的档位, +// 满了就停在界里,不让一次溢出把"往后推得越久"变成"回到最小间隔重试"。 +// sync_fails is smallint unsigned; clamp before writing so an overflow cannot reset the +// backoff ladder to its lowest rung. +#define CONST_GH_SYNC_FAILS_MAX 65535 +#endif diff --git a/frameworks/paozhu/src/conf/server-h1.conf b/frameworks/paozhu/src/conf/server-h1.conf index d7e08746da..9a41274aca 100644 --- a/frameworks/paozhu/src/conf/server-h1.conf +++ b/frameworks/paozhu/src/conf/server-h1.conf @@ -12,6 +12,7 @@ cothreadnum = 64 ; Use this value < number of CPU cores per_ioc_thread_num = 1 ; orm_ioc_num = 4 ;ORM io_context num; orm_thread_pool_num = 64 ;0 use hardware_concurrency() +http2_send_loop_num = 8 ; httpport = 8082 httpsport = 8081 diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index a717bd44c5..415291b0c3 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -8,6 +8,7 @@ cothreadnum = 64 ; Use this value < number of CPU cores per_ioc_thread_num = 1 ; orm_ioc_num = 4 ;ORM io_context num; orm_thread_pool_num = 64 ;0 use hardware_concurrency() +http2_send_loop_num = 8 ; httpport = 8080 httpsport = 8443 From bd7857327d399891710e04b386473adff54c4cbc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 13 Nov 2026 11:10:43 +0000 Subject: [PATCH 41/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 248 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 8 +- site/static/logs/async/32000/paozhu.log | 12 +- site/static/logs/baseline-h2/1024/paozhu.log | 10 +- site/static/logs/fortunes/1024/paozhu.log | 2 +- site/static/logs/json-h2c/1024/paozhu.log | 8 +- site/static/logs/json-h2c/4096/paozhu.log | 6 +- site/static/logs/json-tls/4096/paozhu.log | 12 +- site/static/logs/latency-10k/1024/paozhu.log | 6 +- site/static/logs/latency-1m/1024/paozhu.log | 10 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 8 +- site/static/logs/limited-conn/4096/paozhu.log | 10 +- site/static/logs/pipelined/4096/paozhu.log | 8 +- site/static/logs/static-h2/1024/paozhu.log | 8 +- site/static/logs/static-h2/256/paozhu.log | 10 +- 15 files changed, 183 insertions(+), 183 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 70e209e467..6705a8268b 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1698058, - "avg_latency": "17.29ms", + "rps": 1704807, + "avg_latency": "17.24ms", "p99_latency": "17.60ms", - "cpu": "5762.4%", - "memory": "550MiB", + "cpu": "5796.7%", + "memory": "548MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "171.63MB/s", - "input_bw": "77.73MB/s", + "bandwidth": "172.31MB/s", + "input_bw": "78.04MB/s", "reconnects": 0, - "status_2xx": 16980587, + "status_2xx": 17048079, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 138187, - "avg_latency": "6.98ms", - "p99_latency": "39.00ms", - "cpu": "3138.7%", - "memory": "95MiB", + "rps": 138191, + "avg_latency": "6.91ms", + "p99_latency": "38.50ms", + "cpu": "3190.1%", + "memory": "96MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "532.88MB/s", - "input_bw": "9.22MB/s", - "reconnects": 54982, - "status_2xx": 1381878, + "bandwidth": "532.72MB/s", + "input_bw": "9.23MB/s", + "reconnects": 54949, + "status_2xx": 1381918, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2592714, - "avg_latency": "1.59ms", - "p99_latency": "1.74ms", - "cpu": "6338.4%", + "rps": 2618698, + "avg_latency": "1.57ms", + "p99_latency": "1.72ms", + "cpu": "6289.9%", "memory": "128MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "262.03MB/s", - "input_bw": "200.28MB/s", + "bandwidth": "264.65MB/s", + "input_bw": "202.29MB/s", "reconnects": 0, - "status_2xx": 12963571, + "status_2xx": 13093493, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 263676, - "avg_latency": "361.00ms", - "p99_latency": "4.93s", - "cpu": "1961.0%", - "memory": "2.2GiB", + "rps": 419133, + "avg_latency": "233.93ms", + "p99_latency": "2.45s", + "cpu": "3846.2%", + "memory": "2.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "11.95MB/s", + "bandwidth": "18.98MB/s", "reconnects": 0, - "status_2xx": 1331564, + "status_2xx": 2116624, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 295958, - "avg_latency": "84.85ms", - "p99_latency": "1.40s", - "cpu": "2089.2%", - "memory": "608MiB", + "rps": 446846, + "avg_latency": "55.99ms", + "p99_latency": "372.13ms", + "cpu": "4330.6%", + "memory": "555MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "13.32MB/s", + "bandwidth": "20.15MB/s", "reconnects": 0, - "status_2xx": 1485711, + "status_2xx": 2247637, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,18 +102,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 49743, - "avg_latency": "19.61ms", - "p99_latency": "111.80ms", - "cpu": "2891.2%", - "memory": "122MiB", + "rps": 50717, + "avg_latency": "19.25ms", + "p99_latency": "110.30ms", + "cpu": "2892.4%", + "memory": "125MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.15GB/s", + "bandwidth": "1.17GB/s", "reconnects": 0, - "status_2xx": 248715, + "status_2xx": 253587, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -121,18 +121,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 214422, - "avg_latency": "149.55ms", - "p99_latency": "772.34ms", - "cpu": "1678.2%", - "memory": "1.5GiB", + "rps": 429908, + "avg_latency": "74.46ms", + "p99_latency": "237.82ms", + "cpu": "4360.1%", + "memory": "1.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "738.05MB/s", + "bandwidth": "1.44GB/s", "reconnects": 0, - "status_2xx": 1084979, + "status_2xx": 2171037, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,18 +140,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 204778, - "avg_latency": "582.95ms", - "p99_latency": "3.52s", - "cpu": "1668.3%", - "memory": "5.7GiB", + "rps": 378748, + "avg_latency": "328.16ms", + "p99_latency": "1.12s", + "cpu": "3848.7%", + "memory": "4.7GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "705.68MB/s", + "bandwidth": "1.28GB/s", "reconnects": 0, - "status_2xx": 1042322, + "status_2xx": 1927831, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +159,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1011052, - "avg_latency": "3.84ms", - "p99_latency": "37.88ms", - "cpu": "6051.3%", - "memory": "433MiB", + "rps": 1004781, + "avg_latency": "3.87ms", + "p99_latency": "38.88ms", + "cpu": "6160.3%", + "memory": "434MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.42GB", + "bandwidth": "3.40GB", "reconnects": 0, - "status_2xx": 5154595, + "status_2xx": 5124835, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -178,10 +178,10 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9978, - "avg_latency": "76.4us", - "p99_latency": "108.0us", - "cpu": "26.9%", + "rps": 9982, + "avg_latency": "74.3us", + "p99_latency": "106.0us", + "cpu": "27.3%", "memory": "63MiB", "connections": 1024, "threads": 64, @@ -189,80 +189,80 @@ "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199601, + "status_2xx": 199656, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 5607613, - "cpu_per_req_us": 28.0941, + "cpu_usec": 5693563, + "cpu_per_req_us": 28.5169, "target_rate": 10000, - "rate_ratio": 0.9978, - "p99_9_latency": "1213.0us" + "rate_ratio": 0.9982, + "p99_9_latency": "161.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997779, - "avg_latency": "111.1us", + "rps": 997882, + "avg_latency": "117.4us", "p99_latency": "193.0us", - "cpu": "3045.8%", - "memory": "69MiB", + "cpu": "3060.2%", + "memory": "70MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.77MB/s", + "bandwidth": "104.78MB/s", "reconnects": 0, - "status_2xx": 19959507, + "status_2xx": 19961641, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 554745225, - "cpu_per_req_us": 27.7935, + "cpu_usec": 561242439, + "cpu_per_req_us": 28.116, "target_rate": 1000000, - "rate_ratio": 0.9978, - "p99_9_latency": "4942.0us" + "rate_ratio": 0.9979, + "p99_9_latency": "8908.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 370308, - "avg_latency": "2557171.5us", - "p99_latency": "5167104.0us", - "cpu": "812.4%", - "memory": "59MiB", + "rps": 367596, + "avg_latency": "2609133.7us", + "p99_latency": "5294080.0us", + "cpu": "809.5%", + "memory": "62MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "38.88MB/s", + "bandwidth": "38.60MB/s", "reconnects": 0, - "status_2xx": 7408838, + "status_2xx": 7354468, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159628903, - "cpu_per_req_us": 21.5457, + "cpu_usec": 159691719, + "cpu_per_req_us": 21.7136, "target_rate": 500000, - "rate_ratio": 0.7406, - "p99_9_latency": "5335040.0us" + "rate_ratio": 0.7352, + "p99_9_latency": "5466112.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 684373, - "avg_latency": "5.96ms", - "p99_latency": "60.90ms", - "cpu": "2780.2%", - "memory": "66MiB", + "rps": 677687, + "avg_latency": "6.03ms", + "p99_latency": "60.80ms", + "cpu": "2702.4%", + "memory": "60MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "69.16MB/s", - "input_bw": "52.87MB/s", - "reconnects": 342185, - "status_2xx": 3421868, + "bandwidth": "68.48MB/s", + "input_bw": "52.35MB/s", + "reconnects": 338836, + "status_2xx": 3388435, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -270,18 +270,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3557389, - "avg_latency": "18.47ms", - "p99_latency": "19.40ms", - "cpu": "6235.5%", + "rps": 3456769, + "avg_latency": "19.01ms", + "p99_latency": "36.90ms", + "cpu": "6117.7%", "memory": "122MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "359.52MB/s", + "bandwidth": "349.34MB/s", "reconnects": 0, - "status_2xx": 17786948, + "status_2xx": 17283845, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -289,18 +289,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 62517, - "avg_latency": "476.53ms", - "p99_latency": "4.94s", - "cpu": "1620.0%", - "memory": "5.4GiB", + "rps": 107843, + "avg_latency": "287.05ms", + "p99_latency": "3.30s", + "cpu": "3785.3%", + "memory": "7.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.66GB/s", + "bandwidth": "6.42GB/s", "reconnects": 0, - "status_2xx": 315711, + "status_2xx": 544608, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -308,18 +308,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 61653, - "avg_latency": "129.88ms", - "p99_latency": "2.27s", - "cpu": "1519.7%", - "memory": "1.5GiB", + "rps": 110146, + "avg_latency": "73.19ms", + "p99_latency": "843.65ms", + "cpu": "4547.6%", + "memory": "1.9GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.65GB/s", + "bandwidth": "6.57GB/s", "reconnects": 0, - "status_2xx": 310115, + "status_2xx": 554039, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index ae6badc558..496f177217 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index 594675f4e1..1975ae9b05 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients -[mqtt_subpub] init: registered 0 clients [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index ae6badc558..5bf1f5a84f 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index 61672439db..ae6badc558 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index ae6badc558..a781d4c2fa 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index ae6badc558..fd83ef3a35 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index c8e706b49b..5bf1f5a84f 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients -[ws_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index f4f72854a0..3715f01c5d 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index 4b8b8d6db4..fd83ef3a35 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 594675f4e1..76098aa040 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index 61672439db..c373a84f43 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index ae6badc558..f33995dbb8 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [websockets] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index 4a873d2077..ae6badc558 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From 4fe99b0fe1e6b2ce9b2f1edf0c11ce2b2e31a163 Mon Sep 17 00:00:00 2001 From: hzq Date: Fri, 13 Nov 2026 19:21:43 +0800 Subject: [PATCH 42/89] Fix minpool init --- frameworks/paozhu/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 9cba7bbfe8..6578e0c3bd 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=6543f280384703faa8aed86ebfd115ff90eb9538 +ARG PAOZHU_REF=6aa8be507578d0598b1efe401e1c69bc8d07cb20 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct From bdbe109d54e1bf452fb888db3a09d2a685ff77f9 Mon Sep 17 00:00:00 2001 From: hzq Date: Fri, 13 Nov 2026 20:56:30 +0800 Subject: [PATCH 43/89] Edit db.cpp --- frameworks/paozhu/README.md | 2 +- frameworks/paozhu/src/controller/src/db.cpp | 254 +++++++++++++------- 2 files changed, 167 insertions(+), 89 deletions(-) diff --git a/frameworks/paozhu/README.md b/frameworks/paozhu/README.md index 614aac1c89..b1b83c6c23 100644 --- a/frameworks/paozhu/README.md +++ b/frameworks/paozhu/README.md @@ -64,7 +64,7 @@ Registered through paozhu annotations; path parameters must be the final segment - `src/conf/openssl.cnf` is exported as `OPENSSL_CONF`: it keeps TLS 1.3 available while refusing TLS < 1.2 and the weak cipher families probed by the TLS checks. It does not change the certificate. - `src/conf/orm.conf` is a template copied to `/app/conf/orm.conf.tpl`; `entrypoint.sh` renders it into `/app/conf/main/orm.conf` only when the harness injects `DATABASE_URL` / `DATABASE_MAX_CONN`. Without a DB profile there is no `orm.conf` beside either `server.conf`: `startup_orm_init()` calls `init_orm_conn_pool()` unconditionally, and `get_orm_config_file()` returns an empty list when the file is absent, so no pool is created. `serverconfig` resolves `orm.conf` relative to each conf file's own directory, which is why only the main instance (the one serving :8080) gets one. Both `[pg]` groups must carry full connection settings: `type = main` fills `conf_data[0]` (edit pool), `type = second` fills `conf_data[1]`, which `async_get_pg_select_conn()` actually uses for SELECTs. -- `/async-db` and `/fortunes` use `orm::db_conn("pg")` with `co_await async_query()` plus small `set_val` row types instead of a generated ORM model — `mini_project.sh` empties `orm/` and `models/`. paozhu's own Asio Postgres driver (SCRAM-SHA-256) is compiled into the binary, so no `libpq` is needed. Both handlers share an async gate that caps in-flight queries at the smaller of the `DATABASE_MAX_CONN` budget and the pool's smallest per-slot quota: the framework splits `maxpool` across io_context slots, and staying under one slot's quota keeps even a fully skewed request distribution out of the pool's wait-timeout path. +- `/async-db` and `/fortunes` use `orm::db_conn("pg")` with `co_await async_query()` plus small `set_val` row types instead of a generated ORM model — `mini_project.sh` empties `orm/` and `models/`. paozhu's own Asio Postgres driver (SCRAM-SHA-256) is compiled into the binary, so no `libpq` is needed. Both handlers now go through one `fetch_rows()` path: an async gate caps global in-flight queries at `min(DATABASE_MAX_CONN - 24, the pool's total select quota)` to stay under Postgres' `max_connections`, while the ORM pool's own per-slot quota and async backoff do the fine-grained limiting. The cap deliberately uses the **total** quota, not the smallest slot quota: `maxpool / slots` shrinks the cap as `orm_ioc_num` grows (4 slots → 63, 16 → 15, 64 → 3), which is what kept `/fortunes` at ~29 cores. Gate timeouts, driver errors and an unseeded `fortune` table return 503 instead of an empty 200 page. - `/fortunes` renders the HTML per request in the handler: `mini_project.sh` also empties `view/` and `viewsrc/`, so `peer->view()` has no template to load. The runtime row, byte-ordinal sort and HTML escaping live in `src/controller/src/db.cpp`. - Every `//@urlpath` handler in `arena.cpp` and `db.cpp` uses the coroutine form (`asio::awaitable` + `co_return ""`), so `paozhu_pre` registers them all through `co_reg`. Only the DB routes really suspend (`co_await async_query()`); the CPU/static handlers have no `co_await` but share the same handler shape. - Raw (non-form, non-JSON) POST bodies are spilled to a temp file only when they exceed `CONST_HTTP_RAW_POST_SIZE` (2 MB). At the current `d73100bd` pin a 2-byte `POST /baseline11` body therefore stays in `httppeer::rawcontent`, and `raw_body()` returns it without touching the disk; the temp-file branch only exists for oversized bodies. At `71305087` every raw POST body went to a file and `raw_body()` had to read and unlink it — which is why that branch is still there and why the earlier measurements include per-POST file I/O that the current pin does not. diff --git a/frameworks/paozhu/src/controller/src/db.cpp b/frameworks/paozhu/src/controller/src/db.cpp index dfe78d4fb1..aae9242ddd 100644 --- a/frameworks/paozhu/src/controller/src/db.cpp +++ b/frameworks/paozhu/src/controller/src/db.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -60,14 +61,19 @@ namespace } }; - // The framework splits orm.conf's maxpool budget across io_context slots - // (per-slot quota = budget / slot count). Cap global in-flight queries at - // the smallest slot quota so even a fully skewed request distribution - // never pushes a slot into the pool's wait-timeout path; the env-derived - // budget stays as the ceiling and as the fallback when no pool exists. - // Waiting uses an asio timer, never a blocking semaphore: blocking an io - // thread can deadlock the coroutine that holds a ticket. - class db_ticket + // paozhu's ORM pool already enforces per-slot quotas with asynchronous + // backoff in async_get_pg_select_conn(). What the handlers still need is a + // process-wide ceiling under Postgres' max_connections: + // * DATABASE_MAX_CONN is the harness budget; 24 slots stay reserved for + // the edit pool, readiness probes and PG maintenance. + // * the pool's TOTAL select quota is the second ceiling. Never use the + // smallest per-slot quota here: budget/slots shrinks as orm_ioc_num + // grows (4 slots -> 63, 16 -> 15, 64 -> 3), so adding io threads would + // lower the cap while the pool itself can still serve 255 queries. + // Waiting must be a coroutine on the request's own executor: paozhu runs + // one thread per io_context, so a blocking semaphore would pin that thread + // and the coroutine holding a ticket could never resume to release it. + class db_gate { static std::atomic &in_flight() { @@ -79,25 +85,23 @@ namespace { static const int value = [] { const char *env = std::getenv("DATABASE_MAX_CONN"); - int n = env ? std::atoi(env) : 256; - if (n < 8) n = 8; - if (n > 256) n = 256; - int cap = n > 24 ? n - 24 : n; + int budget = env ? std::atoi(env) : 256; + budget = std::clamp(budget, 8, 256); + int cap = budget > 24 ? budget - 24 : budget; auto &pools = orm::get_orm_conn_pool_obj(); auto it = pools.find("pg"); if (it != pools.end() && it->second && !it->second->slots.empty()) { const auto &pool = *it->second; - unsigned int smallest = pool.slot_max_of(1, 0);// 1 = select role - for (unsigned int i = 1; i < pool.slots.size(); ++i) + long long total = 0; + for (std::size_t i = 0; i < pool.slots.size(); ++i) { - const unsigned int q = pool.slot_max_of(1, i); - if (q < smallest) smallest = q; + total += pool.slot_max_of(1, static_cast(i));// 1 = select role } - if (smallest >= 1 && static_cast(smallest) < cap) + if (total > 0 && total < cap) { - cap = static_cast(smallest); + cap = static_cast(total); } } return cap; @@ -105,21 +109,7 @@ namespace return value; } - bool owns_ = false; - - public: - db_ticket() = default; - db_ticket(const db_ticket &) = delete; - db_ticket &operator=(const db_ticket &) = delete; - ~db_ticket() - { - if (owns_) - { - in_flight().fetch_sub(1, std::memory_order_relaxed); - } - } - - bool try_enter() + static bool try_acquire() { int current = in_flight().load(std::memory_order_relaxed); while (current < limit()) @@ -127,32 +117,120 @@ namespace if (in_flight().compare_exchange_weak(current, current + 1, std::memory_order_relaxed)) { - owns_ = true; return true; } } return false; } + + static void release() + { + in_flight().fetch_sub(1, std::memory_order_relaxed); + } + + public: + class ticket + { + bool owns_ = false; + + public: + ticket() = default; + ticket(const ticket &) = delete; + ticket &operator=(const ticket &) = delete; + ~ticket() + { + if (owns_) + { + db_gate::release(); + } + } + + bool try_acquire() + { + if (!db_gate::try_acquire()) + { + return false; + } + owns_ = true; + return true; + } + }; + + // Bounded wait with 1..8 ms backoff. A single timer is reused so a + // suspended request owns no per-attempt allocation. 500 ms is the same + // ceiling as the old fixed 250 x 2 ms loop, but short waits now resolve + // quickly instead of always paying a full 2 ms slot. + static asio::awaitable enter(ticket &t) + { + if (t.try_acquire()) + { + co_return true; + } + auto executor = co_await asio::this_coro::executor; + const auto deadline = std::chrono::steady_clock::now() + std::chrono::milliseconds(500); + std::chrono::milliseconds backoff{1}; + asio::steady_timer timer(executor); + for (;;) + { + const auto now = std::chrono::steady_clock::now(); + if (now >= deadline) + { + co_return false; + } + auto remain = std::chrono::duration_cast(deadline - now); + const auto wait = std::min(backoff, std::max(remain, std::chrono::milliseconds{1})); + timer.expires_after(wait); + co_await timer.async_wait(asio::use_awaitable); + if (t.try_acquire()) + { + co_return true; + } + backoff = std::min(backoff * 2, std::chrono::milliseconds{8}); + } + } }; - asio::awaitable enter_db_gate(db_ticket &ticket) + void respond_db_error(const std::shared_ptr &peer, std::string_view message) { - if (ticket.try_enter()) + peer->type("text/plain; charset=utf-8"); + peer->status(503); + peer->output = std::string(message); + } + + // One query path for both DB routes: gate -> driver -> explicit failure. + // pg_async_query_vec_impl() catches driver exceptions into error_msg and + // returns 0 rows, so checking rows.empty() would mistake a legitimate + // empty /async-db result for an error; iserror / error_msg are the signal. + template + asio::awaitable fetch_rows(const std::shared_ptr &peer, + const std::string &sql, + std::vector &rows) + { + db_gate::ticket ticket; + if (!co_await db_gate::enter(ticket)) { - co_return true; + respond_db_error(peer, "database busy"); + co_return false; } - auto executor = co_await asio::this_coro::executor; - for (unsigned attempt = 0; attempt < 250; ++attempt) + + try { - asio::steady_timer timer(executor); - timer.expires_after(std::chrono::milliseconds(2)); - co_await timer.async_wait(asio::use_awaitable); - if (ticket.try_enter()) + auto link = std::make_unique("pg"); + co_await link->async_query(sql, rows); + if (link->iserror || !link->error_msg.empty()) { - co_return true; + rows.clear(); + respond_db_error(peer, "database query failed"); + co_return false; } } - co_return false; + catch (const std::exception &) + { + rows.clear(); + respond_db_error(peer, "database query failed"); + co_return false; + } + co_return true; } long long to_int(std::string_view value, long long fallback = 0) @@ -228,18 +306,31 @@ namespace void append_html_escaped(std::string &out, std::string_view value) { - for (char ch : value) + if (value.empty()) { - switch (ch) + return; + } + // Copy the plain runs in bulk; only the five escaped bytes need per- + // character work. The seed puts &, ', " and multi-byte UTF-8 in almost + // every row, so this is the hot loop of /fortunes. + std::size_t plain_begin = 0; + for (std::size_t i = 0; i < value.size(); ++i) + { + const char *escaped = nullptr; + switch (value[i]) { - case '&': out += "&"; break; - case '<': out += "<"; break; - case '>': out += ">"; break; - case '"': out += """; break; - case '\'': out += "'"; break; - default: out.push_back(ch); + case '&': escaped = "&"; break; + case '<': escaped = "<"; break; + case '>': escaped = ">"; break; + case '"': escaped = """; break; + case '\'': escaped = "'"; break; + default: continue; } + out.append(value.data() + plain_begin, i - plain_begin); + out += escaped; + plain_begin = i + 1; } + out.append(value.data() + plain_begin, value.size() - plain_begin); } std::string render_items(const std::vector &rows) @@ -325,27 +416,18 @@ asio::awaitable arena_async_db(std::shared_ptr peer) if (limit < 1) limit = 1; if (limit > 50) limit = 50; - db_ticket ticket; + std::string sql = "SELECT id,name,category,price,quantity,active,tags,rating_score,rating_count FROM items WHERE price BETWEEN "; + sql += std::to_string(min_price); + sql += " AND "; + sql += std::to_string(max_price); + sql += " LIMIT "; + sql += std::to_string(limit); + std::vector rows; - if (co_await enter_db_gate(ticket)) + rows.reserve(static_cast(limit)); + if (!co_await fetch_rows(peer, sql, rows)) { - try - { - std::string sql = "SELECT id,name,category,price,quantity,active,tags,rating_score,rating_count FROM items WHERE price BETWEEN "; - sql += std::to_string(min_price); - sql += " AND "; - sql += std::to_string(max_price); - sql += " LIMIT "; - sql += std::to_string(limit); - - auto link = std::make_unique("pg"); - rows.reserve(static_cast(limit)); - co_await link->async_query(sql, rows); - } - catch (const std::exception &) - { - rows.clear(); - } + co_return ""; } peer->output = render_items(rows); @@ -357,24 +439,20 @@ asio::awaitable arena_fortunes(std::shared_ptr peer) { peer->type("text/html; charset=utf-8"); - db_ticket ticket; + // 201 = 200 seeded rows + the runtime row appended by render_fortunes(). + // The seed is this repo's own: 12 TechEmpower rows plus + // generate_series(13,200) in data/pgdb-seed.sql, not the 12-row TE + // contract; reserve() only sets capacity either way. std::vector rows; - if (co_await enter_db_gate(ticket)) + rows.reserve(201); + if (!co_await fetch_rows(peer, "SELECT id,message FROM fortune", rows)) { - try - { - auto link = std::make_unique("pg"); - // 201 = 200 seeded rows + the runtime row appended below. The seed is - // this repo's own: 12 TechEmpower rows plus generate_series(13,200) in - // data/pgdb-seed.sql. It is not the 12-row TE contract, so revisit this - // if the seed changes; reserve() only sets capacity either way. - rows.reserve(201); - co_await link->async_query("SELECT id,message FROM fortune", rows); - } - catch (const std::exception &) - { - rows.clear(); - } + co_return ""; + } + if (rows.empty()) + { + respond_db_error(peer, "fortune table is empty"); + co_return ""; } peer->output = render_fortunes(rows); From 68e71ac0cf504b27047d452a04127764b780311e Mon Sep 17 00:00:00 2001 From: hzq Date: Fri, 13 Nov 2026 21:34:17 +0800 Subject: [PATCH 44/89] Fix db.cpp --- frameworks/paozhu/README.md | 2 +- frameworks/paozhu/src/controller/src/db.cpp | 39 +++++++++++++-------- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/frameworks/paozhu/README.md b/frameworks/paozhu/README.md index b1b83c6c23..fe8611a13a 100644 --- a/frameworks/paozhu/README.md +++ b/frameworks/paozhu/README.md @@ -64,7 +64,7 @@ Registered through paozhu annotations; path parameters must be the final segment - `src/conf/openssl.cnf` is exported as `OPENSSL_CONF`: it keeps TLS 1.3 available while refusing TLS < 1.2 and the weak cipher families probed by the TLS checks. It does not change the certificate. - `src/conf/orm.conf` is a template copied to `/app/conf/orm.conf.tpl`; `entrypoint.sh` renders it into `/app/conf/main/orm.conf` only when the harness injects `DATABASE_URL` / `DATABASE_MAX_CONN`. Without a DB profile there is no `orm.conf` beside either `server.conf`: `startup_orm_init()` calls `init_orm_conn_pool()` unconditionally, and `get_orm_config_file()` returns an empty list when the file is absent, so no pool is created. `serverconfig` resolves `orm.conf` relative to each conf file's own directory, which is why only the main instance (the one serving :8080) gets one. Both `[pg]` groups must carry full connection settings: `type = main` fills `conf_data[0]` (edit pool), `type = second` fills `conf_data[1]`, which `async_get_pg_select_conn()` actually uses for SELECTs. -- `/async-db` and `/fortunes` use `orm::db_conn("pg")` with `co_await async_query()` plus small `set_val` row types instead of a generated ORM model — `mini_project.sh` empties `orm/` and `models/`. paozhu's own Asio Postgres driver (SCRAM-SHA-256) is compiled into the binary, so no `libpq` is needed. Both handlers now go through one `fetch_rows()` path: an async gate caps global in-flight queries at `min(DATABASE_MAX_CONN - 24, the pool's total select quota)` to stay under Postgres' `max_connections`, while the ORM pool's own per-slot quota and async backoff do the fine-grained limiting. The cap deliberately uses the **total** quota, not the smallest slot quota: `maxpool / slots` shrinks the cap as `orm_ioc_num` grows (4 slots → 63, 16 → 15, 64 → 3), which is what kept `/fortunes` at ~29 cores. Gate timeouts, driver errors and an unseeded `fortune` table return 503 instead of an empty 200 page. +- `/async-db` and `/fortunes` use `orm::db_conn("pg")` with `co_await async_query()` plus small `set_val` row types instead of a generated ORM model — `mini_project.sh` empties `orm/` and `models/`. paozhu's own Asio Postgres driver (SCRAM-SHA-256) is compiled into the binary, so no `libpq` is needed. Both handlers now go through one `fetch_rows()` path: an async gate caps global in-flight queries at the pool's total select quota minus 24 — the effective `maxpool` that `entrypoint.sh` rendered into `orm.conf` — so the select pool never exhausts Postgres' `max_connections`; `DATABASE_MAX_CONN` is only a fallback when no pool was created. The gate sums the per-slot quotas instead of taking the smallest one: `maxpool / slots` shrinks the cap as `orm_ioc_num` grows (4 slots → 63, 16 → 15, 64 → 3), which is what kept `/fortunes` at ~29 cores. Gate timeouts, driver errors and an unseeded `fortune` table return 503 instead of an empty 200 page. - `/fortunes` renders the HTML per request in the handler: `mini_project.sh` also empties `view/` and `viewsrc/`, so `peer->view()` has no template to load. The runtime row, byte-ordinal sort and HTML escaping live in `src/controller/src/db.cpp`. - Every `//@urlpath` handler in `arena.cpp` and `db.cpp` uses the coroutine form (`asio::awaitable` + `co_return ""`), so `paozhu_pre` registers them all through `co_reg`. Only the DB routes really suspend (`co_await async_query()`); the CPU/static handlers have no `co_await` but share the same handler shape. - Raw (non-form, non-JSON) POST bodies are spilled to a temp file only when they exceed `CONST_HTTP_RAW_POST_SIZE` (2 MB). At the current `d73100bd` pin a 2-byte `POST /baseline11` body therefore stays in `httppeer::rawcontent`, and `raw_body()` returns it without touching the disk; the temp-file branch only exists for oversized bodies. At `71305087` every raw POST body went to a file and `raw_body()` had to read and unlink it — which is why that branch is still there and why the earlier measurements include per-POST file I/O that the current pin does not. diff --git a/frameworks/paozhu/src/controller/src/db.cpp b/frameworks/paozhu/src/controller/src/db.cpp index aae9242ddd..e115344c38 100644 --- a/frameworks/paozhu/src/controller/src/db.cpp +++ b/frameworks/paozhu/src/controller/src/db.cpp @@ -63,13 +63,12 @@ namespace // paozhu's ORM pool already enforces per-slot quotas with asynchronous // backoff in async_get_pg_select_conn(). What the handlers still need is a - // process-wide ceiling under Postgres' max_connections: - // * DATABASE_MAX_CONN is the harness budget; 24 slots stay reserved for - // the edit pool, readiness probes and PG maintenance. - // * the pool's TOTAL select quota is the second ceiling. Never use the - // smallest per-slot quota here: budget/slots shrinks as orm_ioc_num - // grows (4 slots -> 63, 16 -> 15, 64 -> 3), so adding io threads would - // lower the cap while the pool itself can still serve 255 queries. + // process-wide ceiling under Postgres' max_connections: the pool's TOTAL + // select quota (parsed from orm.conf) minus 24 backends reserved for the + // edit pool, readiness probes and PG maintenance. Never use the smallest + // per-slot quota here: budget/slots shrinks as orm_ioc_num grows + // (4 slots -> 63, 16 -> 15, 64 -> 3), so adding io threads would lower the + // cap while the pool itself can still serve 255 queries. // Waiting must be a coroutine on the request's own executor: paozhu runs // one thread per io_context, so a blocking semaphore would pin that thread // and the coroutine holding a ticket could never resume to release it. @@ -84,10 +83,15 @@ namespace static int limit() { static const int value = [] { + // Single source of truth: the pool's parsed quota, i.e. the + // maxpool that entrypoint.sh rendered into orm.conf. The pool + // splits it across slots, so sum the slots back up instead of + // copying one slot's quota (which would scale the cap down as + // orm_ioc_num grows). DATABASE_MAX_CONN is only a fallback for + // a process started without orm.conf (no DB profile). const char *env = std::getenv("DATABASE_MAX_CONN"); - int budget = env ? std::atoi(env) : 256; - budget = std::clamp(budget, 8, 256); - int cap = budget > 24 ? budget - 24 : budget; + int fallback = std::clamp(env ? std::atoi(env) : 256, 8, 256); + int cap = fallback > 24 ? fallback - 24 : fallback; auto &pools = orm::get_orm_conn_pool_obj(); auto it = pools.find("pg"); @@ -99,9 +103,16 @@ namespace { total += pool.slot_max_of(1, static_cast(i));// 1 = select role } - if (total > 0 && total < cap) + if (total > 0) { - cap = static_cast(total); + // Leave 24 backends for the edit pool, readiness probes + // and PG maintenance: orm.conf's 255 would otherwise + // consume all of max_connections=256. + const long long usable = total > 24 ? total - 24 : total; + if (usable < cap) + { + cap = static_cast(usable); + } } } return cap; @@ -190,7 +201,7 @@ namespace } }; - void respond_db_error(const std::shared_ptr &peer, std::string_view message) + void respond_db_error(const std::shared_ptr &peer, std::string_view message) { peer->type("text/plain; charset=utf-8"); peer->status(503); @@ -202,7 +213,7 @@ namespace // returns 0 rows, so checking rows.empty() would mistake a legitimate // empty /async-db result for an error; iserror / error_msg are the signal. template - asio::awaitable fetch_rows(const std::shared_ptr &peer, + asio::awaitable fetch_rows(const std::shared_ptr &peer, const std::string &sql, std::vector &rows) { From 4971231a5280d36f989ccd87f4871d1b3bf81889 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 13 Nov 2026 14:19:30 +0000 Subject: [PATCH 45/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 236 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 2 +- site/static/logs/async/32000/paozhu.log | 10 +- site/static/logs/baseline-h2/1024/paozhu.log | 10 +- site/static/logs/baseline-h2/256/paozhu.log | 6 +- site/static/logs/baseline/4096/paozhu.log | 6 +- site/static/logs/json-h2c/1024/paozhu.log | 8 +- site/static/logs/json-h2c/4096/paozhu.log | 4 +- site/static/logs/json-tls/4096/paozhu.log | 6 +- site/static/logs/latency-10k/1024/paozhu.log | 8 +- site/static/logs/latency-1m/1024/paozhu.log | 6 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 8 +- site/static/logs/limited-conn/4096/paozhu.log | 14 +- site/static/logs/pipelined/4096/paozhu.log | 8 +- site/static/logs/static-h2/256/paozhu.log | 2 +- 15 files changed, 167 insertions(+), 167 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 6705a8268b..03f02f21a8 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1704807, - "avg_latency": "17.24ms", + "rps": 1721211, + "avg_latency": "17.08ms", "p99_latency": "17.60ms", - "cpu": "5796.7%", - "memory": "548MiB", + "cpu": "5809.2%", + "memory": "550MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "172.31MB/s", - "input_bw": "78.04MB/s", + "bandwidth": "173.96MB/s", + "input_bw": "78.79MB/s", "reconnects": 0, - "status_2xx": 17048079, + "status_2xx": 17212112, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 138191, - "avg_latency": "6.91ms", - "p99_latency": "38.50ms", - "cpu": "3190.1%", - "memory": "96MiB", + "rps": 138700, + "avg_latency": "6.89ms", + "p99_latency": "54.20ms", + "cpu": "3055.9%", + "memory": "109MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "532.72MB/s", - "input_bw": "9.23MB/s", - "reconnects": 54949, - "status_2xx": 1381918, + "bandwidth": "534.78MB/s", + "input_bw": "9.26MB/s", + "reconnects": 55208, + "status_2xx": 1387008, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2618698, - "avg_latency": "1.57ms", - "p99_latency": "1.72ms", - "cpu": "6289.9%", - "memory": "128MiB", + "rps": 2492025, + "avg_latency": "1.64ms", + "p99_latency": "3.65ms", + "cpu": "6114.8%", + "memory": "127MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "264.65MB/s", - "input_bw": "202.29MB/s", + "bandwidth": "251.85MB/s", + "input_bw": "192.50MB/s", "reconnects": 0, - "status_2xx": 13093493, + "status_2xx": 12460129, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 419133, - "avg_latency": "233.93ms", - "p99_latency": "2.45s", - "cpu": "3846.2%", + "rps": 414134, + "avg_latency": "235.97ms", + "p99_latency": "2.39s", + "cpu": "3780.3%", "memory": "2.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.98MB/s", + "bandwidth": "18.79MB/s", "reconnects": 0, - "status_2xx": 2116624, + "status_2xx": 2095522, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 446846, - "avg_latency": "55.99ms", - "p99_latency": "372.13ms", - "cpu": "4330.6%", - "memory": "555MiB", + "rps": 452131, + "avg_latency": "55.53ms", + "p99_latency": "489.63ms", + "cpu": "4389.7%", + "memory": "556MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.15MB/s", + "bandwidth": "20.35MB/s", "reconnects": 0, - "status_2xx": 2247637, + "status_2xx": 2269700, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,18 +102,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 50717, - "avg_latency": "19.25ms", - "p99_latency": "110.30ms", - "cpu": "2892.4%", - "memory": "125MiB", + "rps": 51598, + "avg_latency": "18.88ms", + "p99_latency": "137.30ms", + "cpu": "2666.6%", + "memory": "140MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.17GB/s", + "bandwidth": "1.19GB/s", "reconnects": 0, - "status_2xx": 253587, + "status_2xx": 257992, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -121,18 +121,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 429908, - "avg_latency": "74.46ms", - "p99_latency": "237.82ms", - "cpu": "4360.1%", + "rps": 421115, + "avg_latency": "76.27ms", + "p99_latency": "238.04ms", + "cpu": "4307.7%", "memory": "1.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.44GB/s", + "bandwidth": "1.41GB/s", "reconnects": 0, - "status_2xx": 2171037, + "status_2xx": 2122424, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,10 +140,10 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 378748, - "avg_latency": "328.16ms", - "p99_latency": "1.12s", - "cpu": "3848.7%", + "rps": 378076, + "avg_latency": "327.35ms", + "p99_latency": "1.16s", + "cpu": "4005.4%", "memory": "4.7GiB", "connections": 4096, "threads": 64, @@ -151,7 +151,7 @@ "pipeline": 1, "bandwidth": "1.28GB/s", "reconnects": 0, - "status_2xx": 1927831, + "status_2xx": 1931971, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +159,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1004781, - "avg_latency": "3.87ms", - "p99_latency": "38.88ms", - "cpu": "6160.3%", - "memory": "434MiB", + "rps": 994761, + "avg_latency": "3.89ms", + "p99_latency": "42.47ms", + "cpu": "5961.5%", + "memory": "432MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.40GB", + "bandwidth": "3.36GB", "reconnects": 0, - "status_2xx": 5124835, + "status_2xx": 5073472, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -178,10 +178,10 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9982, - "avg_latency": "74.3us", - "p99_latency": "106.0us", - "cpu": "27.3%", + "rps": 9983, + "avg_latency": "71.7us", + "p99_latency": "112.0us", + "cpu": "29.5%", "memory": "63MiB", "connections": 1024, "threads": 64, @@ -189,80 +189,80 @@ "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199656, + "status_2xx": 199689, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 5693563, - "cpu_per_req_us": 28.5169, + "cpu_usec": 6222876, + "cpu_per_req_us": 31.1628, "target_rate": 10000, - "rate_ratio": 0.9982, - "p99_9_latency": "161.0us" + "rate_ratio": 0.9983, + "p99_9_latency": "169.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997882, - "avg_latency": "117.4us", - "p99_latency": "193.0us", - "cpu": "3060.2%", + "rps": 998425, + "avg_latency": "115.4us", + "p99_latency": "194.0us", + "cpu": "3072.4%", "memory": "70MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.78MB/s", + "bandwidth": "104.83MB/s", "reconnects": 0, - "status_2xx": 19961641, + "status_2xx": 19972494, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 561242439, - "cpu_per_req_us": 28.116, + "cpu_usec": 564723882, + "cpu_per_req_us": 28.2751, "target_rate": 1000000, - "rate_ratio": 0.9979, - "p99_9_latency": "8908.0us" + "rate_ratio": 0.9984, + "p99_9_latency": "9204.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 367596, - "avg_latency": "2609133.7us", - "p99_latency": "5294080.0us", - "cpu": "809.5%", - "memory": "62MiB", + "rps": 368101, + "avg_latency": "2613837.9us", + "p99_latency": "5445632.0us", + "cpu": "815.4%", + "memory": "63MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "38.60MB/s", + "bandwidth": "38.65MB/s", "reconnects": 0, - "status_2xx": 7354468, + "status_2xx": 7364628, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159691719, - "cpu_per_req_us": 21.7136, + "cpu_usec": 159664250, + "cpu_per_req_us": 21.6799, "target_rate": 500000, - "rate_ratio": 0.7352, - "p99_9_latency": "5466112.0us" + "rate_ratio": 0.7362, + "p99_9_latency": "5654528.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 677687, - "avg_latency": "6.03ms", - "p99_latency": "60.80ms", - "cpu": "2702.4%", - "memory": "60MiB", + "rps": 661272, + "avg_latency": "6.17ms", + "p99_latency": "62.30ms", + "cpu": "2712.1%", + "memory": "82MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "68.48MB/s", - "input_bw": "52.35MB/s", - "reconnects": 338836, - "status_2xx": 3388435, + "bandwidth": "66.83MB/s", + "input_bw": "51.08MB/s", + "reconnects": 330634, + "status_2xx": 3306362, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -270,18 +270,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3456769, + "rps": 3444331, "avg_latency": "19.01ms", - "p99_latency": "36.90ms", - "cpu": "6117.7%", + "p99_latency": "28.00ms", + "cpu": "6151.2%", "memory": "122MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "349.34MB/s", + "bandwidth": "348.02MB/s", "reconnects": 0, - "status_2xx": 17283845, + "status_2xx": 17221656, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -289,18 +289,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 107843, - "avg_latency": "287.05ms", - "p99_latency": "3.30s", - "cpu": "3785.3%", + "rps": 108306, + "avg_latency": "285.74ms", + "p99_latency": "3.43s", + "cpu": "3739.2%", "memory": "7.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "6.42GB/s", + "bandwidth": "6.45GB/s", "reconnects": 0, - "status_2xx": 544608, + "status_2xx": 546947, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -308,18 +308,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 110146, - "avg_latency": "73.19ms", - "p99_latency": "843.65ms", - "cpu": "4547.6%", + "rps": 109907, + "avg_latency": "73.32ms", + "p99_latency": "780.36ms", + "cpu": "4374.5%", "memory": "1.9GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "6.57GB/s", + "bandwidth": "6.55GB/s", "reconnects": 0, - "status_2xx": 554039, + "status_2xx": 552834, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index 496f177217..5c28ad555e 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,6 +1,6 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index 1975ae9b05..9dc0d2ee1c 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index 5bf1f5a84f..594675f4e1 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index ae6badc558..e9dd5d0755 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] [websockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index f4f72854a0..45d1f7cfce 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf[websockets] not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index a781d4c2fa..ae6badc558 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index fd83ef3a35..3e633a520f 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,7 +1,7 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 5bf1f5a84f..7507d1b226 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index 3715f01c5d..c60ab37970 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled +/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index fd83ef3a35..ae6badc558 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 76098aa040..7507d1b226 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index c373a84f43..7f8c69a1be 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients -[mqtt_subpub] init: registered 0 clients [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index f33995dbb8..ae6badc558 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [websockets] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index ae6badc558..9dc0d2ee1c 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled From 81eada4e7a0c19ead1b5d393c6ad45e0242d13a8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 13 Nov 2026 15:32:56 +0000 Subject: [PATCH 46/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 240 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 8 +- site/static/logs/async/32000/paozhu.log | 6 +- site/static/logs/baseline-h2/1024/paozhu.log | 8 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline/4096/paozhu.log | 6 +- site/static/logs/json-h2c/1024/paozhu.log | 10 +- site/static/logs/json-h2c/4096/paozhu.log | 8 +- site/static/logs/json-tls/4096/paozhu.log | 8 +- site/static/logs/latency-10k/1024/paozhu.log | 10 +- site/static/logs/latency-1m/1024/paozhu.log | 8 +- site/static/logs/limited-conn/4096/paozhu.log | 10 +- site/static/logs/static-h2/1024/paozhu.log | 8 +- site/static/logs/static-h2/256/paozhu.log | 2 +- 14 files changed, 170 insertions(+), 170 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 03f02f21a8..7248d93e2f 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1721211, - "avg_latency": "17.08ms", - "p99_latency": "17.60ms", - "cpu": "5809.2%", - "memory": "550MiB", + "rps": 1712305, + "avg_latency": "17.15ms", + "p99_latency": "17.50ms", + "cpu": "5797.2%", + "memory": "548MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "173.96MB/s", - "input_bw": "78.79MB/s", + "bandwidth": "173.07MB/s", + "input_bw": "78.38MB/s", "reconnects": 0, - "status_2xx": 17212112, + "status_2xx": 17123059, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 138700, - "avg_latency": "6.89ms", - "p99_latency": "54.20ms", - "cpu": "3055.9%", - "memory": "109MiB", + "rps": 141773, + "avg_latency": "6.76ms", + "p99_latency": "53.60ms", + "cpu": "2993.6%", + "memory": "108MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "534.78MB/s", - "input_bw": "9.26MB/s", - "reconnects": 55208, - "status_2xx": 1387008, + "bandwidth": "546.51MB/s", + "input_bw": "9.46MB/s", + "reconnects": 56405, + "status_2xx": 1417732, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2492025, - "avg_latency": "1.64ms", - "p99_latency": "3.65ms", - "cpu": "6114.8%", - "memory": "127MiB", + "rps": 2574120, + "avg_latency": "1.60ms", + "p99_latency": "1.74ms", + "cpu": "6296.0%", + "memory": "134MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "251.85MB/s", - "input_bw": "192.50MB/s", + "bandwidth": "260.15MB/s", + "input_bw": "198.84MB/s", "reconnects": 0, - "status_2xx": 12460129, + "status_2xx": 12870602, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 414134, - "avg_latency": "235.97ms", - "p99_latency": "2.39s", - "cpu": "3780.3%", + "rps": 436391, + "avg_latency": "220.24ms", + "p99_latency": "1.98s", + "cpu": "4123.6%", "memory": "2.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.79MB/s", + "bandwidth": "19.88MB/s", "reconnects": 0, - "status_2xx": 2095522, + "status_2xx": 2216870, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 452131, - "avg_latency": "55.53ms", - "p99_latency": "489.63ms", - "cpu": "4389.7%", + "rps": 449262, + "avg_latency": "55.69ms", + "p99_latency": "431.05ms", + "cpu": "4336.3%", "memory": "556MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.35MB/s", + "bandwidth": "20.30MB/s", "reconnects": 0, - "status_2xx": 2269700, + "status_2xx": 2264283, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,37 +102,37 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 51598, - "avg_latency": "18.88ms", - "p99_latency": "137.30ms", - "cpu": "2666.6%", + "rps": 51304, + "avg_latency": "18.93ms", + "p99_latency": "139.80ms", + "cpu": "2754.7%", "memory": "140MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.19GB/s", + "bandwidth": "1.18GB/s", "reconnects": 0, - "status_2xx": 257992, + "status_2xx": 256522, "status_3xx": 0, "status_4xx": 0, - "status_5xx": 0 + "status_5xx": 2 }, "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 421115, - "avg_latency": "76.27ms", - "p99_latency": "238.04ms", - "cpu": "4307.7%", + "rps": 423198, + "avg_latency": "75.82ms", + "p99_latency": "238.28ms", + "cpu": "4288.1%", "memory": "1.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.41GB/s", + "bandwidth": "1.42GB/s", "reconnects": 0, - "status_2xx": 2122424, + "status_2xx": 2137154, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,10 +140,10 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 378076, - "avg_latency": "327.35ms", - "p99_latency": "1.16s", - "cpu": "4005.4%", + "rps": 381001, + "avg_latency": "327.56ms", + "p99_latency": "1.17s", + "cpu": "4054.4%", "memory": "4.7GiB", "connections": 4096, "threads": 64, @@ -151,7 +151,7 @@ "pipeline": 1, "bandwidth": "1.28GB/s", "reconnects": 0, - "status_2xx": 1931971, + "status_2xx": 1939300, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +159,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 994761, - "avg_latency": "3.89ms", - "p99_latency": "42.47ms", - "cpu": "5961.5%", - "memory": "432MiB", + "rps": 1002337, + "avg_latency": "3.86ms", + "p99_latency": "80.87ms", + "cpu": "5959.5%", + "memory": "433MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.36GB", + "bandwidth": "3.39GB", "reconnects": 0, - "status_2xx": 5073472, + "status_2xx": 5112714, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -178,91 +178,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9983, - "avg_latency": "71.7us", - "p99_latency": "112.0us", - "cpu": "29.5%", - "memory": "63MiB", + "rps": 9979, + "avg_latency": "80.7us", + "p99_latency": "108.0us", + "cpu": "28.1%", + "memory": "64MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199689, + "status_2xx": 199607, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 6222876, - "cpu_per_req_us": 31.1628, + "cpu_usec": 5853940, + "cpu_per_req_us": 29.3273, "target_rate": 10000, - "rate_ratio": 0.9983, - "p99_9_latency": "169.0us" + "rate_ratio": 0.9979, + "p99_9_latency": "2945.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 998425, - "avg_latency": "115.4us", - "p99_latency": "194.0us", - "cpu": "3072.4%", - "memory": "70MiB", + "rps": 997877, + "avg_latency": "109.2us", + "p99_latency": "201.0us", + "cpu": "3183.3%", + "memory": "69MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.83MB/s", + "bandwidth": "104.78MB/s", "reconnects": 0, - "status_2xx": 19972494, + "status_2xx": 19960743, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 564723882, - "cpu_per_req_us": 28.2751, + "cpu_usec": 580851428, + "cpu_per_req_us": 29.0997, "target_rate": 1000000, - "rate_ratio": 0.9984, - "p99_9_latency": "9204.0us" + "rate_ratio": 0.9979, + "p99_9_latency": "576.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 368101, - "avg_latency": "2613837.9us", - "p99_latency": "5445632.0us", - "cpu": "815.4%", - "memory": "63MiB", + "rps": 366275, + "avg_latency": "2648136.1us", + "p99_latency": "5351424.0us", + "cpu": "816.6%", + "memory": "62MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "38.65MB/s", + "bandwidth": "38.46MB/s", "reconnects": 0, - "status_2xx": 7364628, + "status_2xx": 7327982, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159664250, - "cpu_per_req_us": 21.6799, + "cpu_usec": 159627474, + "cpu_per_req_us": 21.7833, "target_rate": 500000, - "rate_ratio": 0.7362, - "p99_9_latency": "5654528.0us" + "rate_ratio": 0.7326, + "p99_9_latency": "5527552.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 661272, - "avg_latency": "6.17ms", - "p99_latency": "62.30ms", - "cpu": "2712.1%", + "rps": 675452, + "avg_latency": "6.03ms", + "p99_latency": "61.50ms", + "cpu": "2591.5%", "memory": "82MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "66.83MB/s", - "input_bw": "51.08MB/s", - "reconnects": 330634, - "status_2xx": 3306362, + "bandwidth": "68.26MB/s", + "input_bw": "52.18MB/s", + "reconnects": 337751, + "status_2xx": 3377262, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -270,18 +270,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3444331, - "avg_latency": "19.01ms", - "p99_latency": "28.00ms", - "cpu": "6151.2%", + "rps": 3541456, + "avg_latency": "18.55ms", + "p99_latency": "19.80ms", + "cpu": "6260.0%", "memory": "122MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "348.02MB/s", + "bandwidth": "357.90MB/s", "reconnects": 0, - "status_2xx": 17221656, + "status_2xx": 17707280, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -289,18 +289,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 108306, - "avg_latency": "285.74ms", - "p99_latency": "3.43s", - "cpu": "3739.2%", + "rps": 108967, + "avg_latency": "283.40ms", + "p99_latency": "3.79s", + "cpu": "3853.4%", "memory": "7.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "6.45GB/s", + "bandwidth": "6.51GB/s", "reconnects": 0, - "status_2xx": 546947, + "status_2xx": 552464, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -308,18 +308,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 109907, - "avg_latency": "73.32ms", - "p99_latency": "780.36ms", - "cpu": "4374.5%", + "rps": 110228, + "avg_latency": "73.13ms", + "p99_latency": "861.64ms", + "cpu": "4538.1%", "memory": "1.9GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "6.55GB/s", + "bandwidth": "6.57GB/s", "reconnects": 0, - "status_2xx": 552834, + "status_2xx": 554451, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index 5c28ad555e..ae6badc558 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index 9dc0d2ee1c..7507d1b226 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index e9dd5d0755..594675f4e1 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [websockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 45d1f7cfce..59e708121f 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf[websockets] not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[sockets] +/app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index ae6badc558..4a2c23501f 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf + not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index 3e633a520f..ae6badc558 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 7507d1b226..ae6badc558 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index c60ab37970..594675f4e1 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled -/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index ae6badc558..7507d1b226 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index 7f8c69a1be..ad34f68a48 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] [mqtt_client] /app/conf/main/sockets.conf/app/conf/h1/mqtt.conf not found or parse fail, socket client disabled not found or parse fail, mqtt client disabled + [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index 9dc0d2ee1c..ae6badc558 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled From 470e75a654ed04284ce9e79a4293b243f0b693fb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 13 Nov 2026 18:09:56 +0000 Subject: [PATCH 47/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 236 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 4 +- site/static/logs/async/32000/paozhu.log | 10 +- site/static/logs/baseline-h2/1024/paozhu.log | 8 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline/4096/paozhu.log | 12 +- site/static/logs/fortunes/1024/paozhu.log | 4 +- site/static/logs/json-h2c/1024/paozhu.log | 10 +- site/static/logs/json-h2c/4096/paozhu.log | 8 +- site/static/logs/json-tls/4096/paozhu.log | 8 +- site/static/logs/latency-10k/1024/paozhu.log | 10 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 8 +- site/static/logs/limited-conn/4096/paozhu.log | 6 +- site/static/logs/static-h2/1024/paozhu.log | 4 +- 14 files changed, 168 insertions(+), 168 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 7248d93e2f..6fce36462d 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1712305, - "avg_latency": "17.15ms", - "p99_latency": "17.50ms", - "cpu": "5797.2%", + "rps": 1709769, + "avg_latency": "17.18ms", + "p99_latency": "17.60ms", + "cpu": "5807.2%", "memory": "548MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "173.07MB/s", - "input_bw": "78.38MB/s", + "bandwidth": "172.81MB/s", + "input_bw": "78.27MB/s", "reconnects": 0, - "status_2xx": 17123059, + "status_2xx": 17097696, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 141773, - "avg_latency": "6.76ms", - "p99_latency": "53.60ms", - "cpu": "2993.6%", - "memory": "108MiB", + "rps": 142580, + "avg_latency": "6.59ms", + "p99_latency": "52.20ms", + "cpu": "3056.2%", + "memory": "109MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "546.51MB/s", - "input_bw": "9.46MB/s", - "reconnects": 56405, - "status_2xx": 1417732, + "bandwidth": "549.68MB/s", + "input_bw": "9.52MB/s", + "reconnects": 56759, + "status_2xx": 1425809, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2574120, - "avg_latency": "1.60ms", + "rps": 2579834, + "avg_latency": "1.59ms", "p99_latency": "1.74ms", - "cpu": "6296.0%", - "memory": "134MiB", + "cpu": "6340.0%", + "memory": "132MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "260.15MB/s", - "input_bw": "198.84MB/s", + "bandwidth": "260.73MB/s", + "input_bw": "199.29MB/s", "reconnects": 0, - "status_2xx": 12870602, + "status_2xx": 12899172, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 436391, - "avg_latency": "220.24ms", - "p99_latency": "1.98s", - "cpu": "4123.6%", + "rps": 433447, + "avg_latency": "225.42ms", + "p99_latency": "2.34s", + "cpu": "3943.1%", "memory": "2.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.88MB/s", + "bandwidth": "19.67MB/s", "reconnects": 0, - "status_2xx": 2216870, + "status_2xx": 2193243, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 449262, - "avg_latency": "55.69ms", - "p99_latency": "431.05ms", - "cpu": "4336.3%", - "memory": "556MiB", + "rps": 445618, + "avg_latency": "56.45ms", + "p99_latency": "395.20ms", + "cpu": "4398.5%", + "memory": "553MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.30MB/s", + "bandwidth": "20.10MB/s", "reconnects": 0, - "status_2xx": 2264283, + "status_2xx": 2241459, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,37 +102,37 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 51304, - "avg_latency": "18.93ms", - "p99_latency": "139.80ms", - "cpu": "2754.7%", - "memory": "140MiB", + "rps": 52974, + "avg_latency": "18.34ms", + "p99_latency": "134.80ms", + "cpu": "2778.6%", + "memory": "138MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.18GB/s", + "bandwidth": "1.22GB/s", "reconnects": 0, - "status_2xx": 256522, + "status_2xx": 264871, "status_3xx": 0, "status_4xx": 0, - "status_5xx": 2 + "status_5xx": 0 }, "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 423198, - "avg_latency": "75.82ms", - "p99_latency": "238.28ms", - "cpu": "4288.1%", + "rps": 427097, + "avg_latency": "74.96ms", + "p99_latency": "239.90ms", + "cpu": "4333.4%", "memory": "1.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.42GB/s", + "bandwidth": "1.43GB/s", "reconnects": 0, - "status_2xx": 2137154, + "status_2xx": 2156844, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,18 +140,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 381001, - "avg_latency": "327.56ms", - "p99_latency": "1.17s", - "cpu": "4054.4%", + "rps": 364139, + "avg_latency": "342.97ms", + "p99_latency": "1.45s", + "cpu": "3729.1%", "memory": "4.7GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.28GB/s", + "bandwidth": "1.23GB/s", "reconnects": 0, - "status_2xx": 1939300, + "status_2xx": 1857112, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +159,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1002337, + "rps": 999883, "avg_latency": "3.86ms", - "p99_latency": "80.87ms", - "cpu": "5959.5%", - "memory": "433MiB", + "p99_latency": "42.03ms", + "cpu": "5983.0%", + "memory": "432MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.39GB", + "bandwidth": "3.38GB", "reconnects": 0, - "status_2xx": 5112714, + "status_2xx": 5100509, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -178,10 +178,10 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9979, - "avg_latency": "80.7us", - "p99_latency": "108.0us", - "cpu": "28.1%", + "rps": 9982, + "avg_latency": "74.5us", + "p99_latency": "111.0us", + "cpu": "29.6%", "memory": "64MiB", "connections": 1024, "threads": 64, @@ -189,80 +189,80 @@ "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199607, + "status_2xx": 199665, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 5853940, - "cpu_per_req_us": 29.3273, + "cpu_usec": 6253354, + "cpu_per_req_us": 31.3192, "target_rate": 10000, - "rate_ratio": 0.9979, - "p99_9_latency": "2945.0us" + "rate_ratio": 0.9982, + "p99_9_latency": "166.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997877, - "avg_latency": "109.2us", - "p99_latency": "201.0us", - "cpu": "3183.3%", - "memory": "69MiB", + "rps": 997618, + "avg_latency": "124.7us", + "p99_latency": "202.0us", + "cpu": "3016.9%", + "memory": "70MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.78MB/s", + "bandwidth": "104.75MB/s", "reconnects": 0, - "status_2xx": 19960743, + "status_2xx": 19956564, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 580851428, - "cpu_per_req_us": 29.0997, + "cpu_usec": 556150212, + "cpu_per_req_us": 27.868, "target_rate": 1000000, - "rate_ratio": 0.9979, - "p99_9_latency": "576.0us" + "rate_ratio": 0.9976, + "p99_9_latency": "12028.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 366275, - "avg_latency": "2648136.1us", - "p99_latency": "5351424.0us", - "cpu": "816.6%", + "rps": 363849, + "avg_latency": "2689053.1us", + "p99_latency": "5679104.0us", + "cpu": "811.0%", "memory": "62MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "38.46MB/s", + "bandwidth": "38.20MB/s", "reconnects": 0, - "status_2xx": 7327982, + "status_2xx": 7279621, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159627474, - "cpu_per_req_us": 21.7833, + "cpu_usec": 159784194, + "cpu_per_req_us": 21.9495, "target_rate": 500000, - "rate_ratio": 0.7326, - "p99_9_latency": "5527552.0us" + "rate_ratio": 0.7277, + "p99_9_latency": "5949440.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 675452, - "avg_latency": "6.03ms", - "p99_latency": "61.50ms", - "cpu": "2591.5%", - "memory": "82MiB", + "rps": 679980, + "avg_latency": "6.01ms", + "p99_latency": "60.80ms", + "cpu": "2756.6%", + "memory": "71MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "68.26MB/s", - "input_bw": "52.18MB/s", - "reconnects": 337751, - "status_2xx": 3377262, + "bandwidth": "68.72MB/s", + "input_bw": "52.53MB/s", + "reconnects": 339988, + "status_2xx": 3399904, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -270,18 +270,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3541456, + "rps": 3537937, "avg_latency": "18.55ms", - "p99_latency": "19.80ms", - "cpu": "6260.0%", + "p99_latency": "36.50ms", + "cpu": "6115.7%", "memory": "122MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "357.90MB/s", + "bandwidth": "357.55MB/s", "reconnects": 0, - "status_2xx": 17707280, + "status_2xx": 17689687, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -289,18 +289,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 108967, - "avg_latency": "283.40ms", - "p99_latency": "3.79s", - "cpu": "3853.4%", - "memory": "7.0GiB", + "rps": 108861, + "avg_latency": "283.02ms", + "p99_latency": "3.61s", + "cpu": "3760.4%", + "memory": "6.9GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, "bandwidth": "6.51GB/s", "reconnects": 0, - "status_2xx": 552464, + "status_2xx": 551928, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -308,18 +308,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 110228, - "avg_latency": "73.13ms", - "p99_latency": "861.64ms", - "cpu": "4538.1%", + "rps": 109895, + "avg_latency": "73.36ms", + "p99_latency": "738.27ms", + "cpu": "4337.6%", "memory": "1.9GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "6.57GB/s", + "bandwidth": "6.55GB/s", "reconnects": 0, - "status_2xx": 554451, + "status_2xx": 552774, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index ae6badc558..5a3ddc5d5f 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index 7507d1b226..3f75ad46ac 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/h1/mqtt.conf + not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index ae6badc558..a9fa2bbe01 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin + +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 594675f4e1..cc768c8e6e 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 59e708121f..440d235946 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[sockets] -/app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients -[mqtt_subpub] init: registered 0 clients [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index ae6badc558..3715f01c5d 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index 4a2c23501f..40e2c64097 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf - not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index 594675f4e1..cd101c67b3 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 7507d1b226..86169fad3d 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -2,13 +2,13 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients -[mqtt_subpub] init: registered 0 clients [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index ad34f68a48..c6f756bd8f 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [mqtt_client] /app/conf/main/sockets.conf/app/conf/h1/mqtt.conf not found or parse fail, socket client disabled not found or parse fail, mqtt client disabled - +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index 594675f4e1..ac92dcbe5c 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled From aad6611d82400b9372b18694961a2eee261d4ccd Mon Sep 17 00:00:00 2001 From: hzq Date: Sat, 14 Nov 2026 13:37:48 +0800 Subject: [PATCH 48/89] Add paozhu thread pool to 128 --- frameworks/paozhu/src/conf/server-h1.conf | 4 ++-- frameworks/paozhu/src/conf/server.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frameworks/paozhu/src/conf/server-h1.conf b/frameworks/paozhu/src/conf/server-h1.conf index 9a41274aca..51b60dfb3a 100644 --- a/frameworks/paozhu/src/conf/server-h1.conf +++ b/frameworks/paozhu/src/conf/server-h1.conf @@ -8,10 +8,10 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 64 ; Use this value < number of CPU cores +cothreadnum = 128 ; Use this value < number of CPU cores per_ioc_thread_num = 1 ; orm_ioc_num = 4 ;ORM io_context num; -orm_thread_pool_num = 64 ;0 use hardware_concurrency() +orm_thread_pool_num = 128 ;0 use hardware_concurrency() http2_send_loop_num = 8 ; httpport = 8082 diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index 415291b0c3..d4207bd547 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -4,10 +4,10 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 64 ; Use this value < number of CPU cores +cothreadnum = 128 ; Use this value < number of CPU cores per_ioc_thread_num = 1 ; orm_ioc_num = 4 ;ORM io_context num; -orm_thread_pool_num = 64 ;0 use hardware_concurrency() +orm_thread_pool_num = 128 ;0 use hardware_concurrency() http2_send_loop_num = 8 ; httpport = 8080 From 8c0e89e4407b1a507c3a921a770bf711cee6c0ef Mon Sep 17 00:00:00 2001 From: hzq Date: Sat, 14 Nov 2026 18:07:45 +0800 Subject: [PATCH 49/89] Add paozhu --- frameworks/paozhu/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 6578e0c3bd..7c2e7f2931 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=6aa8be507578d0598b1efe401e1c69bc8d07cb20 +ARG PAOZHU_REF=b7022bf63f0d40061e785bb9a2996545fd945054 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct From 405eae5d87b657fb268b7f2b85f27bcde9cd12f3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 14 Nov 2026 10:35:48 +0000 Subject: [PATCH 50/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 250 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 10 +- site/static/logs/async/32000/paozhu.log | 4 +- site/static/logs/baseline-h2/1024/paozhu.log | 10 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline/4096/paozhu.log | 12 +- site/static/logs/fortunes/1024/paozhu.log | 8 +- site/static/logs/json-h2c/1024/paozhu.log | 10 +- site/static/logs/json-h2c/4096/paozhu.log | 2 +- site/static/logs/json-tls/4096/paozhu.log | 10 +- site/static/logs/latency-10k/1024/paozhu.log | 6 +- site/static/logs/latency-1m/1024/paozhu.log | 6 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 6 +- site/static/logs/limited-conn/4096/paozhu.log | 4 +- site/static/logs/pipelined/4096/paozhu.log | 8 +- site/static/logs/static-h2/1024/paozhu.log | 8 +- site/static/logs/static-h2/256/paozhu.log | 6 +- 17 files changed, 184 insertions(+), 184 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 6fce36462d..5edc5e0598 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1709769, - "avg_latency": "17.18ms", - "p99_latency": "17.60ms", - "cpu": "5807.2%", - "memory": "548MiB", + "rps": 1660416, + "avg_latency": "17.67ms", + "p99_latency": "28.70ms", + "cpu": "5853.4%", + "memory": "568MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "172.81MB/s", - "input_bw": "78.27MB/s", + "bandwidth": "167.82MB/s", + "input_bw": "76.01MB/s", "reconnects": 0, - "status_2xx": 17097696, + "status_2xx": 16604161, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 142580, - "avg_latency": "6.59ms", - "p99_latency": "52.20ms", - "cpu": "3056.2%", - "memory": "109MiB", + "rps": 141333, + "avg_latency": "6.69ms", + "p99_latency": "62.80ms", + "cpu": "3458.9%", + "memory": "129MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "549.68MB/s", - "input_bw": "9.52MB/s", - "reconnects": 56759, - "status_2xx": 1425809, + "bandwidth": "544.76MB/s", + "input_bw": "9.43MB/s", + "reconnects": 56325, + "status_2xx": 1413337, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2579834, - "avg_latency": "1.59ms", - "p99_latency": "1.74ms", - "cpu": "6340.0%", - "memory": "132MiB", + "rps": 2624316, + "avg_latency": "1.56ms", + "p99_latency": "7.87ms", + "cpu": "6343.3%", + "memory": "136MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "260.73MB/s", - "input_bw": "199.29MB/s", + "bandwidth": "265.23MB/s", + "input_bw": "202.72MB/s", "reconnects": 0, - "status_2xx": 12899172, + "status_2xx": 13121580, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 433447, - "avg_latency": "225.42ms", - "p99_latency": "2.34s", - "cpu": "3943.1%", + "rps": 431946, + "avg_latency": "225.48ms", + "p99_latency": "2.16s", + "cpu": "4135.9%", "memory": "2.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.67MB/s", + "bandwidth": "19.56MB/s", "reconnects": 0, - "status_2xx": 2193243, + "status_2xx": 2181329, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 445618, - "avg_latency": "56.45ms", - "p99_latency": "395.20ms", - "cpu": "4398.5%", - "memory": "553MiB", + "rps": 449193, + "avg_latency": "55.71ms", + "p99_latency": "330.71ms", + "cpu": "4426.5%", + "memory": "568MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.10MB/s", + "bandwidth": "20.26MB/s", "reconnects": 0, - "status_2xx": 2241459, + "status_2xx": 2259442, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,18 +102,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 52974, - "avg_latency": "18.34ms", - "p99_latency": "134.80ms", - "cpu": "2778.6%", - "memory": "138MiB", + "rps": 57030, + "avg_latency": "16.92ms", + "p99_latency": "141.00ms", + "cpu": "3138.4%", + "memory": "151MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.22GB/s", + "bandwidth": "1.32GB/s", "reconnects": 0, - "status_2xx": 264871, + "status_2xx": 285154, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -121,10 +121,10 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 427097, - "avg_latency": "74.96ms", - "p99_latency": "239.90ms", - "cpu": "4333.4%", + "rps": 423886, + "avg_latency": "75.30ms", + "p99_latency": "188.69ms", + "cpu": "4396.2%", "memory": "1.2GiB", "connections": 1024, "threads": 64, @@ -132,7 +132,7 @@ "pipeline": 1, "bandwidth": "1.43GB/s", "reconnects": 0, - "status_2xx": 2156844, + "status_2xx": 2144866, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,18 +140,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 364139, - "avg_latency": "342.97ms", - "p99_latency": "1.45s", - "cpu": "3729.1%", + "rps": 393264, + "avg_latency": "314.41ms", + "p99_latency": "1.07s", + "cpu": "4149.8%", "memory": "4.7GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.23GB/s", + "bandwidth": "1.33GB/s", "reconnects": 0, - "status_2xx": 1857112, + "status_2xx": 2005651, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +159,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 999883, - "avg_latency": "3.86ms", - "p99_latency": "42.03ms", - "cpu": "5983.0%", - "memory": "432MiB", + "rps": 1046781, + "avg_latency": "4.44ms", + "p99_latency": "190.84ms", + "cpu": "6197.9%", + "memory": "450MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.38GB", + "bandwidth": "3.54GB", "reconnects": 0, - "status_2xx": 5100509, + "status_2xx": 5336433, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -178,91 +178,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9982, - "avg_latency": "74.5us", - "p99_latency": "111.0us", - "cpu": "29.6%", - "memory": "64MiB", + "rps": 9979, + "avg_latency": "80.0us", + "p99_latency": "116.0us", + "cpu": "29.5%", + "memory": "73MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199665, + "status_2xx": 199609, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 6253354, - "cpu_per_req_us": 31.3192, + "cpu_usec": 6163578, + "cpu_per_req_us": 30.8783, "target_rate": 10000, - "rate_ratio": 0.9982, - "p99_9_latency": "166.0us" + "rate_ratio": 0.9979, + "p99_9_latency": "2021.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997618, - "avg_latency": "124.7us", - "p99_latency": "202.0us", - "cpu": "3016.9%", - "memory": "70MiB", + "rps": 997766, + "avg_latency": "113.3us", + "p99_latency": "196.0us", + "cpu": "3589.8%", + "memory": "76MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.75MB/s", + "bandwidth": "104.77MB/s", "reconnects": 0, - "status_2xx": 19956564, + "status_2xx": 19958971, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 556150212, - "cpu_per_req_us": 27.868, + "cpu_usec": 650523431, + "cpu_per_req_us": 32.593, "target_rate": 1000000, - "rate_ratio": 0.9976, - "p99_9_latency": "12028.0us" + "rate_ratio": 0.9978, + "p99_9_latency": "5326.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 363849, - "avg_latency": "2689053.1us", - "p99_latency": "5679104.0us", - "cpu": "811.0%", - "memory": "62MiB", + "rps": 371938, + "avg_latency": "2522735.1us", + "p99_latency": "5126144.0us", + "cpu": "806.7%", + "memory": "67MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "38.20MB/s", + "bandwidth": "39.05MB/s", "reconnects": 0, - "status_2xx": 7279621, + "status_2xx": 7441552, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159784194, - "cpu_per_req_us": 21.9495, + "cpu_usec": 159581938, + "cpu_per_req_us": 21.4447, "target_rate": 500000, - "rate_ratio": 0.7277, - "p99_9_latency": "5949440.0us" + "rate_ratio": 0.7439, + "p99_9_latency": "5347328.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 679980, - "avg_latency": "6.01ms", - "p99_latency": "60.80ms", - "cpu": "2756.6%", - "memory": "71MiB", + "rps": 676079, + "avg_latency": "6.02ms", + "p99_latency": "60.90ms", + "cpu": "2607.8%", + "memory": "89MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "68.72MB/s", - "input_bw": "52.53MB/s", - "reconnects": 339988, - "status_2xx": 3399904, + "bandwidth": "68.32MB/s", + "input_bw": "52.23MB/s", + "reconnects": 338049, + "status_2xx": 3380396, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -270,18 +270,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3537937, - "avg_latency": "18.55ms", - "p99_latency": "36.50ms", - "cpu": "6115.7%", - "memory": "122MiB", + "rps": 3609981, + "avg_latency": "18.15ms", + "p99_latency": "44.80ms", + "cpu": "6249.8%", + "memory": "128MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "357.55MB/s", + "bandwidth": "364.80MB/s", "reconnects": 0, - "status_2xx": 17689687, + "status_2xx": 18049908, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -289,18 +289,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 108861, - "avg_latency": "283.02ms", - "p99_latency": "3.61s", - "cpu": "3760.4%", - "memory": "6.9GiB", + "rps": 109901, + "avg_latency": "281.55ms", + "p99_latency": "3.82s", + "cpu": "4112.8%", + "memory": "7.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "6.51GB/s", + "bandwidth": "6.57GB/s", "reconnects": 0, - "status_2xx": 551928, + "status_2xx": 556102, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -308,18 +308,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 109895, - "avg_latency": "73.36ms", - "p99_latency": "738.27ms", - "cpu": "4337.6%", - "memory": "1.9GiB", + "rps": 111171, + "avg_latency": "72.52ms", + "p99_latency": "871.08ms", + "cpu": "4626.0%", + "memory": "2.0GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "6.55GB/s", + "bandwidth": "6.63GB/s", "reconnects": 0, - "status_2xx": 552774, + "status_2xx": 559191, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index 5a3ddc5d5f..f50a629774 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index 3f75ad46ac..fd83ef3a35 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -4,8 +4,8 @@ [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/h1/mqtt.conf - not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index a9fa2bbe01..c306396a0d 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin - -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf + not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index cc768c8e6e..594675f4e1 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 440d235946..76098aa040 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index 3715f01c5d..496f177217 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index 40e2c64097..f67729833d 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index 594675f4e1..e71987ebaf 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 594675f4e1..e199d30c63 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index cd101c67b3..b98ce64edf 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -2,10 +2,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index 7507d1b226..9dc0d2ee1c 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 86169fad3d..3a10bdb9e8 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -2,13 +2,13 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index c6f756bd8f..ae6badc558 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index ae6badc558..01acf0e82e 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index ac92dcbe5c..ae6badc558 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index ae6badc558..e860b0728d 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/h1/mqtt.conf + not found or parse fail, mqtt client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients From 0c734b8b7a8d17ab7116c30518258bee35a2744b Mon Sep 17 00:00:00 2001 From: hzq Date: Sat, 14 Nov 2026 23:44:49 +0800 Subject: [PATCH 51/89] Add websocket --- frameworks/paozhu/Dockerfile | 7 ++++++- frameworks/paozhu/README.md | 6 ++++-- frameworks/paozhu/meta.json | 9 +++++++-- frameworks/paozhu/src/conf/server-h1.conf | 3 ++- frameworks/paozhu/src/entrypoint.sh | 3 ++- frameworks/paozhu/src/mini_project.sh | 15 +++++++++++++-- 6 files changed, 34 insertions(+), 9 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 7c2e7f2931..690bcca787 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=b7022bf63f0d40061e785bb9a2996545fd945054 +ARG PAOZHU_REF=637406b4d003c8ae53a7038ff6300d6e8782f21f WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct @@ -55,6 +55,11 @@ RUN bash mini_project.sh && \ COPY src/controller/ /paozhu/controller/ COPY src/conf/ /paozhu/conf/ +# WebSocket /ws echo comes from the pinned PAOZHU_REF source: it ships +# websockets/arena_ws_echo.hpp and the is_binary flag in vendor/httpserver. +# src/mini_project.sh registers key "ws" and keeps that handler while emptying +# the demo directories, so no framework files are copied over the source tree. + # A macOS-created build context can carry AppleDouble ._* sidecars. CMake globs # every .cpp under controller/src, so ._arena.cpp would be compiled as C++. RUN find /paozhu/controller /paozhu/conf -type f -name '._*' -delete && \ diff --git a/frameworks/paozhu/README.md b/frameworks/paozhu/README.md index fe8611a13a..2869b2cb93 100644 --- a/frameworks/paozhu/README.md +++ b/frameworks/paozhu/README.md @@ -30,13 +30,15 @@ paozhu opens exactly one plaintext and one TLS port per process, while HttpArena | Port | Protocols | Instance | Profiles | |------|-----------|----------|----------| -| 8080 | HTTP/1.1 | `conf/main/server.conf` | baseline, pipelined, limited-conn | +| 8080 | HTTP/1.1 + WebSocket | `conf/main/server.conf` | baseline, pipelined, limited-conn, json-comp, echo-ws* | | 8081 | HTTP/1.1 + TLS (ALPN `http/1.1` only) | `conf/h1/server.conf` | json-tls | -| 8082 | h2c (prior-knowledge, cleartext) | `conf/h1/server.conf` | json-h2c | +| 8082 | h2c (prior-knowledge, cleartext) | `conf/h1/server.conf` | baseline-h2c, json-h2c | | 8443 | h2 + TLS (ALPN `h2`) | `conf/main/server.conf` | baseline-h2, static-h2 | The second instance keeps `http2_enable = 0`, so its ALPN callback never selects `h2` — the json-tls profile requires HTTP/1.1. That switch only governs TLS negotiation: cleartext h2c is detected from the `PRI * HTTP/2.0` connection preface by `checkhttp2()` and works with `http2_enable = 0`, which is why the same instance can serve both :8081 and :8082. +**WebSocket:** `/ws` is answered by `arena_ws_echo` through paozhu's `WEBSOCKET_REG` (key `"ws"`, i.e. `peer->pathinfos[0]`). The handler, the registration in `common/websockets_method_reg.hpp` and the `is_binary` flag in `vendor/httpserver` all come from the pinned `PAOZHU_REF` source. `src/mini_project.sh` — the pinned copy carrying the `|| true` fix — writes the registration and keeps `websockets/arena_ws_echo.hpp` while emptying the demo directories; no framework files are copied over the source tree. Binary frames are echoed with opcode `0x2` (`validate-ws.py` checks both text and binary). + **Why separate conf directories:** `httpserver::run(argv[1])` calls `serverconfig::init_path()` first, which picks `/conf/server.conf` when present and only falls back to `argv[1]` when that file is missing. Two conf files in one directory would make both processes load the first one and bind the same ports (SO_REUSEPORT hides the mistake). The image deliberately has no `/app/conf/server.conf`. `serverconfig` also resolves TLS file names relative to each conf file's own directory, so `entrypoint.sh` stages `/certs/server.crt` and `/certs/server.key` into both `conf/main/` and `conf/h1/`. `/certs` is mounted by `validate.sh` / `benchmark.sh`; missing certificates leave the plaintext listener working and only affect the TLS listeners. diff --git a/frameworks/paozhu/meta.json b/frameworks/paozhu/meta.json index e074e5aeda..89c493736f 100644 --- a/frameworks/paozhu/meta.json +++ b/frameworks/paozhu/meta.json @@ -10,19 +10,24 @@ "response": true }, "engine": "paozhu", - "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static with bodies cached in-process via pzcache (revalidated by a per-request stat of mtime+size), and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for json-h2c.", + "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static with bodies cached in-process via pzcache (revalidated by a per-request stat of mtime+size), and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for baseline-h2c and json-h2c.", "repo": "https://github.com/hggq/paozhu", "enabled": true, "tests": [ "baseline","async","latency-1m", "latency-10k", "latency-500k-8cpu", "pipelined", "limited-conn", + "json-comp", "json-tls", "baseline-h2", "static-h2", + "baseline-h2c", "async-db", "fortunes", - "json-h2c" + "json-h2c", + "echo-ws", + "echo-ws-pipeline", + "echo-ws-limited" ], "maintainers": [] } diff --git a/frameworks/paozhu/src/conf/server-h1.conf b/frameworks/paozhu/src/conf/server-h1.conf index 51b60dfb3a..54c1efc76b 100644 --- a/frameworks/paozhu/src/conf/server-h1.conf +++ b/frameworks/paozhu/src/conf/server-h1.conf @@ -1,5 +1,6 @@ ; Second instance: HTTP/1.1-only TLS on 8081 for json-tls, plus cleartext -; HTTP/2 (h2c prior-knowledge) on 8082 for json-h2c. paozhu opens exactly one +; HTTP/2 (h2c prior-knowledge) on 8082 for baseline-h2c and json-h2c. paozhu +; opens exactly one ; plaintext and one TLS port per process, so this listener needs its own process. ; http2_enable = 0 only affects the TLS ALPN callback (it advertises http/1.1 ; exclusively); cleartext h2c is detected from the PRI * HTTP/2.0 preface by diff --git a/frameworks/paozhu/src/entrypoint.sh b/frameworks/paozhu/src/entrypoint.sh index 02775a2826..f96d33ad67 100644 --- a/frameworks/paozhu/src/entrypoint.sh +++ b/frameworks/paozhu/src/entrypoint.sh @@ -2,7 +2,8 @@ # paozhu has one plaintext and one TLS port per process. HttpArena needs four # listeners, so run two instances with two conf files: the main one serves # :8080 (HTTP/1.1) and :8443 (ALPN h2), the second serves :8081 with ALPN -# pinned to http/1.1 for json-tls plus :8082 cleartext h2c for json-h2c. +# pinned to http/1.1 for json-tls plus :8082 cleartext h2c for +# baseline-h2c and json-h2c. # See README.md. set -euo pipefail diff --git a/frameworks/paozhu/src/mini_project.sh b/frameworks/paozhu/src/mini_project.sh index 19baf4cd0a..a588106895 100755 --- a/frameworks/paozhu/src/mini_project.sh +++ b/frameworks/paozhu/src/mini_project.sh @@ -189,17 +189,22 @@ void _inithttpsocketmethodregto(HTTP_SOCKET_REG &methodcallback) }// namespace http EOF -# websockets_method_reg.hpp — keep websockets_callback.h (defines WEBSOCKET_REG) +# websockets_method_reg.hpp — keep websockets_callback.h (defines WEBSOCKET_REG). +# "ws" is the HttpArena echo endpoint: client_websocket_loop looks up +# peer->pathinfos[0], so GET /ws resolves to this key. cat > common/websockets_method_reg.hpp << 'EOF' #pragma once #include #include "httppeer.h" #include "websockets_callback.h" +#include "arena_ws_echo.hpp" namespace http { void _initwebsocketmethodregto(WEBSOCKET_REG &methodcallback) { + methodcallback.emplace("ws", [](unsigned int m, unsigned int g) -> std::shared_ptr + { return std::make_shared(m, g); }); } }// namespace http @@ -350,7 +355,13 @@ echo "" echo "[Step 2/${TOTAL_STEPS}] Removing demo code (redis/ mqtt/ sockets/ websockets/ libs/webpay/ libs/oauth/ libs/github/ libs/rbac/)..." for demo_dir in redis mqtt sockets websockets; do - rm -rf "$demo_dir"/* 2>/dev/null || true + if [ "$demo_dir" = "websockets" ] && [ -f "websockets/arena_ws_echo.hpp" ]; then + # Keep the HttpArena /ws echo handler; the generated + # common/websockets_method_reg.hpp includes it. + find websockets -mindepth 1 -maxdepth 1 ! -name 'arena_ws_echo.hpp' -exec rm -rf {} + 2>/dev/null || true + else + rm -rf "$demo_dir"/* 2>/dev/null || true + fi mkdir -p "$demo_dir" done From 1e3351518a2f4aaa9bee7ec604d1cd1c810b33bf Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 14 Nov 2026 16:31:20 +0000 Subject: [PATCH 52/89] Benchmark results: paozhu [skip ci] --- site/data/frameworks.json | 2 +- site/data/results/paozhu.json | 493 +++++++++++++----- site/static/logs/async-db/1024/paozhu.log | 6 +- site/static/logs/async/32000/paozhu.log | 4 +- site/static/logs/baseline-h2/1024/paozhu.log | 12 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline-h2c/1024/paozhu.log | 14 + site/static/logs/baseline-h2c/256/paozhu.log | 14 + site/static/logs/baseline-h2c/4096/paozhu.log | 14 + site/static/logs/baseline/4096/paozhu.log | 8 +- .../logs/echo-ws-limited/4096/paozhu.log | 14 + .../logs/echo-ws-limited/512/paozhu.log | 14 + .../logs/echo-ws-pipeline/16384/paozhu.log | 14 + .../logs/echo-ws-pipeline/4096/paozhu.log | 14 + .../logs/echo-ws-pipeline/512/paozhu.log | 14 + site/static/logs/echo-ws/16384/paozhu.log | 14 + site/static/logs/echo-ws/4096/paozhu.log | 14 + site/static/logs/echo-ws/512/paozhu.log | 14 + site/static/logs/fortunes/1024/paozhu.log | 8 +- site/static/logs/json-comp/16384/paozhu.log | 14 + site/static/logs/json-comp/4096/paozhu.log | 14 + site/static/logs/json-h2c/1024/paozhu.log | 4 +- site/static/logs/json-h2c/4096/paozhu.log | 6 +- site/static/logs/json-tls/4096/paozhu.log | 10 +- site/static/logs/latency-10k/1024/paozhu.log | 10 +- site/static/logs/latency-1m/1024/paozhu.log | 2 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 8 +- site/static/logs/pipelined/4096/paozhu.log | 8 +- site/static/logs/static-h2/256/paozhu.log | 8 +- 29 files changed, 605 insertions(+), 174 deletions(-) create mode 100644 site/static/logs/baseline-h2c/1024/paozhu.log create mode 100644 site/static/logs/baseline-h2c/256/paozhu.log create mode 100644 site/static/logs/baseline-h2c/4096/paozhu.log create mode 100644 site/static/logs/echo-ws-limited/4096/paozhu.log create mode 100644 site/static/logs/echo-ws-limited/512/paozhu.log create mode 100644 site/static/logs/echo-ws-pipeline/16384/paozhu.log create mode 100644 site/static/logs/echo-ws-pipeline/4096/paozhu.log create mode 100644 site/static/logs/echo-ws-pipeline/512/paozhu.log create mode 100644 site/static/logs/echo-ws/16384/paozhu.log create mode 100644 site/static/logs/echo-ws/4096/paozhu.log create mode 100644 site/static/logs/echo-ws/512/paozhu.log create mode 100644 site/static/logs/json-comp/16384/paozhu.log create mode 100644 site/static/logs/json-comp/4096/paozhu.log diff --git a/site/data/frameworks.json b/site/data/frameworks.json index 5d5e36df54..0407fdc158 100644 --- a/site/data/frameworks.json +++ b/site/data/frameworks.json @@ -1870,7 +1870,7 @@ }, "paozhu": { "dir": "paozhu", - "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static with bodies cached in-process via pzcache (revalidated by a per-request stat of mtime+size), and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for json-h2c.", + "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static with bodies cached in-process via pzcache (revalidated by a per-request stat of mtime+size), and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for baseline-h2c and json-h2c.", "repo": "https://github.com/hggq/paozhu", "type": "experimental", "engine": "paozhu", diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 5edc5e0598..98d060eb26 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1660416, - "avg_latency": "17.67ms", - "p99_latency": "28.70ms", - "cpu": "5853.4%", - "memory": "568MiB", + "rps": 1665710, + "avg_latency": "17.64ms", + "p99_latency": "29.30ms", + "cpu": "5884.5%", + "memory": "570MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "167.82MB/s", - "input_bw": "76.01MB/s", + "bandwidth": "168.36MB/s", + "input_bw": "76.25MB/s", "reconnects": 0, - "status_2xx": 16604161, + "status_2xx": 16657107, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 141333, - "avg_latency": "6.69ms", - "p99_latency": "62.80ms", - "cpu": "3458.9%", - "memory": "129MiB", + "rps": 144005, + "avg_latency": "6.61ms", + "p99_latency": "61.90ms", + "cpu": "3414.4%", + "memory": "126MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "544.76MB/s", - "input_bw": "9.43MB/s", - "reconnects": 56325, - "status_2xx": 1413337, + "bandwidth": "555.04MB/s", + "input_bw": "9.61MB/s", + "reconnects": 57509, + "status_2xx": 1440050, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2624316, + "rps": 2627560, "avg_latency": "1.56ms", - "p99_latency": "7.87ms", - "cpu": "6343.3%", - "memory": "136MiB", + "p99_latency": "9.81ms", + "cpu": "6324.7%", + "memory": "137MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "265.23MB/s", - "input_bw": "202.72MB/s", + "bandwidth": "265.55MB/s", + "input_bw": "202.97MB/s", "reconnects": 0, - "status_2xx": 13121580, + "status_2xx": 13137802, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 431946, - "avg_latency": "225.48ms", - "p99_latency": "2.16s", - "cpu": "4135.9%", + "rps": 427940, + "avg_latency": "226.05ms", + "p99_latency": "2.51s", + "cpu": "4179.5%", "memory": "2.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.56MB/s", + "bandwidth": "19.46MB/s", "reconnects": 0, - "status_2xx": 2181329, + "status_2xx": 2169656, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,227 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 449193, - "avg_latency": "55.71ms", - "p99_latency": "330.71ms", - "cpu": "4426.5%", - "memory": "568MiB", + "rps": 453671, + "avg_latency": "54.96ms", + "p99_latency": "399.24ms", + "cpu": "4520.0%", + "memory": "567MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.26MB/s", + "bandwidth": "20.46MB/s", "reconnects": 0, - "status_2xx": 2259442, + "status_2xx": 2281969, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "baseline-h2c-1024": { + "framework": "paozhu", + "language": "C++", + "rps": 453154, + "avg_latency": "218.37ms", + "p99_latency": "2.26s", + "cpu": "3823.8%", + "memory": "1.9GiB", + "connections": 1024, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "20.52MB/s", + "reconnects": 0, + "status_2xx": 2288429, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "baseline-h2c-256": { + "framework": "paozhu", + "language": "C++", + "rps": 485453, + "avg_latency": "52.06ms", + "p99_latency": "511.79ms", + "cpu": "3813.0%", + "memory": "543MiB", + "connections": 256, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "21.89MB/s", + "reconnects": 0, + "status_2xx": 2441833, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "baseline-h2c-4096": { + "framework": "paozhu", + "language": "C++", + "rps": 358316, + "avg_latency": "997.95ms", + "p99_latency": "4.99s", + "cpu": "3606.2%", + "memory": "7.5GiB", + "connections": 4096, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "16.42MB/s", + "reconnects": 0, + "status_2xx": 1827414, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "echo-ws-16384": { + "framework": "paozhu", + "language": "C++", + "rps": 2815240, + "avg_latency": "4.27ms", + "p99_latency": "15.30ms", + "cpu": "6176.7%", + "memory": "425MiB", + "connections": 16384, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "19.27MB/s", + "reconnects": 0, + "status_2xx": 14076200, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "echo-ws-4096": { + "framework": "paozhu", + "language": "C++", + "rps": 3199011, + "avg_latency": "1.23ms", + "p99_latency": "6.76ms", + "cpu": "6303.5%", + "memory": "147MiB", + "connections": 4096, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "21.47MB/s", + "reconnects": 0, + "status_2xx": 15995057, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "echo-ws-512": { + "framework": "paozhu", + "language": "C++", + "rps": 3177598, + "avg_latency": "160us", + "p99_latency": "3.25ms", + "cpu": "6479.1%", + "memory": "75MiB", + "connections": 512, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "21.21MB/s", + "reconnects": 0, + "status_2xx": 15887992, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "echo-ws-limited-4096": { + "framework": "paozhu", + "language": "C++", + "rps": 681830, + "avg_latency": "45us", + "p99_latency": "109us", + "cpu": "2606.9%", + "memory": "69MiB", + "connections": 4096, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "14.69MB/s", + "reconnects": 340915, + "status_2xx": 3409150, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "echo-ws-limited-512": { + "framework": "paozhu", + "language": "C++", + "rps": 690560, + "avg_latency": "44us", + "p99_latency": "98us", + "cpu": "2691.3%", + "memory": "70MiB", + "connections": 512, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "14.88MB/s", + "reconnects": 345281, + "status_2xx": 3452802, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "echo-ws-pipeline-16384": { + "framework": "paozhu", + "language": "C++", + "rps": 3229224, + "avg_latency": "55.57ms", + "p99_latency": "193.30ms", + "cpu": "6112.4%", + "memory": "443MiB", + "connections": 16384, + "threads": 64, + "duration": "5s", + "pipeline": 16, + "bandwidth": "22.04MB/s", + "reconnects": 0, + "status_2xx": 16146121, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "echo-ws-pipeline-4096": { + "framework": "paozhu", + "language": "C++", + "rps": 3603114, + "avg_latency": "17.61ms", + "p99_latency": "36.30ms", + "cpu": "6274.5%", + "memory": "153MiB", + "connections": 4096, + "threads": 64, + "duration": "5s", + "pipeline": 16, + "bandwidth": "24.15MB/s", + "reconnects": 0, + "status_2xx": 18015570, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "echo-ws-pipeline-512": { + "framework": "paozhu", + "language": "C++", + "rps": 3760053, + "avg_latency": "2.18ms", + "p99_latency": "10.00ms", + "cpu": "6486.0%", + "memory": "69MiB", + "connections": 512, + "threads": 64, + "duration": "5s", + "pipeline": 16, + "bandwidth": "25.09MB/s", + "reconnects": 0, + "status_2xx": 18800265, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,18 +311,58 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 57030, - "avg_latency": "16.92ms", - "p99_latency": "141.00ms", - "cpu": "3138.4%", - "memory": "151MiB", + "rps": 59602, + "avg_latency": "16.02ms", + "p99_latency": "135.80ms", + "cpu": "3256.7%", + "memory": "154MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.32GB/s", + "bandwidth": "1.38GB/s", + "reconnects": 0, + "status_2xx": 298013, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "json-comp-16384": { + "framework": "paozhu", + "language": "C++", + "rps": 5245, + "avg_latency": "1.57s", + "p99_latency": "3.81s", + "cpu": "6804.7%", + "memory": "627MiB", + "connections": 16384, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "5.59MB/s", + "input_bw": "399.52KB/s", + "reconnects": 0, + "status_2xx": 26229, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "json-comp-4096": { + "framework": "paozhu", + "language": "C++", + "rps": 5604, + "avg_latency": "675.09ms", + "p99_latency": "1.15s", + "cpu": "6959.1%", + "memory": "342MiB", + "connections": 4096, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "5.97MB/s", + "input_bw": "426.87KB/s", "reconnects": 0, - "status_2xx": 285154, + "status_2xx": 28023, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -121,18 +370,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 423886, - "avg_latency": "75.30ms", - "p99_latency": "188.69ms", - "cpu": "4396.2%", + "rps": 318366, + "avg_latency": "100.56ms", + "p99_latency": "325.64ms", + "cpu": "3572.6%", "memory": "1.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.43GB/s", + "bandwidth": "1.07GB/s", "reconnects": 0, - "status_2xx": 2144866, + "status_2xx": 1610937, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,18 +389,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 393264, - "avg_latency": "314.41ms", - "p99_latency": "1.07s", - "cpu": "4149.8%", - "memory": "4.7GiB", + "rps": 398245, + "avg_latency": "308.65ms", + "p99_latency": "1.09s", + "cpu": "4340.8%", + "memory": "4.6GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.33GB/s", + "bandwidth": "1.35GB/s", "reconnects": 0, - "status_2xx": 2005651, + "status_2xx": 2031052, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +408,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1046781, - "avg_latency": "4.44ms", - "p99_latency": "190.84ms", - "cpu": "6197.9%", - "memory": "450MiB", + "rps": 1044921, + "avg_latency": "4.48ms", + "p99_latency": "204.97ms", + "cpu": "6106.6%", + "memory": "449MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.54GB", + "bandwidth": "3.53GB", "reconnects": 0, - "status_2xx": 5336433, + "status_2xx": 5327915, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -178,91 +427,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9979, - "avg_latency": "80.0us", - "p99_latency": "116.0us", - "cpu": "29.5%", - "memory": "73MiB", + "rps": 9982, + "avg_latency": "75.6us", + "p99_latency": "109.0us", + "cpu": "28.9%", + "memory": "71MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199609, + "status_2xx": 199672, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 6163578, - "cpu_per_req_us": 30.8783, + "cpu_usec": 6029630, + "cpu_per_req_us": 30.1977, "target_rate": 10000, - "rate_ratio": 0.9979, - "p99_9_latency": "2021.0us" + "rate_ratio": 0.9982, + "p99_9_latency": "168.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997766, - "avg_latency": "113.3us", - "p99_latency": "196.0us", - "cpu": "3589.8%", - "memory": "76MiB", + "rps": 997787, + "avg_latency": "111.9us", + "p99_latency": "187.0us", + "cpu": "3558.5%", + "memory": "75MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "104.77MB/s", "reconnects": 0, - "status_2xx": 19958971, + "status_2xx": 19959367, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 650523431, - "cpu_per_req_us": 32.593, + "cpu_usec": 641236339, + "cpu_per_req_us": 32.1271, "target_rate": 1000000, "rate_ratio": 0.9978, - "p99_9_latency": "5326.0us" + "p99_9_latency": "5254.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 371938, - "avg_latency": "2522735.1us", - "p99_latency": "5126144.0us", + "rps": 375724, + "avg_latency": "2452307.3us", + "p99_latency": "5044224.0us", "cpu": "806.7%", - "memory": "67MiB", + "memory": "69MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "39.05MB/s", + "bandwidth": "39.45MB/s", "reconnects": 0, - "status_2xx": 7441552, + "status_2xx": 7517311, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159581938, - "cpu_per_req_us": 21.4447, + "cpu_usec": 159678358, + "cpu_per_req_us": 21.2414, "target_rate": 500000, - "rate_ratio": 0.7439, - "p99_9_latency": "5347328.0us" + "rate_ratio": 0.7514, + "p99_9_latency": "5257216.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 676079, - "avg_latency": "6.02ms", - "p99_latency": "60.90ms", - "cpu": "2607.8%", - "memory": "89MiB", + "rps": 679140, + "avg_latency": "6.00ms", + "p99_latency": "60.60ms", + "cpu": "2703.5%", + "memory": "79MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "68.32MB/s", - "input_bw": "52.23MB/s", - "reconnects": 338049, - "status_2xx": 3380396, + "bandwidth": "68.63MB/s", + "input_bw": "52.46MB/s", + "reconnects": 339574, + "status_2xx": 3395704, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -270,18 +519,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3609981, - "avg_latency": "18.15ms", - "p99_latency": "44.80ms", - "cpu": "6249.8%", - "memory": "128MiB", + "rps": 3617609, + "avg_latency": "18.13ms", + "p99_latency": "36.30ms", + "cpu": "6320.6%", + "memory": "127MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "364.80MB/s", + "bandwidth": "365.61MB/s", "reconnects": 0, - "status_2xx": 18049908, + "status_2xx": 18088046, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -289,18 +538,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 109901, - "avg_latency": "281.55ms", - "p99_latency": "3.82s", - "cpu": "4112.8%", - "memory": "7.0GiB", + "rps": 108560, + "avg_latency": "285.10ms", + "p99_latency": "4.03s", + "cpu": "4141.6%", + "memory": "7.1GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "6.57GB/s", + "bandwidth": "6.48GB/s", "reconnects": 0, - "status_2xx": 556102, + "status_2xx": 548229, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -308,18 +557,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 111171, - "avg_latency": "72.52ms", - "p99_latency": "871.08ms", - "cpu": "4626.0%", + "rps": 111002, + "avg_latency": "72.55ms", + "p99_latency": "758.07ms", + "cpu": "4502.2%", "memory": "2.0GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "6.63GB/s", + "bandwidth": "6.62GB/s", "reconnects": 0, - "status_2xx": 559191, + "status_2xx": 558341, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index f50a629774..594fa68ff8 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled - -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index fd83ef3a35..5c28ad555e 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,7 +1,7 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index c306396a0d..d2431d2f07 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf - not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients -[mqtt_subpub] init: registered 0 clients [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 594675f4e1..496f177217 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/1024/paozhu.log b/site/static/logs/baseline-h2c/1024/paozhu.log new file mode 100644 index 0000000000..7a9e321588 --- /dev/null +++ b/site/static/logs/baseline-h2c/1024/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/256/paozhu.log b/site/static/logs/baseline-h2c/256/paozhu.log new file mode 100644 index 0000000000..ae6badc558 --- /dev/null +++ b/site/static/logs/baseline-h2c/256/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/4096/paozhu.log b/site/static/logs/baseline-h2c/4096/paozhu.log new file mode 100644 index 0000000000..ae6badc558 --- /dev/null +++ b/site/static/logs/baseline-h2c/4096/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 76098aa040..3e633a520f 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/4096/paozhu.log b/site/static/logs/echo-ws-limited/4096/paozhu.log new file mode 100644 index 0000000000..fd83ef3a35 --- /dev/null +++ b/site/static/logs/echo-ws-limited/4096/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/512/paozhu.log b/site/static/logs/echo-ws-limited/512/paozhu.log new file mode 100644 index 0000000000..eafd3abba4 --- /dev/null +++ b/site/static/logs/echo-ws-limited/512/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/16384/paozhu.log b/site/static/logs/echo-ws-pipeline/16384/paozhu.log new file mode 100644 index 0000000000..e71987ebaf --- /dev/null +++ b/site/static/logs/echo-ws-pipeline/16384/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/4096/paozhu.log b/site/static/logs/echo-ws-pipeline/4096/paozhu.log new file mode 100644 index 0000000000..946f1ae070 --- /dev/null +++ b/site/static/logs/echo-ws-pipeline/4096/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/512/paozhu.log b/site/static/logs/echo-ws-pipeline/512/paozhu.log new file mode 100644 index 0000000000..946f1ae070 --- /dev/null +++ b/site/static/logs/echo-ws-pipeline/512/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/16384/paozhu.log b/site/static/logs/echo-ws/16384/paozhu.log new file mode 100644 index 0000000000..f67729833d --- /dev/null +++ b/site/static/logs/echo-ws/16384/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/4096/paozhu.log b/site/static/logs/echo-ws/4096/paozhu.log new file mode 100644 index 0000000000..ae6badc558 --- /dev/null +++ b/site/static/logs/echo-ws/4096/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/512/paozhu.log b/site/static/logs/echo-ws/512/paozhu.log new file mode 100644 index 0000000000..ae6badc558 --- /dev/null +++ b/site/static/logs/echo-ws/512/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index 496f177217..ae6badc558 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/16384/paozhu.log b/site/static/logs/json-comp/16384/paozhu.log new file mode 100644 index 0000000000..ae6badc558 --- /dev/null +++ b/site/static/logs/json-comp/16384/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/4096/paozhu.log b/site/static/logs/json-comp/4096/paozhu.log new file mode 100644 index 0000000000..e71987ebaf --- /dev/null +++ b/site/static/logs/json-comp/4096/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index f67729833d..7507d1b226 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,7 +1,7 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index e71987ebaf..ae6badc558 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index e199d30c63..594675f4e1 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index b98ce64edf..9dc0d2ee1c 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index 9dc0d2ee1c..ae6badc558 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 3a10bdb9e8..21c13319c0 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabled +websockets.conf[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled + not found or parse fail, websocket client disabled[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[ws_subpub] init: registered 0 clients [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index 01acf0e82e..b5ba085bbf 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[websockets] [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[sockets] +/app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index e860b0728d..d3f96a913d 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/h1/mqtt.conf - not found or parse fail, mqtt client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled + +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled[mqtt_client] +/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients From 81fe8fb67064e79f0b2f0ea722d52cb8ff7cc294 Mon Sep 17 00:00:00 2001 From: hzq Date: Sun, 15 Nov 2026 10:50:17 +0800 Subject: [PATCH 53/89] Fix br level --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/cost_define.h | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) mode change 100644 => 100755 frameworks/paozhu/cost_define.h diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 690bcca787..cda93e87de 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=637406b4d003c8ae53a7038ff6300d6e8782f21f +ARG PAOZHU_REF=947da621ddc5c6edf17bee8babaf395be5975494 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/cost_define.h b/frameworks/paozhu/cost_define.h old mode 100644 new mode 100755 index 5d4a23d05b..4cbfeb5b24 --- a/frameworks/paozhu/cost_define.h +++ b/frameworks/paozhu/cost_define.h @@ -518,4 +518,18 @@ constexpr bool http2_wu_stream_id_ok(unsigned long long sid, unsigned long long // sync_fails is smallint unsigned; clamp before writing so an overflow cannot reset the // backoff ladder to its lowest rung. #define CONST_GH_SYNC_FAILS_MAX 65535 + +// 动态(每请求)响应 Brotli 压缩档位。与静态资源(brotli_encode_file 默认 q11、 +// 压一次长期复用)分离:动态内容每请求重压,用低延迟档以对齐行业基准, +// 不再依赖 #ifdef BENCHMARK 分流——正常部署也走快速 br。改这个常量(或 -D 覆盖) +// 即可调档,无需重新条件编译。取值范围:quality 0..11,lgwin 10..24。 +// Per-request dynamic Brotli level. Static assets keep q11; dynamic output uses +// this fast level in both production and benchmark builds. Tunable via -D override. +#ifndef PAOZHU_BROTLI_DYNAMIC_QUALITY +#define PAOZHU_BROTLI_DYNAMIC_QUALITY 1 +#endif +#ifndef PAOZHU_BROTLI_DYNAMIC_LGWIN +#define PAOZHU_BROTLI_DYNAMIC_LGWIN 20 +#endif + #endif From 2cca5ed52e1b1c371af54f8708e2cccda7bb7489 Mon Sep 17 00:00:00 2001 From: hzq Date: Sun, 15 Nov 2026 16:35:51 +0800 Subject: [PATCH 54/89] Fix orm conn --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/src/conf/orm.conf | 16 +- .../paozhu/src/controller/src/arena.cpp | 96 ++----- frameworks/paozhu/src/controller/src/db.cpp | 247 +++--------------- frameworks/paozhu/src/entrypoint.sh | 14 +- 5 files changed, 84 insertions(+), 291 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index cda93e87de..5b7b04934b 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=947da621ddc5c6edf17bee8babaf395be5975494 +ARG PAOZHU_REF=c3005fba93d9583ceb6e198348da4339f071e88c WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/src/conf/orm.conf b/frameworks/paozhu/src/conf/orm.conf index 4c9e6fa363..7447e11f7d 100644 --- a/frameworks/paozhu/src/conf/orm.conf +++ b/frameworks/paozhu/src/conf/orm.conf @@ -17,9 +17,10 @@ dbname = __DB_NAME__ user = __DB_USER__ password = __DB_PASSWORD__ pretable = -maxpool = __DB_MAX_CONN__ -# The DB profiles only run SELECTs, so the edit pool stays at one resident -# connection; the PG max_connections headroom belongs to the select pool. +maxpool = 24 +# The DB profiles only run SELECTs, so the edit pool is just the 24-backend +# reserve (minpool 0 = nothing resident); the rest of the budget belongs to +# the select pool below. minpool = 0 dbtype = postgresql charset = utf8 @@ -31,7 +32,12 @@ dbname = __DB_NAME__ user = __DB_USER__ password = __DB_PASSWORD__ pretable = -maxpool = __DB_MAX_CONN__ -minpool = 55 +# Both rendered by entrypoint.sh from DATABASE_MAX_CONN. maxpool = db_max - 24 +# is the process-wide select ceiling (db.cpp has no gate); the pool parks and +# is woken on connection return when full. minpool = ceil(maxpool / 4 slots) +# prebuilds the whole ceiling so a request never waits for a lazy connect. +# 4 = orm_ioc_num in server.conf. +maxpool = __DB_SELECT_MAX__ +minpool = __DB_SELECT_MIN__ dbtype = postgresql charset = utf8 diff --git a/frameworks/paozhu/src/controller/src/arena.cpp b/frameworks/paozhu/src/controller/src/arena.cpp index 4d9df1ce20..5f96936f30 100644 --- a/frameworks/paozhu/src/controller/src/arena.cpp +++ b/frameworks/paozhu/src/controller/src/arena.cpp @@ -417,78 +417,6 @@ std::string render_json(std::size_t count, long long multiplier, return out; } -// Split "a=1&b=2" without decoding: the harness sends plain decimal values. -// Returns false once the segment is exhausted. -bool next_query_pair(const std::string &q, std::size_t &pos, - std::string &key, std::string &value) -{ - if (pos >= q.size()) - { - return false; - } - if (q[pos] == '?' || q[pos] == '&') - { - ++pos; - } - const std::size_t amp = q.find('&', pos); - const std::size_t end = (amp == std::string::npos) ? q.size() : amp; - const std::size_t eq = q.find('=', pos); - if (eq != std::string::npos && eq < end) - { - key = q.substr(pos, eq - pos); - value = q.substr(eq + 1, end - eq - 1); - } - else - { - key = q.substr(pos, end - pos); - value.clear(); - } - pos = end + 1; - return true; -} - -long long sum_query(const std::string &q) -{ - long long sum = 0; - std::size_t pos = 0; - std::string key, value; - while (next_query_pair(q, pos, key, value)) - { - if (value.empty()) - { - continue; - } - char *end = nullptr; - const long long n = std::strtoll(value.c_str(), &end, 10); - if (end != value.c_str()) - { - sum += n; - } - } - return sum; -} - -long long query_multiplier(const std::string &q) -{ - long long multiplier = 1; - std::size_t pos = 0; - std::string key, value; - while (next_query_pair(q, pos, key, value)) - { - if (key == "m" && !value.empty()) - { - char *end = nullptr; - const long long n = std::strtoll(value.c_str(), &end, 10); - if (end != value.c_str()) - { - multiplier = n; - } - break; - } - } - return multiplier; -} - long long body_number(const std::string &body) { char buf[32]; @@ -595,7 +523,16 @@ asio::awaitable arena_pipeline(std::shared_ptr peer) //@urlpath(null,baseline11) asio::awaitable arena_baseline11(std::shared_ptr peer) { - long long sum = sum_query(peer->querystring); + // get is parsed from the querystring at request time; sum every value. + // is_object() guards as_object(), which would otherwise allocate on NIL. + long long sum = 0; + if (peer->get.is_object()) + { + for (const auto &kv : peer->get.as_object()) + { + sum += kv.second.to_int(); + } + } if (peer->method == POST) { sum += body_number(raw_body(peer)); @@ -608,8 +545,16 @@ asio::awaitable arena_baseline11(std::shared_ptr peer) //@urlpath(null,baseline2) asio::awaitable arena_baseline2(std::shared_ptr peer) { + long long sum = 0; + if (peer->get.is_object()) + { + for (const auto &kv : peer->get.as_object()) + { + sum += kv.second.to_int(); + } + } peer->type("text/plain"); - peer->output = std::to_string(sum_query(peer->querystring)); + peer->output = std::to_string(sum); co_return ""; } @@ -618,7 +563,8 @@ asio::awaitable arena_json(std::shared_ptr peer) { const std::vector &items = dataset(); const long long count = peer->get["count"].to_int(); - const long long multiplier = query_multiplier(peer->querystring); + const obj_val &g = peer->get; + const long long multiplier = g["m"].is_null() ? 1 : g["m"].to_int(); peer->type("application/json"); if (items.empty() || count < 1 || count > static_cast(items.size())) diff --git a/frameworks/paozhu/src/controller/src/db.cpp b/frameworks/paozhu/src/controller/src/db.cpp index e115344c38..6b97cdb3b6 100644 --- a/frameworks/paozhu/src/controller/src/db.cpp +++ b/frameworks/paozhu/src/controller/src/db.cpp @@ -1,19 +1,11 @@ #include "httppeer.h" #include "orm_query.h" -#include -#include -#include - #include -#include #include -#include -#include #include #include #include -#include #include namespace @@ -61,146 +53,6 @@ namespace } }; - // paozhu's ORM pool already enforces per-slot quotas with asynchronous - // backoff in async_get_pg_select_conn(). What the handlers still need is a - // process-wide ceiling under Postgres' max_connections: the pool's TOTAL - // select quota (parsed from orm.conf) minus 24 backends reserved for the - // edit pool, readiness probes and PG maintenance. Never use the smallest - // per-slot quota here: budget/slots shrinks as orm_ioc_num grows - // (4 slots -> 63, 16 -> 15, 64 -> 3), so adding io threads would lower the - // cap while the pool itself can still serve 255 queries. - // Waiting must be a coroutine on the request's own executor: paozhu runs - // one thread per io_context, so a blocking semaphore would pin that thread - // and the coroutine holding a ticket could never resume to release it. - class db_gate - { - static std::atomic &in_flight() - { - static std::atomic count{0}; - return count; - } - - static int limit() - { - static const int value = [] { - // Single source of truth: the pool's parsed quota, i.e. the - // maxpool that entrypoint.sh rendered into orm.conf. The pool - // splits it across slots, so sum the slots back up instead of - // copying one slot's quota (which would scale the cap down as - // orm_ioc_num grows). DATABASE_MAX_CONN is only a fallback for - // a process started without orm.conf (no DB profile). - const char *env = std::getenv("DATABASE_MAX_CONN"); - int fallback = std::clamp(env ? std::atoi(env) : 256, 8, 256); - int cap = fallback > 24 ? fallback - 24 : fallback; - - auto &pools = orm::get_orm_conn_pool_obj(); - auto it = pools.find("pg"); - if (it != pools.end() && it->second && !it->second->slots.empty()) - { - const auto &pool = *it->second; - long long total = 0; - for (std::size_t i = 0; i < pool.slots.size(); ++i) - { - total += pool.slot_max_of(1, static_cast(i));// 1 = select role - } - if (total > 0) - { - // Leave 24 backends for the edit pool, readiness probes - // and PG maintenance: orm.conf's 255 would otherwise - // consume all of max_connections=256. - const long long usable = total > 24 ? total - 24 : total; - if (usable < cap) - { - cap = static_cast(usable); - } - } - } - return cap; - }(); - return value; - } - - static bool try_acquire() - { - int current = in_flight().load(std::memory_order_relaxed); - while (current < limit()) - { - if (in_flight().compare_exchange_weak(current, current + 1, - std::memory_order_relaxed)) - { - return true; - } - } - return false; - } - - static void release() - { - in_flight().fetch_sub(1, std::memory_order_relaxed); - } - - public: - class ticket - { - bool owns_ = false; - - public: - ticket() = default; - ticket(const ticket &) = delete; - ticket &operator=(const ticket &) = delete; - ~ticket() - { - if (owns_) - { - db_gate::release(); - } - } - - bool try_acquire() - { - if (!db_gate::try_acquire()) - { - return false; - } - owns_ = true; - return true; - } - }; - - // Bounded wait with 1..8 ms backoff. A single timer is reused so a - // suspended request owns no per-attempt allocation. 500 ms is the same - // ceiling as the old fixed 250 x 2 ms loop, but short waits now resolve - // quickly instead of always paying a full 2 ms slot. - static asio::awaitable enter(ticket &t) - { - if (t.try_acquire()) - { - co_return true; - } - auto executor = co_await asio::this_coro::executor; - const auto deadline = std::chrono::steady_clock::now() + std::chrono::milliseconds(500); - std::chrono::milliseconds backoff{1}; - asio::steady_timer timer(executor); - for (;;) - { - const auto now = std::chrono::steady_clock::now(); - if (now >= deadline) - { - co_return false; - } - auto remain = std::chrono::duration_cast(deadline - now); - const auto wait = std::min(backoff, std::max(remain, std::chrono::milliseconds{1})); - timer.expires_after(wait); - co_await timer.async_wait(asio::use_awaitable); - if (t.try_acquire()) - { - co_return true; - } - backoff = std::min(backoff * 2, std::chrono::milliseconds{8}); - } - } - }; - void respond_db_error(const std::shared_ptr &peer, std::string_view message) { peer->type("text/plain; charset=utf-8"); @@ -208,41 +60,14 @@ namespace peer->output = std::string(message); } - // One query path for both DB routes: gate -> driver -> explicit failure. + // Both DB routes query through orm::db_conn("pg")->async_query() inline. + // The process-wide ceiling under Postgres' max_connections is the ORM + // select pool itself: entrypoint.sh renders its maxpool to + // DATABASE_MAX_CONN - 24, and async_get_pg_select_conn() parks (woken on + // connection return) once that quota is full, so no separate gate is needed. // pg_async_query_vec_impl() catches driver exceptions into error_msg and - // returns 0 rows, so checking rows.empty() would mistake a legitimate - // empty /async-db result for an error; iserror / error_msg are the signal. - template - asio::awaitable fetch_rows(const std::shared_ptr &peer, - const std::string &sql, - std::vector &rows) - { - db_gate::ticket ticket; - if (!co_await db_gate::enter(ticket)) - { - respond_db_error(peer, "database busy"); - co_return false; - } - - try - { - auto link = std::make_unique("pg"); - co_await link->async_query(sql, rows); - if (link->iserror || !link->error_msg.empty()) - { - rows.clear(); - respond_db_error(peer, "database query failed"); - co_return false; - } - } - catch (const std::exception &) - { - rows.clear(); - respond_db_error(peer, "database query failed"); - co_return false; - } - co_return true; - } + // returns 0 rows, so a legitimate empty result is not an error; + // iserror / error_msg are the failure signal (503 via respond_db_error). long long to_int(std::string_view value, long long fallback = 0) { @@ -251,28 +76,6 @@ namespace return result.ec == std::errc{} ? parsed : fallback; } - long long query_int(const std::string &query, std::string_view key, long long fallback) - { - std::size_t pos = 0; - while (pos < query.size()) - { - const std::size_t amp = query.find('&', pos); - const std::size_t end = amp == std::string::npos ? query.size() : amp; - std::string_view pair(query.data() + pos, end - pos); - const std::size_t eq = pair.find('='); - if (eq != std::string_view::npos && pair.substr(0, eq) == key) - { - return to_int(pair.substr(eq + 1), fallback); - } - if (amp == std::string::npos) - { - break; - } - pos = amp + 1; - } - return fallback; - } - std::string integer_or_zero(const std::string &value) { return std::to_string(to_int(value)); @@ -421,9 +224,13 @@ asio::awaitable arena_async_db(std::shared_ptr peer) { peer->type("application/json"); - const long long min_price = query_int(peer->querystring, "min", 10); - const long long max_price = query_int(peer->querystring, "max", 50); - long long limit = query_int(peer->querystring, "limit", 50); + // get is already parsed from the querystring; const operator[] returns a + // static nil for an absent key (no insert). to_int() yields 0 for nil, so + // is_null() preserves the 10/50/50 defaults for absent params. + const obj_val &g = peer->get; + const long long min_price = g["min"].is_null() ? 10 : g["min"].to_int(); + const long long max_price = g["max"].is_null() ? 50 : g["max"].to_int(); + long long limit = g["limit"].is_null() ? 50 : g["limit"].to_int(); if (limit < 1) limit = 1; if (limit > 50) limit = 50; @@ -436,8 +243,19 @@ asio::awaitable arena_async_db(std::shared_ptr peer) std::vector rows; rows.reserve(static_cast(limit)); - if (!co_await fetch_rows(peer, sql, rows)) + try { + auto link = std::make_unique("pg"); + co_await link->async_query(sql, rows); + if (link->iserror || !link->error_msg.empty()) + { + respond_db_error(peer, "database query failed"); + co_return ""; + } + } + catch (const std::exception &) + { + respond_db_error(peer, "database query failed"); co_return ""; } @@ -456,8 +274,19 @@ asio::awaitable arena_fortunes(std::shared_ptr peer) // contract; reserve() only sets capacity either way. std::vector rows; rows.reserve(201); - if (!co_await fetch_rows(peer, "SELECT id,message FROM fortune", rows)) + try + { + auto link = std::make_unique("pg"); + co_await link->async_query("SELECT id,message FROM fortune", rows); + if (link->iserror || !link->error_msg.empty()) + { + respond_db_error(peer, "database query failed"); + co_return ""; + } + } + catch (const std::exception &) { + respond_db_error(peer, "database query failed"); co_return ""; } if (rows.empty()) diff --git a/frameworks/paozhu/src/entrypoint.sh b/frameworks/paozhu/src/entrypoint.sh index f96d33ad67..b94c8ceb2f 100644 --- a/frameworks/paozhu/src/entrypoint.sh +++ b/frameworks/paozhu/src/entrypoint.sh @@ -39,6 +39,17 @@ if [ -n "${DATABASE_URL:-}" ]; then case "$db_max" in ''|*[!0-9]*) db_max=256 ;; esac if [ "$db_max" -lt 8 ]; then db_max=8; fi if [ "$db_max" -gt 255 ]; then db_max=255; fi + # The select pool IS the process-wide ceiling now (db.cpp has no gate): + # cap it at db_max - 24 so 24 backends stay free for the edit pool, + # readiness probes and PG maintenance. async_get_pg_select_conn() parks + # and is woken on connection return once this quota is full. + db_select_max=$(( db_max - 24 )) + if [ "$db_select_max" -lt 1 ]; then db_select_max=$db_max; fi + # Per-slot prebuild = ceil(select_max / 4 slots) so the resident set covers + # the whole ceiling and a request never waits for a lazy connect. + # 4 = orm_ioc_num in conf/main/server.conf. + db_select_min=$(( (db_select_max + 3) / 4 )) + if [ "$db_select_min" -lt 1 ]; then db_select_min=1; fi # Bash parameter substitution, not sed: passwords may contain '&', '\' # or '/', all of which are special in a sed replacement. @@ -48,7 +59,8 @@ if [ -n "${DATABASE_URL:-}" ]; then line="${line//__DB_NAME__/$db_name}" line="${line//__DB_USER__/$db_user}" line="${line//__DB_PASSWORD__/$db_password}" - line="${line//__DB_MAX_CONN__/$db_max}" + line="${line//__DB_SELECT_MAX__/$db_select_max}" + line="${line//__DB_SELECT_MIN__/$db_select_min}" printf '%s\n' "$line" done < /app/conf/orm.conf.tpl > /app/conf/main/orm.conf fi From 91a71bee0d35fb6e4006a928476ded4ea59714ec Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 15 Nov 2026 11:18:56 +0000 Subject: [PATCH 55/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 420 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 6 +- site/static/logs/async/32000/paozhu.log | 8 +- site/static/logs/baseline-h2/1024/paozhu.log | 12 +- site/static/logs/baseline-h2/256/paozhu.log | 4 +- site/static/logs/baseline-h2c/1024/paozhu.log | 10 +- site/static/logs/baseline-h2c/256/paozhu.log | 8 +- site/static/logs/baseline/4096/paozhu.log | 8 +- .../logs/echo-ws-limited/4096/paozhu.log | 6 +- .../logs/echo-ws-limited/512/paozhu.log | 10 +- .../logs/echo-ws-pipeline/16384/paozhu.log | 8 +- .../logs/echo-ws-pipeline/4096/paozhu.log | 6 +- .../logs/echo-ws-pipeline/512/paozhu.log | 4 +- site/static/logs/echo-ws/16384/paozhu.log | 8 +- site/static/logs/echo-ws/4096/paozhu.log | 8 +- site/static/logs/echo-ws/512/paozhu.log | 6 +- site/static/logs/fortunes/1024/paozhu.log | 12 +- site/static/logs/json-comp/16384/paozhu.log | 2 +- site/static/logs/json-comp/4096/paozhu.log | 6 +- site/static/logs/json-h2c/1024/paozhu.log | 4 +- site/static/logs/json-tls/4096/paozhu.log | 8 +- site/static/logs/latency-10k/1024/paozhu.log | 6 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 6 +- site/static/logs/limited-conn/4096/paozhu.log | 2 +- site/static/logs/pipelined/4096/paozhu.log | 10 +- site/static/logs/static-h2/256/paozhu.log | 10 +- 26 files changed, 299 insertions(+), 299 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 98d060eb26..055bfe741d 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,19 +4,19 @@ "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1665710, - "avg_latency": "17.64ms", - "p99_latency": "29.30ms", - "cpu": "5884.5%", - "memory": "570MiB", + "rps": 1674410, + "avg_latency": "17.56ms", + "p99_latency": "27.30ms", + "cpu": "5927.2%", + "memory": "571MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "168.36MB/s", - "input_bw": "76.25MB/s", + "bandwidth": "169.24MB/s", + "input_bw": "76.65MB/s", "reconnects": 0, - "status_2xx": 16657107, + "status_2xx": 16744105, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +24,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 144005, - "avg_latency": "6.61ms", - "p99_latency": "61.90ms", - "cpu": "3414.4%", - "memory": "126MiB", + "rps": 149278, + "avg_latency": "6.32ms", + "p99_latency": "84.50ms", + "cpu": "3270.1%", + "memory": "125MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "555.04MB/s", - "input_bw": "9.61MB/s", - "reconnects": 57509, - "status_2xx": 1440050, + "bandwidth": "575.63MB/s", + "input_bw": "9.97MB/s", + "reconnects": 59529, + "status_2xx": 1492784, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +44,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2627560, + "rps": 2624796, "avg_latency": "1.56ms", - "p99_latency": "9.81ms", - "cpu": "6324.7%", - "memory": "137MiB", + "p99_latency": "8.79ms", + "cpu": "6362.3%", + "memory": "136MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "265.55MB/s", - "input_bw": "202.97MB/s", + "bandwidth": "265.27MB/s", + "input_bw": "202.76MB/s", "reconnects": 0, - "status_2xx": 13137802, + "status_2xx": 13123983, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +64,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 427940, - "avg_latency": "226.05ms", - "p99_latency": "2.51s", - "cpu": "4179.5%", + "rps": 429073, + "avg_latency": "225.98ms", + "p99_latency": "2.12s", + "cpu": "4174.0%", "memory": "2.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.46MB/s", + "bandwidth": "19.43MB/s", "reconnects": 0, - "status_2xx": 2169656, + "status_2xx": 2166823, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +83,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 453671, - "avg_latency": "54.96ms", - "p99_latency": "399.24ms", - "cpu": "4520.0%", - "memory": "567MiB", + "rps": 446642, + "avg_latency": "56.27ms", + "p99_latency": "404.80ms", + "cpu": "4289.9%", + "memory": "566MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.46MB/s", + "bandwidth": "20.14MB/s", "reconnects": 0, - "status_2xx": 2281969, + "status_2xx": 2246610, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,18 +102,18 @@ "baseline-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 453154, - "avg_latency": "218.37ms", - "p99_latency": "2.26s", - "cpu": "3823.8%", + "rps": 435521, + "avg_latency": "226.66ms", + "p99_latency": "1.89s", + "cpu": "3688.2%", "memory": "1.9GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.52MB/s", + "bandwidth": "19.72MB/s", "reconnects": 0, - "status_2xx": 2288429, + "status_2xx": 2199383, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -121,18 +121,18 @@ "baseline-h2c-256": { "framework": "paozhu", "language": "C++", - "rps": 485453, - "avg_latency": "52.06ms", - "p99_latency": "511.79ms", - "cpu": "3813.0%", - "memory": "543MiB", + "rps": 478664, + "avg_latency": "52.81ms", + "p99_latency": "412.71ms", + "cpu": "3837.1%", + "memory": "544MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.89MB/s", + "bandwidth": "21.59MB/s", "reconnects": 0, - "status_2xx": 2441833, + "status_2xx": 2407683, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,18 +140,18 @@ "baseline-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 358316, - "avg_latency": "997.95ms", - "p99_latency": "4.99s", - "cpu": "3606.2%", - "memory": "7.5GiB", + "rps": 339301, + "avg_latency": "1.04s", + "p99_latency": "4.94s", + "cpu": "3393.7%", + "memory": "7.7GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "16.42MB/s", + "bandwidth": "15.58MB/s", "reconnects": 0, - "status_2xx": 1827414, + "status_2xx": 1733830, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +159,18 @@ "echo-ws-16384": { "framework": "paozhu", "language": "C++", - "rps": 2815240, - "avg_latency": "4.27ms", - "p99_latency": "15.30ms", - "cpu": "6176.7%", + "rps": 2779637, + "avg_latency": "4.39ms", + "p99_latency": "15.40ms", + "cpu": "6067.6%", "memory": "425MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.27MB/s", + "bandwidth": "19.04MB/s", "reconnects": 0, - "status_2xx": 14076200, + "status_2xx": 13898186, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -178,18 +178,18 @@ "echo-ws-4096": { "framework": "paozhu", "language": "C++", - "rps": 3199011, - "avg_latency": "1.23ms", - "p99_latency": "6.76ms", - "cpu": "6303.5%", - "memory": "147MiB", + "rps": 3204141, + "avg_latency": "1.24ms", + "p99_latency": "6.75ms", + "cpu": "6323.3%", + "memory": "146MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.47MB/s", + "bandwidth": "21.48MB/s", "reconnects": 0, - "status_2xx": 15995057, + "status_2xx": 16020706, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -197,18 +197,18 @@ "echo-ws-512": { "framework": "paozhu", "language": "C++", - "rps": 3177598, - "avg_latency": "160us", - "p99_latency": "3.25ms", - "cpu": "6479.1%", - "memory": "75MiB", + "rps": 3142065, + "avg_latency": "162us", + "p99_latency": "3.23ms", + "cpu": "6511.0%", + "memory": "74MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.21MB/s", + "bandwidth": "20.97MB/s", "reconnects": 0, - "status_2xx": 15887992, + "status_2xx": 15710326, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -216,18 +216,18 @@ "echo-ws-limited-4096": { "framework": "paozhu", "language": "C++", - "rps": 681830, + "rps": 689231, "avg_latency": "45us", - "p99_latency": "109us", - "cpu": "2606.9%", - "memory": "69MiB", + "p99_latency": "107us", + "cpu": "2610.9%", + "memory": "104MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "14.69MB/s", - "reconnects": 340915, - "status_2xx": 3409150, + "bandwidth": "14.85MB/s", + "reconnects": 344614, + "status_2xx": 3446155, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -235,18 +235,18 @@ "echo-ws-limited-512": { "framework": "paozhu", "language": "C++", - "rps": 690560, - "avg_latency": "44us", - "p99_latency": "98us", - "cpu": "2691.3%", - "memory": "70MiB", + "rps": 688306, + "avg_latency": "43us", + "p99_latency": "96us", + "cpu": "2720.6%", + "memory": "69MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "14.88MB/s", - "reconnects": 345281, - "status_2xx": 3452802, + "bandwidth": "14.83MB/s", + "reconnects": 344156, + "status_2xx": 3441530, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -254,18 +254,18 @@ "echo-ws-pipeline-16384": { "framework": "paozhu", "language": "C++", - "rps": 3229224, - "avg_latency": "55.57ms", - "p99_latency": "193.30ms", - "cpu": "6112.4%", - "memory": "443MiB", + "rps": 3138203, + "avg_latency": "60.41ms", + "p99_latency": "190.20ms", + "cpu": "6145.5%", + "memory": "440MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "22.04MB/s", + "bandwidth": "21.43MB/s", "reconnects": 0, - "status_2xx": 16146121, + "status_2xx": 15691016, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -273,18 +273,18 @@ "echo-ws-pipeline-4096": { "framework": "paozhu", "language": "C++", - "rps": 3603114, - "avg_latency": "17.61ms", - "p99_latency": "36.30ms", - "cpu": "6274.5%", - "memory": "153MiB", + "rps": 3583297, + "avg_latency": "17.73ms", + "p99_latency": "36.40ms", + "cpu": "6327.6%", + "memory": "154MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "24.15MB/s", + "bandwidth": "24.02MB/s", "reconnects": 0, - "status_2xx": 18015570, + "status_2xx": 17916488, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -292,18 +292,18 @@ "echo-ws-pipeline-512": { "framework": "paozhu", "language": "C++", - "rps": 3760053, - "avg_latency": "2.18ms", - "p99_latency": "10.00ms", - "cpu": "6486.0%", - "memory": "69MiB", + "rps": 3628596, + "avg_latency": "2.26ms", + "p99_latency": "10.10ms", + "cpu": "6524.2%", + "memory": "70MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "25.09MB/s", + "bandwidth": "24.21MB/s", "reconnects": 0, - "status_2xx": 18800265, + "status_2xx": 18142982, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -311,18 +311,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 59602, - "avg_latency": "16.02ms", - "p99_latency": "135.80ms", - "cpu": "3256.7%", - "memory": "154MiB", + "rps": 64082, + "avg_latency": "14.79ms", + "p99_latency": "91.90ms", + "cpu": "3439.2%", + "memory": "157MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.38GB/s", + "bandwidth": "1.48GB/s", "reconnects": 0, - "status_2xx": 298013, + "status_2xx": 320410, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -330,19 +330,19 @@ "json-comp-16384": { "framework": "paozhu", "language": "C++", - "rps": 5245, - "avg_latency": "1.57s", - "p99_latency": "3.81s", - "cpu": "6804.7%", - "memory": "627MiB", + "rps": 682445, + "avg_latency": "7.35ms", + "p99_latency": "153.60ms", + "cpu": "6094.6%", + "memory": "177MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "5.59MB/s", - "input_bw": "399.52KB/s", - "reconnects": 0, - "status_2xx": 26229, + "bandwidth": "1.06GB/s", + "input_bw": "50.76MB/s", + "reconnects": 136149, + "status_2xx": 3412229, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -350,19 +350,19 @@ "json-comp-4096": { "framework": "paozhu", "language": "C++", - "rps": 5604, - "avg_latency": "675.09ms", - "p99_latency": "1.15s", - "cpu": "6959.1%", - "memory": "342MiB", + "rps": 703535, + "avg_latency": "5.75ms", + "p99_latency": "143.60ms", + "cpu": "6291.9%", + "memory": "150MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "5.97MB/s", - "input_bw": "426.87KB/s", - "reconnects": 0, - "status_2xx": 28023, + "bandwidth": "1.09GB/s", + "input_bw": "52.33MB/s", + "reconnects": 140949, + "status_2xx": 3517677, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -370,18 +370,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 318366, - "avg_latency": "100.56ms", - "p99_latency": "325.64ms", - "cpu": "3572.6%", + "rps": 416480, + "avg_latency": "76.68ms", + "p99_latency": "184.91ms", + "cpu": "4332.5%", "memory": "1.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.07GB/s", + "bandwidth": "1.40GB/s", "reconnects": 0, - "status_2xx": 1610937, + "status_2xx": 2103226, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -389,18 +389,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 398245, - "avg_latency": "308.65ms", - "p99_latency": "1.09s", - "cpu": "4340.8%", + "rps": 292282, + "avg_latency": "419.10ms", + "p99_latency": "1.43s", + "cpu": "3519.8%", "memory": "4.6GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.35GB/s", + "bandwidth": "1009.03MB/s", "reconnects": 0, - "status_2xx": 2031052, + "status_2xx": 1487720, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -408,18 +408,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1044921, - "avg_latency": "4.48ms", - "p99_latency": "204.97ms", - "cpu": "6106.6%", - "memory": "449MiB", + "rps": 1057010, + "avg_latency": "4.72ms", + "p99_latency": "235.16ms", + "cpu": "6141.2%", + "memory": "450MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.53GB", + "bandwidth": "3.58GB", "reconnects": 0, - "status_2xx": 5327915, + "status_2xx": 5390559, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -427,10 +427,10 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9982, - "avg_latency": "75.6us", + "rps": 9981, + "avg_latency": "79.8us", "p99_latency": "109.0us", - "cpu": "28.9%", + "cpu": "29.2%", "memory": "71MiB", "connections": 1024, "threads": 64, @@ -438,80 +438,80 @@ "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199672, + "status_2xx": 199639, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 6029630, - "cpu_per_req_us": 30.1977, + "cpu_usec": 6108401, + "cpu_per_req_us": 30.5972, "target_rate": 10000, - "rate_ratio": 0.9982, - "p99_9_latency": "168.0us" + "rate_ratio": 0.9981, + "p99_9_latency": "2173.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997787, - "avg_latency": "111.9us", - "p99_latency": "187.0us", - "cpu": "3558.5%", - "memory": "75MiB", + "rps": 997814, + "avg_latency": "117.8us", + "p99_latency": "189.0us", + "cpu": "3574.7%", + "memory": "77MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "104.77MB/s", "reconnects": 0, - "status_2xx": 19959367, + "status_2xx": 19960192, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 641236339, - "cpu_per_req_us": 32.1271, + "cpu_usec": 644705552, + "cpu_per_req_us": 32.2996, "target_rate": 1000000, "rate_ratio": 0.9978, - "p99_9_latency": "5254.0us" + "p99_9_latency": "8900.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 375724, - "avg_latency": "2452307.3us", - "p99_latency": "5044224.0us", - "cpu": "806.7%", - "memory": "69MiB", + "rps": 372776, + "avg_latency": "2517809.9us", + "p99_latency": "5314560.0us", + "cpu": "808.6%", + "memory": "67MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "39.45MB/s", + "bandwidth": "39.14MB/s", "reconnects": 0, - "status_2xx": 7517311, + "status_2xx": 7458426, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159678358, - "cpu_per_req_us": 21.2414, + "cpu_usec": 159657298, + "cpu_per_req_us": 21.4063, "target_rate": 500000, - "rate_ratio": 0.7514, - "p99_9_latency": "5257216.0us" + "rate_ratio": 0.7456, + "p99_9_latency": "5621760.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 679140, + "rps": 679575, "avg_latency": "6.00ms", "p99_latency": "60.60ms", - "cpu": "2703.5%", - "memory": "79MiB", + "cpu": "2709.0%", + "memory": "77MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "68.63MB/s", - "input_bw": "52.46MB/s", - "reconnects": 339574, - "status_2xx": 3395704, + "bandwidth": "68.67MB/s", + "input_bw": "52.50MB/s", + "reconnects": 339789, + "status_2xx": 3397877, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -519,18 +519,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3617609, - "avg_latency": "18.13ms", - "p99_latency": "36.30ms", - "cpu": "6320.6%", - "memory": "127MiB", + "rps": 3573166, + "avg_latency": "18.36ms", + "p99_latency": "45.20ms", + "cpu": "6259.9%", + "memory": "128MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "365.61MB/s", + "bandwidth": "360.99MB/s", "reconnects": 0, - "status_2xx": 18088046, + "status_2xx": 17865830, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -538,18 +538,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 108560, - "avg_latency": "285.10ms", - "p99_latency": "4.03s", - "cpu": "4141.6%", + "rps": 107551, + "avg_latency": "286.41ms", + "p99_latency": "3.58s", + "cpu": "4146.3%", "memory": "7.1GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "6.48GB/s", + "bandwidth": "6.43GB/s", "reconnects": 0, - "status_2xx": 548229, + "status_2xx": 544211, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -557,10 +557,10 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 111002, - "avg_latency": "72.55ms", - "p99_latency": "758.07ms", - "cpu": "4502.2%", + "rps": 110864, + "avg_latency": "72.57ms", + "p99_latency": "970.28ms", + "cpu": "4683.8%", "memory": "2.0GiB", "connections": 256, "threads": 64, @@ -568,7 +568,7 @@ "pipeline": 1, "bandwidth": "6.62GB/s", "reconnects": 0, - "status_2xx": 558341, + "status_2xx": 558757, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index 594fa68ff8..ae6badc558 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index 5c28ad555e..ae6badc558 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index d2431d2f07..ae6badc558 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled - [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 496f177217..3e633a520f 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,7 +1,7 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline-h2c/1024/paozhu.log b/site/static/logs/baseline-h2c/1024/paozhu.log index 7a9e321588..ccc107e05d 100644 --- a/site/static/logs/baseline-h2c/1024/paozhu.log +++ b/site/static/logs/baseline-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/256/paozhu.log b/site/static/logs/baseline-h2c/256/paozhu.log index ae6badc558..7507d1b226 100644 --- a/site/static/logs/baseline-h2c/256/paozhu.log +++ b/site/static/logs/baseline-h2c/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 3e633a520f..f4f72854a0 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/4096/paozhu.log b/site/static/logs/echo-ws-limited/4096/paozhu.log index fd83ef3a35..ae6badc558 100644 --- a/site/static/logs/echo-ws-limited/4096/paozhu.log +++ b/site/static/logs/echo-ws-limited/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/512/paozhu.log b/site/static/logs/echo-ws-limited/512/paozhu.log index eafd3abba4..ae6badc558 100644 --- a/site/static/logs/echo-ws-limited/512/paozhu.log +++ b/site/static/logs/echo-ws-limited/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/16384/paozhu.log b/site/static/logs/echo-ws-pipeline/16384/paozhu.log index e71987ebaf..8eb0722e8a 100644 --- a/site/static/logs/echo-ws-pipeline/16384/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled + +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/4096/paozhu.log b/site/static/logs/echo-ws-pipeline/4096/paozhu.log index 946f1ae070..ae6badc558 100644 --- a/site/static/logs/echo-ws-pipeline/4096/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/512/paozhu.log b/site/static/logs/echo-ws-pipeline/512/paozhu.log index 946f1ae070..594675f4e1 100644 --- a/site/static/logs/echo-ws-pipeline/512/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/512/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/16384/paozhu.log b/site/static/logs/echo-ws/16384/paozhu.log index f67729833d..4fcf3043cf 100644 --- a/site/static/logs/echo-ws/16384/paozhu.log +++ b/site/static/logs/echo-ws/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin + not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/4096/paozhu.log b/site/static/logs/echo-ws/4096/paozhu.log index ae6badc558..a781d4c2fa 100644 --- a/site/static/logs/echo-ws/4096/paozhu.log +++ b/site/static/logs/echo-ws/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/512/paozhu.log b/site/static/logs/echo-ws/512/paozhu.log index ae6badc558..8eb0722e8a 100644 --- a/site/static/logs/echo-ws/512/paozhu.log +++ b/site/static/logs/echo-ws/512/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index ae6badc558..6d48f8072a 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled[sockets] +/app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/16384/paozhu.log b/site/static/logs/json-comp/16384/paozhu.log index ae6badc558..61672439db 100644 --- a/site/static/logs/json-comp/16384/paozhu.log +++ b/site/static/logs/json-comp/16384/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-comp/4096/paozhu.log b/site/static/logs/json-comp/4096/paozhu.log index e71987ebaf..7a9e321588 100644 --- a/site/static/logs/json-comp/4096/paozhu.log +++ b/site/static/logs/json-comp/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index 7507d1b226..f0116a21af 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -2,10 +2,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index 9dc0d2ee1c..f67729833d 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 21c13319c0..496f177217 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabled -websockets.conf[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled - not found or parse fail, websocket client disabled[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index ae6badc558..61672439db 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index b5ba085bbf..594675f4e1 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[sockets] -/app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index d3f96a913d..594675f4e1 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled - -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled[mqtt_client] -/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From f39b2cc1c67368e9ef6de049a148515329a6a6d4 Mon Sep 17 00:00:00 2001 From: hzq Date: Sun, 15 Nov 2026 22:59:46 +0800 Subject: [PATCH 56/89] Add 8gbit, static to cache --- frameworks/paozhu/Dockerfile | 3 +- frameworks/paozhu/meta.json | 3 +- frameworks/paozhu/src/conf/server-h1.conf | 11 +- frameworks/paozhu/src/conf/server.conf | 11 +- .../paozhu/src/controller/src/arena.cpp | 139 ++---------------- frameworks/paozhu/src/entrypoint.sh | 34 +++++ 6 files changed, 64 insertions(+), 137 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 5b7b04934b..cb3ef08990 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=c3005fba93d9583ceb6e198348da4339f071e88c +ARG PAOZHU_REF=414a598e5a0a539016e855a74c93dd590e98e039 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct @@ -89,6 +89,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ libbrotli1 \ libstdc++6 \ ca-certificates \ + curl \ && rm -rf /var/lib/apt/lists/* WORKDIR /app diff --git a/frameworks/paozhu/meta.json b/frameworks/paozhu/meta.json index 89c493736f..cd239ef99d 100644 --- a/frameworks/paozhu/meta.json +++ b/frameworks/paozhu/meta.json @@ -10,7 +10,7 @@ "response": true }, "engine": "paozhu", - "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static with bodies cached in-process via pzcache (revalidated by a per-request stat of mtime+size), and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for baseline-h2c and json-h2c.", + "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /echo, /json/{count}?m={multiplier}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, /echo returns the raw request body byte-for-byte, and the DB routes use paozhu's own async Postgres driver. /static/* is served by the framework's native static path from the mounted /data/static (wwwpath=/data) with an on-disk compression cache pre-warmed at startup. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and 8gbit and whose cleartext :8082 listener serves h2c prior-knowledge for baseline-h2c and json-h2c.", "repo": "https://github.com/hggq/paozhu", "enabled": true, "tests": [ @@ -19,6 +19,7 @@ "limited-conn", "json-comp", "json-tls", + "8gbit", "baseline-h2", "static-h2", "baseline-h2c", diff --git a/frameworks/paozhu/src/conf/server-h1.conf b/frameworks/paozhu/src/conf/server-h1.conf index 54c1efc76b..4e88165caa 100644 --- a/frameworks/paozhu/src/conf/server-h1.conf +++ b/frameworks/paozhu/src/conf/server-h1.conf @@ -33,10 +33,11 @@ tmp_dh_file = dh4096.pem chain_crt_file = server.crt session_type = 1 -; /static/* is served by a registered route reading /data/static directly, so -; the framework's native static path (and its on-disk compress cache) is never -; reached for those URLs. -static_file_compress_cache = 0 +; /static/* is served by the framework's native static path: wwwpath=/data so +; the URL resolves to the mounted /data/static. The on-disk compress cache is +; pre-warmed by entrypoint.sh (one request per identity file) so steady-state +; serving hits the cache instead of recompressing on every request. +static_file_compress_cache = 1 ; Dead key at this pin: nothing in vendor/httpserver reads it. Kept for conf ; parity with upstream only. staticfile_cache_num = 0 @@ -54,7 +55,7 @@ controlsopath = ./module/controller ; Separate scratch dirs so the two processes never race on temp/log files. temppath = ./temp-h1 logpath = ./log-h1 -wwwpath = ./www/default +wwwpath = /data pluginspath = ./plugins libspath = ./libs diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index d4207bd547..a371e56abd 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -30,10 +30,11 @@ tmp_dh_file = dh4096.pem chain_crt_file = server.crt session_type = 1 -; /static/* is served by a registered route reading /data/static directly, so -; the framework's native static path (and its on-disk compress cache) is never -; reached for those URLs. -static_file_compress_cache = 0 +; /static/* is served by the framework's native static path: wwwpath=/data so +; the URL resolves to the mounted /data/static. The on-disk compress cache is +; pre-warmed by entrypoint.sh (one request per identity file) so steady-state +; serving hits the cache instead of recompressing on every request. +static_file_compress_cache = 1 ; Dead key at this pin: nothing in vendor/httpserver reads it. Kept for conf ; parity with upstream only. staticfile_cache_num = 0 @@ -50,7 +51,7 @@ controlpath = ./controller controlsopath = ./module/controller temppath = ./temp logpath = ./log -wwwpath = ./www/default +wwwpath = /data pluginspath = ./plugins libspath = ./libs diff --git a/frameworks/paozhu/src/controller/src/arena.cpp b/frameworks/paozhu/src/controller/src/arena.cpp index 5f96936f30..55987bad31 100644 --- a/frameworks/paozhu/src/controller/src/arena.cpp +++ b/frameworks/paozhu/src/controller/src/arena.cpp @@ -1,12 +1,9 @@ #include "httppeer.h" -#include "pzcache.h" #include #include #include -#include - #include #include #include @@ -20,8 +17,9 @@ // // Routes are picked up by paozhu_pre at build time: every //@urlpath(...) // annotation registers the function that follows it. Path parameters must be -// the last segment, so /json/:count and /static/:filename are registered as the -// fixed prefixes /json and /static with a parameter-name table. +// the last segment, so /json/:count and /delay/:ms are registered as the +// fixed prefixes /json and /delay with a parameter-name table. /static/* is +// served by the framework's native static path (wwwpath=/data), not a route. namespace { @@ -459,54 +457,6 @@ std::string raw_body(const std::shared_ptr &peer) return body; } -const char *mime_of(const std::string &filename) -{ - const std::size_t dot = filename.rfind('.'); - if (dot == std::string::npos) - { - return "application/octet-stream"; - } - const std::string ext = filename.substr(dot + 1); - if (ext == "css") return "text/css"; - if (ext == "js") return "application/javascript"; - if (ext == "html") return "text/html"; - if (ext == "json") return "application/json"; - if (ext == "svg") return "image/svg+xml"; - if (ext == "webp") return "image/webp"; - if (ext == "woff2") return "font/woff2"; - return "application/octet-stream"; -} - -bool safe_filename(const std::string &name) -{ - if (name.empty() || name.size() > 128 || name.find("..") != std::string::npos) - { - return false; - } - for (char c : name) - { - const bool allowed = (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || - (c >= '0' && c <= '9') || c == '.' || c == '-' || c == '_'; - if (!allowed) - { - return false; - } - } - return true; -} - -// pzcache payload for one /data/static file. The mtime/size stamp is the -// freshness check: it is compared against a fresh stat() on EVERY request, so -// a file the validation suite replaces mid-run is reloaded immediately and a -// stale body can never outlive the inode it was read from. Only the -// open+read is cached; the stat stays. -struct static_file_entry -{ - std::string body; - long long mtime_sec = 0; - long long file_size = 0; -}; - } // namespace namespace http @@ -520,6 +470,17 @@ asio::awaitable arena_pipeline(std::shared_ptr peer) co_return ""; } +//@urlpath(null,echo) +asio::awaitable arena_echo(std::shared_ptr peer) +{ + // Echo the raw request body byte-for-byte (8gbit profile). raw_body covers + // both the in-memory fast path and the >2MB spilled file; chunked framing is + // decoded by the parser into rawcontent. An empty body echoes as 200 empty. + peer->type("application/octet-stream"); + peer->output = raw_body(peer); + co_return ""; +} + //@urlpath(null,baseline11) asio::awaitable arena_baseline11(std::shared_ptr peer) { @@ -577,78 +538,6 @@ asio::awaitable arena_json(std::shared_ptr peer) co_return ""; } -//@urlpath(null,static/:filename) -asio::awaitable arena_static(std::shared_ptr peer) -{ - const std::string filename = peer->get["filename"].to_string(); - struct stat st {}; - bool stat_ok = false; - if (safe_filename(filename)) - { - // stat on every request: the validation suite replaces a mounted file - // and expects the next response to carry the new bytes. The pzcache - // entry only spares the open+read, never this freshness check. - stat_ok = ::stat(("/data/static/" + filename).c_str(), &st) == 0 && - (st.st_mode & S_IFREG) != 0; - } - if (!stat_ok) - { - peer->status(404); - peer->type("text/plain"); - peer->output = "Not Found"; - co_return ""; - } - - pzcache &cache = pzcache::conn(); - const long long mtime_sec = static_cast(st.st_mtime); - const long long file_size = static_cast(st.st_size); - try - { - // get() throws "Not in pzcache" on miss, and the background exptime - // sweeper may erase between check() and get(), so the miss path is a - // catch rather than a check-then-get. expnum=0: the stat stamp above - // decides freshness, not a TTL. - const static_file_entry &hit = cache.get(filename); - if (hit.mtime_sec == mtime_sec && hit.file_size == file_size) - { - peer->output = hit.body; - peer->type(mime_of(filename)); - co_return ""; - } - } - catch (...) - { - } - - // Size the body once, then read straight into it: no per-byte iterator - // and no second copy. Short read (file shrank between stat and read): - // keep what arrived. A zero-size file is a valid body, not a miss. - std::ifstream in("/data/static/" + filename, std::ios::binary); - std::string body; - bool read_ok = false; - if (in.is_open()) - { - body.resize(static_cast(file_size)); - in.read(&body[0], file_size); - body.resize(static_cast(in.gcount())); - read_ok = true; - } - if (!read_ok) - { - peer->status(404); - peer->type("text/plain"); - peer->output = "Not Found"; - co_return ""; - } - // cover_data=true: a replaced file overwrites the old body instead of - // leaving it while only bumping exptime (pzcache's default). - static_file_entry entry{std::move(body), mtime_sec, file_size}; - cache.save(filename, entry, 0, true); - peer->output = std::move(entry.body); - peer->type(mime_of(filename)); - co_return ""; -} - //@urlpath(null,delay/:ms) asio::awaitable arena_delay(std::shared_ptr peer) { diff --git a/frameworks/paozhu/src/entrypoint.sh b/frameworks/paozhu/src/entrypoint.sh index b94c8ceb2f..b5be70e7d5 100644 --- a/frameworks/paozhu/src/entrypoint.sh +++ b/frameworks/paozhu/src/entrypoint.sh @@ -72,6 +72,40 @@ H1_PID=$! /server /app/conf/main/server.conf & MAIN_PID=$! +# Pre-warm the native static compress cache. With the /static route removed and +# wwwpath=/data, the framework serves /data/static through its on-disk compress +# cache; hitting each identity file once (br preferred, as the benchmark sends) +# populates that cache before the benchmark instead of paying compression on the +# first live request. br is only produced on TLS, so warm via the HTTPS ports +# (8443 main, 8081 h1) — each instance has its own cache dir, so both must be +# warmed. Best-effort: a missed warm only means the first real request compresses +# once. +wait_ready() { + local url="$1" i + for i in $(seq 1 60); do + if curl -sk --max-time 2 -o /dev/null "$url" 2>/dev/null; then + return 0 + fi + sleep 0.5 + done + return 1 +} +warm_static() { + local base="$1" f n + for f in /data/static/*; do + case "$f" in *.br|*.gz) continue ;; esac + [ -f "$f" ] || continue + n="${f##*/}" + curl -sk --max-time 5 -H 'Accept-Encoding: br, gzip' "$base/static/$n" -o /dev/null 2>/dev/null || true + done +} +if [ -d /data/static ]; then + wait_ready https://localhost:8443/pipeline || true + wait_ready https://localhost:8081/pipeline || true + warm_static https://localhost:8443 + warm_static https://localhost:8081 +fi + shutdown() { trap - TERM INT kill -TERM "$MAIN_PID" "$H1_PID" 2>/dev/null || true From ce41ce57ca153776a4fce5f41528976328da9fe1 Mon Sep 17 00:00:00 2001 From: hzq Date: Mon, 16 Nov 2026 00:58:35 +0800 Subject: [PATCH 57/89] Add sleep 3s --- frameworks/paozhu/src/entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frameworks/paozhu/src/entrypoint.sh b/frameworks/paozhu/src/entrypoint.sh index b5be70e7d5..0ac141972c 100644 --- a/frameworks/paozhu/src/entrypoint.sh +++ b/frameworks/paozhu/src/entrypoint.sh @@ -99,6 +99,11 @@ warm_static() { curl -sk --max-time 5 -H 'Accept-Encoding: br, gzip' "$base/static/$n" -o /dev/null 2>/dev/null || true done } +# Give the two /server processes time to finish startup (dataset parse, +# static cache dir setup, first TLS handshakes) before any probe or pre-warm +# request goes out. Without this an early request can race that setup and take +# the process down, which wait -n then turns into a full two-process shutdown. +sleep 3 if [ -d /data/static ]; then wait_ready https://localhost:8443/pipeline || true wait_ready https://localhost:8081/pipeline || true From ce8785345ff34108c89ef0c059a5b0e3e8b736be Mon Sep 17 00:00:00 2001 From: hzq Date: Mon, 16 Nov 2026 01:03:30 +0800 Subject: [PATCH 58/89] Add sleep 3s --- frameworks/paozhu/src/entrypoint.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/frameworks/paozhu/src/entrypoint.sh b/frameworks/paozhu/src/entrypoint.sh index 0ac141972c..042a075774 100644 --- a/frameworks/paozhu/src/entrypoint.sh +++ b/frameworks/paozhu/src/entrypoint.sh @@ -104,12 +104,14 @@ warm_static() { # request goes out. Without this an early request can race that setup and take # the process down, which wait -n then turns into a full two-process shutdown. sleep 3 -if [ -d /data/static ]; then - wait_ready https://localhost:8443/pipeline || true - wait_ready https://localhost:8081/pipeline || true - warm_static https://localhost:8443 - warm_static https://localhost:8081 -fi +# TEMP DIAGNOSTIC: pre-warm disabled to check whether it is what kills the +# process. Re-enable once the root cause is confirmed. +#if [ -d /data/static ]; then +# wait_ready https://localhost:8443/pipeline || true +# wait_ready https://localhost:8081/pipeline || true +# warm_static https://localhost:8443 +# warm_static https://localhost:8081 +#fi shutdown() { trap - TERM INT From 98b3e06b853386cfe46483d5bb553dc07d6fcee6 Mon Sep 17 00:00:00 2001 From: hzq Date: Mon, 16 Nov 2026 01:23:52 +0800 Subject: [PATCH 59/89] Fix curl --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/src/entrypoint.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index cb3ef08990..aa364aa349 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=414a598e5a0a539016e855a74c93dd590e98e039 +ARG PAOZHU_REF=457a49b69f3d514a247599c6e8952edd64c382e2 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/src/entrypoint.sh b/frameworks/paozhu/src/entrypoint.sh index 042a075774..ba302152df 100644 --- a/frameworks/paozhu/src/entrypoint.sh +++ b/frameworks/paozhu/src/entrypoint.sh @@ -106,12 +106,12 @@ warm_static() { sleep 3 # TEMP DIAGNOSTIC: pre-warm disabled to check whether it is what kills the # process. Re-enable once the root cause is confirmed. -#if [ -d /data/static ]; then -# wait_ready https://localhost:8443/pipeline || true -# wait_ready https://localhost:8081/pipeline || true -# warm_static https://localhost:8443 -# warm_static https://localhost:8081 -#fi +if [ -d /data/static ]; then + wait_ready https://localhost:8443/pipeline || true + wait_ready https://localhost:8081/pipeline || true + warm_static https://localhost:8443 + warm_static https://localhost:8081 +fi shutdown() { trap - TERM INT From a73b1a088d5edb34d072c99d72dd37eada81028e Mon Sep 17 00:00:00 2001 From: hzq Date: Mon, 16 Nov 2026 01:44:50 +0800 Subject: [PATCH 60/89] Add static tls --- frameworks/paozhu/meta.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/paozhu/meta.json b/frameworks/paozhu/meta.json index cd239ef99d..2088c1c9e3 100644 --- a/frameworks/paozhu/meta.json +++ b/frameworks/paozhu/meta.json @@ -10,7 +10,7 @@ "response": true }, "engine": "paozhu", - "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /echo, /json/{count}?m={multiplier}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, /echo returns the raw request body byte-for-byte, and the DB routes use paozhu's own async Postgres driver. /static/* is served by the framework's native static path from the mounted /data/static (wwwpath=/data) with an on-disk compression cache pre-warmed at startup. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and 8gbit and whose cleartext :8082 listener serves h2c prior-knowledge for baseline-h2c and json-h2c.", + "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /echo, /json/{count}?m={multiplier}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, /echo returns the raw request body byte-for-byte, and the DB routes use paozhu's own async Postgres driver. /static/* is served by the framework's native static path from the mounted /data/static (wwwpath=/data) with an on-disk compression cache pre-warmed at startup. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls, 8gbit and static-tls and whose cleartext :8082 listener serves h2c prior-knowledge for baseline-h2c and json-h2c.", "repo": "https://github.com/hggq/paozhu", "enabled": true, "tests": [ @@ -22,6 +22,7 @@ "8gbit", "baseline-h2", "static-h2", + "static-tls", "baseline-h2c", "async-db", "fortunes", From a1357810032233398c9ec2610f2e570c54ed1693 Mon Sep 17 00:00:00 2001 From: hzq Date: Mon, 16 Nov 2026 08:27:16 +0800 Subject: [PATCH 61/89] Reset /static/:filename --- .../paozhu/src/controller/src/arena.cpp | 87 ++++++++++++++++++- frameworks/paozhu/src/entrypoint.sh | 9 +- 2 files changed, 86 insertions(+), 10 deletions(-) diff --git a/frameworks/paozhu/src/controller/src/arena.cpp b/frameworks/paozhu/src/controller/src/arena.cpp index 55987bad31..c691848f9f 100644 --- a/frameworks/paozhu/src/controller/src/arena.cpp +++ b/frameworks/paozhu/src/controller/src/arena.cpp @@ -4,6 +4,8 @@ #include #include +#include + #include #include #include @@ -17,9 +19,9 @@ // // Routes are picked up by paozhu_pre at build time: every //@urlpath(...) // annotation registers the function that follows it. Path parameters must be -// the last segment, so /json/:count and /delay/:ms are registered as the -// fixed prefixes /json and /delay with a parameter-name table. /static/* is -// served by the framework's native static path (wwwpath=/data), not a route. +// the last segment, so /json/:count, /static/:filename and /delay/:ms are +// registered as the fixed prefixes /json, /static and /delay with a +// parameter-name table. namespace { @@ -457,6 +459,42 @@ std::string raw_body(const std::shared_ptr &peer) return body; } +const char *mime_of(const std::string &filename) +{ + const std::size_t dot = filename.rfind('.'); + if (dot == std::string::npos) + { + return "application/octet-stream"; + } + const std::string ext = filename.substr(dot + 1); + if (ext == "css") return "text/css"; + if (ext == "js") return "application/javascript"; + if (ext == "html") return "text/html"; + if (ext == "json") return "application/json"; + if (ext == "svg") return "image/svg+xml"; + if (ext == "webp") return "image/webp"; + if (ext == "woff2") return "font/woff2"; + return "application/octet-stream"; +} + +bool safe_filename(const std::string &name) +{ + if (name.empty() || name.size() > 128 || name.find("..") != std::string::npos) + { + return false; + } + for (char c : name) + { + const bool allowed = (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || + (c >= '0' && c <= '9') || c == '.' || c == '-' || c == '_'; + if (!allowed) + { + return false; + } + } + return true; +} + } // namespace namespace http @@ -538,6 +576,49 @@ asio::awaitable arena_json(std::shared_ptr peer) co_return ""; } +//@urlpath(null,static/:filename) +asio::awaitable arena_static(std::shared_ptr peer) +{ + const std::string filename = peer->get["filename"].to_string(); + struct stat st {}; + bool stat_ok = false; + if (safe_filename(filename)) + { + // stat + read on every request: the validation suite replaces a mounted + // file (same length, new bytes, possibly within the same mtime second) + // and expects the next response to carry the new bytes, so no resident + // body cache — a freshness stamp keyed on mtime/size cannot see that. + stat_ok = ::stat(("/data/static/" + filename).c_str(), &st) == 0 && + (st.st_mode & S_IFREG) != 0; + } + if (!stat_ok) + { + peer->status(404); + peer->type("text/plain"); + peer->output = "Not Found"; + co_return ""; + } + + // Size the body once, then read straight into it: no per-byte iterator + // and no second copy. Short read (file shrank between stat and read): + // keep what arrived. A zero-size file is a valid body, not a miss. + std::ifstream in("/data/static/" + filename, std::ios::binary); + if (!in.is_open()) + { + peer->status(404); + peer->type("text/plain"); + peer->output = "Not Found"; + co_return ""; + } + std::string body; + body.resize(static_cast(st.st_size)); + in.read(&body[0], static_cast(st.st_size)); + body.resize(static_cast(in.gcount())); + peer->output = std::move(body); + peer->type(mime_of(filename)); + co_return ""; +} + //@urlpath(null,delay/:ms) asio::awaitable arena_delay(std::shared_ptr peer) { diff --git a/frameworks/paozhu/src/entrypoint.sh b/frameworks/paozhu/src/entrypoint.sh index ba302152df..fffa526265 100644 --- a/frameworks/paozhu/src/entrypoint.sh +++ b/frameworks/paozhu/src/entrypoint.sh @@ -103,15 +103,10 @@ warm_static() { # static cache dir setup, first TLS handshakes) before any probe or pre-warm # request goes out. Without this an early request can race that setup and take # the process down, which wait -n then turns into a full two-process shutdown. -sleep 3 + # TEMP DIAGNOSTIC: pre-warm disabled to check whether it is what kills the # process. Re-enable once the root cause is confirmed. -if [ -d /data/static ]; then - wait_ready https://localhost:8443/pipeline || true - wait_ready https://localhost:8081/pipeline || true - warm_static https://localhost:8443 - warm_static https://localhost:8081 -fi + shutdown() { trap - TERM INT From 250fa32df0afd013dbf206116db263995bcf4a69 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 16 Nov 2026 00:52:46 +0000 Subject: [PATCH 62/89] Benchmark results: paozhu [skip ci] --- site/data/frameworks.json | 2 +- site/data/results/paozhu.json | 470 ++++++++++-------- site/static/logs/8gbit/512/paozhu.log | 14 + site/static/logs/async/32000/paozhu.log | 10 +- site/static/logs/baseline-h2/1024/paozhu.log | 10 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline-h2c/1024/paozhu.log | 10 +- site/static/logs/baseline-h2c/256/paozhu.log | 4 +- site/static/logs/baseline-h2c/4096/paozhu.log | 6 +- site/static/logs/baseline/4096/paozhu.log | 2 +- .../logs/echo-ws-limited/512/paozhu.log | 8 +- .../logs/echo-ws-pipeline/16384/paozhu.log | 8 +- .../logs/echo-ws-pipeline/512/paozhu.log | 8 +- site/static/logs/echo-ws/16384/paozhu.log | 8 +- site/static/logs/echo-ws/4096/paozhu.log | 8 +- site/static/logs/echo-ws/512/paozhu.log | 4 +- site/static/logs/fortunes/1024/paozhu.log | 12 +- site/static/logs/json-comp/16384/paozhu.log | 2 +- site/static/logs/json-comp/4096/paozhu.log | 8 +- site/static/logs/json-h2c/1024/paozhu.log | 4 +- site/static/logs/json-h2c/4096/paozhu.log | 8 +- site/static/logs/json-tls/4096/paozhu.log | 10 +- site/static/logs/latency-10k/1024/paozhu.log | 6 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 8 +- site/static/logs/limited-conn/4096/paozhu.log | 6 +- site/static/logs/pipelined/4096/paozhu.log | 2 +- site/static/logs/static-h2/1024/paozhu.log | 8 +- site/static/logs/static-h2/256/paozhu.log | 8 +- site/static/logs/static-tls/1024/paozhu.log | 14 + 29 files changed, 374 insertions(+), 302 deletions(-) create mode 100644 site/static/logs/8gbit/512/paozhu.log create mode 100644 site/static/logs/static-tls/1024/paozhu.log diff --git a/site/data/frameworks.json b/site/data/frameworks.json index 0407fdc158..74aab155f8 100644 --- a/site/data/frameworks.json +++ b/site/data/frameworks.json @@ -1870,7 +1870,7 @@ }, "paozhu": { "dir": "paozhu", - "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /json/{count}?m={multiplier}, /static/{filename}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, static files are read from /data/static with bodies cached in-process via pzcache (revalidated by a per-request stat of mtime+size), and the DB routes use paozhu's own async Postgres driver. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls and whose cleartext :8082 listener serves h2c prior-knowledge for baseline-h2c and json-h2c.", + "description": "Paozhu C++20 web framework on standalone Asio, built from the upstream mini_project.sh clean scaffold. Annotated controller routes answer /baseline11, /baseline2, /pipeline, /echo, /json/{count}?m={multiplier}, /delay/{ms}, /async-db?min=&max=&limit= and /fortunes; the dataset is parsed once at startup and serialized per request, /echo returns the raw request body byte-for-byte, and the DB routes use paozhu's own async Postgres driver. /static/* is served by the framework's native static path from the mounted /data/static (wwwpath=/data) with an on-disk compression cache pre-warmed at startup. Two server instances share the image: plaintext HTTP/1.1 on :8080 and ALPN h2 on :8443, plus a second instance whose TLS listener on :8081 advertises only http/1.1 for json-tls, 8gbit and static-tls and whose cleartext :8082 listener serves h2c prior-knowledge for baseline-h2c and json-h2c.", "repo": "https://github.com/hggq/paozhu", "type": "experimental", "engine": "paozhu", diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 055bfe741d..f392a967f5 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -1,22 +1,47 @@ { "framework": "paozhu", "results": { + "8gbit-512": { + "framework": "paozhu", + "language": "C++", + "rps": 49077, + "avg_latency": "93.7us", + "p99_latency": "138.0us", + "cpu": "278.4%", + "memory": "127MiB", + "connections": 512, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "508.54MB/s", + "input_bw": "479.27MB/s", + "reconnects": 0, + "status_2xx": 245441, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0, + "cpu_usec": 15348466, + "cpu_per_req_us": 62.5342, + "target_rate": 50000, + "rate_ratio": 0.9815, + "p99_9_latency": "376.0us" + }, "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1674410, - "avg_latency": "17.56ms", - "p99_latency": "27.30ms", - "cpu": "5927.2%", - "memory": "571MiB", + "rps": 1688255, + "avg_latency": "17.41ms", + "p99_latency": "28.00ms", + "cpu": "5828.6%", + "memory": "567MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "169.24MB/s", - "input_bw": "76.65MB/s", + "bandwidth": "170.64MB/s", + "input_bw": "77.28MB/s", "reconnects": 0, - "status_2xx": 16744105, + "status_2xx": 16882551, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -24,19 +49,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 149278, - "avg_latency": "6.32ms", - "p99_latency": "84.50ms", - "cpu": "3270.1%", - "memory": "125MiB", + "rps": 151724, + "avg_latency": "6.13ms", + "p99_latency": "25.10ms", + "cpu": "3482.1%", + "memory": "127MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "575.63MB/s", - "input_bw": "9.97MB/s", - "reconnects": 59529, - "status_2xx": 1492784, + "bandwidth": "584.78MB/s", + "input_bw": "10.13MB/s", + "reconnects": 60567, + "status_2xx": 1517249, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -44,19 +69,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2624796, - "avg_latency": "1.56ms", - "p99_latency": "8.79ms", - "cpu": "6362.3%", - "memory": "136MiB", + "rps": 2606521, + "avg_latency": "1.57ms", + "p99_latency": "9.54ms", + "cpu": "6371.1%", + "memory": "137MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "265.27MB/s", - "input_bw": "202.76MB/s", + "bandwidth": "263.43MB/s", + "input_bw": "201.35MB/s", "reconnects": 0, - "status_2xx": 13123983, + "status_2xx": 13032608, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -64,18 +89,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 429073, - "avg_latency": "225.98ms", - "p99_latency": "2.12s", - "cpu": "4174.0%", + "rps": 433230, + "avg_latency": "223.81ms", + "p99_latency": "2.16s", + "cpu": "4092.1%", "memory": "2.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.43MB/s", + "bandwidth": "19.66MB/s", "reconnects": 0, - "status_2xx": 2166823, + "status_2xx": 2192147, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -83,18 +108,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 446642, - "avg_latency": "56.27ms", - "p99_latency": "404.80ms", - "cpu": "4289.9%", - "memory": "566MiB", + "rps": 463473, + "avg_latency": "54.13ms", + "p99_latency": "338.76ms", + "cpu": "4389.7%", + "memory": "567MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.14MB/s", + "bandwidth": "20.86MB/s", "reconnects": 0, - "status_2xx": 2246610, + "status_2xx": 2326637, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -102,18 +127,18 @@ "baseline-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 435521, - "avg_latency": "226.66ms", - "p99_latency": "1.89s", - "cpu": "3688.2%", + "rps": 440831, + "avg_latency": "223.82ms", + "p99_latency": "1.92s", + "cpu": "3670.6%", "memory": "1.9GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.72MB/s", + "bandwidth": "20.00MB/s", "reconnects": 0, - "status_2xx": 2199383, + "status_2xx": 2230607, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -121,18 +146,18 @@ "baseline-h2c-256": { "framework": "paozhu", "language": "C++", - "rps": 478664, - "avg_latency": "52.81ms", - "p99_latency": "412.71ms", - "cpu": "3837.1%", - "memory": "544MiB", + "rps": 483332, + "avg_latency": "52.21ms", + "p99_latency": "403.83ms", + "cpu": "3843.7%", + "memory": "542MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.59MB/s", + "bandwidth": "21.80MB/s", "reconnects": 0, - "status_2xx": 2407683, + "status_2xx": 2431161, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -140,18 +165,18 @@ "baseline-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 339301, - "avg_latency": "1.04s", - "p99_latency": "4.94s", - "cpu": "3393.7%", - "memory": "7.7GiB", + "rps": 354536, + "avg_latency": "994.13ms", + "p99_latency": "4.97s", + "cpu": "3537.8%", + "memory": "7.6GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "15.58MB/s", + "bandwidth": "16.21MB/s", "reconnects": 0, - "status_2xx": 1733830, + "status_2xx": 1804590, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -159,18 +184,18 @@ "echo-ws-16384": { "framework": "paozhu", "language": "C++", - "rps": 2779637, - "avg_latency": "4.39ms", - "p99_latency": "15.40ms", - "cpu": "6067.6%", + "rps": 2802137, + "avg_latency": "4.29ms", + "p99_latency": "15.30ms", + "cpu": "6163.4%", "memory": "425MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.04MB/s", + "bandwidth": "19.19MB/s", "reconnects": 0, - "status_2xx": 13898186, + "status_2xx": 14010685, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -178,18 +203,18 @@ "echo-ws-4096": { "framework": "paozhu", "language": "C++", - "rps": 3204141, + "rps": 3186731, "avg_latency": "1.24ms", - "p99_latency": "6.75ms", - "cpu": "6323.3%", - "memory": "146MiB", + "p99_latency": "6.74ms", + "cpu": "6322.6%", + "memory": "147MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.48MB/s", + "bandwidth": "21.37MB/s", "reconnects": 0, - "status_2xx": 16020706, + "status_2xx": 15933655, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -197,18 +222,18 @@ "echo-ws-512": { "framework": "paozhu", "language": "C++", - "rps": 3142065, - "avg_latency": "162us", - "p99_latency": "3.23ms", - "cpu": "6511.0%", - "memory": "74MiB", + "rps": 3119561, + "avg_latency": "163us", + "p99_latency": "3.22ms", + "cpu": "6526.2%", + "memory": "75MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.97MB/s", + "bandwidth": "20.82MB/s", "reconnects": 0, - "status_2xx": 15710326, + "status_2xx": 15597807, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -216,18 +241,18 @@ "echo-ws-limited-4096": { "framework": "paozhu", "language": "C++", - "rps": 689231, + "rps": 684547, "avg_latency": "45us", - "p99_latency": "107us", - "cpu": "2610.9%", - "memory": "104MiB", + "p99_latency": "112us", + "cpu": "2659.0%", + "memory": "84MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "14.85MB/s", - "reconnects": 344614, - "status_2xx": 3446155, + "bandwidth": "14.75MB/s", + "reconnects": 342274, + "status_2xx": 3422736, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -235,18 +260,18 @@ "echo-ws-limited-512": { "framework": "paozhu", "language": "C++", - "rps": 688306, + "rps": 692977, "avg_latency": "43us", "p99_latency": "96us", - "cpu": "2720.6%", - "memory": "69MiB", + "cpu": "2696.4%", + "memory": "68MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "14.83MB/s", - "reconnects": 344156, - "status_2xx": 3441530, + "bandwidth": "14.93MB/s", + "reconnects": 346495, + "status_2xx": 3464887, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -254,18 +279,18 @@ "echo-ws-pipeline-16384": { "framework": "paozhu", "language": "C++", - "rps": 3138203, - "avg_latency": "60.41ms", - "p99_latency": "190.20ms", - "cpu": "6145.5%", - "memory": "440MiB", + "rps": 3139989, + "avg_latency": "59.29ms", + "p99_latency": "179.70ms", + "cpu": "6215.8%", + "memory": "443MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "21.43MB/s", + "bandwidth": "21.44MB/s", "reconnects": 0, - "status_2xx": 15691016, + "status_2xx": 15699946, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -273,18 +298,18 @@ "echo-ws-pipeline-4096": { "framework": "paozhu", "language": "C++", - "rps": 3583297, - "avg_latency": "17.73ms", - "p99_latency": "36.40ms", - "cpu": "6327.6%", - "memory": "154MiB", + "rps": 3592229, + "avg_latency": "17.63ms", + "p99_latency": "36.30ms", + "cpu": "6344.2%", + "memory": "153MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "24.02MB/s", + "bandwidth": "24.07MB/s", "reconnects": 0, - "status_2xx": 17916488, + "status_2xx": 17961148, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -292,18 +317,18 @@ "echo-ws-pipeline-512": { "framework": "paozhu", "language": "C++", - "rps": 3628596, - "avg_latency": "2.26ms", - "p99_latency": "10.10ms", - "cpu": "6524.2%", + "rps": 3759656, + "avg_latency": "2.18ms", + "p99_latency": "10.00ms", + "cpu": "6484.1%", "memory": "70MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "24.21MB/s", + "bandwidth": "25.09MB/s", "reconnects": 0, - "status_2xx": 18142982, + "status_2xx": 18798280, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -311,18 +336,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 64082, - "avg_latency": "14.79ms", - "p99_latency": "91.90ms", - "cpu": "3439.2%", - "memory": "157MiB", + "rps": 62852, + "avg_latency": "15.14ms", + "p99_latency": "32.90ms", + "cpu": "3553.8%", + "memory": "156MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.48GB/s", + "bandwidth": "1.45GB/s", "reconnects": 0, - "status_2xx": 320410, + "status_2xx": 314264, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -330,19 +355,19 @@ "json-comp-16384": { "framework": "paozhu", "language": "C++", - "rps": 682445, - "avg_latency": "7.35ms", - "p99_latency": "153.60ms", - "cpu": "6094.6%", - "memory": "177MiB", + "rps": 690669, + "avg_latency": "6.90ms", + "p99_latency": "151.60ms", + "cpu": "6114.7%", + "memory": "158MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.06GB/s", - "input_bw": "50.76MB/s", - "reconnects": 136149, - "status_2xx": 3412229, + "bandwidth": "1.07GB/s", + "input_bw": "51.38MB/s", + "reconnects": 138067, + "status_2xx": 3453349, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -350,19 +375,19 @@ "json-comp-4096": { "framework": "paozhu", "language": "C++", - "rps": 703535, - "avg_latency": "5.75ms", - "p99_latency": "143.60ms", - "cpu": "6291.9%", - "memory": "150MiB", + "rps": 720147, + "avg_latency": "5.62ms", + "p99_latency": "138.30ms", + "cpu": "6425.7%", + "memory": "136MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.09GB/s", - "input_bw": "52.33MB/s", - "reconnects": 140949, - "status_2xx": 3517677, + "bandwidth": "1.11GB/s", + "input_bw": "53.57MB/s", + "reconnects": 143918, + "status_2xx": 3600738, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -370,18 +395,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 416480, - "avg_latency": "76.68ms", - "p99_latency": "184.91ms", - "cpu": "4332.5%", + "rps": 409511, + "avg_latency": "78.39ms", + "p99_latency": "192.34ms", + "cpu": "4212.0%", "memory": "1.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.40GB/s", + "bandwidth": "1.38GB/s", "reconnects": 0, - "status_2xx": 2103226, + "status_2xx": 2068031, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -389,18 +414,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 292282, - "avg_latency": "419.10ms", - "p99_latency": "1.43s", - "cpu": "3519.8%", - "memory": "4.6GiB", + "rps": 384766, + "avg_latency": "320.86ms", + "p99_latency": "1.10s", + "cpu": "4066.8%", + "memory": "4.7GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1009.03MB/s", + "bandwidth": "1.30GB/s", "reconnects": 0, - "status_2xx": 1487720, + "status_2xx": 1962309, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -408,18 +433,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1057010, - "avg_latency": "4.72ms", - "p99_latency": "235.16ms", - "cpu": "6141.2%", + "rps": 1063602, + "avg_latency": "4.15ms", + "p99_latency": "193.61ms", + "cpu": "6168.5%", "memory": "450MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.58GB", + "bandwidth": "3.60GB", "reconnects": 0, - "status_2xx": 5390559, + "status_2xx": 5424723, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -428,90 +453,90 @@ "framework": "paozhu", "language": "C++", "rps": 9981, - "avg_latency": "79.8us", - "p99_latency": "109.0us", - "cpu": "29.2%", - "memory": "71MiB", + "avg_latency": "81.5us", + "p99_latency": "105.0us", + "cpu": "27.8%", + "memory": "70MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199639, + "status_2xx": 199636, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 6108401, - "cpu_per_req_us": 30.5972, + "cpu_usec": 5849829, + "cpu_per_req_us": 29.3025, "target_rate": 10000, "rate_ratio": 0.9981, - "p99_9_latency": "2173.0us" + "p99_9_latency": "2459.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997814, - "avg_latency": "117.8us", - "p99_latency": "189.0us", - "cpu": "3574.7%", - "memory": "77MiB", + "rps": 998026, + "avg_latency": "106.6us", + "p99_latency": "191.0us", + "cpu": "3722.7%", + "memory": "76MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.77MB/s", + "bandwidth": "104.79MB/s", "reconnects": 0, - "status_2xx": 19960192, + "status_2xx": 19963953, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 644705552, - "cpu_per_req_us": 32.2996, + "cpu_usec": 667747234, + "cpu_per_req_us": 33.4476, "target_rate": 1000000, - "rate_ratio": 0.9978, - "p99_9_latency": "8900.0us" + "rate_ratio": 0.998, + "p99_9_latency": "1468.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 372776, - "avg_latency": "2517809.9us", - "p99_latency": "5314560.0us", - "cpu": "808.6%", - "memory": "67MiB", + "rps": 375287, + "avg_latency": "2469538.7us", + "p99_latency": "4978688.0us", + "cpu": "808.0%", + "memory": "68MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "39.14MB/s", + "bandwidth": "39.41MB/s", "reconnects": 0, - "status_2xx": 7458426, + "status_2xx": 7508562, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159657298, - "cpu_per_req_us": 21.4063, + "cpu_usec": 159600165, + "cpu_per_req_us": 21.2558, "target_rate": 500000, - "rate_ratio": 0.7456, - "p99_9_latency": "5621760.0us" + "rate_ratio": 0.7506, + "p99_9_latency": "5158912.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 679575, - "avg_latency": "6.00ms", - "p99_latency": "60.60ms", - "cpu": "2709.0%", - "memory": "77MiB", + "rps": 666895, + "avg_latency": "6.12ms", + "p99_latency": "61.70ms", + "cpu": "2702.4%", + "memory": "74MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "68.67MB/s", - "input_bw": "52.50MB/s", - "reconnects": 339789, - "status_2xx": 3397877, + "bandwidth": "67.39MB/s", + "input_bw": "51.52MB/s", + "reconnects": 333441, + "status_2xx": 3334479, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -519,18 +544,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3573166, - "avg_latency": "18.36ms", - "p99_latency": "45.20ms", - "cpu": "6259.9%", + "rps": 3607977, + "avg_latency": "18.21ms", + "p99_latency": "38.10ms", + "cpu": "6283.2%", "memory": "128MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "360.99MB/s", + "bandwidth": "364.63MB/s", "reconnects": 0, - "status_2xx": 17865830, + "status_2xx": 18039889, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -538,18 +563,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 107551, - "avg_latency": "286.41ms", - "p99_latency": "3.58s", - "cpu": "4146.3%", - "memory": "7.1GiB", + "rps": 3031, + "avg_latency": "2.08s", + "p99_latency": "4.98s", + "cpu": "260.0%", + "memory": "2.1GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "6.43GB/s", + "bandwidth": "46.95MB/s", "reconnects": 0, - "status_2xx": 544211, + "status_2xx": 15339, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -557,18 +582,37 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 110864, - "avg_latency": "72.57ms", - "p99_latency": "970.28ms", - "cpu": "4683.8%", - "memory": "2.0GiB", + "rps": 5771, + "avg_latency": "1.16s", + "p99_latency": "4.11s", + "cpu": "225.5%", + "memory": "1.4GiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "6.62GB/s", + "bandwidth": "90.32MB/s", + "reconnects": 0, + "status_2xx": 29029, + "status_3xx": 0, + "status_4xx": 0, + "status_5xx": 0 + }, + "static-tls-1024": { + "framework": "paozhu", + "language": "C++", + "rps": 27090, + "avg_latency": "39.78ms", + "p99_latency": "192.74ms", + "cpu": "582.2%", + "memory": "1.5GiB", + "connections": 1024, + "threads": 64, + "duration": "5s", + "pipeline": 1, + "bandwidth": "426.82MB", "reconnects": 0, - "status_2xx": 558757, + "status_2xx": 138159, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/8gbit/512/paozhu.log b/site/static/logs/8gbit/512/paozhu.log new file mode 100644 index 0000000000..594675f4e1 --- /dev/null +++ b/site/static/logs/8gbit/512/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index ae6badc558..1c3cf0c610 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabledwebsockets.conf + not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index ae6badc558..4364ec84c9 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled[mqtt_client] +/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 3e633a520f..ee3d5739fa 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] [websockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [sockets] /app/conf/h1/mqtt.conf/app/conf/main/sockets.conf not found or parse fail, mqtt client disabled not found or parse fail, socket client disabled + [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/1024/paozhu.log b/site/static/logs/baseline-h2c/1024/paozhu.log index ccc107e05d..ae6badc558 100644 --- a/site/static/logs/baseline-h2c/1024/paozhu.log +++ b/site/static/logs/baseline-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/256/paozhu.log b/site/static/logs/baseline-h2c/256/paozhu.log index 7507d1b226..496f177217 100644 --- a/site/static/logs/baseline-h2c/256/paozhu.log +++ b/site/static/logs/baseline-h2c/256/paozhu.log @@ -2,10 +2,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/4096/paozhu.log b/site/static/logs/baseline-h2c/4096/paozhu.log index ae6badc558..ce2738ddee 100644 --- a/site/static/logs/baseline-h2c/4096/paozhu.log +++ b/site/static/logs/baseline-h2c/4096/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index f4f72854a0..7507d1b226 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,6 +1,6 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled diff --git a/site/static/logs/echo-ws-limited/512/paozhu.log b/site/static/logs/echo-ws-limited/512/paozhu.log index ae6badc558..a6a559a3cc 100644 --- a/site/static/logs/echo-ws-limited/512/paozhu.log +++ b/site/static/logs/echo-ws-limited/512/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] [websockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +websockets.conf not found or parse fail, websocket client disabled +[sockets] [mqtt_client] /app/conf/main/sockets.conf/app/conf/h1/mqtt.conf not found or parse fail, socket client disabled not found or parse fail, mqtt client disabled + [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/16384/paozhu.log b/site/static/logs/echo-ws-pipeline/16384/paozhu.log index 8eb0722e8a..844e61d413 100644 --- a/site/static/logs/echo-ws-pipeline/16384/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/512/paozhu.log b/site/static/logs/echo-ws-pipeline/512/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/echo-ws-pipeline/512/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/16384/paozhu.log b/site/static/logs/echo-ws/16384/paozhu.log index 4fcf3043cf..7a9e321588 100644 --- a/site/static/logs/echo-ws/16384/paozhu.log +++ b/site/static/logs/echo-ws/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin - not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/4096/paozhu.log b/site/static/logs/echo-ws/4096/paozhu.log index a781d4c2fa..ae6badc558 100644 --- a/site/static/logs/echo-ws/4096/paozhu.log +++ b/site/static/logs/echo-ws/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/512/paozhu.log b/site/static/logs/echo-ws/512/paozhu.log index 8eb0722e8a..ad34f68a48 100644 --- a/site/static/logs/echo-ws/512/paozhu.log +++ b/site/static/logs/echo-ws/512/paozhu.log @@ -2,9 +2,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] [mqtt_client] /app/conf/main/sockets.conf/app/conf/h1/mqtt.conf not found or parse fail, socket client disabled not found or parse fail, mqtt client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index 6d48f8072a..e899fd452b 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled[sockets] -/app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] +/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/16384/paozhu.log b/site/static/logs/json-comp/16384/paozhu.log index 61672439db..ae6badc558 100644 --- a/site/static/logs/json-comp/16384/paozhu.log +++ b/site/static/logs/json-comp/16384/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-comp/4096/paozhu.log b/site/static/logs/json-comp/4096/paozhu.log index 7a9e321588..594675f4e1 100644 --- a/site/static/logs/json-comp/4096/paozhu.log +++ b/site/static/logs/json-comp/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index f0116a21af..a240b8d68b 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index ae6badc558..4a873d2077 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index f67729833d..ae6badc558 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 496f177217..ae6badc558 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index 61672439db..594675f4e1 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index 594675f4e1..e71987ebaf 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-tls/1024/paozhu.log b/site/static/logs/static-tls/1024/paozhu.log new file mode 100644 index 0000000000..68964ad808 --- /dev/null +++ b/site/static/logs/static-tls/1024/paozhu.log @@ -0,0 +1,14 @@ +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients From 4331a971e10988858edeb72ddcfe0bc760372fa1 Mon Sep 17 00:00:00 2001 From: hzq Date: Mon, 16 Nov 2026 09:41:34 +0800 Subject: [PATCH 63/89] Fix compress --- frameworks/paozhu/Dockerfile | 2 +- .../paozhu/src/controller/src/arena.cpp | 60 +++++++++++++++---- 2 files changed, 50 insertions(+), 12 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index aa364aa349..0cec234118 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=457a49b69f3d514a247599c6e8952edd64c382e2 +ARG PAOZHU_REF=294bf769afee96f57a3c346650a48df807bf49d7 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/src/controller/src/arena.cpp b/frameworks/paozhu/src/controller/src/arena.cpp index c691848f9f..212381f9b1 100644 --- a/frameworks/paozhu/src/controller/src/arena.cpp +++ b/frameworks/paozhu/src/controller/src/arena.cpp @@ -580,16 +580,49 @@ asio::awaitable arena_json(std::shared_ptr peer) asio::awaitable arena_static(std::shared_ptr peer) { const std::string filename = peer->get["filename"].to_string(); + if (!safe_filename(filename)) + { + peer->status(404); + peer->type("text/plain"); + peer->output = "Not Found"; + co_return ""; + } + + // The Accept-Encoding header decides whether compression is wanted at all: + // state.br / state.gzip are set only for codings the client accepts (q=0 is + // rejected upstream). Prefer brotli, then gzip; each twin is used only when + // the client accepts that coding AND the twin exists. Otherwise serve the + // identity file. Reading per request (no resident cache) keeps the validation + // suite's mid-run replacement visible and costs no q11 on the request path; + // binary assets (woff2/webp) ship no twin and stay identity. + std::string path = "/data/static/" + filename; + unsigned char enc = 0; struct stat st {}; bool stat_ok = false; - if (safe_filename(filename)) + if (peer->state.br) + { + const std::string twin = path + ".br"; + if (::stat(twin.c_str(), &st) == 0 && (st.st_mode & S_IFREG) != 0) + { + path = twin; + enc = 2; + stat_ok = true; + } + } + if (!stat_ok && peer->state.gzip) { - // stat + read on every request: the validation suite replaces a mounted - // file (same length, new bytes, possibly within the same mtime second) - // and expects the next response to carry the new bytes, so no resident - // body cache — a freshness stamp keyed on mtime/size cannot see that. - stat_ok = ::stat(("/data/static/" + filename).c_str(), &st) == 0 && - (st.st_mode & S_IFREG) != 0; + const std::string twin = path + ".gz"; + if (::stat(twin.c_str(), &st) == 0 && (st.st_mode & S_IFREG) != 0) + { + path = twin; + enc = 1; + stat_ok = true; + } + } + if (!stat_ok) + { + enc = 0; + stat_ok = ::stat(path.c_str(), &st) == 0 && (st.st_mode & S_IFREG) != 0; } if (!stat_ok) { @@ -599,10 +632,9 @@ asio::awaitable arena_static(std::shared_ptr peer) co_return ""; } - // Size the body once, then read straight into it: no per-byte iterator - // and no second copy. Short read (file shrank between stat and read): - // keep what arrived. A zero-size file is a valid body, not a miss. - std::ifstream in("/data/static/" + filename, std::ios::binary); + // Size the body once, then read straight into it. Short read (file shrank + // between stat and read): keep what arrived. A zero-size file is valid. + std::ifstream in(path, std::ios::binary); if (!in.is_open()) { peer->status(404); @@ -614,8 +646,14 @@ asio::awaitable arena_static(std::shared_ptr peer) body.resize(static_cast(st.st_size)); in.read(&body[0], static_cast(st.st_size)); body.resize(static_cast(in.gcount())); + peer->output = std::move(body); + // Content-Type stays the original asset type; Content-Encoding (from compress) + // carries the coding. compress=1/2 tells the send layer the body is already + // compressed so it does not compress again; 0 leaves it identity. peer->type(mime_of(filename)); + peer->compress = enc; + peer->length(peer->output.size()); co_return ""; } From e13a89ff46448ce750295e6fc2be7f563a69f097 Mon Sep 17 00:00:00 2001 From: hzq Date: Mon, 16 Nov 2026 19:36:59 +0800 Subject: [PATCH 64/89] Fix static file to dynamic --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/README.md | 2 +- frameworks/paozhu/src/conf/server-h1.conf | 11 ++++--- frameworks/paozhu/src/conf/server.conf | 11 ++++--- frameworks/paozhu/src/entrypoint.sh | 36 ----------------------- 5 files changed, 12 insertions(+), 50 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 0cec234118..b53a216702 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=294bf769afee96f57a3c346650a48df807bf49d7 +ARG PAOZHU_REF=6b0945334a9b5c34f3cf1f9718c6797c07564380 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/README.md b/frameworks/paozhu/README.md index 2869b2cb93..5993104b3e 100644 --- a/frameworks/paozhu/README.md +++ b/frameworks/paozhu/README.md @@ -72,7 +72,7 @@ Registered through paozhu annotations; path parameters must be the final segment - Raw (non-form, non-JSON) POST bodies are spilled to a temp file only when they exceed `CONST_HTTP_RAW_POST_SIZE` (2 MB). At the current `d73100bd` pin a 2-byte `POST /baseline11` body therefore stays in `httppeer::rawcontent`, and `raw_body()` returns it without touching the disk; the temp-file branch only exists for oversized bodies. At `71305087` every raw POST body went to a file and `raw_body()` had to read and unlink it — which is why that branch is still there and why the earlier measurements include per-POST file I/O that the current pin does not. - Only the `[default]` site section is configured, so every `Host` / SNI falls back to site 0. - `usehtmlcache` is intentionally absent from both conf files; a present key enables the disk pre-check for dotted URLs. Because the key is absent the pre-check never runs, so it never competes with `/static/:filename` either way, and `BENCHMARK` compiling that pre-check out is a no-op for this entry. -- Static compression is not implemented: `arena_static` ignores `Accept-Encoding` and always returns the identity bytes (the pzcache body cache holds originals, not encoded variants). The rules make compression optional for `static-h2` and only measure it when the response carries a `Content-Encoding`, so nothing fails today. `data/static` ships `.br` and `.gz` twins next to every compressible original, and the `static-h2` h2load run does send `Accept-Encoding: br;q=1, gzip;q=0.8` — serving encoded variants would be the largest per-request byte reduction available, but it changes the bytes-per-request profile and is left out on purpose. +- Static compression is served by `arena_static` itself, not the framework: it honours `Accept-Encoding` (`peer->state.br` / `state.gzip`, q=0 rejected upstream), prefers brotli then gzip, and reads the matching `.br` / `.gz` twin from `/data/static` per request — no resident body cache, so the validation suite's mid-run file replacement stays visible. The precompressed body is sent with `peer->compress = 2` (br) / `1` (gzip), which tells the send layer to skip auto compression and only emit `Content-Encoding` + `Vary`; without an accepted coding or a twin it serves the identity file (`compress = 0`). Binary assets (woff2/webp) ship no twin and stay identity. The framework's own static compress cache is therefore unused: `static_file_compress_cache = 0` in both conf files, and the entrypoint no longer pre-warms it. - The two processes use separate `temppath` / `logpath` directories so they never race on scratch files. - `cothreadnum` in both conf files is a floor, not the worker count: upstream computes `max(cothreadnum, hardware_concurrency() + 4)`. Under the profile cpuset (`0-31,64-95`, 64 CPUs) each process runs about 68 io threads, not 8, and the second process contributes a second set that stays idle while the other port is being profiled. - `PAOZHU_REF` selects the upstream revision. The Dockerfile uses a direct `codeload.github.com` tarball URL: `github.com/.../archive/...` 302-redirects to codeload and that hop is blocked on some networks. diff --git a/frameworks/paozhu/src/conf/server-h1.conf b/frameworks/paozhu/src/conf/server-h1.conf index 4e88165caa..49bcb02e71 100644 --- a/frameworks/paozhu/src/conf/server-h1.conf +++ b/frameworks/paozhu/src/conf/server-h1.conf @@ -33,11 +33,10 @@ tmp_dh_file = dh4096.pem chain_crt_file = server.crt session_type = 1 -; /static/* is served by the framework's native static path: wwwpath=/data so -; the URL resolves to the mounted /data/static. The on-disk compress cache is -; pre-warmed by entrypoint.sh (one request per identity file) so steady-state -; serving hits the cache instead of recompressing on every request. -static_file_compress_cache = 1 +; /static/* is served by the arena_static controller, which reads the .br/.gz +; twins from /data/static and sends them with compress=1/2. The framework's +; own static compression is not used, so its on-disk cache stays off. +static_file_compress_cache = 0 ; Dead key at this pin: nothing in vendor/httpserver reads it. Kept for conf ; parity with upstream only. staticfile_cache_num = 0 @@ -55,7 +54,7 @@ controlsopath = ./module/controller ; Separate scratch dirs so the two processes never race on temp/log files. temppath = ./temp-h1 logpath = ./log-h1 -wwwpath = /data +wwwpath = ./www/default pluginspath = ./plugins libspath = ./libs diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index a371e56abd..819c2552f2 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -30,11 +30,10 @@ tmp_dh_file = dh4096.pem chain_crt_file = server.crt session_type = 1 -; /static/* is served by the framework's native static path: wwwpath=/data so -; the URL resolves to the mounted /data/static. The on-disk compress cache is -; pre-warmed by entrypoint.sh (one request per identity file) so steady-state -; serving hits the cache instead of recompressing on every request. -static_file_compress_cache = 1 +; /static/* is served by the arena_static controller, which reads the .br/.gz +; twins from /data/static and sends them with compress=1/2. The framework's +; own static compression is not used, so its on-disk cache stays off. +static_file_compress_cache = 0 ; Dead key at this pin: nothing in vendor/httpserver reads it. Kept for conf ; parity with upstream only. staticfile_cache_num = 0 @@ -51,7 +50,7 @@ controlpath = ./controller controlsopath = ./module/controller temppath = ./temp logpath = ./log -wwwpath = /data +wwwpath = ./www/default pluginspath = ./plugins libspath = ./libs diff --git a/frameworks/paozhu/src/entrypoint.sh b/frameworks/paozhu/src/entrypoint.sh index fffa526265..b94c8ceb2f 100644 --- a/frameworks/paozhu/src/entrypoint.sh +++ b/frameworks/paozhu/src/entrypoint.sh @@ -72,42 +72,6 @@ H1_PID=$! /server /app/conf/main/server.conf & MAIN_PID=$! -# Pre-warm the native static compress cache. With the /static route removed and -# wwwpath=/data, the framework serves /data/static through its on-disk compress -# cache; hitting each identity file once (br preferred, as the benchmark sends) -# populates that cache before the benchmark instead of paying compression on the -# first live request. br is only produced on TLS, so warm via the HTTPS ports -# (8443 main, 8081 h1) — each instance has its own cache dir, so both must be -# warmed. Best-effort: a missed warm only means the first real request compresses -# once. -wait_ready() { - local url="$1" i - for i in $(seq 1 60); do - if curl -sk --max-time 2 -o /dev/null "$url" 2>/dev/null; then - return 0 - fi - sleep 0.5 - done - return 1 -} -warm_static() { - local base="$1" f n - for f in /data/static/*; do - case "$f" in *.br|*.gz) continue ;; esac - [ -f "$f" ] || continue - n="${f##*/}" - curl -sk --max-time 5 -H 'Accept-Encoding: br, gzip' "$base/static/$n" -o /dev/null 2>/dev/null || true - done -} -# Give the two /server processes time to finish startup (dataset parse, -# static cache dir setup, first TLS handshakes) before any probe or pre-warm -# request goes out. Without this an early request can race that setup and take -# the process down, which wait -n then turns into a full two-process shutdown. - -# TEMP DIAGNOSTIC: pre-warm disabled to check whether it is what kills the -# process. Re-enable once the root cause is confirmed. - - shutdown() { trap - TERM INT kill -TERM "$MAIN_PID" "$H1_PID" 2>/dev/null || true From 8179862e3d5c41c6b00a564110fb2cc4b7f37e26 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 16 Nov 2026 11:56:36 +0000 Subject: [PATCH 65/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 448 +++++++++--------- site/static/logs/8gbit/512/paozhu.log | 10 +- site/static/logs/async/32000/paozhu.log | 10 +- site/static/logs/baseline-h2/1024/paozhu.log | 10 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline-h2c/256/paozhu.log | 8 +- site/static/logs/baseline-h2c/4096/paozhu.log | 6 +- .../logs/echo-ws-limited/4096/paozhu.log | 8 +- .../logs/echo-ws-limited/512/paozhu.log | 8 +- .../logs/echo-ws-pipeline/16384/paozhu.log | 8 +- .../logs/echo-ws-pipeline/4096/paozhu.log | 4 +- site/static/logs/echo-ws/16384/paozhu.log | 10 +- site/static/logs/echo-ws/4096/paozhu.log | 6 +- site/static/logs/echo-ws/512/paozhu.log | 8 +- site/static/logs/fortunes/1024/paozhu.log | 6 +- site/static/logs/json-comp/4096/paozhu.log | 6 +- site/static/logs/json-h2c/1024/paozhu.log | 10 +- site/static/logs/json-h2c/4096/paozhu.log | 6 +- site/static/logs/json-tls/4096/paozhu.log | 6 +- site/static/logs/latency-10k/1024/paozhu.log | 2 +- site/static/logs/latency-1m/1024/paozhu.log | 4 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 8 +- site/static/logs/limited-conn/4096/paozhu.log | 8 +- site/static/logs/pipelined/4096/paozhu.log | 2 +- site/static/logs/static-h2/1024/paozhu.log | 6 +- site/static/logs/static-h2/256/paozhu.log | 4 +- site/static/logs/static-tls/1024/paozhu.log | 8 +- 27 files changed, 314 insertions(+), 314 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index f392a967f5..91f2e1aedc 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,44 +4,44 @@ "8gbit-512": { "framework": "paozhu", "language": "C++", - "rps": 49077, - "avg_latency": "93.7us", - "p99_latency": "138.0us", - "cpu": "278.4%", - "memory": "127MiB", + "rps": 49015, + "avg_latency": "95.9us", + "p99_latency": "145.0us", + "cpu": "286.3%", + "memory": "124MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "508.54MB/s", - "input_bw": "479.27MB/s", + "bandwidth": "507.89MB/s", + "input_bw": "478.66MB/s", "reconnects": 0, - "status_2xx": 245441, + "status_2xx": 245129, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 15348466, - "cpu_per_req_us": 62.5342, + "cpu_usec": 15708859, + "cpu_per_req_us": 64.084, "target_rate": 50000, - "rate_ratio": 0.9815, - "p99_9_latency": "376.0us" + "rate_ratio": 0.9803, + "p99_9_latency": "355.0us" }, "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1688255, - "avg_latency": "17.41ms", + "rps": 1668615, + "avg_latency": "17.57ms", "p99_latency": "28.00ms", - "cpu": "5828.6%", - "memory": "567MiB", + "cpu": "5870.5%", + "memory": "571MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "170.64MB/s", - "input_bw": "77.28MB/s", + "bandwidth": "168.65MB/s", + "input_bw": "76.38MB/s", "reconnects": 0, - "status_2xx": 16882551, + "status_2xx": 16686154, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -49,19 +49,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 151724, - "avg_latency": "6.13ms", - "p99_latency": "25.10ms", - "cpu": "3482.1%", - "memory": "127MiB", + "rps": 149707, + "avg_latency": "6.29ms", + "p99_latency": "25.80ms", + "cpu": "3375.0%", + "memory": "125MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "584.78MB/s", - "input_bw": "10.13MB/s", - "reconnects": 60567, - "status_2xx": 1517249, + "bandwidth": "577.32MB/s", + "input_bw": "9.99MB/s", + "reconnects": 59699, + "status_2xx": 1497076, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -69,19 +69,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2606521, - "avg_latency": "1.57ms", - "p99_latency": "9.54ms", - "cpu": "6371.1%", - "memory": "137MiB", + "rps": 2620528, + "avg_latency": "1.56ms", + "p99_latency": "6.93ms", + "cpu": "6342.8%", + "memory": "135MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "263.43MB/s", - "input_bw": "201.35MB/s", + "bandwidth": "264.86MB/s", + "input_bw": "202.43MB/s", "reconnects": 0, - "status_2xx": 13032608, + "status_2xx": 13102642, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -89,18 +89,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 433230, - "avg_latency": "223.81ms", - "p99_latency": "2.16s", - "cpu": "4092.1%", + "rps": 437471, + "avg_latency": "221.55ms", + "p99_latency": "2.08s", + "cpu": "4183.3%", "memory": "2.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.66MB/s", + "bandwidth": "19.89MB/s", "reconnects": 0, - "status_2xx": 2192147, + "status_2xx": 2217981, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -108,18 +108,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 463473, - "avg_latency": "54.13ms", - "p99_latency": "338.76ms", - "cpu": "4389.7%", - "memory": "567MiB", + "rps": 457730, + "avg_latency": "54.63ms", + "p99_latency": "447.46ms", + "cpu": "4473.3%", + "memory": "566MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.86MB/s", + "bandwidth": "20.64MB/s", "reconnects": 0, - "status_2xx": 2326637, + "status_2xx": 2302383, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -127,18 +127,18 @@ "baseline-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 440831, - "avg_latency": "223.82ms", - "p99_latency": "1.92s", - "cpu": "3670.6%", + "rps": 437324, + "avg_latency": "224.57ms", + "p99_latency": "2.08s", + "cpu": "3715.9%", "memory": "1.9GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.00MB/s", + "bandwidth": "19.88MB/s", "reconnects": 0, - "status_2xx": 2230607, + "status_2xx": 2217233, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -146,18 +146,18 @@ "baseline-h2c-256": { "framework": "paozhu", "language": "C++", - "rps": 483332, - "avg_latency": "52.21ms", - "p99_latency": "403.83ms", - "cpu": "3843.7%", - "memory": "542MiB", + "rps": 481648, + "avg_latency": "52.44ms", + "p99_latency": "303.20ms", + "cpu": "3859.3%", + "memory": "544MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.80MB/s", + "bandwidth": "21.72MB/s", "reconnects": 0, - "status_2xx": 2431161, + "status_2xx": 2422693, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -165,18 +165,18 @@ "baseline-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 354536, - "avg_latency": "994.13ms", - "p99_latency": "4.97s", - "cpu": "3537.8%", + "rps": 379221, + "avg_latency": "935.64ms", + "p99_latency": "4.99s", + "cpu": "3725.1%", "memory": "7.6GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "16.21MB/s", + "bandwidth": "17.37MB/s", "reconnects": 0, - "status_2xx": 1804590, + "status_2xx": 1934031, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -184,18 +184,18 @@ "echo-ws-16384": { "framework": "paozhu", "language": "C++", - "rps": 2802137, - "avg_latency": "4.29ms", + "rps": 2854393, + "avg_latency": "4.02ms", "p99_latency": "15.30ms", - "cpu": "6163.4%", + "cpu": "6133.3%", "memory": "425MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.19MB/s", + "bandwidth": "19.54MB/s", "reconnects": 0, - "status_2xx": 14010685, + "status_2xx": 14271966, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -203,18 +203,18 @@ "echo-ws-4096": { "framework": "paozhu", "language": "C++", - "rps": 3186731, - "avg_latency": "1.24ms", - "p99_latency": "6.74ms", - "cpu": "6322.6%", - "memory": "147MiB", + "rps": 3186200, + "avg_latency": "1.25ms", + "p99_latency": "6.80ms", + "cpu": "6327.6%", + "memory": "148MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, "bandwidth": "21.37MB/s", "reconnects": 0, - "status_2xx": 15933655, + "status_2xx": 15931003, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -222,18 +222,18 @@ "echo-ws-512": { "framework": "paozhu", "language": "C++", - "rps": 3119561, - "avg_latency": "163us", - "p99_latency": "3.22ms", - "cpu": "6526.2%", + "rps": 3146612, + "avg_latency": "162us", + "p99_latency": "3.20ms", + "cpu": "6507.0%", "memory": "75MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.82MB/s", + "bandwidth": "21.00MB/s", "reconnects": 0, - "status_2xx": 15597807, + "status_2xx": 15733064, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -241,18 +241,18 @@ "echo-ws-limited-4096": { "framework": "paozhu", "language": "C++", - "rps": 684547, - "avg_latency": "45us", + "rps": 698935, + "avg_latency": "44us", "p99_latency": "112us", - "cpu": "2659.0%", + "cpu": "2679.1%", "memory": "84MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "14.75MB/s", - "reconnects": 342274, - "status_2xx": 3422736, + "bandwidth": "15.06MB/s", + "reconnects": 349469, + "status_2xx": 3494675, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -260,18 +260,18 @@ "echo-ws-limited-512": { "framework": "paozhu", "language": "C++", - "rps": 692977, - "avg_latency": "43us", - "p99_latency": "96us", - "cpu": "2696.4%", - "memory": "68MiB", + "rps": 700830, + "avg_latency": "42us", + "p99_latency": "92us", + "cpu": "2650.1%", + "memory": "66MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "14.93MB/s", - "reconnects": 346495, - "status_2xx": 3464887, + "bandwidth": "15.10MB/s", + "reconnects": 350413, + "status_2xx": 3504153, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -279,18 +279,18 @@ "echo-ws-pipeline-16384": { "framework": "paozhu", "language": "C++", - "rps": 3139989, - "avg_latency": "59.29ms", - "p99_latency": "179.70ms", - "cpu": "6215.8%", - "memory": "443MiB", + "rps": 3201903, + "avg_latency": "56.87ms", + "p99_latency": "187.30ms", + "cpu": "6160.5%", + "memory": "440MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "21.44MB/s", + "bandwidth": "21.86MB/s", "reconnects": 0, - "status_2xx": 15699946, + "status_2xx": 16009517, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -298,18 +298,18 @@ "echo-ws-pipeline-4096": { "framework": "paozhu", "language": "C++", - "rps": 3592229, - "avg_latency": "17.63ms", - "p99_latency": "36.30ms", - "cpu": "6344.2%", - "memory": "153MiB", + "rps": 3637946, + "avg_latency": "17.43ms", + "p99_latency": "36.20ms", + "cpu": "6323.1%", + "memory": "152MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "24.07MB/s", + "bandwidth": "24.38MB/s", "reconnects": 0, - "status_2xx": 17961148, + "status_2xx": 18189734, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -317,18 +317,18 @@ "echo-ws-pipeline-512": { "framework": "paozhu", "language": "C++", - "rps": 3759656, - "avg_latency": "2.18ms", + "rps": 3645030, + "avg_latency": "2.25ms", "p99_latency": "10.00ms", - "cpu": "6484.1%", - "memory": "70MiB", + "cpu": "6295.0%", + "memory": "71MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "25.09MB/s", + "bandwidth": "24.33MB/s", "reconnects": 0, - "status_2xx": 18798280, + "status_2xx": 18225152, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -336,18 +336,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 62852, - "avg_latency": "15.14ms", - "p99_latency": "32.90ms", - "cpu": "3553.8%", - "memory": "156MiB", + "rps": 59681, + "avg_latency": "16.03ms", + "p99_latency": "45.70ms", + "cpu": "3323.2%", + "memory": "153MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.45GB/s", + "bandwidth": "1.38GB/s", "reconnects": 0, - "status_2xx": 314264, + "status_2xx": 298407, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -355,19 +355,19 @@ "json-comp-16384": { "framework": "paozhu", "language": "C++", - "rps": 690669, - "avg_latency": "6.90ms", - "p99_latency": "151.60ms", - "cpu": "6114.7%", - "memory": "158MiB", + "rps": 692847, + "avg_latency": "7.13ms", + "p99_latency": "151.30ms", + "cpu": "6179.3%", + "memory": "161MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, "bandwidth": "1.07GB/s", - "input_bw": "51.38MB/s", - "reconnects": 138067, - "status_2xx": 3453349, + "input_bw": "51.54MB/s", + "reconnects": 138511, + "status_2xx": 3464235, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -375,19 +375,19 @@ "json-comp-4096": { "framework": "paozhu", "language": "C++", - "rps": 720147, - "avg_latency": "5.62ms", - "p99_latency": "138.30ms", - "cpu": "6425.7%", - "memory": "136MiB", + "rps": 714666, + "avg_latency": "5.66ms", + "p99_latency": "139.20ms", + "cpu": "6328.0%", + "memory": "152MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, "bandwidth": "1.11GB/s", - "input_bw": "53.57MB/s", - "reconnects": 143918, - "status_2xx": 3600738, + "input_bw": "53.16MB/s", + "reconnects": 143004, + "status_2xx": 3573333, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -395,10 +395,10 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 409511, - "avg_latency": "78.39ms", - "p99_latency": "192.34ms", - "cpu": "4212.0%", + "rps": 412506, + "avg_latency": "77.66ms", + "p99_latency": "192.36ms", + "cpu": "4338.8%", "memory": "1.2GiB", "connections": 1024, "threads": 64, @@ -406,7 +406,7 @@ "pipeline": 1, "bandwidth": "1.38GB/s", "reconnects": 0, - "status_2xx": 2068031, + "status_2xx": 2079034, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -414,10 +414,10 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 384766, - "avg_latency": "320.86ms", + "rps": 383951, + "avg_latency": "322.93ms", "p99_latency": "1.10s", - "cpu": "4066.8%", + "cpu": "4090.5%", "memory": "4.7GiB", "connections": 4096, "threads": 64, @@ -425,7 +425,7 @@ "pipeline": 1, "bandwidth": "1.30GB/s", "reconnects": 0, - "status_2xx": 1962309, + "status_2xx": 1958154, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -433,18 +433,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1063602, - "avg_latency": "4.15ms", - "p99_latency": "193.61ms", - "cpu": "6168.5%", + "rps": 1040034, + "avg_latency": "4.22ms", + "p99_latency": "180.59ms", + "cpu": "6107.0%", "memory": "450MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.60GB", + "bandwidth": "3.52GB", "reconnects": 0, - "status_2xx": 5424723, + "status_2xx": 5298691, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -452,91 +452,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9981, - "avg_latency": "81.5us", - "p99_latency": "105.0us", - "cpu": "27.8%", - "memory": "70MiB", + "rps": 9982, + "avg_latency": "75.4us", + "p99_latency": "111.0us", + "cpu": "30.3%", + "memory": "71MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199636, + "status_2xx": 199673, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 5849829, - "cpu_per_req_us": 29.3025, + "cpu_usec": 6308986, + "cpu_per_req_us": 31.5966, "target_rate": 10000, - "rate_ratio": 0.9981, - "p99_9_latency": "2459.0us" + "rate_ratio": 0.9982, + "p99_9_latency": "158.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 998026, - "avg_latency": "106.6us", + "rps": 997757, + "avg_latency": "107.2us", "p99_latency": "191.0us", - "cpu": "3722.7%", + "cpu": "3721.8%", "memory": "76MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.79MB/s", + "bandwidth": "104.76MB/s", "reconnects": 0, - "status_2xx": 19963953, + "status_2xx": 19958261, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 667747234, - "cpu_per_req_us": 33.4476, + "cpu_usec": 670193679, + "cpu_per_req_us": 33.5798, "target_rate": 1000000, - "rate_ratio": 0.998, - "p99_9_latency": "1468.0us" + "rate_ratio": 0.9978, + "p99_9_latency": "1167.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 375287, - "avg_latency": "2469538.7us", - "p99_latency": "4978688.0us", - "cpu": "808.0%", - "memory": "68MiB", + "rps": 375244, + "avg_latency": "2456542.2us", + "p99_latency": "5122048.0us", + "cpu": "803.7%", + "memory": "67MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "39.41MB/s", + "bandwidth": "39.40MB/s", "reconnects": 0, - "status_2xx": 7508562, + "status_2xx": 7507836, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159600165, - "cpu_per_req_us": 21.2558, + "cpu_usec": 159606893, + "cpu_per_req_us": 21.2587, "target_rate": 500000, - "rate_ratio": 0.7506, - "p99_9_latency": "5158912.0us" + "rate_ratio": 0.7505, + "p99_9_latency": "5507072.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 666895, - "avg_latency": "6.12ms", - "p99_latency": "61.70ms", - "cpu": "2702.4%", - "memory": "74MiB", + "rps": 683869, + "avg_latency": "5.95ms", + "p99_latency": "60.50ms", + "cpu": "2687.8%", + "memory": "76MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "67.39MB/s", - "input_bw": "51.52MB/s", - "reconnects": 333441, - "status_2xx": 3334479, + "bandwidth": "69.11MB/s", + "input_bw": "52.83MB/s", + "reconnects": 341929, + "status_2xx": 3419349, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -544,18 +544,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3607977, - "avg_latency": "18.21ms", - "p99_latency": "38.10ms", - "cpu": "6283.2%", - "memory": "128MiB", + "rps": 3584036, + "avg_latency": "18.28ms", + "p99_latency": "36.30ms", + "cpu": "6323.9%", + "memory": "127MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "364.63MB/s", + "bandwidth": "362.21MB/s", "reconnects": 0, - "status_2xx": 18039889, + "status_2xx": 17920180, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -563,18 +563,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 3031, - "avg_latency": "2.08s", - "p99_latency": "4.98s", - "cpu": "260.0%", - "memory": "2.1GiB", + "rps": 227007, + "avg_latency": "137.41ms", + "p99_latency": "681.82ms", + "cpu": "5367.9%", + "memory": "2.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "46.95MB/s", + "bandwidth": "3.49GB/s", "reconnects": 0, - "status_2xx": 15339, + "status_2xx": 1148656, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -582,18 +582,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 5771, - "avg_latency": "1.16s", - "p99_latency": "4.11s", - "cpu": "225.5%", - "memory": "1.4GiB", + "rps": 222369, + "avg_latency": "36.37ms", + "p99_latency": "191.93ms", + "cpu": "5569.2%", + "memory": "750MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "90.32MB/s", + "bandwidth": "3.40GB/s", "reconnects": 0, - "status_2xx": 29029, + "status_2xx": 1118519, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -601,18 +601,18 @@ "static-tls-1024": { "framework": "paozhu", "language": "C++", - "rps": 27090, - "avg_latency": "39.78ms", - "p99_latency": "192.74ms", - "cpu": "582.2%", - "memory": "1.5GiB", + "rps": 216744, + "avg_latency": "4.80ms", + "p99_latency": "49.77ms", + "cpu": "3850.8%", + "memory": "246MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "426.82MB", + "bandwidth": "3.31GB", "reconnects": 0, - "status_2xx": 138159, + "status_2xx": 1105450, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/8gbit/512/paozhu.log b/site/static/logs/8gbit/512/paozhu.log index 594675f4e1..e199d30c63 100644 --- a/site/static/logs/8gbit/512/paozhu.log +++ b/site/static/logs/8gbit/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index 1c3cf0c610..ae6badc558 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[websockets] [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabledwebsockets.conf - not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index 4364ec84c9..594675f4e1 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled[mqtt_client] -/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index ee3d5739fa..735b3e6b9d 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [websockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] [sockets] /app/conf/h1/mqtt.conf/app/conf/main/sockets.conf not found or parse fail, mqtt client disabled not found or parse fail, socket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +/app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/256/paozhu.log b/site/static/logs/baseline-h2c/256/paozhu.log index 496f177217..02ce1424dd 100644 --- a/site/static/logs/baseline-h2c/256/paozhu.log +++ b/site/static/logs/baseline-h2c/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabledwebsockets.conf + not found or parse fail, websocket client disabled +[sockets] [mqtt_client] /app/conf/h1/sockets.conf/app/conf/main/mqtt.conf not found or parse fail, socket client disabled not found or parse fail, mqtt client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/4096/paozhu.log b/site/static/logs/baseline-h2c/4096/paozhu.log index ce2738ddee..594fa68ff8 100644 --- a/site/static/logs/baseline-h2c/4096/paozhu.log +++ b/site/static/logs/baseline-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/4096/paozhu.log b/site/static/logs/echo-ws-limited/4096/paozhu.log index ae6badc558..9431dded1d 100644 --- a/site/static/logs/echo-ws-limited/4096/paozhu.log +++ b/site/static/logs/echo-ws-limited/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/512/paozhu.log b/site/static/logs/echo-ws-limited/512/paozhu.log index a6a559a3cc..ae6badc558 100644 --- a/site/static/logs/echo-ws-limited/512/paozhu.log +++ b/site/static/logs/echo-ws-limited/512/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [websockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -websockets.conf not found or parse fail, websocket client disabled -[sockets] [mqtt_client] /app/conf/main/sockets.conf/app/conf/h1/mqtt.conf not found or parse fail, socket client disabled not found or parse fail, mqtt client disabled - +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/16384/paozhu.log b/site/static/logs/echo-ws-pipeline/16384/paozhu.log index 844e61d413..8eb0722e8a 100644 --- a/site/static/logs/echo-ws-pipeline/16384/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/4096/paozhu.log b/site/static/logs/echo-ws-pipeline/4096/paozhu.log index ae6badc558..3715f01c5d 100644 --- a/site/static/logs/echo-ws-pipeline/4096/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/4096/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/echo-ws/16384/paozhu.log b/site/static/logs/echo-ws/16384/paozhu.log index 7a9e321588..83943b998f 100644 --- a/site/static/logs/echo-ws/16384/paozhu.log +++ b/site/static/logs/echo-ws/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled +/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/4096/paozhu.log b/site/static/logs/echo-ws/4096/paozhu.log index ae6badc558..4259e0ec92 100644 --- a/site/static/logs/echo-ws/4096/paozhu.log +++ b/site/static/logs/echo-ws/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf[sockets] not found or parse fail, mqtt client disabled/app/conf/main/sockets.conf + not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/512/paozhu.log b/site/static/logs/echo-ws/512/paozhu.log index ad34f68a48..f8c8687c1b 100644 --- a/site/static/logs/echo-ws/512/paozhu.log +++ b/site/static/logs/echo-ws/512/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [mqtt_client] /app/conf/main/sockets.conf/app/conf/h1/mqtt.conf not found or parse fail, socket client disabled not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index e899fd452b..496f177217 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] -/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/4096/paozhu.log b/site/static/logs/json-comp/4096/paozhu.log index 594675f4e1..dca05485d6 100644 --- a/site/static/logs/json-comp/4096/paozhu.log +++ b/site/static/logs/json-comp/4096/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index a240b8d68b..e199d30c63 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index 594675f4e1..f9523aac0c 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 4a873d2077..f51d62ba69 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -2,10 +2,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index ae6badc558..9dc0d2ee1c 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index ae6badc558..3715f01c5d 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index e71987ebaf..a781d4c2fa 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,7 +1,7 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index 594675f4e1..904a92c696 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[sockets] +/app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index ae6badc558..7f8c69a1be 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -7,8 +7,8 @@ [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients -[mqtt_subpub] init: registered 0 clients [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-tls/1024/paozhu.log b/site/static/logs/static-tls/1024/paozhu.log index 68964ad808..ae6badc558 100644 --- a/site/static/logs/static-tls/1024/paozhu.log +++ b/site/static/logs/static-tls/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From d1cf7ec21b35c4fea54cb3210af1cdbe51842ed6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 16 Nov 2026 12:58:31 +0000 Subject: [PATCH 66/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 458 +++++++++--------- site/static/logs/8gbit/512/paozhu.log | 8 +- site/static/logs/async-db/1024/paozhu.log | 6 +- site/static/logs/baseline-h2/256/paozhu.log | 10 +- site/static/logs/baseline-h2c/256/paozhu.log | 10 +- site/static/logs/baseline-h2c/4096/paozhu.log | 2 +- site/static/logs/baseline/4096/paozhu.log | 8 +- .../logs/echo-ws-limited/4096/paozhu.log | 8 +- .../logs/echo-ws-limited/512/paozhu.log | 10 +- .../logs/echo-ws-pipeline/16384/paozhu.log | 8 +- .../logs/echo-ws-pipeline/4096/paozhu.log | 8 +- .../logs/echo-ws-pipeline/512/paozhu.log | 2 +- site/static/logs/echo-ws/16384/paozhu.log | 10 +- site/static/logs/echo-ws/4096/paozhu.log | 10 +- site/static/logs/echo-ws/512/paozhu.log | 10 +- site/static/logs/fortunes/1024/paozhu.log | 8 +- site/static/logs/json-comp/4096/paozhu.log | 8 +- site/static/logs/json-h2c/1024/paozhu.log | 8 +- site/static/logs/json-h2c/4096/paozhu.log | 4 +- site/static/logs/json-tls/4096/paozhu.log | 10 +- site/static/logs/latency-10k/1024/paozhu.log | 8 +- site/static/logs/latency-1m/1024/paozhu.log | 8 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 8 +- site/static/logs/limited-conn/4096/paozhu.log | 6 +- site/static/logs/pipelined/4096/paozhu.log | 8 +- site/static/logs/static-h2/1024/paozhu.log | 12 +- site/static/logs/static-h2/256/paozhu.log | 4 +- 27 files changed, 330 insertions(+), 330 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 91f2e1aedc..2f9af60007 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,44 +4,44 @@ "8gbit-512": { "framework": "paozhu", "language": "C++", - "rps": 49015, - "avg_latency": "95.9us", - "p99_latency": "145.0us", - "cpu": "286.3%", - "memory": "124MiB", + "rps": 49022, + "avg_latency": "95.1us", + "p99_latency": "138.0us", + "cpu": "277.1%", + "memory": "125MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "507.89MB/s", - "input_bw": "478.66MB/s", + "bandwidth": "507.96MB/s", + "input_bw": "478.73MB/s", "reconnects": 0, - "status_2xx": 245129, + "status_2xx": 245171, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 15708859, - "cpu_per_req_us": 64.084, + "cpu_usec": 15261928, + "cpu_per_req_us": 62.2501, "target_rate": 50000, - "rate_ratio": 0.9803, - "p99_9_latency": "355.0us" + "rate_ratio": 0.9804, + "p99_9_latency": "440.0us" }, "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1668615, - "avg_latency": "17.57ms", - "p99_latency": "28.00ms", - "cpu": "5870.5%", - "memory": "571MiB", + "rps": 1660336, + "avg_latency": "17.65ms", + "p99_latency": "27.60ms", + "cpu": "5867.0%", + "memory": "570MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "168.65MB/s", - "input_bw": "76.38MB/s", + "bandwidth": "167.81MB/s", + "input_bw": "76.00MB/s", "reconnects": 0, - "status_2xx": 16686154, + "status_2xx": 16603365, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -49,19 +49,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 149707, - "avg_latency": "6.29ms", - "p99_latency": "25.80ms", - "cpu": "3375.0%", - "memory": "125MiB", + "rps": 157083, + "avg_latency": "6.02ms", + "p99_latency": "25.30ms", + "cpu": "3563.8%", + "memory": "126MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "577.32MB/s", - "input_bw": "9.99MB/s", - "reconnects": 59699, - "status_2xx": 1497076, + "bandwidth": "605.60MB/s", + "input_bw": "10.49MB/s", + "reconnects": 62694, + "status_2xx": 1570835, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -69,19 +69,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2620528, - "avg_latency": "1.56ms", - "p99_latency": "6.93ms", - "cpu": "6342.8%", - "memory": "135MiB", + "rps": 2612446, + "avg_latency": "1.57ms", + "p99_latency": "9.72ms", + "cpu": "6381.2%", + "memory": "140MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "264.86MB/s", - "input_bw": "202.43MB/s", + "bandwidth": "264.02MB/s", + "input_bw": "201.81MB/s", "reconnects": 0, - "status_2xx": 13102642, + "status_2xx": 13062233, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -89,18 +89,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 437471, - "avg_latency": "221.55ms", + "rps": 430855, + "avg_latency": "225.65ms", "p99_latency": "2.08s", - "cpu": "4183.3%", + "cpu": "4111.2%", "memory": "2.0GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.89MB/s", + "bandwidth": "19.55MB/s", "reconnects": 0, - "status_2xx": 2217981, + "status_2xx": 2180129, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -108,18 +108,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 457730, - "avg_latency": "54.63ms", - "p99_latency": "447.46ms", - "cpu": "4473.3%", - "memory": "566MiB", + "rps": 456878, + "avg_latency": "55.03ms", + "p99_latency": "387.61ms", + "cpu": "4411.4%", + "memory": "568MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.64MB/s", + "bandwidth": "20.60MB/s", "reconnects": 0, - "status_2xx": 2302383, + "status_2xx": 2298097, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -127,18 +127,18 @@ "baseline-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 437324, - "avg_latency": "224.57ms", - "p99_latency": "2.08s", - "cpu": "3715.9%", + "rps": 447320, + "avg_latency": "219.36ms", + "p99_latency": "1.81s", + "cpu": "3820.6%", "memory": "1.9GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.88MB/s", + "bandwidth": "20.26MB/s", "reconnects": 0, - "status_2xx": 2217233, + "status_2xx": 2258966, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -146,18 +146,18 @@ "baseline-h2c-256": { "framework": "paozhu", "language": "C++", - "rps": 481648, - "avg_latency": "52.44ms", - "p99_latency": "303.20ms", - "cpu": "3859.3%", - "memory": "544MiB", + "rps": 478686, + "avg_latency": "52.73ms", + "p99_latency": "357.47ms", + "cpu": "3858.5%", + "memory": "542MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.72MB/s", + "bandwidth": "21.59MB/s", "reconnects": 0, - "status_2xx": 2422693, + "status_2xx": 2407793, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -165,18 +165,18 @@ "baseline-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 379221, - "avg_latency": "935.64ms", + "rps": 382996, + "avg_latency": "918.88ms", "p99_latency": "4.99s", - "cpu": "3725.1%", + "cpu": "3929.6%", "memory": "7.6GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.37MB/s", + "bandwidth": "17.58MB/s", "reconnects": 0, - "status_2xx": 1934031, + "status_2xx": 1957114, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -184,18 +184,18 @@ "echo-ws-16384": { "framework": "paozhu", "language": "C++", - "rps": 2854393, - "avg_latency": "4.02ms", + "rps": 2848223, + "avg_latency": "4.12ms", "p99_latency": "15.30ms", - "cpu": "6133.3%", - "memory": "425MiB", + "cpu": "6157.1%", + "memory": "426MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.54MB/s", + "bandwidth": "19.50MB/s", "reconnects": 0, - "status_2xx": 14271966, + "status_2xx": 14241119, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -203,18 +203,18 @@ "echo-ws-4096": { "framework": "paozhu", "language": "C++", - "rps": 3186200, - "avg_latency": "1.25ms", - "p99_latency": "6.80ms", - "cpu": "6327.6%", - "memory": "148MiB", + "rps": 3168772, + "avg_latency": "1.26ms", + "p99_latency": "6.74ms", + "cpu": "6336.7%", + "memory": "149MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.37MB/s", + "bandwidth": "21.25MB/s", "reconnects": 0, - "status_2xx": 15931003, + "status_2xx": 15843864, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -222,18 +222,18 @@ "echo-ws-512": { "framework": "paozhu", "language": "C++", - "rps": 3146612, - "avg_latency": "162us", + "rps": 3151920, + "avg_latency": "161us", "p99_latency": "3.20ms", - "cpu": "6507.0%", + "cpu": "6500.7%", "memory": "75MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.00MB/s", + "bandwidth": "21.04MB/s", "reconnects": 0, - "status_2xx": 15733064, + "status_2xx": 15759601, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -241,18 +241,18 @@ "echo-ws-limited-4096": { "framework": "paozhu", "language": "C++", - "rps": 698935, + "rps": 689497, "avg_latency": "44us", - "p99_latency": "112us", - "cpu": "2679.1%", - "memory": "84MiB", + "p99_latency": "109us", + "cpu": "2556.1%", + "memory": "69MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "15.06MB/s", - "reconnects": 349469, - "status_2xx": 3494675, + "bandwidth": "14.86MB/s", + "reconnects": 344748, + "status_2xx": 3447485, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -260,18 +260,18 @@ "echo-ws-limited-512": { "framework": "paozhu", "language": "C++", - "rps": 700830, - "avg_latency": "42us", - "p99_latency": "92us", - "cpu": "2650.1%", - "memory": "66MiB", + "rps": 688369, + "avg_latency": "43us", + "p99_latency": "96us", + "cpu": "2695.4%", + "memory": "69MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "15.10MB/s", - "reconnects": 350413, - "status_2xx": 3504153, + "bandwidth": "14.83MB/s", + "reconnects": 344180, + "status_2xx": 3441848, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -279,18 +279,18 @@ "echo-ws-pipeline-16384": { "framework": "paozhu", "language": "C++", - "rps": 3201903, - "avg_latency": "56.87ms", - "p99_latency": "187.30ms", - "cpu": "6160.5%", - "memory": "440MiB", + "rps": 3141376, + "avg_latency": "60.71ms", + "p99_latency": "189.20ms", + "cpu": "6005.8%", + "memory": "442MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "21.86MB/s", + "bandwidth": "21.45MB/s", "reconnects": 0, - "status_2xx": 16009517, + "status_2xx": 15706883, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -298,18 +298,18 @@ "echo-ws-pipeline-4096": { "framework": "paozhu", "language": "C++", - "rps": 3637946, - "avg_latency": "17.43ms", - "p99_latency": "36.20ms", - "cpu": "6323.1%", - "memory": "152MiB", + "rps": 3561878, + "avg_latency": "17.64ms", + "p99_latency": "36.40ms", + "cpu": "6226.2%", + "memory": "153MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "24.38MB/s", + "bandwidth": "23.88MB/s", "reconnects": 0, - "status_2xx": 18189734, + "status_2xx": 17809390, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -317,18 +317,18 @@ "echo-ws-pipeline-512": { "framework": "paozhu", "language": "C++", - "rps": 3645030, - "avg_latency": "2.25ms", + "rps": 3741148, + "avg_latency": "2.19ms", "p99_latency": "10.00ms", - "cpu": "6295.0%", - "memory": "71MiB", + "cpu": "6475.8%", + "memory": "70MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "24.33MB/s", + "bandwidth": "24.97MB/s", "reconnects": 0, - "status_2xx": 18225152, + "status_2xx": 18705740, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -336,18 +336,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 59681, - "avg_latency": "16.03ms", - "p99_latency": "45.70ms", - "cpu": "3323.2%", - "memory": "153MiB", + "rps": 63205, + "avg_latency": "15.00ms", + "p99_latency": "37.30ms", + "cpu": "3588.2%", + "memory": "155MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.38GB/s", + "bandwidth": "1.46GB/s", "reconnects": 0, - "status_2xx": 298407, + "status_2xx": 316029, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -355,19 +355,19 @@ "json-comp-16384": { "framework": "paozhu", "language": "C++", - "rps": 692847, - "avg_latency": "7.13ms", - "p99_latency": "151.30ms", - "cpu": "6179.3%", - "memory": "161MiB", + "rps": 690856, + "avg_latency": "6.96ms", + "p99_latency": "150.40ms", + "cpu": "5869.9%", + "memory": "167MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, "bandwidth": "1.07GB/s", - "input_bw": "51.54MB/s", - "reconnects": 138511, - "status_2xx": 3464235, + "input_bw": "51.39MB/s", + "reconnects": 138077, + "status_2xx": 3454280, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -375,19 +375,19 @@ "json-comp-4096": { "framework": "paozhu", "language": "C++", - "rps": 714666, - "avg_latency": "5.66ms", - "p99_latency": "139.20ms", - "cpu": "6328.0%", - "memory": "152MiB", + "rps": 715374, + "avg_latency": "5.64ms", + "p99_latency": "141.30ms", + "cpu": "6372.4%", + "memory": "170MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, "bandwidth": "1.11GB/s", - "input_bw": "53.16MB/s", - "reconnects": 143004, - "status_2xx": 3573333, + "input_bw": "53.21MB/s", + "reconnects": 143250, + "status_2xx": 3576874, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -395,18 +395,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 412506, - "avg_latency": "77.66ms", - "p99_latency": "192.36ms", - "cpu": "4338.8%", + "rps": 402611, + "avg_latency": "79.69ms", + "p99_latency": "198.29ms", + "cpu": "4214.0%", "memory": "1.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.38GB/s", + "bandwidth": "1.35GB/s", "reconnects": 0, - "status_2xx": 2079034, + "status_2xx": 2037212, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -414,18 +414,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 383951, - "avg_latency": "322.93ms", - "p99_latency": "1.10s", - "cpu": "4090.5%", + "rps": 382714, + "avg_latency": "325.17ms", + "p99_latency": "1.12s", + "cpu": "3973.3%", "memory": "4.7GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.30GB/s", + "bandwidth": "1.29GB/s", "reconnects": 0, - "status_2xx": 1958154, + "status_2xx": 1944192, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -433,18 +433,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1040034, - "avg_latency": "4.22ms", - "p99_latency": "180.59ms", - "cpu": "6107.0%", - "memory": "450MiB", + "rps": 1046700, + "avg_latency": "4.66ms", + "p99_latency": "267.89ms", + "cpu": "6100.5%", + "memory": "451MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.52GB", + "bandwidth": "3.54GB", "reconnects": 0, - "status_2xx": 5298691, + "status_2xx": 5332614, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -452,91 +452,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9982, - "avg_latency": "75.4us", - "p99_latency": "111.0us", - "cpu": "30.3%", - "memory": "71MiB", + "rps": 9983, + "avg_latency": "76.9us", + "p99_latency": "108.0us", + "cpu": "28.4%", + "memory": "68MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199673, + "status_2xx": 199686, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 6308986, - "cpu_per_req_us": 31.5966, + "cpu_usec": 5934663, + "cpu_per_req_us": 29.72, "target_rate": 10000, - "rate_ratio": 0.9982, - "p99_9_latency": "158.0us" + "rate_ratio": 0.9983, + "p99_9_latency": "363.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997757, - "avg_latency": "107.2us", - "p99_latency": "191.0us", - "cpu": "3721.8%", + "rps": 997337, + "avg_latency": "120.0us", + "p99_latency": "190.0us", + "cpu": "3621.2%", "memory": "76MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.76MB/s", + "bandwidth": "104.72MB/s", "reconnects": 0, - "status_2xx": 19958261, + "status_2xx": 19950546, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 670193679, - "cpu_per_req_us": 33.5798, + "cpu_usec": 652454600, + "cpu_per_req_us": 32.7036, "target_rate": 1000000, - "rate_ratio": 0.9978, - "p99_9_latency": "1167.0us" + "rate_ratio": 0.9973, + "p99_9_latency": "9500.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 375244, - "avg_latency": "2456542.2us", - "p99_latency": "5122048.0us", - "cpu": "803.7%", - "memory": "67MiB", + "rps": 376949, + "avg_latency": "2431979.7us", + "p99_latency": "4925440.0us", + "cpu": "804.5%", + "memory": "69MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "39.40MB/s", + "bandwidth": "39.58MB/s", "reconnects": 0, - "status_2xx": 7507836, + "status_2xx": 7541622, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159606893, - "cpu_per_req_us": 21.2587, + "cpu_usec": 159565144, + "cpu_per_req_us": 21.1579, "target_rate": 500000, - "rate_ratio": 0.7505, - "p99_9_latency": "5507072.0us" + "rate_ratio": 0.7539, + "p99_9_latency": "5072896.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 683869, - "avg_latency": "5.95ms", - "p99_latency": "60.50ms", - "cpu": "2687.8%", - "memory": "76MiB", + "rps": 662349, + "avg_latency": "6.16ms", + "p99_latency": "62.40ms", + "cpu": "2715.4%", + "memory": "77MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "69.11MB/s", - "input_bw": "52.83MB/s", - "reconnects": 341929, - "status_2xx": 3419349, + "bandwidth": "66.94MB/s", + "input_bw": "51.16MB/s", + "reconnects": 331175, + "status_2xx": 3311748, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -544,18 +544,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3584036, - "avg_latency": "18.28ms", - "p99_latency": "36.30ms", - "cpu": "6323.9%", - "memory": "127MiB", + "rps": 3617075, + "avg_latency": "18.14ms", + "p99_latency": "36.20ms", + "cpu": "6335.7%", + "memory": "128MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "362.21MB/s", + "bandwidth": "365.55MB/s", "reconnects": 0, - "status_2xx": 17920180, + "status_2xx": 18085375, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -563,18 +563,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 227007, - "avg_latency": "137.41ms", - "p99_latency": "681.82ms", - "cpu": "5367.9%", + "rps": 217549, + "avg_latency": "143.77ms", + "p99_latency": "693.89ms", + "cpu": "5419.6%", "memory": "2.5GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.49GB/s", + "bandwidth": "3.34GB/s", "reconnects": 0, - "status_2xx": 1148656, + "status_2xx": 1100798, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -582,18 +582,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 222369, - "avg_latency": "36.37ms", - "p99_latency": "191.93ms", - "cpu": "5569.2%", - "memory": "750MiB", + "rps": 217105, + "avg_latency": "37.27ms", + "p99_latency": "199.40ms", + "cpu": "5617.4%", + "memory": "745MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.40GB/s", + "bandwidth": "3.32GB/s", "reconnects": 0, - "status_2xx": 1118519, + "status_2xx": 1092043, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -601,18 +601,18 @@ "static-tls-1024": { "framework": "paozhu", "language": "C++", - "rps": 216744, - "avg_latency": "4.80ms", - "p99_latency": "49.77ms", - "cpu": "3850.8%", - "memory": "246MiB", + "rps": 218010, + "avg_latency": "4.68ms", + "p99_latency": "22.05ms", + "cpu": "3892.0%", + "memory": "228MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.31GB", + "bandwidth": "3.33GB", "reconnects": 0, - "status_2xx": 1105450, + "status_2xx": 1111746, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/8gbit/512/paozhu.log b/site/static/logs/8gbit/512/paozhu.log index e199d30c63..9dc0d2ee1c 100644 --- a/site/static/logs/8gbit/512/paozhu.log +++ b/site/static/logs/8gbit/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index ae6badc558..fd83ef3a35 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 735b3e6b9d..ae6badc558 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - -[sockets] [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -/app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/256/paozhu.log b/site/static/logs/baseline-h2c/256/paozhu.log index 02ce1424dd..ae6badc558 100644 --- a/site/static/logs/baseline-h2c/256/paozhu.log +++ b/site/static/logs/baseline-h2c/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabledwebsockets.conf - not found or parse fail, websocket client disabled -[sockets] [mqtt_client] /app/conf/h1/sockets.conf/app/conf/main/mqtt.conf not found or parse fail, socket client disabled not found or parse fail, mqtt client disabled - +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/4096/paozhu.log b/site/static/logs/baseline-h2c/4096/paozhu.log index 594fa68ff8..a781d4c2fa 100644 --- a/site/static/logs/baseline-h2c/4096/paozhu.log +++ b/site/static/logs/baseline-h2c/4096/paozhu.log @@ -1,7 +1,7 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 7507d1b226..00d8d1c9c2 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf + not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[sockets] +/app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/4096/paozhu.log b/site/static/logs/echo-ws-limited/4096/paozhu.log index 9431dded1d..ae6badc558 100644 --- a/site/static/logs/echo-ws-limited/4096/paozhu.log +++ b/site/static/logs/echo-ws-limited/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/512/paozhu.log b/site/static/logs/echo-ws-limited/512/paozhu.log index ae6badc558..e1e45d77ac 100644 --- a/site/static/logs/echo-ws-limited/512/paozhu.log +++ b/site/static/logs/echo-ws-limited/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/16384/paozhu.log b/site/static/logs/echo-ws-pipeline/16384/paozhu.log index 8eb0722e8a..e199d30c63 100644 --- a/site/static/logs/echo-ws-pipeline/16384/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/4096/paozhu.log b/site/static/logs/echo-ws-pipeline/4096/paozhu.log index 3715f01c5d..eb9eae963b 100644 --- a/site/static/logs/echo-ws-pipeline/4096/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf + not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/512/paozhu.log b/site/static/logs/echo-ws-pipeline/512/paozhu.log index ae6badc558..61672439db 100644 --- a/site/static/logs/echo-ws-pipeline/512/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/512/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/echo-ws/16384/paozhu.log b/site/static/logs/echo-ws/16384/paozhu.log index 83943b998f..ae6badc558 100644 --- a/site/static/logs/echo-ws/16384/paozhu.log +++ b/site/static/logs/echo-ws/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled -/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/4096/paozhu.log b/site/static/logs/echo-ws/4096/paozhu.log index 4259e0ec92..db26c658fd 100644 --- a/site/static/logs/echo-ws/4096/paozhu.log +++ b/site/static/logs/echo-ws/4096/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf[sockets] not found or parse fail, mqtt client disabled/app/conf/main/sockets.conf - not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients -[mqtt_subpub] init: registered 0 clients [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/512/paozhu.log b/site/static/logs/echo-ws/512/paozhu.log index f8c8687c1b..b98ce64edf 100644 --- a/site/static/logs/echo-ws/512/paozhu.log +++ b/site/static/logs/echo-ws/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index 496f177217..ae6badc558 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/4096/paozhu.log b/site/static/logs/json-comp/4096/paozhu.log index dca05485d6..67c991bf37 100644 --- a/site/static/logs/json-comp/4096/paozhu.log +++ b/site/static/logs/json-comp/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index e199d30c63..cc0046056b 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] +/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index f9523aac0c..ae6badc558 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index f51d62ba69..594675f4e1 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index 9dc0d2ee1c..e199d30c63 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index 3715f01c5d..67c991bf37 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin - +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 594675f4e1..7507d1b226 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index ae6badc558..f164686a5a 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabledwebsockets.conf + not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index a781d4c2fa..ae6badc558 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index 904a92c696..bbb13f7c36 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[sockets] -/app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf + not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients -[mqtt_subpub] init: registered 0 clients [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients +[mqtt_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index 7f8c69a1be..ae6badc558 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -7,8 +7,8 @@ [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From 2cfa5a8a6e73cdbd7c4509926a4eec26692345ad Mon Sep 17 00:00:00 2001 From: hzq Date: Tue, 17 Nov 2026 12:06:37 +0800 Subject: [PATCH 67/89] Fix latency-500k-8cpu --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/README.md | 2 +- frameworks/paozhu/src/conf/server-h1.conf | 4 ++-- frameworks/paozhu/src/conf/server.conf | 4 ++-- frameworks/paozhu/src/entrypoint.sh | 13 +++++++++++++ 5 files changed, 19 insertions(+), 6 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index b53a216702..ac049ee773 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=6b0945334a9b5c34f3cf1f9718c6797c07564380 +ARG PAOZHU_REF=268a97070f956d4292858674f654ed21495509d1 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/README.md b/frameworks/paozhu/README.md index 5993104b3e..8775b6d1a2 100644 --- a/frameworks/paozhu/README.md +++ b/frameworks/paozhu/README.md @@ -74,7 +74,7 @@ Registered through paozhu annotations; path parameters must be the final segment - `usehtmlcache` is intentionally absent from both conf files; a present key enables the disk pre-check for dotted URLs. Because the key is absent the pre-check never runs, so it never competes with `/static/:filename` either way, and `BENCHMARK` compiling that pre-check out is a no-op for this entry. - Static compression is served by `arena_static` itself, not the framework: it honours `Accept-Encoding` (`peer->state.br` / `state.gzip`, q=0 rejected upstream), prefers brotli then gzip, and reads the matching `.br` / `.gz` twin from `/data/static` per request — no resident body cache, so the validation suite's mid-run file replacement stays visible. The precompressed body is sent with `peer->compress = 2` (br) / `1` (gzip), which tells the send layer to skip auto compression and only emit `Content-Encoding` + `Vary`; without an accepted coding or a twin it serves the identity file (`compress = 0`). Binary assets (woff2/webp) ship no twin and stay identity. The framework's own static compress cache is therefore unused: `static_file_compress_cache = 0` in both conf files, and the entrypoint no longer pre-warms it. - The two processes use separate `temppath` / `logpath` directories so they never race on scratch files. -- `cothreadnum` in both conf files is a floor, not the worker count: upstream computes `max(cothreadnum, hardware_concurrency() + 4)`. Under the profile cpuset (`0-31,64-95`, 64 CPUs) each process runs about 68 io threads, not 8, and the second process contributes a second set that stays idle while the other port is being profiled. +- `cothreadnum` is an optional CAP on the io-thread count, not a floor: upstream sets `total_count = std::thread::hardware_concurrency()` and lowers it to `cothreadnum` only when that is smaller (floor 4), then runs one `io_context` per count with `per_ioc_thread_num` run threads each. `hardware_concurrency()` reports the host's online CPUs and ignores the container cpuset, so the shipped `cothreadnum = 128` would leave ~host-core-count io threads per instance — on `latency-500k-8cpu` (cpuset `0-3,64-67`, 8 logical CPUs) that oversubscription cost both throughput and tail latency. `entrypoint.sh` therefore renders `cothreadnum = $(nproc)` into both confs before startup (`nproc` counts via `sched_getaffinity`, i.e. the cpuset: 8 on that profile, 32 on the big ones). The second instance gets the same count and stays mostly idle while the other port is being profiled. - `PAOZHU_REF` selects the upstream revision. The Dockerfile uses a direct `codeload.github.com` tarball URL: `github.com/.../archive/...` 302-redirects to codeload and that hop is blocked on some networks. - On slow or offline networks, ship a source archive in the build context instead of downloading it: `git -C /Users/hzq/paozhu archive --format=tar.gz --prefix=paozhu-/ -o frameworks/paozhu/vendor/paozhu-src.tar.gz HEAD`. The Dockerfile prefers `vendor/paozhu-src.tar.gz` when present. The archive is ~36 MB and is deliberately not checked in. - `APT_MIRROR` is an optional build arg for networks where `deb.debian.org` is slow, e.g. `--build-arg APT_MIRROR=mirrors.aliyun.com`; empty keeps the distro default. diff --git a/frameworks/paozhu/src/conf/server-h1.conf b/frameworks/paozhu/src/conf/server-h1.conf index 49bcb02e71..17cdc07c81 100644 --- a/frameworks/paozhu/src/conf/server-h1.conf +++ b/frameworks/paozhu/src/conf/server-h1.conf @@ -9,10 +9,10 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 128 ; Use this value < number of CPU cores +cothreadnum = 0 ; 0 = auto (host cores); entrypoint.sh renders it to the cpuset per_ioc_thread_num = 1 ; orm_ioc_num = 4 ;ORM io_context num; -orm_thread_pool_num = 128 ;0 use hardware_concurrency() +orm_thread_pool_num = 0 ;0 use hardware_concurrency() http2_send_loop_num = 8 ; httpport = 8082 diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index 819c2552f2..221ddef038 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -4,10 +4,10 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 128 ; Use this value < number of CPU cores +cothreadnum = 0 ; 0 = auto (host cores); entrypoint.sh renders it to the cpuset per_ioc_thread_num = 1 ; orm_ioc_num = 4 ;ORM io_context num; -orm_thread_pool_num = 128 ;0 use hardware_concurrency() +orm_thread_pool_num = 0 ;0 use hardware_concurrency() http2_send_loop_num = 8 ; httpport = 8080 diff --git a/frameworks/paozhu/src/entrypoint.sh b/frameworks/paozhu/src/entrypoint.sh index b94c8ceb2f..831cec1edb 100644 --- a/frameworks/paozhu/src/entrypoint.sh +++ b/frameworks/paozhu/src/entrypoint.sh @@ -65,6 +65,19 @@ if [ -n "${DATABASE_URL:-}" ]; then done < /app/conf/orm.conf.tpl > /app/conf/main/orm.conf fi +# Bind the io-thread count to the CPUs this container actually gets. +# std::thread::hardware_concurrency() reports the HOST's online CPUs and ignores +# the cpuset; cothreadnum=0 means "no cap", i.e. that host count. Left alone, +# latency-500k-8cpu would run ~host-core-count io threads per process on 8 +# logical CPUs, and the oversubscription costs both throughput and tail latency. +# nproc counts via sched_getaffinity, i.e. the cpuset: 8 on that profile, 32 on +# the big ones. Render it into both confs (overrides whatever the conf ships). +cpu_num="$(nproc)" +case "$cpu_num" in ''|*[!0-9]*) cpu_num=8 ;; esac +for d in /app/conf/main /app/conf/h1; do + sed -i "s/^cothreadnum[[:space:]]*=.*/cothreadnum = $cpu_num ; rendered from cpuset by entrypoint.sh/" "$d/server.conf" +done + # No /app/conf/server.conf exists, so httpserver::run() falls back to argv[1] # and each instance loads its own ports (8080/8443 vs 8082/8081). /server /app/conf/h1/server.conf & From fa2c6adedaa8452372d232ec250af918b00da46a Mon Sep 17 00:00:00 2001 From: hzq Date: Tue, 17 Nov 2026 13:05:37 +0800 Subject: [PATCH 68/89] Fix sqlite --- frameworks/paozhu/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index ac049ee773..9592a0deaf 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=268a97070f956d4292858674f654ed21495509d1 +ARG PAOZHU_REF=cc8bd9a9b30dbba3464d58e5cb86d709ab1484c4 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct From b833fa21f978c19616eea9cfbc64b2defd80b93a Mon Sep 17 00:00:00 2001 From: hzq Date: Tue, 17 Nov 2026 15:14:00 +0800 Subject: [PATCH 69/89] Fix sql --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/cost_define.h | 52 +++------------------ frameworks/paozhu/src/controller/src/db.cpp | 16 +++---- 3 files changed, 15 insertions(+), 55 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 9592a0deaf..359341e76d 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=cc8bd9a9b30dbba3464d58e5cb86d709ab1484c4 +ARG PAOZHU_REF=4ac57f0697243bffb3d14054ffeea32e8698dd7d WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/cost_define.h b/frameworks/paozhu/cost_define.h index 4cbfeb5b24..1c42411de0 100755 --- a/frameworks/paozhu/cost_define.h +++ b/frameworks/paozhu/cost_define.h @@ -263,11 +263,6 @@ constexpr bool http2_wu_stream_id_ok(unsigned long long sid, unsigned long long #define CONST_HTTP2_SEND_FRAME_BUF 15360 -// 一条流连续多久没有任何字节真正推进,就放弃它(RST_STREAM,不断连接)。 -// 量的是「多久没推进」而不是「等了多久」:慢客户端只要一直在收, -// 等得再久也不该撤流;只有彻底没进展才该撤。 -// Stream abandoned (RST_STREAM, no GOAWAY) when no bytes actually advance for N seconds. Measures "time without progress", not "time waited" — slow clients that keep receiving are fine. -#define CONST_HTTP2_SEND_NO_PROGRESS_TIMEOUT 120 // 每连接 HTTP/2 发送环的槽数。三条硬约束: // 1. 必须是 2 的幂 —— 下标推进用 & (capacity_ - 1),非 2 的幂会算出错误的下一格; // 2. 不能超过 255 —— head_/tail_ 是 unsigned char; @@ -277,47 +272,12 @@ constexpr bool http2_wu_stream_id_ok(unsigned long long sid, unsigned long long // MUST fit unsigned char (head_/tail_), and one slot stays empty for the full/empty test, // so capacity-1 frames are queueable. #define CONST_HTTP2_RING_QUEUE_CAPACITY 32 -// 发送环积压到几个槽就让路。32 槽环有 31 个可排槽,目标是正好留 6 个给 -// HEADERS/SETTINGS/RST/GOAWAY/WINDOW_UPDATE 这类控制帧收尾,所以阈值取 24: -// 判据是严格大于(has_size() > 24),积压 24 时仍放行一帧到 25,看到 25 就挂起, -// 稳态最大积压 25,31 − 25 = 6。取 25 会变成最大积压 26、只剩 5 格,反而不达标。 -// 8 发送线程下的已知代价:闸门是"先读 has_size() 再 push",读和 push 之间有窗口, -// 8 个推者可能同时通过同一个 24 的检查;6 格空位对 8 个推者不够,最坏一轮会有 -// 2 次 push 失败(计入 http2_ring_overflow_count,帧留在对象上由 standby_next -// 下一轮重投,不丢数据)。2 线程时 6 格足够(并发推者数 2 < 6)。 -// 发送侧的挂起条件和回灌条件必须用同一个数,否则会出现「挂起来、回灌去」的空转循环。 -// Send-ring backpressure slot threshold. 31 usable slots, exactly 6 reserved for control-frame -// tails, hence 24: the test is strictly greater, so a backlog of 24 still admits one more frame -// (to 25) and parking starts at 25; steady-state max is 25 and 31 - 25 = 6. Using 25 would make -// the max 26 and leave only 5. Known cost with 8 send threads: the gate reads has_size() before -// pushing, so up to 8 pushers may pass the same check; 6 free slots cannot absorb 8, so worst case -// 2 pushes fail per round (counted in http2_ring_overflow_count, retried via standby_next — no data -// loss). 2 threads: 6 slots are enough. -// Suspend and refill conditions MUST use the same value to avoid "hang → refill → hang" thrashing. -#define CONST_HTTP2_RING_BACKPRESSURE_SLOTS 24 -// 一条流一轮之内除了首帧还能补喂几帧:每轮最多推 SEND_FEED_MAX + 1 = 6 帧(首帧 + 5 次补喂)。 -// 首帧由闸门放行,每次补喂之前重取发送环积压,达到 CONST_HTTP2_RING_FEED_SLOTS 或 -// 额度用完就停 —— 这个上限是「一条流不许在本轮独占发送线程」的界,不是吞吐旋钮: -// 环空着的时候多喂的帧,最终仍受窗口与传输约束。 -// 要让本值真正生效,CONST_HTTP2_RING_FEED_SLOTS 必须 >= 本值 + 1,否则水位先到、一轮凑不满。 -// Max extra frames per stream per round: SEND_FEED_MAX + 1 = 6 frames per round (first + 5 extras). -// For this cap to bind, CONST_HTTP2_RING_FEED_SLOTS must be >= SEND_FEED_MAX + 1, else the -// feed-watermark cuts the round short. -#define CONST_HTTP2_SEND_FEED_MAX 5 -// 补喂允许的发送环积压水位:环里已排队帧数低于它才继续喂同一条流。取成与让路阈值同一个数 -// (24),单条流可以一路喂到积压 24 才停;31 个可排槽里剩下的 7 个留给控制帧收尾。 -// 必须 >= SEND_FEED_MAX + 1(6),否则水位先拦、一轮凑不满 6 帧。 -// Feed-watermark: keep feeding the same stream while ring queued < this. Set equal to the -// backpressure threshold (24) so one stream may fill up to 24; the remaining 7 usable slots keep -// headroom for control-frame tails. Must be >= SEND_FEED_MAX + 1 (6), else rounds get cut short. -#define CONST_HTTP2_RING_FEED_SLOTS 24 -// 发送线程最长能睡多久:等待新发送对象的条件变量带这个期限,醒来跑一次挂起表兜底扫描。 -// 取 6 而不是 5,是为了与 httpwatch 主循环那根 5 秒错开 —— 两条周期任务若同刻醒来会 -// 去抢同一批锁(idle 清理要持 socket_session_lists_mutex,兜底要持 send_data_mutex)。 -// 没有这个期限,「所有发送对象都挂在表上」这个状态本身就让发送线程睡在无超时的 wait 上, -// 而挂在表上的对象恰恰只有这一趟扫描会去续期与撤流。 -// Max send-thread sleep (seconds) — wake at least this often to run the parked-belt sweep (renews time_limit + issues RST for stuck streams). Chosen 6 (not 5) to de-phase from httpwatch's 5s cycle (avoids simultaneous lock contention). Without deadline: all sends parked ⇒ thread sleeps forever; belt never runs. -#define CONST_HTTP2_BELT_SWEEP_SECONDS 6 + +// 一次窗口停等的总预算:到期 RST(CANCEL) 撤流,连接保留。按次重算,不是整条响应的 +// 预算;被 WU 叫醒后用剩余量重挂,小增量不续命。 +#define CONST_HTTP2_WINDOW_STALL_TIMEOUT 10 +// 写锁等待预算,和窗口停等预算分开:慢写占锁不该被当成窗口停等而误撤流。 +#define CONST_HTTP2_WRITE_LOCK_TIMEOUT 10 // RST_STREAM 流错误码(RFC 9113 §7)。CANCEL 表示「流被撤销」,不表示对端违反协议; // 本地背压/过载放弃发送时应使用它,而不是 PROTOCOL_ERROR(0x01)。 diff --git a/frameworks/paozhu/src/controller/src/db.cpp b/frameworks/paozhu/src/controller/src/db.cpp index 6b97cdb3b6..c66cf00280 100644 --- a/frameworks/paozhu/src/controller/src/db.cpp +++ b/frameworks/paozhu/src/controller/src/db.cpp @@ -234,19 +234,19 @@ asio::awaitable arena_async_db(std::shared_ptr peer) if (limit < 1) limit = 1; if (limit > 50) limit = 50; - std::string sql = "SELECT id,name,category,price,quantity,active,tags,rating_score,rating_count FROM items WHERE price BETWEEN "; - sql += std::to_string(min_price); - sql += " AND "; - sql += std::to_string(max_price); - sql += " LIMIT "; - sql += std::to_string(limit); + // 预处理:参数绑定,驱动按连接缓存 statement,池化连接跨请求复用 warm 路径。 + const std::string sql = "SELECT id,name,category,price,quantity,active,tags,rating_score,rating_count FROM items WHERE price BETWEEN ? AND ? LIMIT ?"; + std::vector params; + params.emplace_back(min_price); + params.emplace_back(max_price); + params.emplace_back(limit); std::vector rows; rows.reserve(static_cast(limit)); try { auto link = std::make_unique("pg"); - co_await link->async_query(sql, rows); + co_await link->async_query_prepared(sql, params, rows); if (link->iserror || !link->error_msg.empty()) { respond_db_error(peer, "database query failed"); @@ -277,7 +277,7 @@ asio::awaitable arena_fortunes(std::shared_ptr peer) try { auto link = std::make_unique("pg"); - co_await link->async_query("SELECT id,message FROM fortune", rows); + co_await link->async_query_prepared("SELECT id,message FROM fortune", {}, rows); if (link->iserror || !link->error_msg.empty()) { respond_db_error(peer, "database query failed"); From 49fe4f90a15f4d24a1f3ae226d9ec382f569e2ca Mon Sep 17 00:00:00 2001 From: hzq Date: Tue, 17 Nov 2026 17:39:10 +0800 Subject: [PATCH 70/89] Use framework fun --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/src/controller/src/db.cpp | 32 ++------------------- 2 files changed, 3 insertions(+), 31 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 359341e76d..7f020c45aa 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=4ac57f0697243bffb3d14054ffeea32e8698dd7d +ARG PAOZHU_REF=f0c2dfd66941d52deb4a4047b1f2be2c8a662a84 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/src/controller/src/db.cpp b/frameworks/paozhu/src/controller/src/db.cpp index c66cf00280..abb9dc3d14 100644 --- a/frameworks/paozhu/src/controller/src/db.cpp +++ b/frameworks/paozhu/src/controller/src/db.cpp @@ -1,5 +1,6 @@ #include "httppeer.h" #include "orm_query.h" +#include "func.h" #include #include @@ -118,35 +119,6 @@ namespace out.push_back('"'); } - void append_html_escaped(std::string &out, std::string_view value) - { - if (value.empty()) - { - return; - } - // Copy the plain runs in bulk; only the five escaped bytes need per- - // character work. The seed puts &, ', " and multi-byte UTF-8 in almost - // every row, so this is the hot loop of /fortunes. - std::size_t plain_begin = 0; - for (std::size_t i = 0; i < value.size(); ++i) - { - const char *escaped = nullptr; - switch (value[i]) - { - case '&': escaped = "&"; break; - case '<': escaped = "<"; break; - case '>': escaped = ">"; break; - case '"': escaped = """; break; - case '\'': escaped = "'"; break; - default: continue; - } - out.append(value.data() + plain_begin, i - plain_begin); - out += escaped; - plain_begin = i + 1; - } - out.append(value.data() + plain_begin, value.size() - plain_begin); - } - std::string render_items(const std::vector &rows) { std::string out; @@ -209,7 +181,7 @@ namespace out += ""; out += std::to_string(r.id); out += ""; - append_html_escaped(out, r.message); + http::html_escape(out, r.message); out += ""; } out += ""; From 94664e58fb95fb72ff23498cf8f14d6f26e315aa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 17 Nov 2026 11:29:07 +0000 Subject: [PATCH 71/89] Benchmark results: paozhu [skip ci] --- site/data/frameworks.json | 2 +- site/data/results/paozhu.json | 486 +++++++++--------- site/static/logs/8gbit/512/paozhu.log | 8 +- site/static/logs/async-db/1024/paozhu.log | 12 +- site/static/logs/async/32000/paozhu.log | 4 +- site/static/logs/baseline-h2/1024/paozhu.log | 8 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline-h2c/1024/paozhu.log | 2 +- site/static/logs/baseline-h2c/256/paozhu.log | 8 +- site/static/logs/baseline-h2c/4096/paozhu.log | 8 +- site/static/logs/baseline/4096/paozhu.log | 8 +- .../logs/echo-ws-limited/4096/paozhu.log | 10 +- .../logs/echo-ws-limited/512/paozhu.log | 10 +- .../logs/echo-ws-pipeline/16384/paozhu.log | 8 +- .../logs/echo-ws-pipeline/4096/paozhu.log | 8 +- .../logs/echo-ws-pipeline/512/paozhu.log | 8 +- site/static/logs/echo-ws/16384/paozhu.log | 8 +- site/static/logs/echo-ws/4096/paozhu.log | 10 +- site/static/logs/echo-ws/512/paozhu.log | 10 +- site/static/logs/json-comp/16384/paozhu.log | 6 +- site/static/logs/json-comp/4096/paozhu.log | 8 +- site/static/logs/json-h2c/1024/paozhu.log | 6 +- site/static/logs/json-h2c/4096/paozhu.log | 10 +- site/static/logs/json-tls/4096/paozhu.log | 10 +- site/static/logs/latency-10k/1024/paozhu.log | 10 +- site/static/logs/latency-1m/1024/paozhu.log | 8 +- site/static/logs/limited-conn/4096/paozhu.log | 8 +- site/static/logs/static-h2/1024/paozhu.log | 16 +- site/static/logs/static-h2/256/paozhu.log | 2 +- site/static/logs/static-tls/1024/paozhu.log | 8 +- 30 files changed, 359 insertions(+), 359 deletions(-) diff --git a/site/data/frameworks.json b/site/data/frameworks.json index 74fef4a2ab..16d35c1789 100644 --- a/site/data/frameworks.json +++ b/site/data/frameworks.json @@ -53,7 +53,7 @@ }, "aegon": { "dir": "aegon", - "description": "Linux-native C++26 asynchronous web framework powered by io_uring multishot primitives, coroutines, stepped SIMD vectorization, Glaze JSON serialization, and native zero-overhead gRPC over HTTP/2 with kTLS TX offload.", + "description": "Linux-native C++26 asynchronous web framework on io_uring: one event loop per core with multishot accept and recv over provided buffer rings, requests parsed in place from the receive buffer, coroutine handlers with userspace timers, Glaze JSON serialization, and gzip/deflate (libdeflate) and brotli compression middleware. Static files are served from a per-worker cache that follows the disk through inotify, with precompressed .br/.gz variants. TLS 1.3 through OpenSSL with a zero-copy connection BIO and ALPN; HTTP/2 and HTTP/3 (QUIC) with pooled streams; WebSocket; native gRPC over HTTP/2.", "repo": "https://github.com/UdayKhare09/Aegon", "type": "experimental", "engine": "io_uring", diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 2f9af60007..f9a2e9c385 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,44 +4,44 @@ "8gbit-512": { "framework": "paozhu", "language": "C++", - "rps": 49022, - "avg_latency": "95.1us", - "p99_latency": "138.0us", - "cpu": "277.1%", - "memory": "125MiB", + "rps": 48980, + "avg_latency": "105.5us", + "p99_latency": "139.0us", + "cpu": "265.7%", + "memory": "116MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "507.96MB/s", - "input_bw": "478.73MB/s", + "bandwidth": "507.53MB/s", + "input_bw": "478.32MB/s", "reconnects": 0, - "status_2xx": 245171, + "status_2xx": 244967, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 15261928, - "cpu_per_req_us": 62.2501, + "cpu_usec": 14613053, + "cpu_per_req_us": 59.6531, "target_rate": 50000, - "rate_ratio": 0.9804, - "p99_9_latency": "440.0us" + "rate_ratio": 0.9796, + "p99_9_latency": "3503.0us" }, "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1660336, - "avg_latency": "17.65ms", - "p99_latency": "27.60ms", - "cpu": "5867.0%", - "memory": "570MiB", + "rps": 1890461, + "avg_latency": "16.98ms", + "p99_latency": "17.30ms", + "cpu": "5917.1%", + "memory": "551MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "167.81MB/s", - "input_bw": "76.00MB/s", + "bandwidth": "191.07MB/s", + "input_bw": "86.54MB/s", "reconnects": 0, - "status_2xx": 16603365, + "status_2xx": 18904618, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -49,19 +49,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 157083, - "avg_latency": "6.02ms", - "p99_latency": "25.30ms", - "cpu": "3563.8%", - "memory": "126MiB", + "rps": 159018, + "avg_latency": "6.43ms", + "p99_latency": "24.30ms", + "cpu": "3514.1%", + "memory": "110MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "605.60MB/s", - "input_bw": "10.49MB/s", - "reconnects": 62694, - "status_2xx": 1570835, + "bandwidth": "612.82MB/s", + "input_bw": "10.62MB/s", + "reconnects": 63373, + "status_2xx": 1590186, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -69,19 +69,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2612446, - "avg_latency": "1.57ms", - "p99_latency": "9.72ms", - "cpu": "6381.2%", - "memory": "140MiB", + "rps": 2567057, + "avg_latency": "1.60ms", + "p99_latency": "1.78ms", + "cpu": "6432.8%", + "memory": "128MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "264.02MB/s", - "input_bw": "201.81MB/s", + "bandwidth": "259.43MB/s", + "input_bw": "198.30MB/s", "reconnects": 0, - "status_2xx": 13062233, + "status_2xx": 12835286, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -89,18 +89,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 430855, - "avg_latency": "225.65ms", - "p99_latency": "2.08s", - "cpu": "4111.2%", - "memory": "2.0GiB", + "rps": 597549, + "avg_latency": "163.21ms", + "p99_latency": "300.37ms", + "cpu": "6401.1%", + "memory": "861MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.55MB/s", + "bandwidth": "27.01MB/s", "reconnects": 0, - "status_2xx": 2180129, + "status_2xx": 3023599, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -108,18 +108,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 456878, - "avg_latency": "55.03ms", - "p99_latency": "387.61ms", - "cpu": "4411.4%", - "memory": "568MiB", + "rps": 612849, + "avg_latency": "41.46ms", + "p99_latency": "109.72ms", + "cpu": "6658.1%", + "memory": "255MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.60MB/s", + "bandwidth": "27.56MB/s", "reconnects": 0, - "status_2xx": 2298097, + "status_2xx": 3076504, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -127,18 +127,18 @@ "baseline-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 447320, - "avg_latency": "219.36ms", - "p99_latency": "1.81s", - "cpu": "3820.6%", - "memory": "1.9GiB", + "rps": 648821, + "avg_latency": "154.71ms", + "p99_latency": "277.86ms", + "cpu": "6373.8%", + "memory": "786MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.26MB/s", + "bandwidth": "29.33MB/s", "reconnects": 0, - "status_2xx": 2258966, + "status_2xx": 3283038, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -146,18 +146,18 @@ "baseline-h2c-256": { "framework": "paozhu", "language": "C++", - "rps": 478686, - "avg_latency": "52.73ms", - "p99_latency": "357.47ms", - "cpu": "3858.5%", - "memory": "542MiB", + "rps": 710374, + "avg_latency": "36.44ms", + "p99_latency": "218.72ms", + "cpu": "6448.2%", + "memory": "226MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.59MB/s", + "bandwidth": "32.14MB/s", "reconnects": 0, - "status_2xx": 2407793, + "status_2xx": 3587393, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -165,18 +165,18 @@ "baseline-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 382996, - "avg_latency": "918.88ms", - "p99_latency": "4.99s", - "cpu": "3929.6%", - "memory": "7.6GiB", + "rps": 578551, + "avg_latency": "669.70ms", + "p99_latency": "896.66ms", + "cpu": "6294.2%", + "memory": "2.9GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.58MB/s", + "bandwidth": "26.15MB/s", "reconnects": 0, - "status_2xx": 1957114, + "status_2xx": 2950615, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -184,18 +184,18 @@ "echo-ws-16384": { "framework": "paozhu", "language": "C++", - "rps": 2848223, - "avg_latency": "4.12ms", - "p99_latency": "15.30ms", - "cpu": "6157.1%", - "memory": "426MiB", + "rps": 2555566, + "avg_latency": "6.41ms", + "p99_latency": "6.69ms", + "cpu": "6130.1%", + "memory": "415MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.50MB/s", + "bandwidth": "17.06MB/s", "reconnects": 0, - "status_2xx": 14241119, + "status_2xx": 12777831, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -203,18 +203,18 @@ "echo-ws-4096": { "framework": "paozhu", "language": "C++", - "rps": 3168772, - "avg_latency": "1.26ms", - "p99_latency": "6.74ms", - "cpu": "6336.7%", - "memory": "149MiB", + "rps": 3064089, + "avg_latency": "1.34ms", + "p99_latency": "1.61ms", + "cpu": "6282.0%", + "memory": "140MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.25MB/s", + "bandwidth": "20.45MB/s", "reconnects": 0, - "status_2xx": 15843864, + "status_2xx": 15320445, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -222,18 +222,18 @@ "echo-ws-512": { "framework": "paozhu", "language": "C++", - "rps": 3151920, - "avg_latency": "161us", - "p99_latency": "3.20ms", - "cpu": "6500.7%", - "memory": "75MiB", + "rps": 3083699, + "avg_latency": "165us", + "p99_latency": "268us", + "cpu": "6581.0%", + "memory": "67MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.04MB/s", + "bandwidth": "20.58MB/s", "reconnects": 0, - "status_2xx": 15759601, + "status_2xx": 15418496, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -241,18 +241,18 @@ "echo-ws-limited-4096": { "framework": "paozhu", "language": "C++", - "rps": 689497, - "avg_latency": "44us", - "p99_latency": "109us", - "cpu": "2556.1%", - "memory": "69MiB", + "rps": 1029572, + "avg_latency": "67us", + "p99_latency": "250us", + "cpu": "3833.3%", + "memory": "86MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "14.86MB/s", - "reconnects": 344748, - "status_2xx": 3447485, + "bandwidth": "22.18MB/s", + "reconnects": 514846, + "status_2xx": 5147862, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -260,18 +260,18 @@ "echo-ws-limited-512": { "framework": "paozhu", "language": "C++", - "rps": 688369, - "avg_latency": "43us", - "p99_latency": "96us", - "cpu": "2695.4%", - "memory": "69MiB", + "rps": 1030051, + "avg_latency": "65us", + "p99_latency": "229us", + "cpu": "3780.2%", + "memory": "62MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "14.83MB/s", - "reconnects": 344180, - "status_2xx": 3441848, + "bandwidth": "22.19MB/s", + "reconnects": 515022, + "status_2xx": 5150256, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -279,18 +279,18 @@ "echo-ws-pipeline-16384": { "framework": "paozhu", "language": "C++", - "rps": 3141376, - "avg_latency": "60.71ms", - "p99_latency": "189.20ms", - "cpu": "6005.8%", - "memory": "442MiB", + "rps": 2740929, + "avg_latency": "95.64ms", + "p99_latency": "97.20ms", + "cpu": "6127.6%", + "memory": "438MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "21.45MB/s", + "bandwidth": "18.29MB/s", "reconnects": 0, - "status_2xx": 15706883, + "status_2xx": 13704646, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -298,18 +298,18 @@ "echo-ws-pipeline-4096": { "framework": "paozhu", "language": "C++", - "rps": 3561878, - "avg_latency": "17.64ms", - "p99_latency": "36.40ms", - "cpu": "6226.2%", - "memory": "153MiB", + "rps": 3394366, + "avg_latency": "19.31ms", + "p99_latency": "20.00ms", + "cpu": "6389.3%", + "memory": "145MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "23.88MB/s", + "bandwidth": "22.65MB/s", "reconnects": 0, - "status_2xx": 17809390, + "status_2xx": 16971833, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -317,18 +317,18 @@ "echo-ws-pipeline-512": { "framework": "paozhu", "language": "C++", - "rps": 3741148, - "avg_latency": "2.19ms", - "p99_latency": "10.00ms", - "cpu": "6475.8%", - "memory": "70MiB", + "rps": 3577409, + "avg_latency": "2.29ms", + "p99_latency": "2.82ms", + "cpu": "6500.5%", + "memory": "63MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "24.97MB/s", + "bandwidth": "23.87MB/s", "reconnects": 0, - "status_2xx": 18705740, + "status_2xx": 17887045, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -336,18 +336,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 63205, - "avg_latency": "15.00ms", - "p99_latency": "37.30ms", - "cpu": "3588.2%", - "memory": "155MiB", + "rps": 60236, + "avg_latency": "16.95ms", + "p99_latency": "68.60ms", + "cpu": "3262.4%", + "memory": "140MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.46GB/s", + "bandwidth": "1.39GB/s", "reconnects": 0, - "status_2xx": 316029, + "status_2xx": 301181, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -355,19 +355,19 @@ "json-comp-16384": { "framework": "paozhu", "language": "C++", - "rps": 690856, - "avg_latency": "6.96ms", - "p99_latency": "150.40ms", - "cpu": "5869.9%", - "memory": "167MiB", + "rps": 701779, + "avg_latency": "23.31ms", + "p99_latency": "55.60ms", + "cpu": "6225.4%", + "memory": "587MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.07GB/s", - "input_bw": "51.39MB/s", - "reconnects": 138077, - "status_2xx": 3454280, + "bandwidth": "1.09GB/s", + "input_bw": "52.20MB/s", + "reconnects": 138103, + "status_2xx": 3508896, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -375,19 +375,19 @@ "json-comp-4096": { "framework": "paozhu", "language": "C++", - "rps": 715374, - "avg_latency": "5.64ms", - "p99_latency": "141.30ms", - "cpu": "6372.4%", - "memory": "170MiB", + "rps": 762130, + "avg_latency": "5.38ms", + "p99_latency": "29.00ms", + "cpu": "6297.9%", + "memory": "217MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.11GB/s", - "input_bw": "53.21MB/s", - "reconnects": 143250, - "status_2xx": 3576874, + "bandwidth": "1.18GB/s", + "input_bw": "56.69MB/s", + "reconnects": 150554, + "status_2xx": 3810650, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -395,18 +395,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 402611, - "avg_latency": "79.69ms", - "p99_latency": "198.29ms", - "cpu": "4214.0%", - "memory": "1.2GiB", + "rps": 688842, + "avg_latency": "46.94ms", + "p99_latency": "103.93ms", + "cpu": "6611.1%", + "memory": "490MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.35GB/s", + "bandwidth": "2.30GB/s", "reconnects": 0, - "status_2xx": 2037212, + "status_2xx": 3478653, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -414,18 +414,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 382714, - "avg_latency": "325.17ms", - "p99_latency": "1.12s", - "cpu": "3973.3%", - "memory": "4.7GiB", + "rps": 627804, + "avg_latency": "203.80ms", + "p99_latency": "354.97ms", + "cpu": "6606.3%", + "memory": "1.8GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.29GB/s", + "bandwidth": "2.08GB/s", "reconnects": 0, - "status_2xx": 1944192, + "status_2xx": 3208079, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -433,18 +433,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1046700, - "avg_latency": "4.66ms", - "p99_latency": "267.89ms", - "cpu": "6100.5%", - "memory": "451MiB", + "rps": 986773, + "avg_latency": "4.01ms", + "p99_latency": "40.68ms", + "cpu": "6142.4%", + "memory": "432MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.54GB", + "bandwidth": "3.34GB", "reconnects": 0, - "status_2xx": 5332614, + "status_2xx": 5031687, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -453,90 +453,90 @@ "framework": "paozhu", "language": "C++", "rps": 9983, - "avg_latency": "76.9us", - "p99_latency": "108.0us", - "cpu": "28.4%", - "memory": "68MiB", + "avg_latency": "70.5us", + "p99_latency": "107.0us", + "cpu": "28.0%", + "memory": "63MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199686, + "status_2xx": 199680, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 5934663, - "cpu_per_req_us": 29.72, + "cpu_usec": 5836761, + "cpu_per_req_us": 29.2306, "target_rate": 10000, "rate_ratio": 0.9983, - "p99_9_latency": "363.0us" + "p99_9_latency": "165.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997337, - "avg_latency": "120.0us", - "p99_latency": "190.0us", - "cpu": "3621.2%", - "memory": "76MiB", + "rps": 997574, + "avg_latency": "123.4us", + "p99_latency": "203.0us", + "cpu": "3067.3%", + "memory": "70MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.72MB/s", + "bandwidth": "104.75MB/s", "reconnects": 0, - "status_2xx": 19950546, + "status_2xx": 19955591, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 652454600, - "cpu_per_req_us": 32.7036, + "cpu_usec": 565254406, + "cpu_per_req_us": 28.3256, "target_rate": 1000000, - "rate_ratio": 0.9973, - "p99_9_latency": "9500.0us" + "rate_ratio": 0.9976, + "p99_9_latency": "11932.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 376949, - "avg_latency": "2431979.7us", - "p99_latency": "4925440.0us", - "cpu": "804.5%", - "memory": "69MiB", + "rps": 360048, + "avg_latency": "2794021.9us", + "p99_latency": "5498880.0us", + "cpu": "785.2%", + "memory": "52MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "39.58MB/s", + "bandwidth": "37.81MB/s", "reconnects": 0, - "status_2xx": 7541622, + "status_2xx": 7203360, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159565144, - "cpu_per_req_us": 21.1579, + "cpu_usec": 159481259, + "cpu_per_req_us": 22.1398, "target_rate": 500000, - "rate_ratio": 0.7539, - "p99_9_latency": "5072896.0us" + "rate_ratio": 0.7201, + "p99_9_latency": "5580800.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 662349, - "avg_latency": "6.16ms", - "p99_latency": "62.40ms", - "cpu": "2715.4%", - "memory": "77MiB", + "rps": 1053155, + "avg_latency": "3.87ms", + "p99_latency": "44.00ms", + "cpu": "3717.5%", + "memory": "86MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "66.94MB/s", - "input_bw": "51.16MB/s", - "reconnects": 331175, - "status_2xx": 3311748, + "bandwidth": "106.43MB/s", + "input_bw": "81.35MB/s", + "reconnects": 526708, + "status_2xx": 5265778, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -544,18 +544,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3617075, - "avg_latency": "18.14ms", - "p99_latency": "36.20ms", - "cpu": "6335.7%", - "memory": "128MiB", + "rps": 3436674, + "avg_latency": "19.12ms", + "p99_latency": "21.20ms", + "cpu": "6236.6%", + "memory": "120MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "365.55MB/s", + "bandwidth": "347.31MB/s", "reconnects": 0, - "status_2xx": 18085375, + "status_2xx": 17183374, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -563,18 +563,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 217549, - "avg_latency": "143.77ms", - "p99_latency": "693.89ms", - "cpu": "5419.6%", - "memory": "2.5GiB", + "rps": 288188, + "avg_latency": "110.05ms", + "p99_latency": "414.42ms", + "cpu": "6329.3%", + "memory": "1.2GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.34GB/s", + "bandwidth": "4.37GB/s", "reconnects": 0, - "status_2xx": 1100798, + "status_2xx": 1458233, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -582,18 +582,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 217105, - "avg_latency": "37.27ms", - "p99_latency": "199.40ms", - "cpu": "5617.4%", - "memory": "745MiB", + "rps": 301288, + "avg_latency": "26.97ms", + "p99_latency": "119.79ms", + "cpu": "6563.6%", + "memory": "388MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.32GB/s", + "bandwidth": "4.58GB/s", "reconnects": 0, - "status_2xx": 1092043, + "status_2xx": 1512466, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -601,18 +601,18 @@ "static-tls-1024": { "framework": "paozhu", "language": "C++", - "rps": 218010, - "avg_latency": "4.68ms", - "p99_latency": "22.05ms", - "cpu": "3892.0%", - "memory": "228MiB", + "rps": 299532, + "avg_latency": "3.46ms", + "p99_latency": "25.75ms", + "cpu": "5553.6%", + "memory": "232MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.33GB", + "bandwidth": "4.58GB", "reconnects": 0, - "status_2xx": 1111746, + "status_2xx": 1527387, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/8gbit/512/paozhu.log b/site/static/logs/8gbit/512/paozhu.log index 9dc0d2ee1c..5c28ad555e 100644 --- a/site/static/logs/8gbit/512/paozhu.log +++ b/site/static/logs/8gbit/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index fd83ef3a35..158355f19d 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index ae6badc558..d3b08d0545 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin + [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index ae6badc558..496f177217 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/1024/paozhu.log b/site/static/logs/baseline-h2c/1024/paozhu.log index ae6badc558..61672439db 100644 --- a/site/static/logs/baseline-h2c/1024/paozhu.log +++ b/site/static/logs/baseline-h2c/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline-h2c/256/paozhu.log b/site/static/logs/baseline-h2c/256/paozhu.log index ae6badc558..f4f72854a0 100644 --- a/site/static/logs/baseline-h2c/256/paozhu.log +++ b/site/static/logs/baseline-h2c/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/4096/paozhu.log b/site/static/logs/baseline-h2c/4096/paozhu.log index a781d4c2fa..ae6badc558 100644 --- a/site/static/logs/baseline-h2c/4096/paozhu.log +++ b/site/static/logs/baseline-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 00d8d1c9c2..9431dded1d 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf - not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[sockets] -/app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/4096/paozhu.log b/site/static/logs/echo-ws-limited/4096/paozhu.log index ae6badc558..9ee1ff30bb 100644 --- a/site/static/logs/echo-ws-limited/4096/paozhu.log +++ b/site/static/logs/echo-ws-limited/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled[sockets] +/app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/512/paozhu.log b/site/static/logs/echo-ws-limited/512/paozhu.log index e1e45d77ac..ae6badc558 100644 --- a/site/static/logs/echo-ws-limited/512/paozhu.log +++ b/site/static/logs/echo-ws-limited/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -websockets.conf not found or parse fail, websocket client disabled[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/16384/paozhu.log b/site/static/logs/echo-ws-pipeline/16384/paozhu.log index e199d30c63..1e64dfc464 100644 --- a/site/static/logs/echo-ws-pipeline/16384/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled[mqtt_client] +/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/4096/paozhu.log b/site/static/logs/echo-ws-pipeline/4096/paozhu.log index eb9eae963b..496f177217 100644 --- a/site/static/logs/echo-ws-pipeline/4096/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf - not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/512/paozhu.log b/site/static/logs/echo-ws-pipeline/512/paozhu.log index 61672439db..2ef79952c1 100644 --- a/site/static/logs/echo-ws-pipeline/512/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/512/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/16384/paozhu.log b/site/static/logs/echo-ws/16384/paozhu.log index ae6badc558..a781d4c2fa 100644 --- a/site/static/logs/echo-ws/16384/paozhu.log +++ b/site/static/logs/echo-ws/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/4096/paozhu.log b/site/static/logs/echo-ws/4096/paozhu.log index db26c658fd..ae6badc558 100644 --- a/site/static/logs/echo-ws/4096/paozhu.log +++ b/site/static/logs/echo-ws/4096/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/512/paozhu.log b/site/static/logs/echo-ws/512/paozhu.log index b98ce64edf..594675f4e1 100644 --- a/site/static/logs/echo-ws/512/paozhu.log +++ b/site/static/logs/echo-ws/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/16384/paozhu.log b/site/static/logs/json-comp/16384/paozhu.log index ae6badc558..594fa68ff8 100644 --- a/site/static/logs/json-comp/16384/paozhu.log +++ b/site/static/logs/json-comp/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/4096/paozhu.log b/site/static/logs/json-comp/4096/paozhu.log index 67c991bf37..ae6badc558 100644 --- a/site/static/logs/json-comp/4096/paozhu.log +++ b/site/static/logs/json-comp/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index cc0046056b..ae6badc558 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] -/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index ae6badc558..844e61d413 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 594675f4e1..b5ba085bbf 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[sockets] +/app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index e199d30c63..594675f4e1 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index 67c991bf37..ae6badc558 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index f164686a5a..02ce1424dd 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabledwebsockets.conf +[websockets] [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabledwebsockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] [mqtt_client] /app/conf/h1/sockets.conf/app/conf/main/mqtt.conf not found or parse fail, socket client disabled not found or parse fail, mqtt client disabled + +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index bbb13f7c36..b22c67141c 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,14 +1,14 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf - not found or parse fail, mqtt client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients -[ws_subpub] init: registered 0 clients -[sock_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients +[ws_subpub] init: registered 0 clients +[sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index ae6badc558..61672439db 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/static-tls/1024/paozhu.log b/site/static/logs/static-tls/1024/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/static-tls/1024/paozhu.log +++ b/site/static/logs/static-tls/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From 44da3a0e1a6cc5c748f99d6724958a9374d2e441 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 17 Nov 2026 12:01:01 +0000 Subject: [PATCH 72/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 480 +++++++++--------- site/static/logs/8gbit/512/paozhu.log | 8 +- site/static/logs/async-db/1024/paozhu.log | 6 +- site/static/logs/async/32000/paozhu.log | 8 +- site/static/logs/baseline-h2/1024/paozhu.log | 6 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline-h2c/1024/paozhu.log | 2 +- site/static/logs/baseline-h2c/256/paozhu.log | 8 +- site/static/logs/baseline/4096/paozhu.log | 8 +- .../logs/echo-ws-limited/4096/paozhu.log | 10 +- .../logs/echo-ws-pipeline/16384/paozhu.log | 8 +- .../logs/echo-ws-pipeline/4096/paozhu.log | 8 +- .../logs/echo-ws-pipeline/512/paozhu.log | 10 +- site/static/logs/echo-ws/16384/paozhu.log | 8 +- site/static/logs/echo-ws/4096/paozhu.log | 8 +- site/static/logs/echo-ws/512/paozhu.log | 6 +- site/static/logs/fortunes/1024/paozhu.log | 10 +- site/static/logs/json-comp/16384/paozhu.log | 6 +- site/static/logs/json-comp/4096/paozhu.log | 10 +- site/static/logs/json-h2c/1024/paozhu.log | 8 +- site/static/logs/json-h2c/4096/paozhu.log | 10 +- site/static/logs/json-tls/4096/paozhu.log | 10 +- site/static/logs/latency-1m/1024/paozhu.log | 8 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 6 +- site/static/logs/limited-conn/4096/paozhu.log | 10 +- site/static/logs/pipelined/4096/paozhu.log | 10 +- site/static/logs/static-h2/1024/paozhu.log | 4 +- site/static/logs/static-h2/256/paozhu.log | 2 +- site/static/logs/static-tls/1024/paozhu.log | 8 +- 29 files changed, 347 insertions(+), 347 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index f9a2e9c385..a145fd0fdc 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,44 +4,44 @@ "8gbit-512": { "framework": "paozhu", "language": "C++", - "rps": 48980, - "avg_latency": "105.5us", - "p99_latency": "139.0us", - "cpu": "265.7%", - "memory": "116MiB", + "rps": 49052, + "avg_latency": "101.2us", + "p99_latency": "136.0us", + "cpu": "271.0%", + "memory": "118MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "507.53MB/s", - "input_bw": "478.32MB/s", + "bandwidth": "508.27MB/s", + "input_bw": "479.02MB/s", "reconnects": 0, - "status_2xx": 244967, + "status_2xx": 245330, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 14613053, - "cpu_per_req_us": 59.6531, + "cpu_usec": 14550842, + "cpu_per_req_us": 59.3113, "target_rate": 50000, - "rate_ratio": 0.9796, - "p99_9_latency": "3503.0us" + "rate_ratio": 0.981, + "p99_9_latency": "3787.0us" }, "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1890461, - "avg_latency": "16.98ms", + "rps": 1881148, + "avg_latency": "17.03ms", "p99_latency": "17.30ms", - "cpu": "5917.1%", - "memory": "551MiB", + "cpu": "5935.6%", + "memory": "553MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "191.07MB/s", - "input_bw": "86.54MB/s", + "bandwidth": "190.13MB/s", + "input_bw": "86.11MB/s", "reconnects": 0, - "status_2xx": 18904618, + "status_2xx": 18811482, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -49,19 +49,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 159018, - "avg_latency": "6.43ms", - "p99_latency": "24.30ms", - "cpu": "3514.1%", - "memory": "110MiB", + "rps": 157035, + "avg_latency": "6.51ms", + "p99_latency": "24.90ms", + "cpu": "3493.5%", + "memory": "111MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "612.82MB/s", - "input_bw": "10.62MB/s", - "reconnects": 63373, - "status_2xx": 1590186, + "bandwidth": "605.05MB/s", + "input_bw": "10.48MB/s", + "reconnects": 62574, + "status_2xx": 1570352, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -69,19 +69,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2567057, - "avg_latency": "1.60ms", - "p99_latency": "1.78ms", - "cpu": "6432.8%", - "memory": "128MiB", + "rps": 2591405, + "avg_latency": "1.58ms", + "p99_latency": "4.31ms", + "cpu": "6172.6%", + "memory": "133MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "259.43MB/s", - "input_bw": "198.30MB/s", + "bandwidth": "261.90MB/s", + "input_bw": "200.18MB/s", "reconnects": 0, - "status_2xx": 12835286, + "status_2xx": 12957028, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -89,18 +89,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 597549, - "avg_latency": "163.21ms", - "p99_latency": "300.37ms", - "cpu": "6401.1%", - "memory": "861MiB", + "rps": 626448, + "avg_latency": "155.60ms", + "p99_latency": "247.74ms", + "cpu": "6438.5%", + "memory": "870MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "27.01MB/s", + "bandwidth": "28.26MB/s", "reconnects": 0, - "status_2xx": 3023599, + "status_2xx": 3163564, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -108,18 +108,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 612849, - "avg_latency": "41.46ms", - "p99_latency": "109.72ms", - "cpu": "6658.1%", - "memory": "255MiB", + "rps": 633973, + "avg_latency": "39.92ms", + "p99_latency": "87.13ms", + "cpu": "6656.6%", + "memory": "256MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "27.56MB/s", + "bandwidth": "28.57MB/s", "reconnects": 0, - "status_2xx": 3076504, + "status_2xx": 3188888, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -127,18 +127,18 @@ "baseline-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 648821, - "avg_latency": "154.71ms", - "p99_latency": "277.86ms", - "cpu": "6373.8%", - "memory": "786MiB", + "rps": 710732, + "avg_latency": "140.63ms", + "p99_latency": "213.39ms", + "cpu": "6519.4%", + "memory": "770MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "29.33MB/s", + "bandwidth": "32.21MB/s", "reconnects": 0, - "status_2xx": 3283038, + "status_2xx": 3603415, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -146,18 +146,18 @@ "baseline-h2c-256": { "framework": "paozhu", "language": "C++", - "rps": 710374, - "avg_latency": "36.44ms", - "p99_latency": "218.72ms", - "cpu": "6448.2%", - "memory": "226MiB", + "rps": 704611, + "avg_latency": "36.25ms", + "p99_latency": "82.86ms", + "cpu": "6652.0%", + "memory": "236MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "32.14MB/s", + "bandwidth": "31.69MB/s", "reconnects": 0, - "status_2xx": 3587393, + "status_2xx": 3537151, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -165,18 +165,18 @@ "baseline-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 578551, - "avg_latency": "669.70ms", - "p99_latency": "896.66ms", - "cpu": "6294.2%", + "rps": 587467, + "avg_latency": "657.11ms", + "p99_latency": "855.29ms", + "cpu": "6603.6%", "memory": "2.9GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "26.15MB/s", + "bandwidth": "26.56MB/s", "reconnects": 0, - "status_2xx": 2950615, + "status_2xx": 2990208, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -184,18 +184,18 @@ "echo-ws-16384": { "framework": "paozhu", "language": "C++", - "rps": 2555566, - "avg_latency": "6.41ms", - "p99_latency": "6.69ms", - "cpu": "6130.1%", - "memory": "415MiB", + "rps": 2513504, + "avg_latency": "6.52ms", + "p99_latency": "13.00ms", + "cpu": "6095.3%", + "memory": "417MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.06MB/s", + "bandwidth": "16.78MB/s", "reconnects": 0, - "status_2xx": 12777831, + "status_2xx": 12567521, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -203,18 +203,18 @@ "echo-ws-4096": { "framework": "paozhu", "language": "C++", - "rps": 3064089, - "avg_latency": "1.34ms", - "p99_latency": "1.61ms", - "cpu": "6282.0%", - "memory": "140MiB", + "rps": 3036322, + "avg_latency": "1.35ms", + "p99_latency": "1.64ms", + "cpu": "6274.6%", + "memory": "141MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.45MB/s", + "bandwidth": "20.26MB/s", "reconnects": 0, - "status_2xx": 15320445, + "status_2xx": 15181611, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -222,18 +222,18 @@ "echo-ws-512": { "framework": "paozhu", "language": "C++", - "rps": 3083699, - "avg_latency": "165us", - "p99_latency": "268us", - "cpu": "6581.0%", - "memory": "67MiB", + "rps": 3033809, + "avg_latency": "168us", + "p99_latency": "271us", + "cpu": "6310.9%", + "memory": "66MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.58MB/s", + "bandwidth": "20.25MB/s", "reconnects": 0, - "status_2xx": 15418496, + "status_2xx": 15169045, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -241,18 +241,18 @@ "echo-ws-limited-4096": { "framework": "paozhu", "language": "C++", - "rps": 1029572, - "avg_latency": "67us", - "p99_latency": "250us", - "cpu": "3833.3%", - "memory": "86MiB", + "rps": 1060472, + "avg_latency": "65us", + "p99_latency": "205us", + "cpu": "3734.6%", + "memory": "100MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "22.18MB/s", - "reconnects": 514846, - "status_2xx": 5147862, + "bandwidth": "22.85MB/s", + "reconnects": 530270, + "status_2xx": 5302363, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -260,18 +260,18 @@ "echo-ws-limited-512": { "framework": "paozhu", "language": "C++", - "rps": 1030051, - "avg_latency": "65us", - "p99_latency": "229us", - "cpu": "3780.2%", - "memory": "62MiB", + "rps": 1051163, + "avg_latency": "64us", + "p99_latency": "203us", + "cpu": "3842.8%", + "memory": "64MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "22.19MB/s", - "reconnects": 515022, - "status_2xx": 5150256, + "bandwidth": "22.65MB/s", + "reconnects": 525578, + "status_2xx": 5255816, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -279,18 +279,18 @@ "echo-ws-pipeline-16384": { "framework": "paozhu", "language": "C++", - "rps": 2740929, - "avg_latency": "95.64ms", - "p99_latency": "97.20ms", - "cpu": "6127.6%", - "memory": "438MiB", + "rps": 2749159, + "avg_latency": "95.40ms", + "p99_latency": "98.70ms", + "cpu": "6094.6%", + "memory": "437MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "18.29MB/s", + "bandwidth": "18.35MB/s", "reconnects": 0, - "status_2xx": 13704646, + "status_2xx": 13745795, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -298,18 +298,18 @@ "echo-ws-pipeline-4096": { "framework": "paozhu", "language": "C++", - "rps": 3394366, - "avg_latency": "19.31ms", - "p99_latency": "20.00ms", - "cpu": "6389.3%", - "memory": "145MiB", + "rps": 3313860, + "avg_latency": "19.79ms", + "p99_latency": "37.40ms", + "cpu": "6080.9%", + "memory": "146MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "22.65MB/s", + "bandwidth": "22.12MB/s", "reconnects": 0, - "status_2xx": 16971833, + "status_2xx": 16569300, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -317,18 +317,18 @@ "echo-ws-pipeline-512": { "framework": "paozhu", "language": "C++", - "rps": 3577409, - "avg_latency": "2.29ms", - "p99_latency": "2.82ms", - "cpu": "6500.5%", + "rps": 3466640, + "avg_latency": "2.36ms", + "p99_latency": "5.28ms", + "cpu": "6308.4%", "memory": "63MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "23.87MB/s", + "bandwidth": "23.14MB/s", "reconnects": 0, - "status_2xx": 17887045, + "status_2xx": 17333200, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -336,18 +336,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 60236, - "avg_latency": "16.95ms", - "p99_latency": "68.60ms", - "cpu": "3262.4%", - "memory": "140MiB", + "rps": 59864, + "avg_latency": "17.09ms", + "p99_latency": "47.10ms", + "cpu": "3587.8%", + "memory": "142MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.39GB/s", + "bandwidth": "1.38GB/s", "reconnects": 0, - "status_2xx": 301181, + "status_2xx": 299320, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -355,19 +355,19 @@ "json-comp-16384": { "framework": "paozhu", "language": "C++", - "rps": 701779, - "avg_latency": "23.31ms", - "p99_latency": "55.60ms", - "cpu": "6225.4%", - "memory": "587MiB", + "rps": 713271, + "avg_latency": "22.94ms", + "p99_latency": "59.30ms", + "cpu": "6209.7%", + "memory": "554MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.09GB/s", - "input_bw": "52.20MB/s", - "reconnects": 138103, - "status_2xx": 3508896, + "bandwidth": "1.10GB/s", + "input_bw": "53.06MB/s", + "reconnects": 139207, + "status_2xx": 3566359, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -375,19 +375,19 @@ "json-comp-4096": { "framework": "paozhu", "language": "C++", - "rps": 762130, - "avg_latency": "5.38ms", - "p99_latency": "29.00ms", - "cpu": "6297.9%", - "memory": "217MiB", + "rps": 778716, + "avg_latency": "5.25ms", + "p99_latency": "25.40ms", + "cpu": "6326.2%", + "memory": "234MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.18GB/s", - "input_bw": "56.69MB/s", - "reconnects": 150554, - "status_2xx": 3810650, + "bandwidth": "1.21GB/s", + "input_bw": "57.93MB/s", + "reconnects": 154222, + "status_2xx": 3893582, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -395,18 +395,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 688842, - "avg_latency": "46.94ms", - "p99_latency": "103.93ms", - "cpu": "6611.1%", - "memory": "490MiB", + "rps": 619460, + "avg_latency": "52.17ms", + "p99_latency": "112.03ms", + "cpu": "6454.1%", + "memory": "491MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.30GB/s", + "bandwidth": "2.07GB/s", "reconnects": 0, - "status_2xx": 3478653, + "status_2xx": 3128277, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -414,18 +414,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 627804, - "avg_latency": "203.80ms", - "p99_latency": "354.97ms", - "cpu": "6606.3%", + "rps": 649603, + "avg_latency": "196.88ms", + "p99_latency": "349.51ms", + "cpu": "6645.8%", "memory": "1.8GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.08GB/s", + "bandwidth": "2.15GB/s", "reconnects": 0, - "status_2xx": 3208079, + "status_2xx": 3306484, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -433,18 +433,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 986773, - "avg_latency": "4.01ms", - "p99_latency": "40.68ms", - "cpu": "6142.4%", + "rps": 1001889, + "avg_latency": "3.93ms", + "p99_latency": "42.15ms", + "cpu": "6165.2%", "memory": "432MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.34GB", + "bandwidth": "3.39GB", "reconnects": 0, - "status_2xx": 5031687, + "status_2xx": 5108701, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -452,91 +452,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9983, - "avg_latency": "70.5us", - "p99_latency": "107.0us", - "cpu": "28.0%", - "memory": "63MiB", + "rps": 9982, + "avg_latency": "77.7us", + "p99_latency": "112.0us", + "cpu": "29.1%", + "memory": "65MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199680, + "status_2xx": 199662, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 5836761, - "cpu_per_req_us": 29.2306, + "cpu_usec": 6076588, + "cpu_per_req_us": 30.4344, "target_rate": 10000, - "rate_ratio": 0.9983, - "p99_9_latency": "165.0us" + "rate_ratio": 0.9982, + "p99_9_latency": "2417.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997574, - "avg_latency": "123.4us", - "p99_latency": "203.0us", - "cpu": "3067.3%", - "memory": "70MiB", + "rps": 998010, + "avg_latency": "121.1us", + "p99_latency": "193.0us", + "cpu": "3116.0%", + "memory": "71MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.75MB/s", + "bandwidth": "104.79MB/s", "reconnects": 0, - "status_2xx": 19955591, + "status_2xx": 19964156, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 565254406, - "cpu_per_req_us": 28.3256, + "cpu_usec": 567083647, + "cpu_per_req_us": 28.4051, "target_rate": 1000000, - "rate_ratio": 0.9976, - "p99_9_latency": "11932.0us" + "rate_ratio": 0.998, + "p99_9_latency": "11700.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 360048, - "avg_latency": "2794021.9us", - "p99_latency": "5498880.0us", - "cpu": "785.2%", - "memory": "52MiB", + "rps": 357907, + "avg_latency": "2824085.5us", + "p99_latency": "5584896.0us", + "cpu": "782.2%", + "memory": "53MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "37.81MB/s", + "bandwidth": "37.58MB/s", "reconnects": 0, - "status_2xx": 7203360, + "status_2xx": 7160797, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159481259, - "cpu_per_req_us": 22.1398, + "cpu_usec": 159535766, + "cpu_per_req_us": 22.2791, "target_rate": 500000, - "rate_ratio": 0.7201, - "p99_9_latency": "5580800.0us" + "rate_ratio": 0.7158, + "p99_9_latency": "5703680.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 1053155, - "avg_latency": "3.87ms", - "p99_latency": "44.00ms", - "cpu": "3717.5%", - "memory": "86MiB", + "rps": 1071574, + "avg_latency": "3.80ms", + "p99_latency": "45.50ms", + "cpu": "3725.5%", + "memory": "85MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "106.43MB/s", - "input_bw": "81.35MB/s", - "reconnects": 526708, - "status_2xx": 5265778, + "bandwidth": "108.29MB/s", + "input_bw": "82.78MB/s", + "reconnects": 535866, + "status_2xx": 5357871, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -544,18 +544,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3436674, - "avg_latency": "19.12ms", - "p99_latency": "21.20ms", - "cpu": "6236.6%", - "memory": "120MiB", + "rps": 3556826, + "avg_latency": "18.45ms", + "p99_latency": "36.20ms", + "cpu": "6026.7%", + "memory": "123MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "347.31MB/s", + "bandwidth": "359.46MB/s", "reconnects": 0, - "status_2xx": 17183374, + "status_2xx": 17784132, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -563,18 +563,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 288188, - "avg_latency": "110.05ms", - "p99_latency": "414.42ms", - "cpu": "6329.3%", - "memory": "1.2GiB", + "rps": 292035, + "avg_latency": "108.69ms", + "p99_latency": "387.87ms", + "cpu": "6348.1%", + "memory": "1.3GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "4.37GB/s", + "bandwidth": "4.43GB/s", "reconnects": 0, - "status_2xx": 1458233, + "status_2xx": 1477700, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -582,18 +582,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 301288, - "avg_latency": "26.97ms", - "p99_latency": "119.79ms", - "cpu": "6563.6%", - "memory": "388MiB", + "rps": 304912, + "avg_latency": "26.66ms", + "p99_latency": "127.79ms", + "cpu": "6706.5%", + "memory": "380MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "4.58GB/s", + "bandwidth": "4.65GB/s", "reconnects": 0, - "status_2xx": 1512466, + "status_2xx": 1533708, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -601,18 +601,18 @@ "static-tls-1024": { "framework": "paozhu", "language": "C++", - "rps": 299532, - "avg_latency": "3.46ms", - "p99_latency": "25.75ms", - "cpu": "5553.6%", - "memory": "232MiB", + "rps": 295593, + "avg_latency": "3.51ms", + "p99_latency": "25.77ms", + "cpu": "5823.5%", + "memory": "243MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "4.58GB", + "bandwidth": "4.52GB", "reconnects": 0, - "status_2xx": 1527387, + "status_2xx": 1507338, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/8gbit/512/paozhu.log b/site/static/logs/8gbit/512/paozhu.log index 5c28ad555e..ae6badc558 100644 --- a/site/static/logs/8gbit/512/paozhu.log +++ b/site/static/logs/8gbit/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index 158355f19d..bfa470fe45 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index d3b08d0545..20cdd3cba3 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[sockets] [websockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] [sockets] /app/conf/main/mqtt.conf/app/conf/h1/sockets.conf not found or parse fail, mqtt client disabled not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index ae6badc558..ce2738ddee 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 496f177217..ae6badc558 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/1024/paozhu.log b/site/static/logs/baseline-h2c/1024/paozhu.log index 61672439db..ae6badc558 100644 --- a/site/static/logs/baseline-h2c/1024/paozhu.log +++ b/site/static/logs/baseline-h2c/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline-h2c/256/paozhu.log b/site/static/logs/baseline-h2c/256/paozhu.log index f4f72854a0..ae6badc558 100644 --- a/site/static/logs/baseline-h2c/256/paozhu.log +++ b/site/static/logs/baseline-h2c/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 9431dded1d..5c28ad555e 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/4096/paozhu.log b/site/static/logs/echo-ws-limited/4096/paozhu.log index 9ee1ff30bb..ae6badc558 100644 --- a/site/static/logs/echo-ws-limited/4096/paozhu.log +++ b/site/static/logs/echo-ws-limited/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled[sockets] -/app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/16384/paozhu.log b/site/static/logs/echo-ws-pipeline/16384/paozhu.log index 1e64dfc464..a781d4c2fa 100644 --- a/site/static/logs/echo-ws-pipeline/16384/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled[mqtt_client] -/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/4096/paozhu.log b/site/static/logs/echo-ws-pipeline/4096/paozhu.log index 496f177217..ae6badc558 100644 --- a/site/static/logs/echo-ws-pipeline/4096/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/512/paozhu.log b/site/static/logs/echo-ws-pipeline/512/paozhu.log index 2ef79952c1..5bf1f5a84f 100644 --- a/site/static/logs/echo-ws-pipeline/512/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/16384/paozhu.log b/site/static/logs/echo-ws/16384/paozhu.log index a781d4c2fa..ae6badc558 100644 --- a/site/static/logs/echo-ws/16384/paozhu.log +++ b/site/static/logs/echo-ws/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/4096/paozhu.log b/site/static/logs/echo-ws/4096/paozhu.log index ae6badc558..097f56e2d4 100644 --- a/site/static/logs/echo-ws/4096/paozhu.log +++ b/site/static/logs/echo-ws/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/512/paozhu.log b/site/static/logs/echo-ws/512/paozhu.log index 594675f4e1..f9523aac0c 100644 --- a/site/static/logs/echo-ws/512/paozhu.log +++ b/site/static/logs/echo-ws/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index ae6badc558..5bf1f5a84f 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/16384/paozhu.log b/site/static/logs/json-comp/16384/paozhu.log index 594fa68ff8..ae6badc558 100644 --- a/site/static/logs/json-comp/16384/paozhu.log +++ b/site/static/logs/json-comp/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/4096/paozhu.log b/site/static/logs/json-comp/4096/paozhu.log index ae6badc558..e199d30c63 100644 --- a/site/static/logs/json-comp/4096/paozhu.log +++ b/site/static/logs/json-comp/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index ae6badc558..7507d1b226 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index 844e61d413..9e44f82e5a 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf + not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index b5ba085bbf..fd83ef3a35 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[sockets] -/app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 7507d1b226..f5121311ae 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -2,10 +2,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled[mqtt_client] +/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index 02ce1424dd..ae6badc558 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabledwebsockets.conf - not found or parse fail, websocket client disabled -[sockets] [mqtt_client] /app/conf/h1/sockets.conf/app/conf/main/mqtt.conf not found or parse fail, socket client disabled not found or parse fail, mqtt client disabled - +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index ae6badc558..aad843cf37 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] [sockets] /app/conf/main/mqtt.conf/app/conf/h1/sockets.conf not found or parse fail, mqtt client disabled + not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index b22c67141c..5c28ad555e 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -2,8 +2,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index 61672439db..ae6badc558 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/static-tls/1024/paozhu.log b/site/static/logs/static-tls/1024/paozhu.log index 594675f4e1..f4f72854a0 100644 --- a/site/static/logs/static-tls/1024/paozhu.log +++ b/site/static/logs/static-tls/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From 3a42739a5cfd0cc02fc81323c084f32eb569c746 Mon Sep 17 00:00:00 2001 From: hzq Date: Tue, 17 Nov 2026 20:52:50 +0800 Subject: [PATCH 73/89] Fix threads --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/src/conf/server-h1.conf | 2 +- frameworks/paozhu/src/conf/server.conf | 2 +- frameworks/paozhu/src/entrypoint.sh | 13 ------------- 4 files changed, 3 insertions(+), 16 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 7f020c45aa..ae6ca9453e 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=f0c2dfd66941d52deb4a4047b1f2be2c8a662a84 +ARG PAOZHU_REF=352615cc1da85f5a98dd9b9240f4ccb3f0e90d9e WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/src/conf/server-h1.conf b/frameworks/paozhu/src/conf/server-h1.conf index 17cdc07c81..7c435fca0f 100644 --- a/frameworks/paozhu/src/conf/server-h1.conf +++ b/frameworks/paozhu/src/conf/server-h1.conf @@ -9,7 +9,7 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 0 ; 0 = auto (host cores); entrypoint.sh renders it to the cpuset +cothreadnum = 0 ; 0 = auto (host cores) per_ioc_thread_num = 1 ; orm_ioc_num = 4 ;ORM io_context num; orm_thread_pool_num = 0 ;0 use hardware_concurrency() diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index 221ddef038..365dea4ffb 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -4,7 +4,7 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 0 ; 0 = auto (host cores); entrypoint.sh renders it to the cpuset +cothreadnum = 0 ; 0 = auto (host cores) per_ioc_thread_num = 1 ; orm_ioc_num = 4 ;ORM io_context num; orm_thread_pool_num = 0 ;0 use hardware_concurrency() diff --git a/frameworks/paozhu/src/entrypoint.sh b/frameworks/paozhu/src/entrypoint.sh index 831cec1edb..b94c8ceb2f 100644 --- a/frameworks/paozhu/src/entrypoint.sh +++ b/frameworks/paozhu/src/entrypoint.sh @@ -65,19 +65,6 @@ if [ -n "${DATABASE_URL:-}" ]; then done < /app/conf/orm.conf.tpl > /app/conf/main/orm.conf fi -# Bind the io-thread count to the CPUs this container actually gets. -# std::thread::hardware_concurrency() reports the HOST's online CPUs and ignores -# the cpuset; cothreadnum=0 means "no cap", i.e. that host count. Left alone, -# latency-500k-8cpu would run ~host-core-count io threads per process on 8 -# logical CPUs, and the oversubscription costs both throughput and tail latency. -# nproc counts via sched_getaffinity, i.e. the cpuset: 8 on that profile, 32 on -# the big ones. Render it into both confs (overrides whatever the conf ships). -cpu_num="$(nproc)" -case "$cpu_num" in ''|*[!0-9]*) cpu_num=8 ;; esac -for d in /app/conf/main /app/conf/h1; do - sed -i "s/^cothreadnum[[:space:]]*=.*/cothreadnum = $cpu_num ; rendered from cpuset by entrypoint.sh/" "$d/server.conf" -done - # No /app/conf/server.conf exists, so httpserver::run() falls back to argv[1] # and each instance loads its own ports (8080/8443 vs 8082/8081). /server /app/conf/h1/server.conf & From c0362e69861a277dcb02f5352713d457fee3a68c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 17 Nov 2026 13:44:11 +0000 Subject: [PATCH 74/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 482 +++++++++--------- site/static/logs/8gbit/512/paozhu.log | 8 +- site/static/logs/async-db/1024/paozhu.log | 10 +- site/static/logs/async/32000/paozhu.log | 10 +- site/static/logs/baseline-h2/1024/paozhu.log | 6 +- site/static/logs/baseline-h2c/256/paozhu.log | 10 +- site/static/logs/baseline/4096/paozhu.log | 4 +- .../logs/echo-ws-limited/4096/paozhu.log | 4 +- .../logs/echo-ws-pipeline/16384/paozhu.log | 6 +- .../logs/echo-ws-pipeline/512/paozhu.log | 10 +- site/static/logs/echo-ws/16384/paozhu.log | 8 +- site/static/logs/echo-ws/4096/paozhu.log | 8 +- site/static/logs/echo-ws/512/paozhu.log | 4 +- site/static/logs/fortunes/1024/paozhu.log | 2 +- site/static/logs/json-comp/16384/paozhu.log | 2 +- site/static/logs/json-comp/4096/paozhu.log | 6 +- site/static/logs/json-h2c/1024/paozhu.log | 8 +- site/static/logs/json-h2c/4096/paozhu.log | 10 +- site/static/logs/json-tls/4096/paozhu.log | 8 +- site/static/logs/latency-10k/1024/paozhu.log | 8 +- site/static/logs/latency-1m/1024/paozhu.log | 8 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 6 +- site/static/logs/limited-conn/4096/paozhu.log | 8 +- site/static/logs/pipelined/4096/paozhu.log | 10 +- site/static/logs/static-h2/1024/paozhu.log | 8 +- site/static/logs/static-tls/1024/paozhu.log | 8 +- 26 files changed, 331 insertions(+), 331 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index a145fd0fdc..98a862d3eb 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,44 +4,44 @@ "8gbit-512": { "framework": "paozhu", "language": "C++", - "rps": 49052, - "avg_latency": "101.2us", - "p99_latency": "136.0us", - "cpu": "271.0%", - "memory": "118MiB", + "rps": 49341, + "avg_latency": "103.2us", + "p99_latency": "140.0us", + "cpu": "293.8%", + "memory": "140MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "508.27MB/s", - "input_bw": "479.02MB/s", + "bandwidth": "511.27MB/s", + "input_bw": "481.85MB/s", "reconnects": 0, - "status_2xx": 245330, + "status_2xx": 246776, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 14550842, - "cpu_per_req_us": 59.3113, + "cpu_usec": 15946806, + "cpu_per_req_us": 64.6206, "target_rate": 50000, - "rate_ratio": 0.981, - "p99_9_latency": "3787.0us" + "rate_ratio": 0.9868, + "p99_9_latency": "4089.0us" }, "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1881148, - "avg_latency": "17.03ms", - "p99_latency": "17.30ms", - "cpu": "5935.6%", - "memory": "553MiB", + "rps": 1829342, + "avg_latency": "17.54ms", + "p99_latency": "29.30ms", + "cpu": "5945.2%", + "memory": "568MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "190.13MB/s", - "input_bw": "86.11MB/s", + "bandwidth": "184.90MB/s", + "input_bw": "83.74MB/s", "reconnects": 0, - "status_2xx": 18811482, + "status_2xx": 18293429, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -49,19 +49,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 157035, - "avg_latency": "6.51ms", - "p99_latency": "24.90ms", - "cpu": "3493.5%", - "memory": "111MiB", + "rps": 152778, + "avg_latency": "6.70ms", + "p99_latency": "20.30ms", + "cpu": "3591.3%", + "memory": "126MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "605.05MB/s", - "input_bw": "10.48MB/s", - "reconnects": 62574, - "status_2xx": 1570352, + "bandwidth": "588.52MB/s", + "input_bw": "10.20MB/s", + "reconnects": 60953, + "status_2xx": 1527784, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -69,19 +69,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2591405, - "avg_latency": "1.58ms", - "p99_latency": "4.31ms", - "cpu": "6172.6%", - "memory": "133MiB", + "rps": 2532782, + "avg_latency": "1.62ms", + "p99_latency": "7.80ms", + "cpu": "6346.0%", + "memory": "136MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "261.90MB/s", - "input_bw": "200.18MB/s", + "bandwidth": "255.97MB/s", + "input_bw": "195.65MB/s", "reconnects": 0, - "status_2xx": 12957028, + "status_2xx": 12663911, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -89,18 +89,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 626448, - "avg_latency": "155.60ms", - "p99_latency": "247.74ms", - "cpu": "6438.5%", - "memory": "870MiB", + "rps": 597071, + "avg_latency": "162.64ms", + "p99_latency": "289.18ms", + "cpu": "6675.5%", + "memory": "872MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "28.26MB/s", + "bandwidth": "26.94MB/s", "reconnects": 0, - "status_2xx": 3163564, + "status_2xx": 3015209, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -108,18 +108,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 633973, - "avg_latency": "39.92ms", - "p99_latency": "87.13ms", - "cpu": "6656.6%", - "memory": "256MiB", + "rps": 629128, + "avg_latency": "40.24ms", + "p99_latency": "90.36ms", + "cpu": "6679.6%", + "memory": "277MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "28.57MB/s", + "bandwidth": "28.40MB/s", "reconnects": 0, - "status_2xx": 3188888, + "status_2xx": 3170808, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -127,18 +127,18 @@ "baseline-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 710732, - "avg_latency": "140.63ms", - "p99_latency": "213.39ms", - "cpu": "6519.4%", - "memory": "770MiB", + "rps": 666759, + "avg_latency": "150.27ms", + "p99_latency": "218.83ms", + "cpu": "6649.9%", + "memory": "787MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "32.21MB/s", + "bandwidth": "30.10MB/s", "reconnects": 0, - "status_2xx": 3603415, + "status_2xx": 3367133, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -146,18 +146,18 @@ "baseline-h2c-256": { "framework": "paozhu", "language": "C++", - "rps": 704611, - "avg_latency": "36.25ms", - "p99_latency": "82.86ms", - "cpu": "6652.0%", - "memory": "236MiB", + "rps": 685166, + "avg_latency": "37.71ms", + "p99_latency": "226.45ms", + "cpu": "6588.3%", + "memory": "234MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "31.69MB/s", + "bandwidth": "30.94MB/s", "reconnects": 0, - "status_2xx": 3537151, + "status_2xx": 3453241, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -165,18 +165,18 @@ "baseline-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 587467, - "avg_latency": "657.11ms", - "p99_latency": "855.29ms", - "cpu": "6603.6%", + "rps": 649736, + "avg_latency": "597.63ms", + "p99_latency": "904.33ms", + "cpu": "6712.2%", "memory": "2.9GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "26.56MB/s", + "bandwidth": "29.33MB/s", "reconnects": 0, - "status_2xx": 2990208, + "status_2xx": 3313658, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -184,18 +184,18 @@ "echo-ws-16384": { "framework": "paozhu", "language": "C++", - "rps": 2513504, - "avg_latency": "6.52ms", - "p99_latency": "13.00ms", - "cpu": "6095.3%", - "memory": "417MiB", + "rps": 2541761, + "avg_latency": "6.45ms", + "p99_latency": "15.50ms", + "cpu": "6079.1%", + "memory": "428MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "16.78MB/s", + "bandwidth": "16.96MB/s", "reconnects": 0, - "status_2xx": 12567521, + "status_2xx": 12708808, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -203,18 +203,18 @@ "echo-ws-4096": { "framework": "paozhu", "language": "C++", - "rps": 3036322, - "avg_latency": "1.35ms", - "p99_latency": "1.64ms", - "cpu": "6274.6%", - "memory": "141MiB", + "rps": 3064104, + "avg_latency": "1.34ms", + "p99_latency": "6.79ms", + "cpu": "6367.9%", + "memory": "150MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.26MB/s", + "bandwidth": "20.45MB/s", "reconnects": 0, - "status_2xx": 15181611, + "status_2xx": 15320520, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -222,18 +222,18 @@ "echo-ws-512": { "framework": "paozhu", "language": "C++", - "rps": 3033809, - "avg_latency": "168us", - "p99_latency": "271us", - "cpu": "6310.9%", - "memory": "66MiB", + "rps": 3055260, + "avg_latency": "167us", + "p99_latency": "3.14ms", + "cpu": "6535.5%", + "memory": "74MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.25MB/s", + "bandwidth": "20.39MB/s", "reconnects": 0, - "status_2xx": 15169045, + "status_2xx": 15276304, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -241,18 +241,18 @@ "echo-ws-limited-4096": { "framework": "paozhu", "language": "C++", - "rps": 1060472, - "avg_latency": "65us", - "p99_latency": "205us", - "cpu": "3734.6%", - "memory": "100MiB", + "rps": 1149337, + "avg_latency": "67us", + "p99_latency": "200us", + "cpu": "4309.7%", + "memory": "108MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "22.85MB/s", - "reconnects": 530270, - "status_2xx": 5302363, + "bandwidth": "24.76MB/s", + "reconnects": 574741, + "status_2xx": 5746686, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -260,18 +260,18 @@ "echo-ws-limited-512": { "framework": "paozhu", "language": "C++", - "rps": 1051163, - "avg_latency": "64us", - "p99_latency": "203us", - "cpu": "3842.8%", - "memory": "64MiB", + "rps": 1160690, + "avg_latency": "67us", + "p99_latency": "194us", + "cpu": "4560.8%", + "memory": "70MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "22.65MB/s", - "reconnects": 525578, - "status_2xx": 5255816, + "bandwidth": "25.01MB/s", + "reconnects": 580338, + "status_2xx": 5803451, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -279,18 +279,18 @@ "echo-ws-pipeline-16384": { "framework": "paozhu", "language": "C++", - "rps": 2749159, - "avg_latency": "95.40ms", - "p99_latency": "98.70ms", - "cpu": "6094.6%", - "memory": "437MiB", + "rps": 2834287, + "avg_latency": "92.86ms", + "p99_latency": "186.70ms", + "cpu": "6290.7%", + "memory": "444MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "18.35MB/s", + "bandwidth": "18.92MB/s", "reconnects": 0, - "status_2xx": 13745795, + "status_2xx": 14171438, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -298,18 +298,18 @@ "echo-ws-pipeline-4096": { "framework": "paozhu", "language": "C++", - "rps": 3313860, - "avg_latency": "19.79ms", - "p99_latency": "37.40ms", - "cpu": "6080.9%", - "memory": "146MiB", + "rps": 3465017, + "avg_latency": "18.92ms", + "p99_latency": "40.00ms", + "cpu": "6276.6%", + "memory": "153MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "22.12MB/s", + "bandwidth": "23.12MB/s", "reconnects": 0, - "status_2xx": 16569300, + "status_2xx": 17325085, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -317,18 +317,18 @@ "echo-ws-pipeline-512": { "framework": "paozhu", "language": "C++", - "rps": 3466640, - "avg_latency": "2.36ms", - "p99_latency": "5.28ms", - "cpu": "6308.4%", - "memory": "63MiB", + "rps": 3541524, + "avg_latency": "2.31ms", + "p99_latency": "10.10ms", + "cpu": "6373.6%", + "memory": "71MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "23.14MB/s", + "bandwidth": "23.63MB/s", "reconnects": 0, - "status_2xx": 17333200, + "status_2xx": 17707624, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -336,18 +336,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 59864, - "avg_latency": "17.09ms", - "p99_latency": "47.10ms", - "cpu": "3587.8%", - "memory": "142MiB", + "rps": 62776, + "avg_latency": "16.24ms", + "p99_latency": "63.40ms", + "cpu": "3474.1%", + "memory": "154MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.38GB/s", + "bandwidth": "1.45GB/s", "reconnects": 0, - "status_2xx": 299320, + "status_2xx": 313880, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -355,19 +355,19 @@ "json-comp-16384": { "framework": "paozhu", "language": "C++", - "rps": 713271, - "avg_latency": "22.94ms", - "p99_latency": "59.30ms", - "cpu": "6209.7%", - "memory": "554MiB", + "rps": 720836, + "avg_latency": "22.67ms", + "p99_latency": "89.20ms", + "cpu": "6572.5%", + "memory": "714MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.10GB/s", - "input_bw": "53.06MB/s", - "reconnects": 139207, - "status_2xx": 3566359, + "bandwidth": "1.12GB/s", + "input_bw": "53.62MB/s", + "reconnects": 141642, + "status_2xx": 3604181, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -375,19 +375,19 @@ "json-comp-4096": { "framework": "paozhu", "language": "C++", - "rps": 778716, - "avg_latency": "5.25ms", - "p99_latency": "25.40ms", - "cpu": "6326.2%", - "memory": "234MiB", + "rps": 763096, + "avg_latency": "5.36ms", + "p99_latency": "34.60ms", + "cpu": "6402.2%", + "memory": "276MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.21GB/s", - "input_bw": "57.93MB/s", - "reconnects": 154222, - "status_2xx": 3893582, + "bandwidth": "1.18GB/s", + "input_bw": "56.76MB/s", + "reconnects": 151048, + "status_2xx": 3815480, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -395,18 +395,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 619460, - "avg_latency": "52.17ms", - "p99_latency": "112.03ms", - "cpu": "6454.1%", - "memory": "491MiB", + "rps": 650693, + "avg_latency": "49.41ms", + "p99_latency": "91.55ms", + "cpu": "6622.9%", + "memory": "509MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.07GB/s", + "bandwidth": "2.18GB/s", "reconnects": 0, - "status_2xx": 3128277, + "status_2xx": 3299014, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -414,18 +414,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 649603, - "avg_latency": "196.88ms", - "p99_latency": "349.51ms", - "cpu": "6645.8%", + "rps": 595773, + "avg_latency": "213.97ms", + "p99_latency": "332.59ms", + "cpu": "6500.0%", "memory": "1.8GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.15GB/s", + "bandwidth": "1.97GB/s", "reconnects": 0, - "status_2xx": 3306484, + "status_2xx": 3032486, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -433,18 +433,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1001889, - "avg_latency": "3.93ms", - "p99_latency": "42.15ms", - "cpu": "6165.2%", - "memory": "432MiB", + "rps": 1035301, + "avg_latency": "4.63ms", + "p99_latency": "189.20ms", + "cpu": "6226.3%", + "memory": "450MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.39GB", + "bandwidth": "3.50GB", "reconnects": 0, - "status_2xx": 5108701, + "status_2xx": 5280838, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -452,91 +452,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9982, - "avg_latency": "77.7us", - "p99_latency": "112.0us", - "cpu": "29.1%", - "memory": "65MiB", + "rps": 9979, + "avg_latency": "82.5us", + "p99_latency": "111.0us", + "cpu": "30.3%", + "memory": "71MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199662, + "status_2xx": 199595, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 6076588, - "cpu_per_req_us": 30.4344, + "cpu_usec": 6343592, + "cpu_per_req_us": 31.7823, "target_rate": 10000, - "rate_ratio": 0.9982, - "p99_9_latency": "2417.0us" + "rate_ratio": 0.9979, + "p99_9_latency": "357.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 998010, - "avg_latency": "121.1us", - "p99_latency": "193.0us", - "cpu": "3116.0%", - "memory": "71MiB", + "rps": 997566, + "avg_latency": "121.2us", + "p99_latency": "194.0us", + "cpu": "3578.2%", + "memory": "76MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.79MB/s", + "bandwidth": "104.74MB/s", "reconnects": 0, - "status_2xx": 19964156, + "status_2xx": 19955535, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 567083647, - "cpu_per_req_us": 28.4051, + "cpu_usec": 645708949, + "cpu_per_req_us": 32.3574, "target_rate": 1000000, - "rate_ratio": 0.998, - "p99_9_latency": "11700.0us" + "rate_ratio": 0.9976, + "p99_9_latency": "10244.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 357907, - "avg_latency": "2824085.5us", - "p99_latency": "5584896.0us", - "cpu": "782.2%", - "memory": "53MiB", + "rps": 375669, + "avg_latency": "2410353.8us", + "p99_latency": "6146048.0us", + "cpu": "813.7%", + "memory": "66MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "37.58MB/s", + "bandwidth": "39.45MB/s", "reconnects": 0, - "status_2xx": 7160797, + "status_2xx": 7516287, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159535766, - "cpu_per_req_us": 22.2791, + "cpu_usec": 159490125, + "cpu_per_req_us": 21.2193, "target_rate": 500000, - "rate_ratio": 0.7158, - "p99_9_latency": "5703680.0us" + "rate_ratio": 0.7513, + "p99_9_latency": "6739968.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 1071574, - "avg_latency": "3.80ms", - "p99_latency": "45.50ms", - "cpu": "3725.5%", - "memory": "85MiB", + "rps": 1177668, + "avg_latency": "3.46ms", + "p99_latency": "49.50ms", + "cpu": "4521.1%", + "memory": "84MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "108.29MB/s", - "input_bw": "82.78MB/s", - "reconnects": 535866, - "status_2xx": 5357871, + "bandwidth": "119.01MB/s", + "input_bw": "90.97MB/s", + "reconnects": 588858, + "status_2xx": 5888340, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -544,18 +544,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3556826, + "rps": 3557174, "avg_latency": "18.45ms", - "p99_latency": "36.20ms", - "cpu": "6026.7%", - "memory": "123MiB", + "p99_latency": "36.40ms", + "cpu": "6325.2%", + "memory": "127MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "359.46MB/s", + "bandwidth": "359.35MB/s", "reconnects": 0, - "status_2xx": 17784132, + "status_2xx": 17785872, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -563,18 +563,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 292035, - "avg_latency": "108.69ms", - "p99_latency": "387.87ms", - "cpu": "6348.1%", + "rps": 241490, + "avg_latency": "131.70ms", + "p99_latency": "450.83ms", + "cpu": "6536.2%", "memory": "1.3GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "4.43GB/s", + "bandwidth": "3.65GB/s", "reconnects": 0, - "status_2xx": 1477700, + "status_2xx": 1219527, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -582,18 +582,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 304912, - "avg_latency": "26.66ms", - "p99_latency": "127.79ms", - "cpu": "6706.5%", - "memory": "380MiB", + "rps": 253975, + "avg_latency": "32.17ms", + "p99_latency": "148.48ms", + "cpu": "6432.2%", + "memory": "409MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "4.65GB/s", + "bandwidth": "3.88GB/s", "reconnects": 0, - "status_2xx": 1533708, + "status_2xx": 1280036, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -601,18 +601,18 @@ "static-tls-1024": { "framework": "paozhu", "language": "C++", - "rps": 295593, - "avg_latency": "3.51ms", - "p99_latency": "25.77ms", - "cpu": "5823.5%", - "memory": "243MiB", + "rps": 213411, + "avg_latency": "4.77ms", + "p99_latency": "29.41ms", + "cpu": "4038.0%", + "memory": "227MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "4.52GB", + "bandwidth": "3.26GB", "reconnects": 0, - "status_2xx": 1507338, + "status_2xx": 1088264, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/8gbit/512/paozhu.log b/site/static/logs/8gbit/512/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/8gbit/512/paozhu.log +++ b/site/static/logs/8gbit/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index bfa470fe45..844e61d413 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index 20cdd3cba3..ae6badc558 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [websockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] [sockets] /app/conf/main/mqtt.conf/app/conf/h1/sockets.conf not found or parse fail, mqtt client disabled not found or parse fail, socket client disabled - +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index ce2738ddee..7ab7c6598c 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled[websockets] +[websockets] [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/256/paozhu.log b/site/static/logs/baseline-h2c/256/paozhu.log index ae6badc558..e199d30c63 100644 --- a/site/static/logs/baseline-h2c/256/paozhu.log +++ b/site/static/logs/baseline-h2c/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 5c28ad555e..db63607e80 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,7 +1,7 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf + not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/echo-ws-limited/4096/paozhu.log b/site/static/logs/echo-ws-limited/4096/paozhu.log index ae6badc558..f9523aac0c 100644 --- a/site/static/logs/echo-ws-limited/4096/paozhu.log +++ b/site/static/logs/echo-ws-limited/4096/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/16384/paozhu.log b/site/static/logs/echo-ws-pipeline/16384/paozhu.log index a781d4c2fa..7ab7c6598c 100644 --- a/site/static/logs/echo-ws-pipeline/16384/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/16384/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/512/paozhu.log b/site/static/logs/echo-ws-pipeline/512/paozhu.log index 5bf1f5a84f..ae6badc558 100644 --- a/site/static/logs/echo-ws-pipeline/512/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/16384/paozhu.log b/site/static/logs/echo-ws/16384/paozhu.log index ae6badc558..a781d4c2fa 100644 --- a/site/static/logs/echo-ws/16384/paozhu.log +++ b/site/static/logs/echo-ws/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/4096/paozhu.log b/site/static/logs/echo-ws/4096/paozhu.log index 097f56e2d4..ae6badc558 100644 --- a/site/static/logs/echo-ws/4096/paozhu.log +++ b/site/static/logs/echo-ws/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/512/paozhu.log b/site/static/logs/echo-ws/512/paozhu.log index f9523aac0c..9dc0d2ee1c 100644 --- a/site/static/logs/echo-ws/512/paozhu.log +++ b/site/static/logs/echo-ws/512/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index 5bf1f5a84f..cf7ffce461 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -4,7 +4,7 @@ [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/16384/paozhu.log b/site/static/logs/json-comp/16384/paozhu.log index ae6badc558..7a9e321588 100644 --- a/site/static/logs/json-comp/16384/paozhu.log +++ b/site/static/logs/json-comp/16384/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-comp/4096/paozhu.log b/site/static/logs/json-comp/4096/paozhu.log index e199d30c63..f4f72854a0 100644 --- a/site/static/logs/json-comp/4096/paozhu.log +++ b/site/static/logs/json-comp/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index 7507d1b226..ae6badc558 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index 9e44f82e5a..a781d4c2fa 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf - not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index fd83ef3a35..7507d1b226 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index 594675f4e1..4a4929544c 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] [mqtt_client] websockets.conf/app/conf/h1/mqtt.conf not found or parse fail, websocket client disabled not found or parse fail, mqtt client disabled + +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index 594675f4e1..72776ff34a 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index f5121311ae..7507d1b226 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -2,10 +2,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled[mqtt_client] -/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index aad843cf37..ae6badc558 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] [sockets] /app/conf/main/mqtt.conf/app/conf/h1/sockets.conf not found or parse fail, mqtt client disabled - not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index 5c28ad555e..ae6badc558 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-tls/1024/paozhu.log b/site/static/logs/static-tls/1024/paozhu.log index f4f72854a0..ae6badc558 100644 --- a/site/static/logs/static-tls/1024/paozhu.log +++ b/site/static/logs/static-tls/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients From 3940d000494b799feb59c0ce95a9b00c220b4352 Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 18 Nov 2026 00:17:56 +0800 Subject: [PATCH 75/89] Fix orm pool get back --- frameworks/paozhu/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index ae6ca9453e..edcae82b6e 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=352615cc1da85f5a98dd9b9240f4ccb3f0e90d9e +ARG PAOZHU_REF=281e67b433550677a5ba5ff57ec6a22156697490 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct From d509c0c44843785b556427e591ab617b5bece636 Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 18 Nov 2026 01:27:23 +0800 Subject: [PATCH 76/89] Fix head body to asio::const_buffer --- frameworks/paozhu/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index edcae82b6e..589e1eaacc 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=281e67b433550677a5ba5ff57ec6a22156697490 +ARG PAOZHU_REF=27c34bde69d95b7b466d409093e94321ff77165a WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct From b146c12c6367c0b43ab7c764f341cee021cc23f6 Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 18 Nov 2026 02:00:00 +0800 Subject: [PATCH 77/89] Fix ORM cache to 8k --- frameworks/paozhu/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 589e1eaacc..c23e09619b 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=27c34bde69d95b7b466d409093e94321ff77165a +ARG PAOZHU_REF=09999cd898dc619450e48876d59fc32e3feff9dc WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct From ea4eaae4bed639cf9e2066b3fc23c284329e039e Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 18 Nov 2026 02:04:47 +0800 Subject: [PATCH 78/89] Fix ORM cache_data to 8k --- frameworks/paozhu/cost_define.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frameworks/paozhu/cost_define.h b/frameworks/paozhu/cost_define.h index 1c42411de0..3f068e5433 100755 --- a/frameworks/paozhu/cost_define.h +++ b/frameworks/paozhu/cost_define.h @@ -263,6 +263,14 @@ constexpr bool http2_wu_stream_id_ok(unsigned long long sid, unsigned long long #define CONST_HTTP2_SEND_FRAME_BUF 15360 +// 文件直发单批 gather 的字节上限。一次预留、一次写锁、一次 async_write 最多送这么多 +// DATA 字节(仍按对端 MAX_FRAME_SIZE 切成帧)。批尺寸受写锁等待预算约束:慢客户端下 +// 整批写出期间锁被占住,同连接其他流等锁超过 CONST_HTTP2_WRITE_LOCK_TIMEOUT 会被撤流。 +// 32KB 在 6KB/s 客户端下约 5.3s,对 10s 预算留近一倍余量(旧 16KB 单帧约 2.7s)。 +// 对端 MAX_FRAME_SIZE 下限 16384 由解析侧 40216 门禁保证;本值 ≤ 65536 ⇒ 单批至多 4 帧、 +// 9 块 buffer(含首批 HEADERS),发送侧 fhs/bufs 的栈上界依此成立。 +#define CONST_HTTP2_FILE_BATCH_BYTES 32768 + // 每连接 HTTP/2 发送环的槽数。三条硬约束: // 1. 必须是 2 的幂 —— 下标推进用 & (capacity_ - 1),非 2 的幂会算出错误的下一格; // 2. 不能超过 255 —— head_/tail_ 是 unsigned char; From 3f5ce80ec17d7f6a0dccadc27706d24c0f695067 Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 18 Nov 2026 02:35:39 +0800 Subject: [PATCH 79/89] Fix msvc ci --- frameworks/paozhu/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index c23e09619b..12b0216783 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=09999cd898dc619450e48876d59fc32e3feff9dc +ARG PAOZHU_REF=d93c8b5534bd55674691d83e2436336f8637f160 WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct From 603f0de05c1a6246e9de0fa7a2bb89a70cad038d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 17 Nov 2026 19:03:58 +0000 Subject: [PATCH 80/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 472 +++++++++--------- site/static/logs/async-db/1024/paozhu.log | 8 +- site/static/logs/baseline-h2/1024/paozhu.log | 6 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline-h2c/1024/paozhu.log | 10 +- site/static/logs/baseline-h2c/256/paozhu.log | 10 +- site/static/logs/baseline-h2c/4096/paozhu.log | 6 +- site/static/logs/baseline/4096/paozhu.log | 8 +- .../logs/echo-ws-limited/4096/paozhu.log | 4 +- .../logs/echo-ws-pipeline/16384/paozhu.log | 8 +- .../logs/echo-ws-pipeline/4096/paozhu.log | 6 +- .../logs/echo-ws-pipeline/512/paozhu.log | 8 +- site/static/logs/echo-ws/4096/paozhu.log | 10 +- site/static/logs/echo-ws/512/paozhu.log | 8 +- site/static/logs/fortunes/1024/paozhu.log | 4 +- site/static/logs/json-comp/16384/paozhu.log | 8 +- site/static/logs/json-comp/4096/paozhu.log | 6 +- site/static/logs/json-h2c/4096/paozhu.log | 8 +- site/static/logs/json-tls/4096/paozhu.log | 8 +- site/static/logs/latency-10k/1024/paozhu.log | 6 +- site/static/logs/latency-1m/1024/paozhu.log | 4 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 6 +- site/static/logs/limited-conn/4096/paozhu.log | 10 +- site/static/logs/pipelined/4096/paozhu.log | 6 +- site/static/logs/static-h2/256/paozhu.log | 10 +- site/static/logs/static-tls/1024/paozhu.log | 8 +- 26 files changed, 328 insertions(+), 328 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 98a862d3eb..4e7551bc97 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,44 +4,44 @@ "8gbit-512": { "framework": "paozhu", "language": "C++", - "rps": 49341, - "avg_latency": "103.2us", - "p99_latency": "140.0us", - "cpu": "293.8%", - "memory": "140MiB", + "rps": 49357, + "avg_latency": "116.0us", + "p99_latency": "157.0us", + "cpu": "345.8%", + "memory": "141MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "511.27MB/s", - "input_bw": "481.85MB/s", + "bandwidth": "511.43MB/s", + "input_bw": "482.00MB/s", "reconnects": 0, - "status_2xx": 246776, + "status_2xx": 246853, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 15946806, - "cpu_per_req_us": 64.6206, + "cpu_usec": 17428815, + "cpu_per_req_us": 70.604, "target_rate": 50000, - "rate_ratio": 0.9868, - "p99_9_latency": "4089.0us" + "rate_ratio": 0.9871, + "p99_9_latency": "4069.0us" }, "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1829342, - "avg_latency": "17.54ms", - "p99_latency": "29.30ms", - "cpu": "5945.2%", - "memory": "568MiB", + "rps": 1822285, + "avg_latency": "17.56ms", + "p99_latency": "29.20ms", + "cpu": "5952.5%", + "memory": "571MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "184.90MB/s", - "input_bw": "83.74MB/s", + "bandwidth": "184.18MB/s", + "input_bw": "83.42MB/s", "reconnects": 0, - "status_2xx": 18293429, + "status_2xx": 18222853, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -49,19 +49,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 152778, - "avg_latency": "6.70ms", - "p99_latency": "20.30ms", - "cpu": "3591.3%", - "memory": "126MiB", + "rps": 160513, + "avg_latency": "6.38ms", + "p99_latency": "20.70ms", + "cpu": "3717.8%", + "memory": "124MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "588.52MB/s", - "input_bw": "10.20MB/s", - "reconnects": 60953, - "status_2xx": 1527784, + "bandwidth": "618.50MB/s", + "input_bw": "10.72MB/s", + "reconnects": 64069, + "status_2xx": 1605137, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -69,19 +69,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2532782, - "avg_latency": "1.62ms", - "p99_latency": "7.80ms", - "cpu": "6346.0%", + "rps": 2592562, + "avg_latency": "1.58ms", + "p99_latency": "7.05ms", + "cpu": "6406.0%", "memory": "136MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "255.97MB/s", - "input_bw": "195.65MB/s", + "bandwidth": "262.01MB/s", + "input_bw": "200.27MB/s", "reconnects": 0, - "status_2xx": 12663911, + "status_2xx": 12962813, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -89,18 +89,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 597071, - "avg_latency": "162.64ms", - "p99_latency": "289.18ms", - "cpu": "6675.5%", - "memory": "872MiB", + "rps": 618126, + "avg_latency": "154.58ms", + "p99_latency": "224.54ms", + "cpu": "6602.8%", + "memory": "863MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "26.94MB/s", + "bandwidth": "28.05MB/s", "reconnects": 0, - "status_2xx": 3015209, + "status_2xx": 3127722, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -108,18 +108,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 629128, - "avg_latency": "40.24ms", - "p99_latency": "90.36ms", - "cpu": "6679.6%", - "memory": "277MiB", + "rps": 685673, + "avg_latency": "37.28ms", + "p99_latency": "81.09ms", + "cpu": "6650.1%", + "memory": "279MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "28.40MB/s", + "bandwidth": "30.86MB/s", "reconnects": 0, - "status_2xx": 3170808, + "status_2xx": 3442082, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -127,18 +127,18 @@ "baseline-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 666759, - "avg_latency": "150.27ms", - "p99_latency": "218.83ms", - "cpu": "6649.9%", - "memory": "787MiB", + "rps": 695479, + "avg_latency": "142.01ms", + "p99_latency": "225.45ms", + "cpu": "6550.8%", + "memory": "780MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "30.10MB/s", + "bandwidth": "31.49MB/s", "reconnects": 0, - "status_2xx": 3367133, + "status_2xx": 3512173, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -146,18 +146,18 @@ "baseline-h2c-256": { "framework": "paozhu", "language": "C++", - "rps": 685166, - "avg_latency": "37.71ms", - "p99_latency": "226.45ms", - "cpu": "6588.3%", - "memory": "234MiB", + "rps": 661895, + "avg_latency": "38.33ms", + "p99_latency": "81.78ms", + "cpu": "6632.5%", + "memory": "253MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "30.94MB/s", + "bandwidth": "29.79MB/s", "reconnects": 0, - "status_2xx": 3453241, + "status_2xx": 3322716, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -165,18 +165,18 @@ "baseline-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 649736, - "avg_latency": "597.63ms", - "p99_latency": "904.33ms", - "cpu": "6712.2%", - "memory": "2.9GiB", + "rps": 687011, + "avg_latency": "531.18ms", + "p99_latency": "767.20ms", + "cpu": "6633.0%", + "memory": "2.8GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "29.33MB/s", + "bandwidth": "31.32MB/s", "reconnects": 0, - "status_2xx": 3313658, + "status_2xx": 3490020, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -184,18 +184,18 @@ "echo-ws-16384": { "framework": "paozhu", "language": "C++", - "rps": 2541761, - "avg_latency": "6.45ms", + "rps": 2571988, + "avg_latency": "6.37ms", "p99_latency": "15.50ms", - "cpu": "6079.1%", - "memory": "428MiB", + "cpu": "6284.2%", + "memory": "430MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "16.96MB/s", + "bandwidth": "17.17MB/s", "reconnects": 0, - "status_2xx": 12708808, + "status_2xx": 12859942, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -203,18 +203,18 @@ "echo-ws-4096": { "framework": "paozhu", "language": "C++", - "rps": 3064104, - "avg_latency": "1.34ms", - "p99_latency": "6.79ms", - "cpu": "6367.9%", - "memory": "150MiB", + "rps": 3078791, + "avg_latency": "1.33ms", + "p99_latency": "6.78ms", + "cpu": "6290.8%", + "memory": "148MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.45MB/s", + "bandwidth": "20.55MB/s", "reconnects": 0, - "status_2xx": 15320520, + "status_2xx": 15393956, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -222,18 +222,18 @@ "echo-ws-512": { "framework": "paozhu", "language": "C++", - "rps": 3055260, - "avg_latency": "167us", - "p99_latency": "3.14ms", - "cpu": "6535.5%", + "rps": 2983711, + "avg_latency": "171us", + "p99_latency": "3.15ms", + "cpu": "6582.7%", "memory": "74MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.39MB/s", + "bandwidth": "19.91MB/s", "reconnects": 0, - "status_2xx": 15276304, + "status_2xx": 14918557, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -241,18 +241,18 @@ "echo-ws-limited-4096": { "framework": "paozhu", "language": "C++", - "rps": 1149337, + "rps": 1157281, "avg_latency": "67us", - "p99_latency": "200us", - "cpu": "4309.7%", - "memory": "108MiB", + "p99_latency": "204us", + "cpu": "4456.2%", + "memory": "98MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "24.76MB/s", - "reconnects": 574741, - "status_2xx": 5746686, + "bandwidth": "24.93MB/s", + "reconnects": 578701, + "status_2xx": 5786408, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -260,18 +260,18 @@ "echo-ws-limited-512": { "framework": "paozhu", "language": "C++", - "rps": 1160690, + "rps": 1183680, "avg_latency": "67us", - "p99_latency": "194us", - "cpu": "4560.8%", + "p99_latency": "197us", + "cpu": "4694.1%", "memory": "70MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "25.01MB/s", - "reconnects": 580338, - "status_2xx": 5803451, + "bandwidth": "25.50MB/s", + "reconnects": 591851, + "status_2xx": 5918400, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -279,18 +279,18 @@ "echo-ws-pipeline-16384": { "framework": "paozhu", "language": "C++", - "rps": 2834287, - "avg_latency": "92.86ms", - "p99_latency": "186.70ms", - "cpu": "6290.7%", - "memory": "444MiB", + "rps": 2827997, + "avg_latency": "93.10ms", + "p99_latency": "188.80ms", + "cpu": "6250.3%", + "memory": "445MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "18.92MB/s", + "bandwidth": "18.87MB/s", "reconnects": 0, - "status_2xx": 14171438, + "status_2xx": 14139986, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -298,18 +298,18 @@ "echo-ws-pipeline-4096": { "framework": "paozhu", "language": "C++", - "rps": 3465017, - "avg_latency": "18.92ms", - "p99_latency": "40.00ms", - "cpu": "6276.6%", - "memory": "153MiB", + "rps": 3451394, + "avg_latency": "19.00ms", + "p99_latency": "36.60ms", + "cpu": "6328.3%", + "memory": "154MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "23.12MB/s", + "bandwidth": "23.03MB/s", "reconnects": 0, - "status_2xx": 17325085, + "status_2xx": 17256973, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -317,18 +317,18 @@ "echo-ws-pipeline-512": { "framework": "paozhu", "language": "C++", - "rps": 3541524, - "avg_latency": "2.31ms", - "p99_latency": "10.10ms", - "cpu": "6373.6%", - "memory": "71MiB", + "rps": 3558463, + "avg_latency": "2.30ms", + "p99_latency": "13.00ms", + "cpu": "6438.6%", + "memory": "70MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "23.63MB/s", + "bandwidth": "23.75MB/s", "reconnects": 0, - "status_2xx": 17707624, + "status_2xx": 17792318, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -336,18 +336,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 62776, - "avg_latency": "16.24ms", - "p99_latency": "63.40ms", - "cpu": "3474.1%", - "memory": "154MiB", + "rps": 82034, + "avg_latency": "12.45ms", + "p99_latency": "41.80ms", + "cpu": "3714.6%", + "memory": "143MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.45GB/s", + "bandwidth": "1.89GB/s", "reconnects": 0, - "status_2xx": 313880, + "status_2xx": 410170, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -355,19 +355,19 @@ "json-comp-16384": { "framework": "paozhu", "language": "C++", - "rps": 720836, - "avg_latency": "22.67ms", - "p99_latency": "89.20ms", - "cpu": "6572.5%", - "memory": "714MiB", + "rps": 738323, + "avg_latency": "21.60ms", + "p99_latency": "219.60ms", + "cpu": "6219.8%", + "memory": "563MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.12GB/s", - "input_bw": "53.62MB/s", - "reconnects": 141642, - "status_2xx": 3604181, + "bandwidth": "1.14GB/s", + "input_bw": "54.92MB/s", + "reconnects": 142361, + "status_2xx": 3691618, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -375,19 +375,19 @@ "json-comp-4096": { "framework": "paozhu", "language": "C++", - "rps": 763096, - "avg_latency": "5.36ms", - "p99_latency": "34.60ms", - "cpu": "6402.2%", - "memory": "276MiB", + "rps": 782861, + "avg_latency": "5.23ms", + "p99_latency": "37.50ms", + "cpu": "6659.7%", + "memory": "264MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.18GB/s", - "input_bw": "56.76MB/s", - "reconnects": 151048, - "status_2xx": 3815480, + "bandwidth": "1.21GB/s", + "input_bw": "58.23MB/s", + "reconnects": 155093, + "status_2xx": 3914307, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -395,18 +395,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 650693, - "avg_latency": "49.41ms", - "p99_latency": "91.55ms", - "cpu": "6622.9%", - "memory": "509MiB", + "rps": 691932, + "avg_latency": "46.33ms", + "p99_latency": "95.11ms", + "cpu": "6625.6%", + "memory": "506MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.18GB/s", + "bandwidth": "2.33GB/s", "reconnects": 0, - "status_2xx": 3299014, + "status_2xx": 3501180, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -414,18 +414,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 595773, - "avg_latency": "213.97ms", - "p99_latency": "332.59ms", - "cpu": "6500.0%", + "rps": 603076, + "avg_latency": "206.76ms", + "p99_latency": "326.77ms", + "cpu": "6421.3%", "memory": "1.8GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.97GB/s", + "bandwidth": "2.03GB/s", "reconnects": 0, - "status_2xx": 3032486, + "status_2xx": 3063627, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -433,18 +433,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1035301, - "avg_latency": "4.63ms", - "p99_latency": "189.20ms", - "cpu": "6226.3%", - "memory": "450MiB", + "rps": 1022599, + "avg_latency": "4.66ms", + "p99_latency": "199.36ms", + "cpu": "6224.2%", + "memory": "439MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.50GB", + "bandwidth": "3.46GB", "reconnects": 0, - "status_2xx": 5280838, + "status_2xx": 5214285, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -452,34 +452,34 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9979, - "avg_latency": "82.5us", - "p99_latency": "111.0us", - "cpu": "30.3%", - "memory": "71MiB", + "rps": 9982, + "avg_latency": "75.5us", + "p99_latency": "113.0us", + "cpu": "31.5%", + "memory": "74MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199595, + "status_2xx": 199671, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 6343592, - "cpu_per_req_us": 31.7823, + "cpu_usec": 6574038, + "cpu_per_req_us": 32.9244, "target_rate": 10000, - "rate_ratio": 0.9979, - "p99_9_latency": "357.0us" + "rate_ratio": 0.9982, + "p99_9_latency": "155.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997566, - "avg_latency": "121.2us", - "p99_latency": "194.0us", - "cpu": "3578.2%", + "rps": 997541, + "avg_latency": "112.2us", + "p99_latency": "196.0us", + "cpu": "3580.2%", "memory": "76MiB", "connections": 1024, "threads": 64, @@ -487,56 +487,56 @@ "pipeline": 1, "bandwidth": "104.74MB/s", "reconnects": 0, - "status_2xx": 19955535, + "status_2xx": 19954461, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 645708949, - "cpu_per_req_us": 32.3574, + "cpu_usec": 649347271, + "cpu_per_req_us": 32.5415, "target_rate": 1000000, - "rate_ratio": 0.9976, - "p99_9_latency": "10244.0us" + "rate_ratio": 0.9975, + "p99_9_latency": "3413.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 375669, - "avg_latency": "2410353.8us", - "p99_latency": "6146048.0us", - "cpu": "813.7%", - "memory": "66MiB", + "rps": 363788, + "avg_latency": "2651914.4us", + "p99_latency": "6293504.0us", + "cpu": "813.6%", + "memory": "69MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "39.45MB/s", + "bandwidth": "38.20MB/s", "reconnects": 0, - "status_2xx": 7516287, + "status_2xx": 7278493, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159490125, - "cpu_per_req_us": 21.2193, + "cpu_usec": 159615477, + "cpu_per_req_us": 21.9297, "target_rate": 500000, - "rate_ratio": 0.7513, - "p99_9_latency": "6739968.0us" + "rate_ratio": 0.7276, + "p99_9_latency": "7354368.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 1177668, - "avg_latency": "3.46ms", - "p99_latency": "49.50ms", - "cpu": "4521.1%", - "memory": "84MiB", + "rps": 1188612, + "avg_latency": "3.44ms", + "p99_latency": "39.60ms", + "cpu": "4565.0%", + "memory": "89MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "119.01MB/s", - "input_bw": "90.97MB/s", - "reconnects": 588858, - "status_2xx": 5888340, + "bandwidth": "120.12MB/s", + "input_bw": "91.82MB/s", + "reconnects": 594304, + "status_2xx": 5943064, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -544,18 +544,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3557174, - "avg_latency": "18.45ms", - "p99_latency": "36.40ms", - "cpu": "6325.2%", - "memory": "127MiB", + "rps": 3539809, + "avg_latency": "18.54ms", + "p99_latency": "38.90ms", + "cpu": "6312.4%", + "memory": "131MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "359.35MB/s", + "bandwidth": "357.75MB/s", "reconnects": 0, - "status_2xx": 17785872, + "status_2xx": 17699045, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -563,18 +563,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 241490, - "avg_latency": "131.70ms", - "p99_latency": "450.83ms", - "cpu": "6536.2%", - "memory": "1.3GiB", + "rps": 238270, + "avg_latency": "131.91ms", + "p99_latency": "629.28ms", + "cpu": "5906.0%", + "memory": "1.4GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.65GB/s", + "bandwidth": "3.63GB/s", "reconnects": 0, - "status_2xx": 1219527, + "status_2xx": 1208031, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -582,18 +582,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 253975, - "avg_latency": "32.17ms", - "p99_latency": "148.48ms", - "cpu": "6432.2%", - "memory": "409MiB", + "rps": 245134, + "avg_latency": "33.88ms", + "p99_latency": "213.67ms", + "cpu": "5706.0%", + "memory": "424MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.88GB/s", + "bandwidth": "3.74GB/s", "reconnects": 0, - "status_2xx": 1280036, + "status_2xx": 1233027, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -601,18 +601,18 @@ "static-tls-1024": { "framework": "paozhu", "language": "C++", - "rps": 213411, - "avg_latency": "4.77ms", - "p99_latency": "29.41ms", - "cpu": "4038.0%", - "memory": "227MiB", + "rps": 226510, + "avg_latency": "4.52ms", + "p99_latency": "29.52ms", + "cpu": "4055.7%", + "memory": "198MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.26GB", + "bandwidth": "3.46GB", "reconnects": 0, - "status_2xx": 1088264, + "status_2xx": 1154952, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index 844e61d413..f4f72854a0 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index 7ab7c6598c..f9523aac0c 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/1024/paozhu.log b/site/static/logs/baseline-h2c/1024/paozhu.log index ae6badc558..452c00cdee 100644 --- a/site/static/logs/baseline-h2c/1024/paozhu.log +++ b/site/static/logs/baseline-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf + not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/256/paozhu.log b/site/static/logs/baseline-h2c/256/paozhu.log index e199d30c63..ae6badc558 100644 --- a/site/static/logs/baseline-h2c/256/paozhu.log +++ b/site/static/logs/baseline-h2c/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/4096/paozhu.log b/site/static/logs/baseline-h2c/4096/paozhu.log index ae6badc558..e71987ebaf 100644 --- a/site/static/logs/baseline-h2c/4096/paozhu.log +++ b/site/static/logs/baseline-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index db63607e80..594675f4e1 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf - not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/4096/paozhu.log b/site/static/logs/echo-ws-limited/4096/paozhu.log index f9523aac0c..ae6badc558 100644 --- a/site/static/logs/echo-ws-limited/4096/paozhu.log +++ b/site/static/logs/echo-ws-limited/4096/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/16384/paozhu.log b/site/static/logs/echo-ws-pipeline/16384/paozhu.log index 7ab7c6598c..ae6badc558 100644 --- a/site/static/logs/echo-ws-pipeline/16384/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/4096/paozhu.log b/site/static/logs/echo-ws-pipeline/4096/paozhu.log index ae6badc558..f67729833d 100644 --- a/site/static/logs/echo-ws-pipeline/4096/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/512/paozhu.log b/site/static/logs/echo-ws-pipeline/512/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/echo-ws-pipeline/512/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/4096/paozhu.log b/site/static/logs/echo-ws/4096/paozhu.log index ae6badc558..ee94e2a6c2 100644 --- a/site/static/logs/echo-ws/4096/paozhu.log +++ b/site/static/logs/echo-ws/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/512/paozhu.log b/site/static/logs/echo-ws/512/paozhu.log index 9dc0d2ee1c..496f177217 100644 --- a/site/static/logs/echo-ws/512/paozhu.log +++ b/site/static/logs/echo-ws/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index cf7ffce461..e199d30c63 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/16384/paozhu.log b/site/static/logs/json-comp/16384/paozhu.log index 7a9e321588..7507d1b226 100644 --- a/site/static/logs/json-comp/16384/paozhu.log +++ b/site/static/logs/json-comp/16384/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/4096/paozhu.log b/site/static/logs/json-comp/4096/paozhu.log index f4f72854a0..496f177217 100644 --- a/site/static/logs/json-comp/4096/paozhu.log +++ b/site/static/logs/json-comp/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index a781d4c2fa..7507d1b226 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 7507d1b226..ae6badc558 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index 4a4929544c..ae6badc558 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] [mqtt_client] websockets.conf/app/conf/h1/mqtt.conf not found or parse fail, websocket client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index 72776ff34a..f67729833d 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,7 +1,7 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 7507d1b226..8ad402329b 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -2,10 +2,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/h1/mqtt.conf + not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index 594675f4e1..a761640ccd 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] [mqtt_client] /app/conf/h1/sockets.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, socket client disabled + [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index ae6badc558..7c55c1ec96 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [sockets] websockets.conf/app/conf/h1/sockets.conf not found or parse fail, websocket client disabled not found or parse fail, socket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index ae6badc558..844e61d413 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-tls/1024/paozhu.log b/site/static/logs/static-tls/1024/paozhu.log index ae6badc558..3e633a520f 100644 --- a/site/static/logs/static-tls/1024/paozhu.log +++ b/site/static/logs/static-tls/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From 5a0667b751dc3721be4ef993c923df23f9ff6cdc Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 18 Nov 2026 10:00:21 +0800 Subject: [PATCH 81/89] Fix on stat to cache static files --- .../paozhu/src/controller/src/arena.cpp | 173 +++++++++++++----- frameworks/paozhu/src/entrypoint.sh | 34 ++++ 2 files changed, 157 insertions(+), 50 deletions(-) diff --git a/frameworks/paozhu/src/controller/src/arena.cpp b/frameworks/paozhu/src/controller/src/arena.cpp index 212381f9b1..d3888828e1 100644 --- a/frameworks/paozhu/src/controller/src/arena.cpp +++ b/frameworks/paozhu/src/controller/src/arena.cpp @@ -8,10 +8,12 @@ #include #include +#include #include #include #include #include +#include #include #include @@ -495,6 +497,56 @@ bool safe_filename(const std::string &name) return true; } +// ── 静态文件懒加载缓存 ────────────────────────────────────────────────── +// HttpArena static-h2 固定 20 个文件。键是 (文件名, 编码):miss 时把存在的 +// 源文件 / .gz / .br 变体全部读入 unordered_map(每文件至多 3 条,共 ≤60 条), +// 之后任何 Accept-Encoding 都命中内存。entrypoint.sh 用 curl 预热完再放 +// 压测进来,因此 benchmark 运行期间零 fopen / 零 fread;每次命中 stat 一次 +// 比对 mtime/size——validate 的 staleness 探针会原地替换文件,必须跟随磁盘。 +// 20 文件 br ≈ 418KB + gz + identity ≈ 170KB → 合计 < 1MB。 +struct cached_static +{ + std::string name; // 纯文件名(与 enc 字节拼接成缓存键) + std::string body; // 预加载的文件内容(可能是压缩后的) + std::string path; // 实际读取的磁盘路径(含 .br/.gz 后缀),命中重校验用 + unsigned char enc; // 0=identity, 1=gzip, 2=brotli + const char *mime; // mime type + time_t mtime = 0; // 读取时源文件的 mtime/size,任一变化即失效重读 + off_t size = 0; +}; + +static std::mutex g_static_cache_mutex; +static std::unordered_map g_static_cache; + +// 键 = 文件名 + 编码字节。safe_filename 只放行字母数字 .-_, +// 追加 0/1/2 字节不会与任何合法文件名歧义。 +static std::string cache_key(const std::string &name, unsigned char enc) +{ + std::string k = name; + k.push_back(static_cast(enc)); + return k; +} + +// 锁内拷贝出完整 cached_static 返回,调用方拿到独立副本, +// 后续访问不受并发插入影响 +static bool lookup_cached(const std::string &filename, unsigned char enc, cached_static &out) +{ + std::lock_guard lock(g_static_cache_mutex); + auto it = g_static_cache.find(cache_key(filename, enc)); + if (it == g_static_cache.end()) + return false; + out = it->second; + return true; +} + +// 写入缓存(加锁:同名同编码已存在则覆盖——磁盘文件被替换后重读的新内容要顶掉旧条目) +static void insert_cached(cached_static cs) +{ + std::lock_guard lock(g_static_cache_mutex); + const std::string key = cache_key(cs.name, cs.enc); + g_static_cache[key] = std::move(cs); +} + } // namespace namespace http @@ -588,72 +640,93 @@ asio::awaitable arena_static(std::shared_ptr peer) co_return ""; } - // The Accept-Encoding header decides whether compression is wanted at all: - // state.br / state.gzip are set only for codings the client accepts (q=0 is - // rejected upstream). Prefer brotli, then gzip; each twin is used only when - // the client accepts that coding AND the twin exists. Otherwise serve the - // identity file. Reading per request (no resident cache) keeps the validation - // suite's mid-run replacement visible and costs no q11 on the request path; - // binary assets (woff2/webp) ship no twin and stay identity. - std::string path = "/data/static/" + filename; - unsigned char enc = 0; - struct stat st {}; - bool stat_ok = false; + // ── Fast path: 按客户端偏好 br → gz → identity 查缓存 ── + cached_static entry; + bool hit = false; if (peer->state.br) + hit = lookup_cached(filename, 2, entry); + if (!hit && peer->state.gzip) + hit = lookup_cached(filename, 1, entry); + if (!hit) + hit = lookup_cached(filename, 0, entry); + if (hit) { - const std::string twin = path + ".br"; - if (::stat(twin.c_str(), &st) == 0 && (st.st_mode & S_IFREG) != 0) + // staleness 探针会原地替换文件(等长不同字节):stat 比对 mtime/size, + // 变了就落慢路径重读。稳态下只有这一次 stat,没有 fopen/fread。 + struct stat cst {}; + if (::stat(entry.path.c_str(), &cst) == 0 && + cst.st_mtime == entry.mtime && cst.st_size == entry.size) { - path = twin; - enc = 2; - stat_ok = true; + peer->type(entry.mime); + peer->compress = entry.enc; + peer->length(entry.body.size()); + peer->output = std::move(entry.body); + co_return ""; } } - if (!stat_ok && peer->state.gzip) + + // ── Slow path: 首次 miss 或磁盘文件已变(重校验失败)── + // 源文件 / .gz / .br 存在的变体全部读入缓存,之后任何编码都命中; + // 响应挑客户端能接受的最优变体(br > gz > identity)。 + const std::string base = "/data/static/" + filename; + struct variant_t + { + const char *suffix; + unsigned char enc; + }; + const variant_t candidates[3] = {{".br", 2}, {".gz", 1}, {"", 0}}; + + std::string served; + unsigned char served_enc = 0; + bool found = false; + for (const variant_t &v : candidates) { - const std::string twin = path + ".gz"; - if (::stat(twin.c_str(), &st) == 0 && (st.st_mode & S_IFREG) != 0) + const std::string path = base + v.suffix; + struct stat st {}; + if (::stat(path.c_str(), &st) != 0 || (st.st_mode & S_IFREG) == 0) { - path = twin; - enc = 1; - stat_ok = true; + continue; + } + std::ifstream in(path, std::ios::binary); + if (!in.is_open()) + { + continue; + } + std::string body; + body.resize(static_cast(st.st_size)); + in.read(&body[0], static_cast(st.st_size)); + body.resize(static_cast(in.gcount())); + + cached_static cs; + cs.name = filename; + cs.body = body; + cs.enc = v.enc; + cs.mime = mime_of(filename); + cs.path = path; + cs.mtime = st.st_mtime; + cs.size = st.st_size; + insert_cached(std::move(cs)); + + const bool acceptable = (v.enc == 0) || (v.enc == 2 && peer->state.br) || + (v.enc == 1 && peer->state.gzip); + if (!found && acceptable) + { + served = std::move(body); + served_enc = v.enc; + found = true; } } - if (!stat_ok) - { - enc = 0; - stat_ok = ::stat(path.c_str(), &st) == 0 && (st.st_mode & S_IFREG) != 0; - } - if (!stat_ok) - { - peer->status(404); - peer->type("text/plain"); - peer->output = "Not Found"; - co_return ""; - } - - // Size the body once, then read straight into it. Short read (file shrank - // between stat and read): keep what arrived. A zero-size file is valid. - std::ifstream in(path, std::ios::binary); - if (!in.is_open()) + if (!found) { peer->status(404); peer->type("text/plain"); peer->output = "Not Found"; co_return ""; } - std::string body; - body.resize(static_cast(st.st_size)); - in.read(&body[0], static_cast(st.st_size)); - body.resize(static_cast(in.gcount())); - - peer->output = std::move(body); - // Content-Type stays the original asset type; Content-Encoding (from compress) - // carries the coding. compress=1/2 tells the send layer the body is already - // compressed so it does not compress again; 0 leaves it identity. peer->type(mime_of(filename)); - peer->compress = enc; - peer->length(peer->output.size()); + peer->compress = served_enc; + peer->length(served.size()); + peer->output = std::move(served); co_return ""; } diff --git a/frameworks/paozhu/src/entrypoint.sh b/frameworks/paozhu/src/entrypoint.sh index b94c8ceb2f..0a41cee01c 100644 --- a/frameworks/paozhu/src/entrypoint.sh +++ b/frameworks/paozhu/src/entrypoint.sh @@ -72,6 +72,40 @@ H1_PID=$! /server /app/conf/main/server.conf & MAIN_PID=$! +# ── Lazy-cache warmup ──────────────────────────────────────────────────── +# arena.cpp 懒加载静态文件:首次 miss 时把存在的源文件/.gz/.br 变体全部 +# 读入全局 hash 表缓存。预热一次后 h2load 进来全部 hit,零 fopen/fread。 +# Accept-Encoding 与 h2load 一致(br;q=1, gzip;q=0.8),让预热 curl 本身 +# 也走 br 命中路径。 +wait_ready() { + local url="$1" i + for i in $(seq 1 120); do + if curl -sf --max-time 2 -o /dev/null "$url" 2>/dev/null; then + return 0 + fi + sleep 0.25 + done + return 1 +} +warm_static() { + local base="$1" f n + for f in /data/static/*; do + case "$f" in *.br|*.gz) continue ;; esac + [ -f "$f" ] || continue + n="${f##*/}" + curl -sf --max-time 5 \ + -H 'Accept-Encoding: br;q=1, gzip;q=0.8' \ + "$base/static/$n" -o /dev/null 2>/dev/null || true + done +} +if [ -d /data/static ]; then + # Readiness probe hits /pipeline so it does not touch the static cache; + # warm_static below is what loads the file variants. + wait_ready http://localhost:8080/pipeline || true + warm_static http://localhost:8080 + warm_static http://localhost:8082 +fi + shutdown() { trap - TERM INT kill -TERM "$MAIN_PID" "$H1_PID" 2>/dev/null || true From ac141bcc34f04aea5679500b0af47b976cc940fc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 18 Nov 2026 09:53:54 +0000 Subject: [PATCH 82/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 476 +++++++++--------- site/static/logs/8gbit/512/paozhu.log | 2 +- site/static/logs/async-db/1024/paozhu.log | 8 +- site/static/logs/async/32000/paozhu.log | 8 +- site/static/logs/baseline-h2/1024/paozhu.log | 4 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline-h2c/1024/paozhu.log | 8 +- site/static/logs/baseline-h2c/4096/paozhu.log | 8 +- site/static/logs/baseline/4096/paozhu.log | 8 +- .../logs/echo-ws-limited/4096/paozhu.log | 8 +- .../logs/echo-ws-pipeline/16384/paozhu.log | 10 +- .../logs/echo-ws-pipeline/4096/paozhu.log | 10 +- .../logs/echo-ws-pipeline/512/paozhu.log | 8 +- site/static/logs/echo-ws/16384/paozhu.log | 8 +- site/static/logs/echo-ws/4096/paozhu.log | 8 +- site/static/logs/echo-ws/512/paozhu.log | 8 +- site/static/logs/fortunes/1024/paozhu.log | 2 +- site/static/logs/json-comp/16384/paozhu.log | 8 +- site/static/logs/json-comp/4096/paozhu.log | 8 +- site/static/logs/json-h2c/1024/paozhu.log | 10 +- site/static/logs/json-h2c/4096/paozhu.log | 8 +- site/static/logs/json-tls/4096/paozhu.log | 2 +- site/static/logs/latency-10k/1024/paozhu.log | 8 +- site/static/logs/latency-1m/1024/paozhu.log | 6 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 10 +- site/static/logs/limited-conn/4096/paozhu.log | 10 +- site/static/logs/pipelined/4096/paozhu.log | 8 +- site/static/logs/static-h2/256/paozhu.log | 8 +- site/static/logs/static-tls/1024/paozhu.log | 8 +- 29 files changed, 343 insertions(+), 343 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 4e7551bc97..f205d6f110 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,44 +4,44 @@ "8gbit-512": { "framework": "paozhu", "language": "C++", - "rps": 49357, - "avg_latency": "116.0us", - "p99_latency": "157.0us", - "cpu": "345.8%", - "memory": "141MiB", + "rps": 49020, + "avg_latency": "102.5us", + "p99_latency": "152.0us", + "cpu": "308.9%", + "memory": "134MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "511.43MB/s", - "input_bw": "482.00MB/s", + "bandwidth": "507.95MB/s", + "input_bw": "478.71MB/s", "reconnects": 0, - "status_2xx": 246853, + "status_2xx": 245155, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 17428815, - "cpu_per_req_us": 70.604, + "cpu_usec": 16933444, + "cpu_per_req_us": 69.0724, "target_rate": 50000, - "rate_ratio": 0.9871, - "p99_9_latency": "4069.0us" + "rate_ratio": 0.9804, + "p99_9_latency": "396.0us" }, "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1822285, - "avg_latency": "17.56ms", - "p99_latency": "29.20ms", - "cpu": "5952.5%", - "memory": "571MiB", + "rps": 1829662, + "avg_latency": "17.49ms", + "p99_latency": "28.90ms", + "cpu": "5966.9%", + "memory": "576MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "184.18MB/s", - "input_bw": "83.42MB/s", + "bandwidth": "184.93MB/s", + "input_bw": "83.76MB/s", "reconnects": 0, - "status_2xx": 18222853, + "status_2xx": 18296625, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -49,19 +49,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 160513, + "rps": 160500, "avg_latency": "6.38ms", - "p99_latency": "20.70ms", - "cpu": "3717.8%", - "memory": "124MiB", + "p99_latency": "20.10ms", + "cpu": "3709.7%", + "memory": "130MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "618.50MB/s", - "input_bw": "10.72MB/s", - "reconnects": 64069, - "status_2xx": 1605137, + "bandwidth": "618.37MB/s", + "input_bw": "10.71MB/s", + "reconnects": 64073, + "status_2xx": 1605005, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -69,19 +69,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2592562, - "avg_latency": "1.58ms", - "p99_latency": "7.05ms", - "cpu": "6406.0%", - "memory": "136MiB", + "rps": 2566736, + "avg_latency": "1.60ms", + "p99_latency": "8.78ms", + "cpu": "6416.7%", + "memory": "148MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "262.01MB/s", - "input_bw": "200.27MB/s", + "bandwidth": "259.40MB/s", + "input_bw": "198.27MB/s", "reconnects": 0, - "status_2xx": 12962813, + "status_2xx": 12833684, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -89,18 +89,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 618126, - "avg_latency": "154.58ms", - "p99_latency": "224.54ms", - "cpu": "6602.8%", - "memory": "863MiB", + "rps": 620645, + "avg_latency": "153.92ms", + "p99_latency": "244.73ms", + "cpu": "6599.0%", + "memory": "877MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "28.05MB/s", + "bandwidth": "28.11MB/s", "reconnects": 0, - "status_2xx": 3127722, + "status_2xx": 3134258, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -108,18 +108,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 685673, - "avg_latency": "37.28ms", - "p99_latency": "81.09ms", - "cpu": "6650.1%", - "memory": "279MiB", + "rps": 699755, + "avg_latency": "36.14ms", + "p99_latency": "82.75ms", + "cpu": "6653.1%", + "memory": "285MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "30.86MB/s", + "bandwidth": "31.56MB/s", "reconnects": 0, - "status_2xx": 3442082, + "status_2xx": 3519772, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -127,18 +127,18 @@ "baseline-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 695479, - "avg_latency": "142.01ms", - "p99_latency": "225.45ms", - "cpu": "6550.8%", - "memory": "780MiB", + "rps": 655716, + "avg_latency": "150.08ms", + "p99_latency": "220.80ms", + "cpu": "6532.7%", + "memory": "776MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "31.49MB/s", + "bandwidth": "29.69MB/s", "reconnects": 0, - "status_2xx": 3512173, + "status_2xx": 3311369, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -146,18 +146,18 @@ "baseline-h2c-256": { "framework": "paozhu", "language": "C++", - "rps": 661895, - "avg_latency": "38.33ms", - "p99_latency": "81.78ms", - "cpu": "6632.5%", - "memory": "253MiB", + "rps": 725405, + "avg_latency": "35.35ms", + "p99_latency": "95.23ms", + "cpu": "6576.1%", + "memory": "268MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "29.79MB/s", + "bandwidth": "32.71MB/s", "reconnects": 0, - "status_2xx": 3322716, + "status_2xx": 3648790, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -165,18 +165,18 @@ "baseline-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 687011, - "avg_latency": "531.18ms", - "p99_latency": "767.20ms", - "cpu": "6633.0%", + "rps": 670072, + "avg_latency": "542.99ms", + "p99_latency": "792.83ms", + "cpu": "6427.0%", "memory": "2.8GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "31.32MB/s", + "bandwidth": "30.61MB/s", "reconnects": 0, - "status_2xx": 3490020, + "status_2xx": 3410670, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -184,18 +184,18 @@ "echo-ws-16384": { "framework": "paozhu", "language": "C++", - "rps": 2571988, - "avg_latency": "6.37ms", + "rps": 2565199, + "avg_latency": "6.39ms", "p99_latency": "15.50ms", - "cpu": "6284.2%", - "memory": "430MiB", + "cpu": "6294.1%", + "memory": "435MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.17MB/s", + "bandwidth": "17.12MB/s", "reconnects": 0, - "status_2xx": 12859942, + "status_2xx": 12825997, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -203,18 +203,18 @@ "echo-ws-4096": { "framework": "paozhu", "language": "C++", - "rps": 3078791, - "avg_latency": "1.33ms", - "p99_latency": "6.78ms", - "cpu": "6290.8%", - "memory": "148MiB", + "rps": 3108232, + "avg_latency": "1.32ms", + "p99_latency": "6.76ms", + "cpu": "6397.1%", + "memory": "152MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.55MB/s", + "bandwidth": "20.74MB/s", "reconnects": 0, - "status_2xx": 15393956, + "status_2xx": 15541162, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -222,18 +222,18 @@ "echo-ws-512": { "framework": "paozhu", "language": "C++", - "rps": 2983711, - "avg_latency": "171us", - "p99_latency": "3.15ms", - "cpu": "6582.7%", - "memory": "74MiB", + "rps": 2958903, + "avg_latency": "172us", + "p99_latency": "3.31ms", + "cpu": "6531.9%", + "memory": "80MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.91MB/s", + "bandwidth": "19.75MB/s", "reconnects": 0, - "status_2xx": 14918557, + "status_2xx": 14794517, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -241,18 +241,18 @@ "echo-ws-limited-4096": { "framework": "paozhu", "language": "C++", - "rps": 1157281, - "avg_latency": "67us", - "p99_latency": "204us", - "cpu": "4456.2%", - "memory": "98MiB", + "rps": 1159095, + "avg_latency": "66us", + "p99_latency": "202us", + "cpu": "4243.1%", + "memory": "116MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "24.93MB/s", - "reconnects": 578701, - "status_2xx": 5786408, + "bandwidth": "24.97MB/s", + "reconnects": 579655, + "status_2xx": 5795479, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -260,18 +260,18 @@ "echo-ws-limited-512": { "framework": "paozhu", "language": "C++", - "rps": 1183680, - "avg_latency": "67us", - "p99_latency": "197us", - "cpu": "4694.1%", - "memory": "70MiB", + "rps": 1153055, + "avg_latency": "64us", + "p99_latency": "191us", + "cpu": "4397.7%", + "memory": "75MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "25.50MB/s", - "reconnects": 591851, - "status_2xx": 5918400, + "bandwidth": "24.84MB/s", + "reconnects": 576522, + "status_2xx": 5765279, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -279,18 +279,18 @@ "echo-ws-pipeline-16384": { "framework": "paozhu", "language": "C++", - "rps": 2827997, - "avg_latency": "93.10ms", - "p99_latency": "188.80ms", - "cpu": "6250.3%", - "memory": "445MiB", + "rps": 2754554, + "avg_latency": "95.63ms", + "p99_latency": "164.10ms", + "cpu": "6354.7%", + "memory": "453MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "18.87MB/s", + "bandwidth": "18.38MB/s", "reconnects": 0, - "status_2xx": 14139986, + "status_2xx": 13772771, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -298,18 +298,18 @@ "echo-ws-pipeline-4096": { "framework": "paozhu", "language": "C++", - "rps": 3451394, - "avg_latency": "19.00ms", - "p99_latency": "36.60ms", - "cpu": "6328.3%", - "memory": "154MiB", + "rps": 3458957, + "avg_latency": "18.96ms", + "p99_latency": "36.80ms", + "cpu": "6352.5%", + "memory": "159MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "23.03MB/s", + "bandwidth": "23.08MB/s", "reconnects": 0, - "status_2xx": 17256973, + "status_2xx": 17294786, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -317,18 +317,18 @@ "echo-ws-pipeline-512": { "framework": "paozhu", "language": "C++", - "rps": 3558463, - "avg_latency": "2.30ms", - "p99_latency": "13.00ms", - "cpu": "6438.6%", - "memory": "70MiB", + "rps": 3478142, + "avg_latency": "2.36ms", + "p99_latency": "10.50ms", + "cpu": "6451.7%", + "memory": "77MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "23.75MB/s", + "bandwidth": "23.21MB/s", "reconnects": 0, - "status_2xx": 17792318, + "status_2xx": 17390712, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -336,18 +336,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 82034, - "avg_latency": "12.45ms", - "p99_latency": "41.80ms", - "cpu": "3714.6%", - "memory": "143MiB", + "rps": 84041, + "avg_latency": "12.17ms", + "p99_latency": "43.50ms", + "cpu": "3827.9%", + "memory": "153MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.89GB/s", + "bandwidth": "1.94GB/s", "reconnects": 0, - "status_2xx": 410170, + "status_2xx": 420209, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -355,19 +355,19 @@ "json-comp-16384": { "framework": "paozhu", "language": "C++", - "rps": 738323, - "avg_latency": "21.60ms", - "p99_latency": "219.60ms", - "cpu": "6219.8%", - "memory": "563MiB", + "rps": 738422, + "avg_latency": "22.13ms", + "p99_latency": "101.50ms", + "cpu": "6259.8%", + "memory": "689MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, "bandwidth": "1.14GB/s", - "input_bw": "54.92MB/s", - "reconnects": 142361, - "status_2xx": 3691618, + "input_bw": "54.93MB/s", + "reconnects": 144647, + "status_2xx": 3692112, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -375,19 +375,19 @@ "json-comp-4096": { "framework": "paozhu", "language": "C++", - "rps": 782861, - "avg_latency": "5.23ms", - "p99_latency": "37.50ms", - "cpu": "6659.7%", - "memory": "264MiB", + "rps": 785946, + "avg_latency": "5.21ms", + "p99_latency": "37.30ms", + "cpu": "6392.4%", + "memory": "274MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.21GB/s", - "input_bw": "58.23MB/s", - "reconnects": 155093, - "status_2xx": 3914307, + "bandwidth": "1.22GB/s", + "input_bw": "58.46MB/s", + "reconnects": 155470, + "status_2xx": 3929732, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -395,18 +395,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 691932, - "avg_latency": "46.33ms", - "p99_latency": "95.11ms", - "cpu": "6625.6%", - "memory": "506MiB", + "rps": 618700, + "avg_latency": "51.72ms", + "p99_latency": "93.65ms", + "cpu": "6529.0%", + "memory": "520MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.33GB/s", + "bandwidth": "2.09GB/s", "reconnects": 0, - "status_2xx": 3501180, + "status_2xx": 3136812, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -414,18 +414,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 603076, - "avg_latency": "206.76ms", - "p99_latency": "326.77ms", - "cpu": "6421.3%", + "rps": 610930, + "avg_latency": "203.87ms", + "p99_latency": "306.92ms", + "cpu": "6604.6%", "memory": "1.8GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.03GB/s", + "bandwidth": "2.06GB/s", "reconnects": 0, - "status_2xx": 3063627, + "status_2xx": 3109635, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -433,18 +433,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1022599, - "avg_latency": "4.66ms", - "p99_latency": "199.36ms", - "cpu": "6224.2%", - "memory": "439MiB", + "rps": 964584, + "avg_latency": "5.04ms", + "p99_latency": "212.65ms", + "cpu": "6146.8%", + "memory": "445MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.46GB", + "bandwidth": "3.26GB", "reconnects": 0, - "status_2xx": 5214285, + "status_2xx": 4919333, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -452,91 +452,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9982, - "avg_latency": "75.5us", - "p99_latency": "113.0us", - "cpu": "31.5%", - "memory": "74MiB", + "rps": 9981, + "avg_latency": "77.9us", + "p99_latency": "112.0us", + "cpu": "29.1%", + "memory": "77MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199671, + "status_2xx": 199632, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 6574038, - "cpu_per_req_us": 32.9244, + "cpu_usec": 6098677, + "cpu_per_req_us": 30.5496, "target_rate": 10000, - "rate_ratio": 0.9982, + "rate_ratio": 0.9981, "p99_9_latency": "155.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997541, - "avg_latency": "112.2us", - "p99_latency": "196.0us", - "cpu": "3580.2%", - "memory": "76MiB", + "rps": 998083, + "avg_latency": "109.5us", + "p99_latency": "188.0us", + "cpu": "3611.9%", + "memory": "82MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.74MB/s", + "bandwidth": "104.80MB/s", "reconnects": 0, - "status_2xx": 19954461, + "status_2xx": 19965244, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 649347271, - "cpu_per_req_us": 32.5415, + "cpu_usec": 652883150, + "cpu_per_req_us": 32.701, "target_rate": 1000000, - "rate_ratio": 0.9975, - "p99_9_latency": "3413.0us" + "rate_ratio": 0.9981, + "p99_9_latency": "4982.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 363788, - "avg_latency": "2651914.4us", - "p99_latency": "6293504.0us", - "cpu": "813.6%", - "memory": "69MiB", + "rps": 363933, + "avg_latency": "2677804.3us", + "p99_latency": "5568512.0us", + "cpu": "811.8%", + "memory": "71MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "38.20MB/s", + "bandwidth": "38.21MB/s", "reconnects": 0, - "status_2xx": 7278493, + "status_2xx": 7281717, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159615477, - "cpu_per_req_us": 21.9297, + "cpu_usec": 159588633, + "cpu_per_req_us": 21.9163, "target_rate": 500000, - "rate_ratio": 0.7276, - "p99_9_latency": "7354368.0us" + "rate_ratio": 0.7279, + "p99_9_latency": "5797888.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 1188612, - "avg_latency": "3.44ms", - "p99_latency": "39.60ms", - "cpu": "4565.0%", - "memory": "89MiB", + "rps": 1168781, + "avg_latency": "3.49ms", + "p99_latency": "37.30ms", + "cpu": "4341.0%", + "memory": "100MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "120.12MB/s", - "input_bw": "91.82MB/s", - "reconnects": 594304, - "status_2xx": 5943064, + "bandwidth": "118.12MB/s", + "input_bw": "90.29MB/s", + "reconnects": 584441, + "status_2xx": 5843909, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -544,18 +544,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3539809, - "avg_latency": "18.54ms", - "p99_latency": "38.90ms", - "cpu": "6312.4%", - "memory": "131MiB", + "rps": 3483671, + "avg_latency": "18.83ms", + "p99_latency": "45.30ms", + "cpu": "6329.6%", + "memory": "136MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "357.75MB/s", + "bandwidth": "352.07MB/s", "reconnects": 0, - "status_2xx": 17699045, + "status_2xx": 17418359, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -563,18 +563,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 238270, - "avg_latency": "131.91ms", - "p99_latency": "629.28ms", - "cpu": "5906.0%", + "rps": 165927, + "avg_latency": "188.98ms", + "p99_latency": "1.00s", + "cpu": "2909.6%", "memory": "1.4GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.63GB/s", + "bandwidth": "2.51GB/s", "reconnects": 0, - "status_2xx": 1208031, + "status_2xx": 839593, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -582,18 +582,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 245134, - "avg_latency": "33.88ms", - "p99_latency": "213.67ms", - "cpu": "5706.0%", - "memory": "424MiB", + "rps": 191894, + "avg_latency": "42.18ms", + "p99_latency": "260.50ms", + "cpu": "3046.6%", + "memory": "422MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.74GB/s", + "bandwidth": "2.93GB/s", "reconnects": 0, - "status_2xx": 1233027, + "status_2xx": 965230, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -601,18 +601,18 @@ "static-tls-1024": { "framework": "paozhu", "language": "C++", - "rps": 226510, - "avg_latency": "4.52ms", - "p99_latency": "29.52ms", - "cpu": "4055.7%", - "memory": "198MiB", + "rps": 194637, + "avg_latency": "5.38ms", + "p99_latency": "37.32ms", + "cpu": "1987.5%", + "memory": "226MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.46GB", + "bandwidth": "2.98GB", "reconnects": 0, - "status_2xx": 1154952, + "status_2xx": 992514, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/8gbit/512/paozhu.log b/site/static/logs/8gbit/512/paozhu.log index 594675f4e1..e71987ebaf 100644 --- a/site/static/logs/8gbit/512/paozhu.log +++ b/site/static/logs/8gbit/512/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index f4f72854a0..ae6badc558 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index ae6badc558..e899fd452b 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] +/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index f9523aac0c..ae6badc558 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/1024/paozhu.log b/site/static/logs/baseline-h2c/1024/paozhu.log index 452c00cdee..f67729833d 100644 --- a/site/static/logs/baseline-h2c/1024/paozhu.log +++ b/site/static/logs/baseline-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf - not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/4096/paozhu.log b/site/static/logs/baseline-h2c/4096/paozhu.log index e71987ebaf..c94f421111 100644 --- a/site/static/logs/baseline-h2c/4096/paozhu.log +++ b/site/static/logs/baseline-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 594675f4e1..496f177217 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/4096/paozhu.log b/site/static/logs/echo-ws-limited/4096/paozhu.log index ae6badc558..496f177217 100644 --- a/site/static/logs/echo-ws-limited/4096/paozhu.log +++ b/site/static/logs/echo-ws-limited/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/16384/paozhu.log b/site/static/logs/echo-ws-pipeline/16384/paozhu.log index ae6badc558..4b8b8d6db4 100644 --- a/site/static/logs/echo-ws-pipeline/16384/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/4096/paozhu.log b/site/static/logs/echo-ws-pipeline/4096/paozhu.log index f67729833d..a90e7a01dc 100644 --- a/site/static/logs/echo-ws-pipeline/4096/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf + not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf[sockets] not found or parse fail, socket client disabled/app/conf/main/sockets.conf + not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/512/paozhu.log b/site/static/logs/echo-ws-pipeline/512/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/echo-ws-pipeline/512/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/16384/paozhu.log b/site/static/logs/echo-ws/16384/paozhu.log index a781d4c2fa..ae6badc558 100644 --- a/site/static/logs/echo-ws/16384/paozhu.log +++ b/site/static/logs/echo-ws/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/4096/paozhu.log b/site/static/logs/echo-ws/4096/paozhu.log index ee94e2a6c2..257b29fb85 100644 --- a/site/static/logs/echo-ws/4096/paozhu.log +++ b/site/static/logs/echo-ws/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] [mqtt_client] /app/conf/h1/mqtt.confwebsockets.conf not found or parse fail, mqtt client disabled not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/512/paozhu.log b/site/static/logs/echo-ws/512/paozhu.log index 496f177217..ae6badc558 100644 --- a/site/static/logs/echo-ws/512/paozhu.log +++ b/site/static/logs/echo-ws/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index e199d30c63..c373a84f43 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -2,8 +2,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/16384/paozhu.log b/site/static/logs/json-comp/16384/paozhu.log index 7507d1b226..ae6badc558 100644 --- a/site/static/logs/json-comp/16384/paozhu.log +++ b/site/static/logs/json-comp/16384/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/4096/paozhu.log b/site/static/logs/json-comp/4096/paozhu.log index 496f177217..3715f01c5d 100644 --- a/site/static/logs/json-comp/4096/paozhu.log +++ b/site/static/logs/json-comp/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index ae6badc558..ee94e2a6c2 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index 7507d1b226..a781d4c2fa 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index ae6badc558..7a9e321588 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index ae6badc558..3e633a520f 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index f67729833d..594675f4e1 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 8ad402329b..61672439db 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/h1/mqtt.conf - not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index a761640ccd..ae6badc558 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] [mqtt_client] /app/conf/h1/sockets.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, socket client disabled - -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index 7c55c1ec96..594675f4e1 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] [sockets] websockets.conf/app/conf/h1/sockets.conf not found or parse fail, websocket client disabled not found or parse fail, socket client disabled - [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index 844e61d413..32003d1994 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[sockets] /app/conf/main/sockets.conf + not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/static-tls/1024/paozhu.log b/site/static/logs/static-tls/1024/paozhu.log index 3e633a520f..bfa470fe45 100644 --- a/site/static/logs/static-tls/1024/paozhu.log +++ b/site/static/logs/static-tls/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From 76a8878196f89907959f3fb375fafc95874ecf66 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 18 Nov 2026 11:24:57 +0000 Subject: [PATCH 83/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 460 +++++++++--------- site/static/logs/8gbit/512/paozhu.log | 6 +- site/static/logs/async-db/1024/paozhu.log | 8 +- site/static/logs/async/32000/paozhu.log | 6 +- site/static/logs/baseline-h2/1024/paozhu.log | 2 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline-h2c/1024/paozhu.log | 6 +- site/static/logs/baseline-h2c/256/paozhu.log | 10 +- site/static/logs/baseline-h2c/4096/paozhu.log | 10 +- site/static/logs/baseline/4096/paozhu.log | 6 +- .../logs/echo-ws-limited/4096/paozhu.log | 8 +- .../logs/echo-ws-pipeline/16384/paozhu.log | 10 +- .../logs/echo-ws-pipeline/4096/paozhu.log | 10 +- site/static/logs/echo-ws/16384/paozhu.log | 4 +- site/static/logs/echo-ws/4096/paozhu.log | 6 +- site/static/logs/fortunes/1024/paozhu.log | 10 +- site/static/logs/json-comp/4096/paozhu.log | 4 +- site/static/logs/json-h2c/1024/paozhu.log | 10 +- site/static/logs/json-h2c/4096/paozhu.log | 8 +- site/static/logs/json-tls/4096/paozhu.log | 8 +- site/static/logs/latency-10k/1024/paozhu.log | 4 +- site/static/logs/latency-1m/1024/paozhu.log | 8 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 2 +- site/static/logs/limited-conn/4096/paozhu.log | 10 +- site/static/logs/pipelined/4096/paozhu.log | 10 +- site/static/logs/static-h2/256/paozhu.log | 6 +- site/static/logs/static-tls/1024/paozhu.log | 10 +- 27 files changed, 325 insertions(+), 325 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index f205d6f110..634c827094 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,44 +4,44 @@ "8gbit-512": { "framework": "paozhu", "language": "C++", - "rps": 49020, - "avg_latency": "102.5us", - "p99_latency": "152.0us", - "cpu": "308.9%", - "memory": "134MiB", + "rps": 48941, + "avg_latency": "109.5us", + "p99_latency": "150.0us", + "cpu": "299.8%", + "memory": "135MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "507.95MB/s", - "input_bw": "478.71MB/s", + "bandwidth": "507.13MB/s", + "input_bw": "477.94MB/s", "reconnects": 0, - "status_2xx": 245155, + "status_2xx": 244764, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 16933444, - "cpu_per_req_us": 69.0724, + "cpu_usec": 16797122, + "cpu_per_req_us": 68.6258, "target_rate": 50000, - "rate_ratio": 0.9804, - "p99_9_latency": "396.0us" + "rate_ratio": 0.9788, + "p99_9_latency": "805.0us" }, "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1829662, - "avg_latency": "17.49ms", - "p99_latency": "28.90ms", - "cpu": "5966.9%", - "memory": "576MiB", + "rps": 1832433, + "avg_latency": "17.61ms", + "p99_latency": "29.10ms", + "cpu": "5877.5%", + "memory": "578MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "184.93MB/s", - "input_bw": "83.76MB/s", + "bandwidth": "185.21MB/s", + "input_bw": "83.88MB/s", "reconnects": 0, - "status_2xx": 18296625, + "status_2xx": 18324333, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -49,19 +49,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 160500, + "rps": 160312, "avg_latency": "6.38ms", - "p99_latency": "20.10ms", - "cpu": "3709.7%", - "memory": "130MiB", + "p99_latency": "20.70ms", + "cpu": "3772.8%", + "memory": "131MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "618.37MB/s", - "input_bw": "10.71MB/s", - "reconnects": 64073, - "status_2xx": 1605005, + "bandwidth": "617.84MB/s", + "input_bw": "10.70MB/s", + "reconnects": 64096, + "status_2xx": 1603123, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -69,19 +69,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2566736, - "avg_latency": "1.60ms", - "p99_latency": "8.78ms", - "cpu": "6416.7%", - "memory": "148MiB", + "rps": 2620199, + "avg_latency": "1.57ms", + "p99_latency": "8.85ms", + "cpu": "6352.3%", + "memory": "152MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "259.40MB/s", - "input_bw": "198.27MB/s", + "bandwidth": "264.81MB/s", + "input_bw": "202.40MB/s", "reconnects": 0, - "status_2xx": 12833684, + "status_2xx": 13100998, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -89,18 +89,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 620645, - "avg_latency": "153.92ms", - "p99_latency": "244.73ms", - "cpu": "6599.0%", - "memory": "877MiB", + "rps": 630848, + "avg_latency": "151.22ms", + "p99_latency": "225.74ms", + "cpu": "6615.3%", + "memory": "869MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "28.11MB/s", + "bandwidth": "28.68MB/s", "reconnects": 0, - "status_2xx": 3134258, + "status_2xx": 3198402, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -108,18 +108,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 699755, - "avg_latency": "36.14ms", - "p99_latency": "82.75ms", - "cpu": "6653.1%", - "memory": "285MiB", + "rps": 674717, + "avg_latency": "37.74ms", + "p99_latency": "91.15ms", + "cpu": "6655.9%", + "memory": "291MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "31.56MB/s", + "bandwidth": "30.43MB/s", "reconnects": 0, - "status_2xx": 3519772, + "status_2xx": 3393828, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -127,18 +127,18 @@ "baseline-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 655716, - "avg_latency": "150.08ms", - "p99_latency": "220.80ms", - "cpu": "6532.7%", - "memory": "776MiB", + "rps": 726308, + "avg_latency": "136.15ms", + "p99_latency": "223.26ms", + "cpu": "6555.0%", + "memory": "786MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "29.69MB/s", + "bandwidth": "32.89MB/s", "reconnects": 0, - "status_2xx": 3311369, + "status_2xx": 3667857, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -146,18 +146,18 @@ "baseline-h2c-256": { "framework": "paozhu", "language": "C++", - "rps": 725405, - "avg_latency": "35.35ms", - "p99_latency": "95.23ms", - "cpu": "6576.1%", - "memory": "268MiB", + "rps": 706834, + "avg_latency": "36.71ms", + "p99_latency": "233.13ms", + "cpu": "6487.6%", + "memory": "242MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "32.71MB/s", + "bandwidth": "31.81MB/s", "reconnects": 0, - "status_2xx": 3648790, + "status_2xx": 3548310, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -165,18 +165,18 @@ "baseline-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 670072, - "avg_latency": "542.99ms", - "p99_latency": "792.83ms", - "cpu": "6427.0%", + "rps": 626991, + "avg_latency": "578.83ms", + "p99_latency": "891.92ms", + "cpu": "6453.1%", "memory": "2.8GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "30.61MB/s", + "bandwidth": "28.64MB/s", "reconnects": 0, - "status_2xx": 3410670, + "status_2xx": 3191388, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -184,18 +184,18 @@ "echo-ws-16384": { "framework": "paozhu", "language": "C++", - "rps": 2565199, - "avg_latency": "6.39ms", + "rps": 2580484, + "avg_latency": "6.35ms", "p99_latency": "15.50ms", - "cpu": "6294.1%", + "cpu": "6259.3%", "memory": "435MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.12MB/s", + "bandwidth": "17.22MB/s", "reconnects": 0, - "status_2xx": 12825997, + "status_2xx": 12902421, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -203,18 +203,18 @@ "echo-ws-4096": { "framework": "paozhu", "language": "C++", - "rps": 3108232, - "avg_latency": "1.32ms", - "p99_latency": "6.76ms", - "cpu": "6397.1%", - "memory": "152MiB", + "rps": 3066702, + "avg_latency": "1.33ms", + "p99_latency": "6.77ms", + "cpu": "6379.4%", + "memory": "153MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.74MB/s", + "bandwidth": "20.47MB/s", "reconnects": 0, - "status_2xx": 15541162, + "status_2xx": 15333510, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -222,18 +222,18 @@ "echo-ws-512": { "framework": "paozhu", "language": "C++", - "rps": 2958903, - "avg_latency": "172us", - "p99_latency": "3.31ms", - "cpu": "6531.9%", + "rps": 3058586, + "avg_latency": "166us", + "p99_latency": "3.14ms", + "cpu": "6559.1%", "memory": "80MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.75MB/s", + "bandwidth": "20.41MB/s", "reconnects": 0, - "status_2xx": 14794517, + "status_2xx": 15292930, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -241,18 +241,18 @@ "echo-ws-limited-4096": { "framework": "paozhu", "language": "C++", - "rps": 1159095, - "avg_latency": "66us", - "p99_latency": "202us", - "cpu": "4243.1%", - "memory": "116MiB", + "rps": 1155968, + "avg_latency": "67us", + "p99_latency": "200us", + "cpu": "4280.3%", + "memory": "115MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "24.97MB/s", - "reconnects": 579655, - "status_2xx": 5795479, + "bandwidth": "24.91MB/s", + "reconnects": 578026, + "status_2xx": 5779844, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -260,18 +260,18 @@ "echo-ws-limited-512": { "framework": "paozhu", "language": "C++", - "rps": 1153055, - "avg_latency": "64us", - "p99_latency": "191us", - "cpu": "4397.7%", + "rps": 1158610, + "avg_latency": "65us", + "p99_latency": "190us", + "cpu": "4490.0%", "memory": "75MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "24.84MB/s", - "reconnects": 576522, - "status_2xx": 5765279, + "bandwidth": "24.96MB/s", + "reconnects": 579307, + "status_2xx": 5793054, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -279,18 +279,18 @@ "echo-ws-pipeline-16384": { "framework": "paozhu", "language": "C++", - "rps": 2754554, - "avg_latency": "95.63ms", - "p99_latency": "164.10ms", - "cpu": "6354.7%", - "memory": "453MiB", + "rps": 2802662, + "avg_latency": "94.03ms", + "p99_latency": "180.10ms", + "cpu": "6304.2%", + "memory": "455MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "18.38MB/s", + "bandwidth": "18.70MB/s", "reconnects": 0, - "status_2xx": 13772771, + "status_2xx": 14013310, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -298,18 +298,18 @@ "echo-ws-pipeline-4096": { "framework": "paozhu", "language": "C++", - "rps": 3458957, - "avg_latency": "18.96ms", - "p99_latency": "36.80ms", - "cpu": "6352.5%", - "memory": "159MiB", + "rps": 3448145, + "avg_latency": "19.04ms", + "p99_latency": "36.70ms", + "cpu": "6305.8%", + "memory": "160MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "23.08MB/s", + "bandwidth": "23.01MB/s", "reconnects": 0, - "status_2xx": 17294786, + "status_2xx": 17240728, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -317,18 +317,18 @@ "echo-ws-pipeline-512": { "framework": "paozhu", "language": "C++", - "rps": 3478142, + "rps": 3470351, "avg_latency": "2.36ms", - "p99_latency": "10.50ms", - "cpu": "6451.7%", - "memory": "77MiB", + "p99_latency": "10.20ms", + "cpu": "6492.2%", + "memory": "76MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "23.21MB/s", + "bandwidth": "23.16MB/s", "reconnects": 0, - "status_2xx": 17390712, + "status_2xx": 17351759, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -336,18 +336,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 84041, - "avg_latency": "12.17ms", - "p99_latency": "43.50ms", - "cpu": "3827.9%", + "rps": 83790, + "avg_latency": "12.21ms", + "p99_latency": "34.00ms", + "cpu": "3816.2%", "memory": "153MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.94GB/s", + "bandwidth": "1.93GB/s", "reconnects": 0, - "status_2xx": 420209, + "status_2xx": 418952, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -355,19 +355,19 @@ "json-comp-16384": { "framework": "paozhu", "language": "C++", - "rps": 738422, - "avg_latency": "22.13ms", - "p99_latency": "101.50ms", - "cpu": "6259.8%", - "memory": "689MiB", + "rps": 750593, + "avg_latency": "21.43ms", + "p99_latency": "156.50ms", + "cpu": "6202.3%", + "memory": "610MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.14GB/s", - "input_bw": "54.93MB/s", - "reconnects": 144647, - "status_2xx": 3692112, + "bandwidth": "1.16GB/s", + "input_bw": "55.83MB/s", + "reconnects": 145040, + "status_2xx": 3752968, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -375,19 +375,19 @@ "json-comp-4096": { "framework": "paozhu", "language": "C++", - "rps": 785946, - "avg_latency": "5.21ms", - "p99_latency": "37.30ms", - "cpu": "6392.4%", - "memory": "274MiB", + "rps": 799256, + "avg_latency": "5.13ms", + "p99_latency": "38.20ms", + "cpu": "6336.3%", + "memory": "276MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.22GB/s", - "input_bw": "58.46MB/s", - "reconnects": 155470, - "status_2xx": 3929732, + "bandwidth": "1.24GB/s", + "input_bw": "59.45MB/s", + "reconnects": 157993, + "status_2xx": 3996280, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -395,18 +395,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 618700, - "avg_latency": "51.72ms", - "p99_latency": "93.65ms", - "cpu": "6529.0%", - "memory": "520MiB", + "rps": 621476, + "avg_latency": "51.93ms", + "p99_latency": "95.70ms", + "cpu": "6606.6%", + "memory": "523MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.09GB/s", + "bandwidth": "2.08GB/s", "reconnects": 0, - "status_2xx": 3136812, + "status_2xx": 3132244, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -414,18 +414,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 610930, - "avg_latency": "203.87ms", - "p99_latency": "306.92ms", - "cpu": "6604.6%", + "rps": 625093, + "avg_latency": "199.41ms", + "p99_latency": "293.90ms", + "cpu": "6609.3%", "memory": "1.8GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.06GB/s", + "bandwidth": "2.11GB/s", "reconnects": 0, - "status_2xx": 3109635, + "status_2xx": 3181724, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -433,18 +433,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 964584, - "avg_latency": "5.04ms", - "p99_latency": "212.65ms", - "cpu": "6146.8%", - "memory": "445MiB", + "rps": 1016592, + "avg_latency": "4.58ms", + "p99_latency": "179.70ms", + "cpu": "6253.6%", + "memory": "443MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.26GB", + "bandwidth": "3.44GB", "reconnects": 0, - "status_2xx": 4919333, + "status_2xx": 5184181, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -452,10 +452,10 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9981, - "avg_latency": "77.9us", - "p99_latency": "112.0us", - "cpu": "29.1%", + "rps": 9978, + "avg_latency": "85.0us", + "p99_latency": "110.0us", + "cpu": "28.0%", "memory": "77MiB", "connections": 1024, "threads": 64, @@ -463,80 +463,80 @@ "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199632, + "status_2xx": 199594, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 6098677, - "cpu_per_req_us": 30.5496, + "cpu_usec": 5876286, + "cpu_per_req_us": 29.4412, "target_rate": 10000, - "rate_ratio": 0.9981, - "p99_9_latency": "155.0us" + "rate_ratio": 0.9978, + "p99_9_latency": "4814.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 998083, - "avg_latency": "109.5us", - "p99_latency": "188.0us", - "cpu": "3611.9%", - "memory": "82MiB", + "rps": 997918, + "avg_latency": "109.6us", + "p99_latency": "194.0us", + "cpu": "3760.1%", + "memory": "80MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.80MB/s", + "bandwidth": "104.78MB/s", "reconnects": 0, - "status_2xx": 19965244, + "status_2xx": 19961620, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 652883150, - "cpu_per_req_us": 32.701, + "cpu_usec": 676610749, + "cpu_per_req_us": 33.8956, "target_rate": 1000000, - "rate_ratio": 0.9981, - "p99_9_latency": "4982.0us" + "rate_ratio": 0.9979, + "p99_9_latency": "1690.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 363933, - "avg_latency": "2677804.3us", - "p99_latency": "5568512.0us", - "cpu": "811.8%", - "memory": "71MiB", + "rps": 364880, + "avg_latency": "2642736.8us", + "p99_latency": "6043648.0us", + "cpu": "811.3%", + "memory": "74MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "38.21MB/s", + "bandwidth": "38.31MB/s", "reconnects": 0, - "status_2xx": 7281717, + "status_2xx": 7300312, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159588633, - "cpu_per_req_us": 21.9163, + "cpu_usec": 159606125, + "cpu_per_req_us": 21.8629, "target_rate": 500000, - "rate_ratio": 0.7279, - "p99_9_latency": "5797888.0us" + "rate_ratio": 0.7298, + "p99_9_latency": "6944768.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 1168781, - "avg_latency": "3.49ms", - "p99_latency": "37.30ms", - "cpu": "4341.0%", - "memory": "100MiB", + "rps": 1187483, + "avg_latency": "3.44ms", + "p99_latency": "38.80ms", + "cpu": "4439.2%", + "memory": "87MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "118.12MB/s", - "input_bw": "90.29MB/s", - "reconnects": 584441, - "status_2xx": 5843909, + "bandwidth": "120.00MB/s", + "input_bw": "91.73MB/s", + "reconnects": 593747, + "status_2xx": 5937417, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -544,18 +544,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3483671, - "avg_latency": "18.83ms", - "p99_latency": "45.30ms", - "cpu": "6329.6%", + "rps": 3561163, + "avg_latency": "18.42ms", + "p99_latency": "39.30ms", + "cpu": "6338.8%", "memory": "136MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "352.07MB/s", + "bandwidth": "359.86MB/s", "reconnects": 0, - "status_2xx": 17418359, + "status_2xx": 17805817, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -563,10 +563,10 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 165927, + "rps": 165983, "avg_latency": "188.98ms", - "p99_latency": "1.00s", - "cpu": "2909.6%", + "p99_latency": "989.50ms", + "cpu": "2649.9%", "memory": "1.4GiB", "connections": 1024, "threads": 64, @@ -574,7 +574,7 @@ "pipeline": 1, "bandwidth": "2.51GB/s", "reconnects": 0, - "status_2xx": 839593, + "status_2xx": 839875, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -582,18 +582,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 191894, - "avg_latency": "42.18ms", - "p99_latency": "260.50ms", - "cpu": "3046.6%", - "memory": "422MiB", + "rps": 186348, + "avg_latency": "43.41ms", + "p99_latency": "437.90ms", + "cpu": "2756.5%", + "memory": "405MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.93GB/s", + "bandwidth": "2.84GB/s", "reconnects": 0, - "status_2xx": 965230, + "status_2xx": 937331, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -601,18 +601,18 @@ "static-tls-1024": { "framework": "paozhu", "language": "C++", - "rps": 194637, - "avg_latency": "5.38ms", - "p99_latency": "37.32ms", - "cpu": "1987.5%", + "rps": 189090, + "avg_latency": "5.54ms", + "p99_latency": "36.71ms", + "cpu": "1991.0%", "memory": "226MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.98GB", + "bandwidth": "2.89GB", "reconnects": 0, - "status_2xx": 992514, + "status_2xx": 964243, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/8gbit/512/paozhu.log b/site/static/logs/8gbit/512/paozhu.log index e71987ebaf..ae6badc558 100644 --- a/site/static/logs/8gbit/512/paozhu.log +++ b/site/static/logs/8gbit/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index e899fd452b..a781d4c2fa 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[mqtt_client] -/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index ae6badc558..7a9e321588 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index ae6badc558..67c991bf37 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/1024/paozhu.log b/site/static/logs/baseline-h2c/1024/paozhu.log index f67729833d..ae6badc558 100644 --- a/site/static/logs/baseline-h2c/1024/paozhu.log +++ b/site/static/logs/baseline-h2c/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/256/paozhu.log b/site/static/logs/baseline-h2c/256/paozhu.log index ae6badc558..b22c67141c 100644 --- a/site/static/logs/baseline-h2c/256/paozhu.log +++ b/site/static/logs/baseline-h2c/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/4096/paozhu.log b/site/static/logs/baseline-h2c/4096/paozhu.log index c94f421111..7a9e321588 100644 --- a/site/static/logs/baseline-h2c/4096/paozhu.log +++ b/site/static/logs/baseline-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 496f177217..f4f72854a0 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/4096/paozhu.log b/site/static/logs/echo-ws-limited/4096/paozhu.log index 496f177217..ae6badc558 100644 --- a/site/static/logs/echo-ws-limited/4096/paozhu.log +++ b/site/static/logs/echo-ws-limited/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/16384/paozhu.log b/site/static/logs/echo-ws-pipeline/16384/paozhu.log index 4b8b8d6db4..ee8d008255 100644 --- a/site/static/logs/echo-ws-pipeline/16384/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/4096/paozhu.log b/site/static/logs/echo-ws-pipeline/4096/paozhu.log index a90e7a01dc..9dc0d2ee1c 100644 --- a/site/static/logs/echo-ws-pipeline/4096/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf - not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf[sockets] not found or parse fail, socket client disabled/app/conf/main/sockets.conf - not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/16384/paozhu.log b/site/static/logs/echo-ws/16384/paozhu.log index ae6badc558..5a3ddc5d5f 100644 --- a/site/static/logs/echo-ws/16384/paozhu.log +++ b/site/static/logs/echo-ws/16384/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/echo-ws/4096/paozhu.log b/site/static/logs/echo-ws/4096/paozhu.log index 257b29fb85..fd83ef3a35 100644 --- a/site/static/logs/echo-ws/4096/paozhu.log +++ b/site/static/logs/echo-ws/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[websockets] [mqtt_client] /app/conf/h1/mqtt.confwebsockets.conf not found or parse fail, mqtt client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index c373a84f43..ae6badc558 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/4096/paozhu.log b/site/static/logs/json-comp/4096/paozhu.log index 3715f01c5d..9dc0d2ee1c 100644 --- a/site/static/logs/json-comp/4096/paozhu.log +++ b/site/static/logs/json-comp/4096/paozhu.log @@ -1,6 +1,6 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index ee94e2a6c2..ae6badc558 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index a781d4c2fa..ae6badc558 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 7a9e321588..f4f72854a0 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index 3e633a520f..c94f421111 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -4,8 +4,8 @@ websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 61672439db..ae6badc558 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index ae6badc558..5ca76421ab 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf + not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index 594675f4e1..c373a84f43 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index 32003d1994..e71987ebaf 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[sockets] /app/conf/main/sockets.conf - not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/static-tls/1024/paozhu.log b/site/static/logs/static-tls/1024/paozhu.log index bfa470fe45..ae6badc558 100644 --- a/site/static/logs/static-tls/1024/paozhu.log +++ b/site/static/logs/static-tls/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From 6a556052ae29460bcee0a86effc1eadf62041e86 Mon Sep 17 00:00:00 2001 From: hzq Date: Wed, 18 Nov 2026 19:34:56 +0800 Subject: [PATCH 84/89] Fix static static-h2 64X4 threads --- frameworks/paozhu/src/conf/server-h1.conf | 4 ++-- frameworks/paozhu/src/conf/server.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frameworks/paozhu/src/conf/server-h1.conf b/frameworks/paozhu/src/conf/server-h1.conf index 7c435fca0f..3562e0131a 100644 --- a/frameworks/paozhu/src/conf/server-h1.conf +++ b/frameworks/paozhu/src/conf/server-h1.conf @@ -9,8 +9,8 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 0 ; 0 = auto (host cores) -per_ioc_thread_num = 1 ; +cothreadnum = 64 ; 0 = auto (host cores) +per_ioc_thread_num = 4 ; orm_ioc_num = 4 ;ORM io_context num; orm_thread_pool_num = 0 ;0 use hardware_concurrency() http2_send_loop_num = 8 ; diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index 365dea4ffb..0f247c239b 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -4,8 +4,8 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 0 ; 0 = auto (host cores) -per_ioc_thread_num = 1 ; +cothreadnum = 64 ; 0 = auto (host cores) +per_ioc_thread_num = 4 ; orm_ioc_num = 4 ;ORM io_context num; orm_thread_pool_num = 0 ;0 use hardware_concurrency() http2_send_loop_num = 8 ; From 2a59c2036ff09281a13dfabddf10bcd96dd85213 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 18 Nov 2026 16:04:47 +0000 Subject: [PATCH 85/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 490 +++++++++--------- site/static/logs/async/32000/paozhu.log | 2 +- site/static/logs/baseline-h2/1024/paozhu.log | 2 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline-h2c/1024/paozhu.log | 2 +- site/static/logs/baseline-h2c/256/paozhu.log | 6 +- site/static/logs/baseline-h2c/4096/paozhu.log | 8 +- .../logs/echo-ws-limited/4096/paozhu.log | 10 +- .../logs/echo-ws-limited/512/paozhu.log | 6 +- .../logs/echo-ws-pipeline/16384/paozhu.log | 8 +- .../logs/echo-ws-pipeline/4096/paozhu.log | 6 +- site/static/logs/echo-ws/16384/paozhu.log | 8 +- site/static/logs/echo-ws/4096/paozhu.log | 4 +- site/static/logs/echo-ws/512/paozhu.log | 6 +- site/static/logs/json-comp/4096/paozhu.log | 2 +- site/static/logs/json-h2c/1024/paozhu.log | 8 +- site/static/logs/json-h2c/4096/paozhu.log | 8 +- site/static/logs/json-tls/4096/paozhu.log | 8 +- site/static/logs/latency-10k/1024/paozhu.log | 10 +- site/static/logs/latency-1m/1024/paozhu.log | 8 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 6 +- site/static/logs/limited-conn/4096/paozhu.log | 10 +- site/static/logs/pipelined/4096/paozhu.log | 10 +- site/static/logs/static-h2/1024/paozhu.log | 10 +- site/static/logs/static-h2/256/paozhu.log | 10 +- site/static/logs/static-tls/1024/paozhu.log | 8 +- 26 files changed, 332 insertions(+), 332 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 634c827094..7e406e452e 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,44 +4,44 @@ "8gbit-512": { "framework": "paozhu", "language": "C++", - "rps": 48941, - "avg_latency": "109.5us", - "p99_latency": "150.0us", - "cpu": "299.8%", - "memory": "135MiB", + "rps": 49388, + "avg_latency": "113.6us", + "p99_latency": "165.0us", + "cpu": "544.6%", + "memory": "181MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "507.13MB/s", - "input_bw": "477.94MB/s", + "bandwidth": "511.76MB/s", + "input_bw": "482.30MB/s", "reconnects": 0, - "status_2xx": 244764, + "status_2xx": 247000, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 16797122, - "cpu_per_req_us": 68.6258, + "cpu_usec": 26965290, + "cpu_per_req_us": 109.1712, "target_rate": 50000, - "rate_ratio": 0.9788, - "p99_9_latency": "805.0us" + "rate_ratio": 0.9878, + "p99_9_latency": "1090.0us" }, "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1832433, - "avg_latency": "17.61ms", - "p99_latency": "29.10ms", - "cpu": "5877.5%", - "memory": "578MiB", + "rps": 1736790, + "avg_latency": "18.47ms", + "p99_latency": "32.90ms", + "cpu": "6190.6%", + "memory": "742MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "185.21MB/s", - "input_bw": "83.88MB/s", + "bandwidth": "175.54MB/s", + "input_bw": "79.50MB/s", "reconnects": 0, - "status_2xx": 18324333, + "status_2xx": 17367904, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -49,19 +49,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 160312, - "avg_latency": "6.38ms", - "p99_latency": "20.70ms", - "cpu": "3772.8%", - "memory": "131MiB", + "rps": 145638, + "avg_latency": "7.03ms", + "p99_latency": "25.40ms", + "cpu": "4038.3%", + "memory": "170MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "617.84MB/s", - "input_bw": "10.70MB/s", - "reconnects": 64096, - "status_2xx": 1603123, + "bandwidth": "561.10MB/s", + "input_bw": "9.72MB/s", + "reconnects": 57990, + "status_2xx": 1456389, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -69,19 +69,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2620199, - "avg_latency": "1.57ms", - "p99_latency": "8.85ms", - "cpu": "6352.3%", - "memory": "152MiB", + "rps": 2534995, + "avg_latency": "1.62ms", + "p99_latency": "7.64ms", + "cpu": "6435.2%", + "memory": "180MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "264.81MB/s", - "input_bw": "202.40MB/s", + "bandwidth": "256.20MB/s", + "input_bw": "195.82MB/s", "reconnects": 0, - "status_2xx": 13100998, + "status_2xx": 12674978, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -89,18 +89,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 630848, - "avg_latency": "151.22ms", - "p99_latency": "225.74ms", - "cpu": "6615.3%", - "memory": "869MiB", + "rps": 614637, + "avg_latency": "155.46ms", + "p99_latency": "339.41ms", + "cpu": "6631.3%", + "memory": "997MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "28.68MB/s", + "bandwidth": "27.89MB/s", "reconnects": 0, - "status_2xx": 3198402, + "status_2xx": 3110066, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -108,18 +108,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 674717, - "avg_latency": "37.74ms", - "p99_latency": "91.15ms", - "cpu": "6655.9%", - "memory": "291MiB", + "rps": 608295, + "avg_latency": "41.46ms", + "p99_latency": "84.68ms", + "cpu": "6636.2%", + "memory": "347MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "30.43MB/s", + "bandwidth": "27.38MB/s", "reconnects": 0, - "status_2xx": 3393828, + "status_2xx": 3053645, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -127,18 +127,18 @@ "baseline-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 726308, - "avg_latency": "136.15ms", - "p99_latency": "223.26ms", - "cpu": "6555.0%", - "memory": "786MiB", + "rps": 666081, + "avg_latency": "147.52ms", + "p99_latency": "213.97ms", + "cpu": "6559.7%", + "memory": "876MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "32.89MB/s", + "bandwidth": "30.22MB/s", "reconnects": 0, - "status_2xx": 3667857, + "status_2xx": 3370373, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -146,18 +146,18 @@ "baseline-h2c-256": { "framework": "paozhu", "language": "C++", - "rps": 706834, - "avg_latency": "36.71ms", - "p99_latency": "233.13ms", - "cpu": "6487.6%", - "memory": "242MiB", + "rps": 720823, + "avg_latency": "35.22ms", + "p99_latency": "85.68ms", + "cpu": "6643.9%", + "memory": "310MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "31.81MB/s", + "bandwidth": "32.51MB/s", "reconnects": 0, - "status_2xx": 3548310, + "status_2xx": 3625742, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -165,18 +165,18 @@ "baseline-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 626991, - "avg_latency": "578.83ms", - "p99_latency": "891.92ms", - "cpu": "6453.1%", - "memory": "2.8GiB", + "rps": 625100, + "avg_latency": "577.36ms", + "p99_latency": "896.03ms", + "cpu": "6639.2%", + "memory": "3.0GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "28.64MB/s", + "bandwidth": "28.61MB/s", "reconnects": 0, - "status_2xx": 3191388, + "status_2xx": 3188015, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -184,18 +184,18 @@ "echo-ws-16384": { "framework": "paozhu", "language": "C++", - "rps": 2580484, - "avg_latency": "6.35ms", - "p99_latency": "15.50ms", - "cpu": "6259.3%", - "memory": "435MiB", + "rps": 2461704, + "avg_latency": "6.66ms", + "p99_latency": "15.10ms", + "cpu": "6370.0%", + "memory": "471MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.22MB/s", + "bandwidth": "16.43MB/s", "reconnects": 0, - "status_2xx": 12902421, + "status_2xx": 12308521, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -203,18 +203,18 @@ "echo-ws-4096": { "framework": "paozhu", "language": "C++", - "rps": 3066702, - "avg_latency": "1.33ms", - "p99_latency": "6.77ms", - "cpu": "6379.4%", - "memory": "153MiB", + "rps": 3039821, + "avg_latency": "1.35ms", + "p99_latency": "7.34ms", + "cpu": "6407.9%", + "memory": "182MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.47MB/s", + "bandwidth": "20.28MB/s", "reconnects": 0, - "status_2xx": 15333510, + "status_2xx": 15199105, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -222,18 +222,18 @@ "echo-ws-512": { "framework": "paozhu", "language": "C++", - "rps": 3058586, - "avg_latency": "166us", - "p99_latency": "3.14ms", - "cpu": "6559.1%", - "memory": "80MiB", + "rps": 3018767, + "avg_latency": "169us", + "p99_latency": "687us", + "cpu": "6554.7%", + "memory": "95MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.41MB/s", + "bandwidth": "20.15MB/s", "reconnects": 0, - "status_2xx": 15292930, + "status_2xx": 15093836, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -241,18 +241,18 @@ "echo-ws-limited-4096": { "framework": "paozhu", "language": "C++", - "rps": 1155968, - "avg_latency": "67us", - "p99_latency": "200us", - "cpu": "4280.3%", - "memory": "115MiB", + "rps": 673593, + "avg_latency": "72us", + "p99_latency": "228us", + "cpu": "4857.3%", + "memory": "95MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "24.91MB/s", - "reconnects": 578026, - "status_2xx": 5779844, + "bandwidth": "14.51MB/s", + "reconnects": 336806, + "status_2xx": 3367969, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -260,18 +260,18 @@ "echo-ws-limited-512": { "framework": "paozhu", "language": "C++", - "rps": 1158610, - "avg_latency": "65us", - "p99_latency": "190us", - "cpu": "4490.0%", - "memory": "75MiB", + "rps": 650178, + "avg_latency": "70us", + "p99_latency": "230us", + "cpu": "4818.1%", + "memory": "93MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "24.96MB/s", - "reconnects": 579307, - "status_2xx": 5793054, + "bandwidth": "14.01MB/s", + "reconnects": 325086, + "status_2xx": 3250890, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -279,18 +279,18 @@ "echo-ws-pipeline-16384": { "framework": "paozhu", "language": "C++", - "rps": 2802662, - "avg_latency": "94.03ms", - "p99_latency": "180.10ms", - "cpu": "6304.2%", - "memory": "455MiB", + "rps": 2674656, + "avg_latency": "98.48ms", + "p99_latency": "144.80ms", + "cpu": "6298.4%", + "memory": "470MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "18.70MB/s", + "bandwidth": "17.85MB/s", "reconnects": 0, - "status_2xx": 14013310, + "status_2xx": 13373284, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -298,18 +298,18 @@ "echo-ws-pipeline-4096": { "framework": "paozhu", "language": "C++", - "rps": 3448145, - "avg_latency": "19.04ms", - "p99_latency": "36.70ms", - "cpu": "6305.8%", - "memory": "160MiB", + "rps": 3316220, + "avg_latency": "19.77ms", + "p99_latency": "36.40ms", + "cpu": "6422.9%", + "memory": "176MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "23.01MB/s", + "bandwidth": "22.13MB/s", "reconnects": 0, - "status_2xx": 17240728, + "status_2xx": 16581103, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -317,18 +317,18 @@ "echo-ws-pipeline-512": { "framework": "paozhu", "language": "C++", - "rps": 3470351, - "avg_latency": "2.36ms", - "p99_latency": "10.20ms", - "cpu": "6492.2%", - "memory": "76MiB", + "rps": 3535190, + "avg_latency": "2.32ms", + "p99_latency": "10.70ms", + "cpu": "6519.0%", + "memory": "99MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "23.16MB/s", + "bandwidth": "23.59MB/s", "reconnects": 0, - "status_2xx": 17351759, + "status_2xx": 17675952, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -336,18 +336,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 83790, - "avg_latency": "12.21ms", - "p99_latency": "34.00ms", - "cpu": "3816.2%", - "memory": "153MiB", + "rps": 79923, + "avg_latency": "12.78ms", + "p99_latency": "47.50ms", + "cpu": "4076.9%", + "memory": "224MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.93GB/s", + "bandwidth": "1.84GB/s", "reconnects": 0, - "status_2xx": 418952, + "status_2xx": 399615, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -355,19 +355,19 @@ "json-comp-16384": { "framework": "paozhu", "language": "C++", - "rps": 750593, - "avg_latency": "21.43ms", - "p99_latency": "156.50ms", - "cpu": "6202.3%", - "memory": "610MiB", + "rps": 508964, + "avg_latency": "18.08ms", + "p99_latency": "408.80ms", + "cpu": "5816.1%", + "memory": "242MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.16GB/s", - "input_bw": "55.83MB/s", - "reconnects": 145040, - "status_2xx": 3752968, + "bandwidth": "806.85MB/s", + "input_bw": "37.86MB/s", + "reconnects": 102204, + "status_2xx": 2544821, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -375,19 +375,19 @@ "json-comp-4096": { "framework": "paozhu", "language": "C++", - "rps": 799256, - "avg_latency": "5.13ms", - "p99_latency": "38.20ms", - "cpu": "6336.3%", - "memory": "276MiB", + "rps": 505816, + "avg_latency": "7.97ms", + "p99_latency": "208.80ms", + "cpu": "5568.1%", + "memory": "191MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.24GB/s", - "input_bw": "59.45MB/s", - "reconnects": 157993, - "status_2xx": 3996280, + "bandwidth": "801.79MB/s", + "input_bw": "37.63MB/s", + "reconnects": 101160, + "status_2xx": 2529081, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -395,18 +395,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 621476, - "avg_latency": "51.93ms", - "p99_latency": "95.70ms", - "cpu": "6606.6%", - "memory": "523MiB", + "rps": 635848, + "avg_latency": "50.48ms", + "p99_latency": "96.84ms", + "cpu": "6546.2%", + "memory": "646MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.08GB/s", + "bandwidth": "2.14GB/s", "reconnects": 0, - "status_2xx": 3132244, + "status_2xx": 3217392, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -414,18 +414,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 625093, - "avg_latency": "199.41ms", - "p99_latency": "293.90ms", - "cpu": "6609.3%", - "memory": "1.8GiB", + "rps": 577512, + "avg_latency": "214.87ms", + "p99_latency": "319.16ms", + "cpu": "6620.8%", + "memory": "2.0GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.11GB/s", + "bandwidth": "1.96GB/s", "reconnects": 0, - "status_2xx": 3181724, + "status_2xx": 2945312, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -433,18 +433,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1016592, - "avg_latency": "4.58ms", - "p99_latency": "179.70ms", - "cpu": "6253.6%", - "memory": "443MiB", + "rps": 981137, + "avg_latency": "6.74ms", + "p99_latency": "251.83ms", + "cpu": "6277.3%", + "memory": "523MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.44GB", + "bandwidth": "3.32GB", "reconnects": 0, - "status_2xx": 5184181, + "status_2xx": 5002194, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -452,91 +452,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9978, - "avg_latency": "85.0us", - "p99_latency": "110.0us", - "cpu": "28.0%", - "memory": "77MiB", + "rps": 9983, + "avg_latency": "77.2us", + "p99_latency": "109.0us", + "cpu": "46.8%", + "memory": "94MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199594, + "status_2xx": 199681, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 5876286, - "cpu_per_req_us": 29.4412, + "cpu_usec": 9766467, + "cpu_per_req_us": 48.9103, "target_rate": 10000, - "rate_ratio": 0.9978, - "p99_9_latency": "4814.0us" + "rate_ratio": 0.9983, + "p99_9_latency": "162.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997918, - "avg_latency": "109.6us", - "p99_latency": "194.0us", - "cpu": "3760.1%", - "memory": "80MiB", + "rps": 997547, + "avg_latency": "150.8us", + "p99_latency": "321.0us", + "cpu": "5604.6%", + "memory": "103MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.78MB/s", + "bandwidth": "104.74MB/s", "reconnects": 0, - "status_2xx": 19961620, + "status_2xx": 19954871, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 676610749, - "cpu_per_req_us": 33.8956, + "cpu_usec": 1018387690, + "cpu_per_req_us": 51.0345, "target_rate": 1000000, - "rate_ratio": 0.9979, - "p99_9_latency": "1690.0us" + "rate_ratio": 0.9975, + "p99_9_latency": "5626.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 364880, - "avg_latency": "2642736.8us", - "p99_latency": "6043648.0us", - "cpu": "811.3%", - "memory": "74MiB", + "rps": 354502, + "avg_latency": "2889097.0us", + "p99_latency": "6391808.0us", + "cpu": "803.9%", + "memory": "95MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "38.31MB/s", + "bandwidth": "37.22MB/s", "reconnects": 0, - "status_2xx": 7300312, + "status_2xx": 7092394, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159606125, - "cpu_per_req_us": 21.8629, + "cpu_usec": 159618039, + "cpu_per_req_us": 22.5055, "target_rate": 500000, - "rate_ratio": 0.7298, - "p99_9_latency": "6944768.0us" + "rate_ratio": 0.709, + "p99_9_latency": "7157760.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 1187483, - "avg_latency": "3.44ms", - "p99_latency": "38.80ms", - "cpu": "4439.2%", - "memory": "87MiB", + "rps": 722608, + "avg_latency": "5.64ms", + "p99_latency": "76.00ms", + "cpu": "5160.6%", + "memory": "115MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "120.00MB/s", - "input_bw": "91.73MB/s", - "reconnects": 593747, - "status_2xx": 5937417, + "bandwidth": "73.03MB/s", + "input_bw": "55.82MB/s", + "reconnects": 361311, + "status_2xx": 3613044, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -544,18 +544,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3561163, - "avg_latency": "18.42ms", - "p99_latency": "39.30ms", - "cpu": "6338.8%", - "memory": "136MiB", + "rps": 3421688, + "avg_latency": "19.20ms", + "p99_latency": "35.40ms", + "cpu": "6451.9%", + "memory": "158MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "359.86MB/s", + "bandwidth": "345.81MB/s", "reconnects": 0, - "status_2xx": 17805817, + "status_2xx": 17108440, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -563,18 +563,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 165983, - "avg_latency": "188.98ms", - "p99_latency": "989.50ms", - "cpu": "2649.9%", - "memory": "1.4GiB", + "rps": 107452, + "avg_latency": "288.44ms", + "p99_latency": "1.26s", + "cpu": "1624.7%", + "memory": "1.6GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.51GB/s", + "bandwidth": "1.61GB/s", "reconnects": 0, - "status_2xx": 839875, + "status_2xx": 542633, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -582,18 +582,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 186348, - "avg_latency": "43.41ms", - "p99_latency": "437.90ms", - "cpu": "2756.5%", - "memory": "405MiB", + "rps": 140106, + "avg_latency": "57.61ms", + "p99_latency": "302.67ms", + "cpu": "1826.6%", + "memory": "565MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.84GB/s", + "bandwidth": "2.13GB/s", "reconnects": 0, - "status_2xx": 937331, + "status_2xx": 704736, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -601,18 +601,18 @@ "static-tls-1024": { "framework": "paozhu", "language": "C++", - "rps": 189090, - "avg_latency": "5.54ms", - "p99_latency": "36.71ms", - "cpu": "1991.0%", - "memory": "226MiB", + "rps": 175297, + "avg_latency": "5.96ms", + "p99_latency": "40.37ms", + "cpu": "1915.8%", + "memory": "304MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.89GB", + "bandwidth": "2.68GB", "reconnects": 0, - "status_2xx": 964243, + "status_2xx": 894055, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index a781d4c2fa..594675f4e1 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index 7a9e321588..ae6badc558 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index 67c991bf37..ae6badc558 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/1024/paozhu.log b/site/static/logs/baseline-h2c/1024/paozhu.log index ae6badc558..7a9e321588 100644 --- a/site/static/logs/baseline-h2c/1024/paozhu.log +++ b/site/static/logs/baseline-h2c/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline-h2c/256/paozhu.log b/site/static/logs/baseline-h2c/256/paozhu.log index b22c67141c..496f177217 100644 --- a/site/static/logs/baseline-h2c/256/paozhu.log +++ b/site/static/logs/baseline-h2c/256/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - -[sockets] [sockets] /app/conf/main/sockets.conf/app/conf/h1/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/4096/paozhu.log b/site/static/logs/baseline-h2c/4096/paozhu.log index 7a9e321588..7507d1b226 100644 --- a/site/static/logs/baseline-h2c/4096/paozhu.log +++ b/site/static/logs/baseline-h2c/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/4096/paozhu.log b/site/static/logs/echo-ws-limited/4096/paozhu.log index ae6badc558..452c00cdee 100644 --- a/site/static/logs/echo-ws-limited/4096/paozhu.log +++ b/site/static/logs/echo-ws-limited/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf + not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/512/paozhu.log b/site/static/logs/echo-ws-limited/512/paozhu.log index ae6badc558..df69f7aeff 100644 --- a/site/static/logs/echo-ws-limited/512/paozhu.log +++ b/site/static/logs/echo-ws-limited/512/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabledwebsockets.conf + not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/16384/paozhu.log b/site/static/logs/echo-ws-pipeline/16384/paozhu.log index ee8d008255..ae6badc558 100644 --- a/site/static/logs/echo-ws-pipeline/16384/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/4096/paozhu.log b/site/static/logs/echo-ws-pipeline/4096/paozhu.log index 9dc0d2ee1c..594675f4e1 100644 --- a/site/static/logs/echo-ws-pipeline/4096/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/16384/paozhu.log b/site/static/logs/echo-ws/16384/paozhu.log index 5a3ddc5d5f..f836f03bdd 100644 --- a/site/static/logs/echo-ws/16384/paozhu.log +++ b/site/static/logs/echo-ws/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf[websockets] not found or parse fail, socket client disabled websockets.conf not found or parse fail, websocket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/4096/paozhu.log b/site/static/logs/echo-ws/4096/paozhu.log index fd83ef3a35..f67729833d 100644 --- a/site/static/logs/echo-ws/4096/paozhu.log +++ b/site/static/logs/echo-ws/4096/paozhu.log @@ -2,10 +2,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/512/paozhu.log b/site/static/logs/echo-ws/512/paozhu.log index ae6badc558..594fa68ff8 100644 --- a/site/static/logs/echo-ws/512/paozhu.log +++ b/site/static/logs/echo-ws/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/4096/paozhu.log b/site/static/logs/json-comp/4096/paozhu.log index 9dc0d2ee1c..ae6badc558 100644 --- a/site/static/logs/json-comp/4096/paozhu.log +++ b/site/static/logs/json-comp/4096/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index ae6badc558..496f177217 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index f4f72854a0..3e633a520f 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index c94f421111..5a3ddc5d5f 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index ae6badc558..a9fa2bbe01 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin + +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index ae6badc558..a7d7b9ac91 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index 5ca76421ab..7a9e321588 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf - not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/pipelined/4096/paozhu.log b/site/static/logs/pipelined/4096/paozhu.log index c373a84f43..ae6badc558 100644 --- a/site/static/logs/pipelined/4096/paozhu.log +++ b/site/static/logs/pipelined/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/h1/mqtt.conf/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index ae6badc558..9e44f82e5a 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf + not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index e71987ebaf..1107bcf173 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/main/sockets.conf[sockets] not found or parse fail, socket client disabled/app/conf/h1/sockets.conf + not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-tls/1024/paozhu.log b/site/static/logs/static-tls/1024/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/static-tls/1024/paozhu.log +++ b/site/static/logs/static-tls/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients From 673dfdaf16efc9751a5c1dcd065a1c64daba57e6 Mon Sep 17 00:00:00 2001 From: hzq Date: Thu, 19 Nov 2026 01:20:06 +0800 Subject: [PATCH 86/89] Fix threads --- frameworks/paozhu/Dockerfile | 2 +- frameworks/paozhu/cost_define.h | 80 ++++++++++++++++++++--- frameworks/paozhu/src/conf/server-h1.conf | 4 +- frameworks/paozhu/src/conf/server.conf | 4 +- 4 files changed, 76 insertions(+), 14 deletions(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index 12b0216783..f35546077b 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=d93c8b5534bd55674691d83e2436336f8637f160 +ARG PAOZHU_REF=87dabc299e6d38f6ac43297a7f8bf6340675843c WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct diff --git a/frameworks/paozhu/cost_define.h b/frameworks/paozhu/cost_define.h index 3f068e5433..1044fb0d0b 100755 --- a/frameworks/paozhu/cost_define.h +++ b/frameworks/paozhu/cost_define.h @@ -194,6 +194,30 @@ // header_table_size bounds its decoder, not ours. #define CONST_HTTP2_DYNAMIC_TABLE_MAX_SIZE 4096 +// 编码器动态表的本地上限(响应头方向)。对端 SETTINGS_HEADER_TABLE_SIZE 可以广告到 +// 2^32-1,RFC 7541 §4.2 允许编码器选用不超过该值的任意上限——本端取 min(对端值, 此 cap), +// 防止对端用一个巨型广告值把每连接的编码表撑成无界内存。与上面的解码侧上限是两套账。 +// Local ceiling of the HPACK encoder table. RFC 7541 §4.2 lets the encoder pick any size up +// to the peer-advertised value; we clamp to this cap so a huge SETTINGS advertisement cannot +// grow per-connection encoder memory without bound. Separate from the decoder ceiling above. +#define CONST_HTTP2_ENCODER_TABLE_CAP 4096 + +// HPACK encoder dynamic table switch for response headers. Define to enable Indexed representation; +// comment out to fall back to Literal without Indexing (0000xxxx). +#define PAOZHU_HPACK_ENCODER_DYNAMIC_TABLE 1 + +// Connection-level error COMPRESSION_ERROR (RFC 9113 §7 / RFC 7541). GOAWAY with this code +// on unrecoverable HEADERS write failure — the connection state cannot be trusted. +// 连接级错误码 COMPRESSION_ERROR(RFC 9113 §7 / RFC 7541):HEADERS 写失败后 GOAWAY 带此码断连。 +#define CONST_HTTP2_ERROR_COMPRESSION 0x09 + +// 连接级错误码 INTERNAL_ERROR(RFC 9113 §7):handler 抛出未预期异常时的兜底 GOAWAY。 +// 异常点不确定(可能在头编码前/后),不能断言是压缩失步,用 INTERNAL_ERROR 而非 0x09; +// 也不用 NO_ERROR(0)——那会让客户端把一次服务端故障当成正常收尾。 +// Connection-level INTERNAL_ERROR (RFC 9113 §7): fallback GOAWAY for unexpected handler +// exceptions. The throw site is unknown, so neither NO_ERROR nor COMPRESSION_ERROR is honest. +#define CONST_HTTP2_ERROR_INTERNAL 0x02 + // HTTP/2 协议允许的最大窗口值(2^31-1)。SETTINGS_INITIAL_WINDOW_SIZE 与 // WINDOW_UPDATE 累加超过该值必须按 RFC 9113 §6.9.1 报 FLOW_CONTROL_ERROR。 // HTTP/2 protocol maximum window value (2^31-1). Accumulated SETTINGS_INITIAL_WINDOW_SIZE + WINDOW_UPDATE over this ⇒ FLOW_CONTROL_ERROR per RFC 9113 §6.9.1. @@ -263,13 +287,53 @@ constexpr bool http2_wu_stream_id_ok(unsigned long long sid, unsigned long long #define CONST_HTTP2_SEND_FRAME_BUF 15360 -// 文件直发单批 gather 的字节上限。一次预留、一次写锁、一次 async_write 最多送这么多 -// DATA 字节(仍按对端 MAX_FRAME_SIZE 切成帧)。批尺寸受写锁等待预算约束:慢客户端下 -// 整批写出期间锁被占住,同连接其他流等锁超过 CONST_HTTP2_WRITE_LOCK_TIMEOUT 会被撤流。 -// 32KB 在 6KB/s 客户端下约 5.3s,对 10s 预算留近一倍余量(旧 16KB 单帧约 2.7s)。 -// 对端 MAX_FRAME_SIZE 下限 16384 由解析侧 40216 门禁保证;本值 ≤ 65536 ⇒ 单批至多 4 帧、 -// 9 块 buffer(含首批 HEADERS),发送侧 fhs/bufs 的栈上界依此成立。 -#define CONST_HTTP2_FILE_BATCH_BYTES 32768 +// 内联/文件发送每轮入内容环的 DATA 帧数上限:一次窗口预留按字节记账,切成至多这么多帧 +// 逐帧入环(仍按对端 MAX_FRAME_SIZE 切帧)。与下面的补喂闸配套:闸 24 + 批 6 = 30 ≤ 31 +// 可用槽,一批开始喂入后不会因本批而卡满。 +#define CONST_HTTP2_SEND_BATCH_FRAMES 6 + +// 内容环补喂闸:积压槽数达到本值就就地等(20ms 一拍自醒),给在途批次与控制帧留槽。 +#define CONST_HTTP2_CONTENT_RING_FEED_GATE 24 + +// 环满等待:基础拍长(微秒)+ 自适应边界。 +// 起始从 BASE 起步,剩余槽 < FAST_SLOTS 持续减半加速(消费还在忙,快点查空槽); +// 剩余槽 > SLOW_SLOTS 持续翻倍减速(消费刚排空,慢点查省 CPU)。 +// 持续朝同一方向推就持续指数退避,直到 MIN / MAX 封顶。 +// Base ring-full wait (μs) + adaptive bounds. Start from BASE; keep halving when remaining < +// FAST_SLOTS (consumer still busy, poll sooner); keep doubling when remaining > SLOW_SLOTS +// (consumer just drained, poll slower to save CPU). +#define CONST_HTTP2_RING_FULL_WAIT_BASE 1000 +#define CONST_HTTP2_RING_FULL_WAIT_MIN 100 // 100μs +#define CONST_HTTP2_RING_FULL_WAIT_MAX 200000 // 200ms +#define CONST_HTTP2_RING_FULL_WAIT_FAST 3 // remaining < 3 → 加速 +#define CONST_HTTP2_RING_FULL_WAIT_SLOW 18 // remaining > 18 → 减速 + +// 根据当前间隔 + 剩余槽数,算出下一次等待间隔(微秒)。 +// Compute next wait interval (μs) from current value + remaining ring slots. +constexpr unsigned int http2_ring_wait_adjust_us(unsigned int current_us, unsigned char remaining_slots) +{ + if (remaining_slots < CONST_HTTP2_RING_FULL_WAIT_FAST) + { + if (current_us > CONST_HTTP2_RING_FULL_WAIT_MIN) + current_us /= 2; + if (current_us < CONST_HTTP2_RING_FULL_WAIT_MIN) + current_us = CONST_HTTP2_RING_FULL_WAIT_MIN; + } + else if (remaining_slots > CONST_HTTP2_RING_FULL_WAIT_SLOW) + { + if (current_us < CONST_HTTP2_RING_FULL_WAIT_MAX) + current_us *= 2; + if (current_us > CONST_HTTP2_RING_FULL_WAIT_MAX) + current_us = CONST_HTTP2_RING_FULL_WAIT_MAX; + } + return current_us; +} + +// h1 文件直发单块尺寸(fread + 一次写)。原 4096 让 100KB 文件付 26 次写 syscall; +// 64KB 块降到 2~3 次。心跳必须每块刷:64KB 在 6.2KB/s 慢客户端下约 10s 一块, +// 对 httpwatch 的 now-60s idle 阈值留足余量(旧 %16 拍在 64KB 块下会变成 1MB 一刷)。 +// 池化 content 缓冲常驻容量随之涨到 64KB/对象,回池 clear() 不释放,属有意保留的热容量。 +#define CONST_HTTP1_FILE_CHUNK_BYTES 65536 // 每连接 HTTP/2 发送环的槽数。三条硬约束: // 1. 必须是 2 的幂 —— 下标推进用 & (capacity_ - 1),非 2 的幂会算出错误的下一格; @@ -284,8 +348,6 @@ constexpr bool http2_wu_stream_id_ok(unsigned long long sid, unsigned long long // 一次窗口停等的总预算:到期 RST(CANCEL) 撤流,连接保留。按次重算,不是整条响应的 // 预算;被 WU 叫醒后用剩余量重挂,小增量不续命。 #define CONST_HTTP2_WINDOW_STALL_TIMEOUT 10 -// 写锁等待预算,和窗口停等预算分开:慢写占锁不该被当成窗口停等而误撤流。 -#define CONST_HTTP2_WRITE_LOCK_TIMEOUT 10 // RST_STREAM 流错误码(RFC 9113 §7)。CANCEL 表示「流被撤销」,不表示对端违反协议; // 本地背压/过载放弃发送时应使用它,而不是 PROTOCOL_ERROR(0x01)。 diff --git a/frameworks/paozhu/src/conf/server-h1.conf b/frameworks/paozhu/src/conf/server-h1.conf index 3562e0131a..7c435fca0f 100644 --- a/frameworks/paozhu/src/conf/server-h1.conf +++ b/frameworks/paozhu/src/conf/server-h1.conf @@ -9,8 +9,8 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 64 ; 0 = auto (host cores) -per_ioc_thread_num = 4 ; +cothreadnum = 0 ; 0 = auto (host cores) +per_ioc_thread_num = 1 ; orm_ioc_num = 4 ;ORM io_context num; orm_thread_pool_num = 0 ;0 use hardware_concurrency() http2_send_loop_num = 8 ; diff --git a/frameworks/paozhu/src/conf/server.conf b/frameworks/paozhu/src/conf/server.conf index 0f247c239b..365dea4ffb 100644 --- a/frameworks/paozhu/src/conf/server.conf +++ b/frameworks/paozhu/src/conf/server.conf @@ -4,8 +4,8 @@ [default] threadmax = 1024 threadmin = 5 -cothreadnum = 64 ; 0 = auto (host cores) -per_ioc_thread_num = 4 ; +cothreadnum = 0 ; 0 = auto (host cores) +per_ioc_thread_num = 1 ; orm_ioc_num = 4 ;ORM io_context num; orm_thread_pool_num = 0 ;0 use hardware_concurrency() http2_send_loop_num = 8 ; From 15f138187194201a78ae5b5f61095fa07352b38e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 18 Nov 2026 17:57:53 +0000 Subject: [PATCH 87/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 490 +++++++++--------- site/static/logs/8gbit/512/paozhu.log | 8 +- site/static/logs/async-db/1024/paozhu.log | 8 +- site/static/logs/async/32000/paozhu.log | 8 +- site/static/logs/baseline-h2/1024/paozhu.log | 10 +- site/static/logs/baseline-h2/256/paozhu.log | 4 +- site/static/logs/baseline-h2c/1024/paozhu.log | 8 +- site/static/logs/baseline-h2c/256/paozhu.log | 4 +- site/static/logs/baseline-h2c/4096/paozhu.log | 8 +- site/static/logs/baseline/4096/paozhu.log | 4 +- .../logs/echo-ws-limited/4096/paozhu.log | 8 +- .../logs/echo-ws-limited/512/paozhu.log | 10 +- .../logs/echo-ws-pipeline/16384/paozhu.log | 8 +- .../logs/echo-ws-pipeline/4096/paozhu.log | 10 +- .../logs/echo-ws-pipeline/512/paozhu.log | 8 +- site/static/logs/echo-ws/16384/paozhu.log | 8 +- site/static/logs/echo-ws/4096/paozhu.log | 6 +- site/static/logs/echo-ws/512/paozhu.log | 2 +- site/static/logs/fortunes/1024/paozhu.log | 8 +- site/static/logs/json-comp/4096/paozhu.log | 2 +- site/static/logs/json-h2c/1024/paozhu.log | 8 +- site/static/logs/json-tls/4096/paozhu.log | 8 +- site/static/logs/latency-10k/1024/paozhu.log | 10 +- site/static/logs/latency-1m/1024/paozhu.log | 10 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 4 +- site/static/logs/limited-conn/4096/paozhu.log | 8 +- site/static/logs/static-h2/1024/paozhu.log | 10 +- site/static/logs/static-h2/256/paozhu.log | 10 +- 28 files changed, 345 insertions(+), 345 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index 7e406e452e..c74c9beda9 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,44 +4,44 @@ "8gbit-512": { "framework": "paozhu", "language": "C++", - "rps": 49388, - "avg_latency": "113.6us", - "p99_latency": "165.0us", - "cpu": "544.6%", - "memory": "181MiB", + "rps": 49006, + "avg_latency": "109.5us", + "p99_latency": "151.0us", + "cpu": "307.2%", + "memory": "134MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "511.76MB/s", - "input_bw": "482.30MB/s", + "bandwidth": "507.80MB/s", + "input_bw": "478.57MB/s", "reconnects": 0, - "status_2xx": 247000, + "status_2xx": 245098, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 26965290, - "cpu_per_req_us": 109.1712, + "cpu_usec": 17115469, + "cpu_per_req_us": 69.8311, "target_rate": 50000, - "rate_ratio": 0.9878, - "p99_9_latency": "1090.0us" + "rate_ratio": 0.9801, + "p99_9_latency": "784.0us" }, "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1736790, - "avg_latency": "18.47ms", - "p99_latency": "32.90ms", - "cpu": "6190.6%", - "memory": "742MiB", + "rps": 1803685, + "avg_latency": "17.74ms", + "p99_latency": "29.30ms", + "cpu": "5968.6%", + "memory": "604MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "175.54MB/s", - "input_bw": "79.50MB/s", + "bandwidth": "182.30MB/s", + "input_bw": "82.57MB/s", "reconnects": 0, - "status_2xx": 17367904, + "status_2xx": 18036856, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -49,19 +49,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 145638, - "avg_latency": "7.03ms", - "p99_latency": "25.40ms", - "cpu": "4038.3%", - "memory": "170MiB", + "rps": 158406, + "avg_latency": "6.46ms", + "p99_latency": "20.90ms", + "cpu": "3625.8%", + "memory": "132MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "561.10MB/s", - "input_bw": "9.72MB/s", - "reconnects": 57990, - "status_2xx": 1456389, + "bandwidth": "610.45MB/s", + "input_bw": "10.57MB/s", + "reconnects": 63201, + "status_2xx": 1584067, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -69,19 +69,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2534995, - "avg_latency": "1.62ms", - "p99_latency": "7.64ms", - "cpu": "6435.2%", - "memory": "180MiB", + "rps": 2587857, + "avg_latency": "1.59ms", + "p99_latency": "6.93ms", + "cpu": "6421.7%", + "memory": "151MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "256.20MB/s", - "input_bw": "195.82MB/s", + "bandwidth": "261.54MB/s", + "input_bw": "199.91MB/s", "reconnects": 0, - "status_2xx": 12674978, + "status_2xx": 12939287, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -89,18 +89,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 614637, - "avg_latency": "155.46ms", - "p99_latency": "339.41ms", - "cpu": "6631.3%", - "memory": "997MiB", + "rps": 765881, + "avg_latency": "122.45ms", + "p99_latency": "4.77s", + "cpu": "6410.9%", + "memory": "710MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "27.89MB/s", + "bandwidth": "16.86MB/s", "reconnects": 0, - "status_2xx": 3110066, + "status_2xx": 3867702, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -108,18 +108,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 608295, - "avg_latency": "41.46ms", - "p99_latency": "84.68ms", - "cpu": "6636.2%", - "memory": "347MiB", + "rps": 761588, + "avg_latency": "32.24ms", + "p99_latency": "3.74s", + "cpu": "6339.6%", + "memory": "218MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "27.38MB/s", + "bandwidth": "16.78MB/s", "reconnects": 0, - "status_2xx": 3053645, + "status_2xx": 3830792, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -127,18 +127,18 @@ "baseline-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 666081, - "avg_latency": "147.52ms", - "p99_latency": "213.97ms", - "cpu": "6559.7%", - "memory": "876MiB", + "rps": 755030, + "avg_latency": "127.72ms", + "p99_latency": "4.99s", + "cpu": "6478.4%", + "memory": "638MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "30.22MB/s", + "bandwidth": "16.66MB/s", "reconnects": 0, - "status_2xx": 3370373, + "status_2xx": 3820456, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -146,18 +146,18 @@ "baseline-h2c-256": { "framework": "paozhu", "language": "C++", - "rps": 720823, - "avg_latency": "35.22ms", - "p99_latency": "85.68ms", - "cpu": "6643.9%", - "memory": "310MiB", + "rps": 705742, + "avg_latency": "35.70ms", + "p99_latency": "2.51s", + "cpu": "6485.3%", + "memory": "225MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "32.51MB/s", + "bandwidth": "15.57MB/s", "reconnects": 0, - "status_2xx": 3625742, + "status_2xx": 3556940, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -165,18 +165,18 @@ "baseline-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 625100, - "avg_latency": "577.36ms", - "p99_latency": "896.03ms", - "cpu": "6639.2%", - "memory": "3.0GiB", + "rps": 771205, + "avg_latency": "431.36ms", + "p99_latency": "4.97s", + "cpu": "6496.9%", + "memory": "2.4GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "28.61MB/s", + "bandwidth": "16.83MB/s", "reconnects": 0, - "status_2xx": 3188015, + "status_2xx": 3940858, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -184,18 +184,18 @@ "echo-ws-16384": { "framework": "paozhu", "language": "C++", - "rps": 2461704, - "avg_latency": "6.66ms", - "p99_latency": "15.10ms", - "cpu": "6370.0%", - "memory": "471MiB", + "rps": 2649760, + "avg_latency": "6.18ms", + "p99_latency": "15.40ms", + "cpu": "6127.7%", + "memory": "449MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "16.43MB/s", + "bandwidth": "17.68MB/s", "reconnects": 0, - "status_2xx": 12308521, + "status_2xx": 13248801, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -203,18 +203,18 @@ "echo-ws-4096": { "framework": "paozhu", "language": "C++", - "rps": 3039821, - "avg_latency": "1.35ms", - "p99_latency": "7.34ms", - "cpu": "6407.9%", - "memory": "182MiB", + "rps": 3166981, + "avg_latency": "1.29ms", + "p99_latency": "6.77ms", + "cpu": "6369.5%", + "memory": "156MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.28MB/s", + "bandwidth": "21.14MB/s", "reconnects": 0, - "status_2xx": 15199105, + "status_2xx": 15834909, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -222,18 +222,18 @@ "echo-ws-512": { "framework": "paozhu", "language": "C++", - "rps": 3018767, - "avg_latency": "169us", - "p99_latency": "687us", - "cpu": "6554.7%", - "memory": "95MiB", + "rps": 3117274, + "avg_latency": "163us", + "p99_latency": "3.19ms", + "cpu": "6523.7%", + "memory": "81MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.15MB/s", + "bandwidth": "20.80MB/s", "reconnects": 0, - "status_2xx": 15093836, + "status_2xx": 15586374, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -241,18 +241,18 @@ "echo-ws-limited-4096": { "framework": "paozhu", "language": "C++", - "rps": 673593, - "avg_latency": "72us", - "p99_latency": "228us", - "cpu": "4857.3%", - "memory": "95MiB", + "rps": 1141474, + "avg_latency": "64us", + "p99_latency": "193us", + "cpu": "4225.8%", + "memory": "92MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "14.51MB/s", - "reconnects": 336806, - "status_2xx": 3367969, + "bandwidth": "24.59MB/s", + "reconnects": 570834, + "status_2xx": 5707374, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -260,18 +260,18 @@ "echo-ws-limited-512": { "framework": "paozhu", "language": "C++", - "rps": 650178, - "avg_latency": "70us", - "p99_latency": "230us", - "cpu": "4818.1%", - "memory": "93MiB", + "rps": 1139257, + "avg_latency": "63us", + "p99_latency": "183us", + "cpu": "4344.2%", + "memory": "79MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "14.01MB/s", - "reconnects": 325086, - "status_2xx": 3250890, + "bandwidth": "24.55MB/s", + "reconnects": 569621, + "status_2xx": 5696286, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -279,18 +279,18 @@ "echo-ws-pipeline-16384": { "framework": "paozhu", "language": "C++", - "rps": 2674656, - "avg_latency": "98.48ms", - "p99_latency": "144.80ms", - "cpu": "6298.4%", - "memory": "470MiB", + "rps": 2889201, + "avg_latency": "91.02ms", + "p99_latency": "171.50ms", + "cpu": "6260.0%", + "memory": "465MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "17.85MB/s", + "bandwidth": "19.28MB/s", "reconnects": 0, - "status_2xx": 13373284, + "status_2xx": 14446005, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -298,18 +298,18 @@ "echo-ws-pipeline-4096": { "framework": "paozhu", "language": "C++", - "rps": 3316220, - "avg_latency": "19.77ms", - "p99_latency": "36.40ms", - "cpu": "6422.9%", - "memory": "176MiB", + "rps": 3584273, + "avg_latency": "18.31ms", + "p99_latency": "35.20ms", + "cpu": "6351.6%", + "memory": "164MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "22.13MB/s", + "bandwidth": "23.92MB/s", "reconnects": 0, - "status_2xx": 16581103, + "status_2xx": 17921366, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -317,18 +317,18 @@ "echo-ws-pipeline-512": { "framework": "paozhu", "language": "C++", - "rps": 3535190, - "avg_latency": "2.32ms", - "p99_latency": "10.70ms", - "cpu": "6519.0%", - "memory": "99MiB", + "rps": 3677801, + "avg_latency": "2.23ms", + "p99_latency": "9.15ms", + "cpu": "6631.0%", + "memory": "78MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "23.59MB/s", + "bandwidth": "24.55MB/s", "reconnects": 0, - "status_2xx": 17675952, + "status_2xx": 18389005, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -336,18 +336,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 79923, - "avg_latency": "12.78ms", - "p99_latency": "47.50ms", - "cpu": "4076.9%", - "memory": "224MiB", + "rps": 82775, + "avg_latency": "12.35ms", + "p99_latency": "34.50ms", + "cpu": "3738.2%", + "memory": "151MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.84GB/s", + "bandwidth": "1.91GB/s", "reconnects": 0, - "status_2xx": 399615, + "status_2xx": 413875, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -355,19 +355,19 @@ "json-comp-16384": { "framework": "paozhu", "language": "C++", - "rps": 508964, - "avg_latency": "18.08ms", - "p99_latency": "408.80ms", - "cpu": "5816.1%", - "memory": "242MiB", + "rps": 751336, + "avg_latency": "21.39ms", + "p99_latency": "220.20ms", + "cpu": "6293.7%", + "memory": "624MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "806.85MB/s", - "input_bw": "37.86MB/s", - "reconnects": 102204, - "status_2xx": 2544821, + "bandwidth": "1.16GB/s", + "input_bw": "55.89MB/s", + "reconnects": 144852, + "status_2xx": 3756683, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -375,19 +375,19 @@ "json-comp-4096": { "framework": "paozhu", "language": "C++", - "rps": 505816, - "avg_latency": "7.97ms", - "p99_latency": "208.80ms", - "cpu": "5568.1%", - "memory": "191MiB", + "rps": 791808, + "avg_latency": "5.18ms", + "p99_latency": "53.00ms", + "cpu": "6364.9%", + "memory": "280MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "801.79MB/s", - "input_bw": "37.63MB/s", - "reconnects": 101160, - "status_2xx": 2529081, + "bandwidth": "1.23GB/s", + "input_bw": "58.90MB/s", + "reconnects": 156579, + "status_2xx": 3959044, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -395,18 +395,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 635848, - "avg_latency": "50.48ms", - "p99_latency": "96.84ms", - "cpu": "6546.2%", - "memory": "646MiB", + "rps": 710012, + "avg_latency": "45.09ms", + "p99_latency": "3.48s", + "cpu": "6512.3%", + "memory": "524MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.14GB/s", + "bandwidth": "2.36GB/s", "reconnects": 0, - "status_2xx": 3217392, + "status_2xx": 3592661, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -414,18 +414,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 577512, - "avg_latency": "214.87ms", - "p99_latency": "319.16ms", - "cpu": "6620.8%", - "memory": "2.0GiB", + "rps": 666577, + "avg_latency": "187.08ms", + "p99_latency": "1.63s", + "cpu": "6325.0%", + "memory": "2.1GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.96GB/s", + "bandwidth": "2.21GB/s", "reconnects": 0, - "status_2xx": 2945312, + "status_2xx": 3392880, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -433,18 +433,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 981137, - "avg_latency": "6.74ms", - "p99_latency": "251.83ms", - "cpu": "6277.3%", - "memory": "523MiB", + "rps": 1015119, + "avg_latency": "4.89ms", + "p99_latency": "297.50ms", + "cpu": "6219.1%", + "memory": "448MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.32GB", + "bandwidth": "3.43GB", "reconnects": 0, - "status_2xx": 5002194, + "status_2xx": 5176333, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -452,91 +452,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9983, - "avg_latency": "77.2us", - "p99_latency": "109.0us", - "cpu": "46.8%", - "memory": "94MiB", + "rps": 9981, + "avg_latency": "78.7us", + "p99_latency": "112.0us", + "cpu": "29.6%", + "memory": "77MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199681, + "status_2xx": 199636, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 9766467, - "cpu_per_req_us": 48.9103, + "cpu_usec": 6180639, + "cpu_per_req_us": 30.9595, "target_rate": 10000, - "rate_ratio": 0.9983, - "p99_9_latency": "162.0us" + "rate_ratio": 0.9981, + "p99_9_latency": "1101.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997547, - "avg_latency": "150.8us", - "p99_latency": "321.0us", - "cpu": "5604.6%", - "memory": "103MiB", + "rps": 998020, + "avg_latency": "115.1us", + "p99_latency": "194.0us", + "cpu": "3584.2%", + "memory": "84MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.74MB/s", + "bandwidth": "104.79MB/s", "reconnects": 0, - "status_2xx": 19954871, + "status_2xx": 19964281, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 1018387690, - "cpu_per_req_us": 51.0345, + "cpu_usec": 647026201, + "cpu_per_req_us": 32.4092, "target_rate": 1000000, - "rate_ratio": 0.9975, - "p99_9_latency": "5626.0us" + "rate_ratio": 0.998, + "p99_9_latency": "7106.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 354502, - "avg_latency": "2889097.0us", - "p99_latency": "6391808.0us", - "cpu": "803.9%", - "memory": "95MiB", + "rps": 363838, + "avg_latency": "2655308.0us", + "p99_latency": "6301696.0us", + "cpu": "803.1%", + "memory": "74MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "37.22MB/s", + "bandwidth": "38.20MB/s", "reconnects": 0, - "status_2xx": 7092394, + "status_2xx": 7279526, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159618039, - "cpu_per_req_us": 22.5055, + "cpu_usec": 159487589, + "cpu_per_req_us": 21.9091, "target_rate": 500000, - "rate_ratio": 0.709, - "p99_9_latency": "7157760.0us" + "rate_ratio": 0.7277, + "p99_9_latency": "7038976.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 722608, - "avg_latency": "5.64ms", - "p99_latency": "76.00ms", - "cpu": "5160.6%", - "memory": "115MiB", + "rps": 1154622, + "avg_latency": "3.53ms", + "p99_latency": "48.80ms", + "cpu": "4402.9%", + "memory": "88MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "73.03MB/s", - "input_bw": "55.82MB/s", - "reconnects": 361311, - "status_2xx": 3613044, + "bandwidth": "116.69MB/s", + "input_bw": "89.19MB/s", + "reconnects": 577313, + "status_2xx": 5773114, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -544,18 +544,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3421688, - "avg_latency": "19.20ms", - "p99_latency": "35.40ms", - "cpu": "6451.9%", - "memory": "158MiB", + "rps": 3479461, + "avg_latency": "18.85ms", + "p99_latency": "44.50ms", + "cpu": "6382.4%", + "memory": "140MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "345.81MB/s", + "bandwidth": "351.64MB/s", "reconnects": 0, - "status_2xx": 17108440, + "status_2xx": 17397309, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -563,18 +563,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 107452, - "avg_latency": "288.44ms", - "p99_latency": "1.26s", - "cpu": "1624.7%", - "memory": "1.6GiB", + "rps": 1312, + "avg_latency": "45.69ms", + "p99_latency": "115.28ms", + "cpu": "146.1%", + "memory": "912MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.61GB/s", + "bandwidth": "25.79MB/s", "reconnects": 0, - "status_2xx": 542633, + "status_2xx": 6640, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -582,18 +582,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 140106, - "avg_latency": "57.61ms", - "p99_latency": "302.67ms", - "cpu": "1826.6%", - "memory": "565MiB", + "rps": 358, + "avg_latency": "12.08ms", + "p99_latency": "25.03ms", + "cpu": "37.5%", + "memory": "328MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.13GB/s", + "bandwidth": "6.13MB/s", "reconnects": 0, - "status_2xx": 704736, + "status_2xx": 1804, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -601,18 +601,18 @@ "static-tls-1024": { "framework": "paozhu", "language": "C++", - "rps": 175297, - "avg_latency": "5.96ms", - "p99_latency": "40.37ms", - "cpu": "1915.8%", - "memory": "304MiB", + "rps": 185355, + "avg_latency": "5.64ms", + "p99_latency": "34.22ms", + "cpu": "2019.4%", + "memory": "227MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.68GB", + "bandwidth": "2.83GB", "reconnects": 0, - "status_2xx": 894055, + "status_2xx": 945241, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/8gbit/512/paozhu.log b/site/static/logs/8gbit/512/paozhu.log index ae6badc558..a781d4c2fa 100644 --- a/site/static/logs/8gbit/512/paozhu.log +++ b/site/static/logs/8gbit/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/async-db/1024/paozhu.log +++ b/site/static/logs/async-db/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/async/32000/paozhu.log b/site/static/logs/async/32000/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/async/32000/paozhu.log +++ b/site/static/logs/async/32000/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index ae6badc558..4a2c23501f 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf + not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled + +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index ae6badc558..c1b4516dca 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +/app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/baseline-h2c/1024/paozhu.log b/site/static/logs/baseline-h2c/1024/paozhu.log index 7a9e321588..496f177217 100644 --- a/site/static/logs/baseline-h2c/1024/paozhu.log +++ b/site/static/logs/baseline-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/256/paozhu.log b/site/static/logs/baseline-h2c/256/paozhu.log index 496f177217..7507d1b226 100644 --- a/site/static/logs/baseline-h2c/256/paozhu.log +++ b/site/static/logs/baseline-h2c/256/paozhu.log @@ -2,10 +2,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/4096/paozhu.log b/site/static/logs/baseline-h2c/4096/paozhu.log index 7507d1b226..f8497fa9ee 100644 --- a/site/static/logs/baseline-h2c/4096/paozhu.log +++ b/site/static/logs/baseline-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/h1/mqtt.conf + not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index f4f72854a0..67c991bf37 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,7 +1,7 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/echo-ws-limited/4096/paozhu.log b/site/static/logs/echo-ws-limited/4096/paozhu.log index 452c00cdee..61672439db 100644 --- a/site/static/logs/echo-ws-limited/4096/paozhu.log +++ b/site/static/logs/echo-ws-limited/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf - not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/512/paozhu.log b/site/static/logs/echo-ws-limited/512/paozhu.log index df69f7aeff..0ca4455275 100644 --- a/site/static/logs/echo-ws-limited/512/paozhu.log +++ b/site/static/logs/echo-ws-limited/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabledwebsockets.conf - not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled + [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/16384/paozhu.log b/site/static/logs/echo-ws-pipeline/16384/paozhu.log index ae6badc558..594675f4e1 100644 --- a/site/static/logs/echo-ws-pipeline/16384/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/4096/paozhu.log b/site/static/logs/echo-ws-pipeline/4096/paozhu.log index 594675f4e1..5c3c4c6a95 100644 --- a/site/static/logs/echo-ws-pipeline/4096/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled[mqtt_client] +/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/512/paozhu.log b/site/static/logs/echo-ws-pipeline/512/paozhu.log index ae6badc558..5c28ad555e 100644 --- a/site/static/logs/echo-ws-pipeline/512/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/16384/paozhu.log b/site/static/logs/echo-ws/16384/paozhu.log index f836f03bdd..5c28ad555e 100644 --- a/site/static/logs/echo-ws/16384/paozhu.log +++ b/site/static/logs/echo-ws/16384/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf[websockets] not found or parse fail, socket client disabled -websockets.conf not found or parse fail, websocket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/4096/paozhu.log b/site/static/logs/echo-ws/4096/paozhu.log index f67729833d..ae6badc558 100644 --- a/site/static/logs/echo-ws/4096/paozhu.log +++ b/site/static/logs/echo-ws/4096/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/512/paozhu.log b/site/static/logs/echo-ws/512/paozhu.log index 594fa68ff8..594675f4e1 100644 --- a/site/static/logs/echo-ws/512/paozhu.log +++ b/site/static/logs/echo-ws/512/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/fortunes/1024/paozhu.log b/site/static/logs/fortunes/1024/paozhu.log index ae6badc558..a2aac64617 100644 --- a/site/static/logs/fortunes/1024/paozhu.log +++ b/site/static/logs/fortunes/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf[websockets] not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/4096/paozhu.log b/site/static/logs/json-comp/4096/paozhu.log index ae6badc558..9dc0d2ee1c 100644 --- a/site/static/logs/json-comp/4096/paozhu.log +++ b/site/static/logs/json-comp/4096/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 3e633a520f..50f44ba885 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,9 +1,9 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf[sockets] not found or parse fail, socket client disabled/app/conf/h1/sockets.conf + not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index 5a3ddc5d5f..9e44f82e5a 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -websockets.conf not found or parse fail, websocket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf + not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index a9fa2bbe01..5a3ddc5d5f 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin - -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index a7d7b9ac91..c756b092bc 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[sockets] +/app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index 7a9e321588..a781d4c2fa 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index 9e44f82e5a..ae6badc558 100644 --- a/site/static/logs/static-h2/1024/paozhu.log +++ b/site/static/logs/static-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf - not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index 1107bcf173..ae6badc558 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - -[sockets] /app/conf/main/sockets.conf[sockets] not found or parse fail, socket client disabled/app/conf/h1/sockets.conf - not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients From e626f688eec3909a93955a8eb74fa711d893c762 Mon Sep 17 00:00:00 2001 From: hzq Date: Thu, 19 Nov 2026 01:59:48 +0800 Subject: [PATCH 88/89] Fix ring send --- frameworks/paozhu/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index f35546077b..0edbab963f 100644 --- a/frameworks/paozhu/Dockerfile +++ b/frameworks/paozhu/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Pinned so mini_project.sh, the controller generator and the CMake entry point # stay in sync with the scaffold this entry was written against. -ARG PAOZHU_REF=87dabc299e6d38f6ac43297a7f8bf6340675843c +ARG PAOZHU_REF=8cba6912bb1864c68489d5be94938c2d52e88c5d WORKDIR /paozhu # Prefer a source archive shipped in the build context (offline / slow-GitHub # environments); otherwise fetch the pinned revision from codeload. The direct From 6add11b9172db61ebb8f0e0c022ed1a98726a0c0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 18 Nov 2026 18:51:29 +0000 Subject: [PATCH 89/89] Benchmark results: paozhu [skip ci] --- site/data/results/paozhu.json | 464 +++++++++--------- site/static/logs/8gbit/512/paozhu.log | 8 +- site/static/logs/baseline-h2/1024/paozhu.log | 10 +- site/static/logs/baseline-h2/256/paozhu.log | 8 +- site/static/logs/baseline-h2c/1024/paozhu.log | 8 +- site/static/logs/baseline-h2c/256/paozhu.log | 8 +- site/static/logs/baseline-h2c/4096/paozhu.log | 10 +- site/static/logs/baseline/4096/paozhu.log | 4 +- .../logs/echo-ws-limited/4096/paozhu.log | 8 +- .../logs/echo-ws-limited/512/paozhu.log | 10 +- .../logs/echo-ws-pipeline/16384/paozhu.log | 8 +- .../logs/echo-ws-pipeline/4096/paozhu.log | 10 +- .../logs/echo-ws-pipeline/512/paozhu.log | 8 +- site/static/logs/echo-ws/16384/paozhu.log | 6 +- site/static/logs/echo-ws/512/paozhu.log | 8 +- site/static/logs/json-comp/16384/paozhu.log | 2 +- site/static/logs/json-comp/4096/paozhu.log | 2 +- site/static/logs/json-h2c/1024/paozhu.log | 10 +- site/static/logs/json-h2c/4096/paozhu.log | 2 +- site/static/logs/json-tls/4096/paozhu.log | 8 +- site/static/logs/latency-10k/1024/paozhu.log | 10 +- site/static/logs/latency-1m/1024/paozhu.log | 10 +- .../logs/latency-500k-8cpu/1024/paozhu.log | 8 +- site/static/logs/limited-conn/4096/paozhu.log | 8 +- site/static/logs/static-h2/256/paozhu.log | 8 +- site/static/logs/static-tls/1024/paozhu.log | 6 +- 26 files changed, 326 insertions(+), 326 deletions(-) diff --git a/site/data/results/paozhu.json b/site/data/results/paozhu.json index c74c9beda9..3fedf38d7d 100644 --- a/site/data/results/paozhu.json +++ b/site/data/results/paozhu.json @@ -4,44 +4,44 @@ "8gbit-512": { "framework": "paozhu", "language": "C++", - "rps": 49006, - "avg_latency": "109.5us", - "p99_latency": "151.0us", - "cpu": "307.2%", + "rps": 48936, + "avg_latency": "107.0us", + "p99_latency": "148.0us", + "cpu": "308.2%", "memory": "134MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "507.80MB/s", - "input_bw": "478.57MB/s", + "bandwidth": "507.07MB/s", + "input_bw": "477.89MB/s", "reconnects": 0, - "status_2xx": 245098, + "status_2xx": 244739, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 17115469, - "cpu_per_req_us": 69.8311, + "cpu_usec": 16910247, + "cpu_per_req_us": 69.095, "target_rate": 50000, - "rate_ratio": 0.9801, - "p99_9_latency": "784.0us" + "rate_ratio": 0.9787, + "p99_9_latency": "466.0us" }, "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1803685, - "avg_latency": "17.74ms", - "p99_latency": "29.30ms", - "cpu": "5968.6%", - "memory": "604MiB", + "rps": 1811897, + "avg_latency": "17.71ms", + "p99_latency": "29.20ms", + "cpu": "5955.2%", + "memory": "606MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "182.30MB/s", - "input_bw": "82.57MB/s", + "bandwidth": "183.13MB/s", + "input_bw": "82.94MB/s", "reconnects": 0, - "status_2xx": 18036856, + "status_2xx": 18118971, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -49,19 +49,19 @@ "async-db-1024": { "framework": "paozhu", "language": "C++", - "rps": 158406, - "avg_latency": "6.46ms", + "rps": 159851, + "avg_latency": "6.40ms", "p99_latency": "20.90ms", - "cpu": "3625.8%", - "memory": "132MiB", + "cpu": "3656.1%", + "memory": "131MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "610.45MB/s", - "input_bw": "10.57MB/s", - "reconnects": 63201, - "status_2xx": 1584067, + "bandwidth": "616.03MB/s", + "input_bw": "10.67MB/s", + "reconnects": 63826, + "status_2xx": 1598516, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -69,19 +69,19 @@ "baseline-4096": { "framework": "paozhu", "language": "C++", - "rps": 2587857, + "rps": 2583804, "avg_latency": "1.59ms", - "p99_latency": "6.93ms", - "cpu": "6421.7%", - "memory": "151MiB", + "p99_latency": "6.97ms", + "cpu": "6407.3%", + "memory": "152MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "261.54MB/s", - "input_bw": "199.91MB/s", + "bandwidth": "261.13MB/s", + "input_bw": "199.59MB/s", "reconnects": 0, - "status_2xx": 12939287, + "status_2xx": 12919021, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -89,18 +89,18 @@ "baseline-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 765881, - "avg_latency": "122.45ms", - "p99_latency": "4.77s", - "cpu": "6410.9%", - "memory": "710MiB", + "rps": 758546, + "avg_latency": "112.53ms", + "p99_latency": "4.89s", + "cpu": "6407.2%", + "memory": "786MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "16.86MB/s", + "bandwidth": "16.69MB/s", "reconnects": 0, - "status_2xx": 3867702, + "status_2xx": 3838247, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -108,18 +108,18 @@ "baseline-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 761588, - "avg_latency": "32.24ms", - "p99_latency": "3.74s", - "cpu": "6339.6%", - "memory": "218MiB", + "rps": 653725, + "avg_latency": "20.31ms", + "p99_latency": "4.86s", + "cpu": "6494.3%", + "memory": "255MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "16.78MB/s", + "bandwidth": "14.36MB/s", "reconnects": 0, - "status_2xx": 3830792, + "status_2xx": 3281704, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -127,18 +127,18 @@ "baseline-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 755030, - "avg_latency": "127.72ms", - "p99_latency": "4.99s", - "cpu": "6478.4%", - "memory": "638MiB", + "rps": 687213, + "avg_latency": "137.04ms", + "p99_latency": "4.96s", + "cpu": "6470.5%", + "memory": "676MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "16.66MB/s", + "bandwidth": "15.11MB/s", "reconnects": 0, - "status_2xx": 3820456, + "status_2xx": 3477300, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -146,18 +146,18 @@ "baseline-h2c-256": { "framework": "paozhu", "language": "C++", - "rps": 705742, - "avg_latency": "35.70ms", - "p99_latency": "2.51s", - "cpu": "6485.3%", - "memory": "225MiB", + "rps": 685326, + "avg_latency": "30.55ms", + "p99_latency": "3.73s", + "cpu": "6422.2%", + "memory": "232MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "15.57MB/s", + "bandwidth": "15.08MB/s", "reconnects": 0, - "status_2xx": 3556940, + "status_2xx": 3447191, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -165,18 +165,18 @@ "baseline-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 771205, - "avg_latency": "431.36ms", + "rps": 723408, + "avg_latency": "476.74ms", "p99_latency": "4.97s", - "cpu": "6496.9%", + "cpu": "6319.0%", "memory": "2.4GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "16.83MB/s", + "bandwidth": "15.56MB/s", "reconnects": 0, - "status_2xx": 3940858, + "status_2xx": 3682149, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -184,18 +184,18 @@ "echo-ws-16384": { "framework": "paozhu", "language": "C++", - "rps": 2649760, - "avg_latency": "6.18ms", + "rps": 2600304, + "avg_latency": "6.30ms", "p99_latency": "15.40ms", - "cpu": "6127.7%", - "memory": "449MiB", + "cpu": "6289.8%", + "memory": "448MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.68MB/s", + "bandwidth": "17.35MB/s", "reconnects": 0, - "status_2xx": 13248801, + "status_2xx": 13001524, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -203,18 +203,18 @@ "echo-ws-4096": { "framework": "paozhu", "language": "C++", - "rps": 3166981, + "rps": 3165187, "avg_latency": "1.29ms", - "p99_latency": "6.77ms", - "cpu": "6369.5%", - "memory": "156MiB", + "p99_latency": "6.80ms", + "cpu": "6325.4%", + "memory": "157MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.14MB/s", + "bandwidth": "21.12MB/s", "reconnects": 0, - "status_2xx": 15834909, + "status_2xx": 15825935, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -222,18 +222,18 @@ "echo-ws-512": { "framework": "paozhu", "language": "C++", - "rps": 3117274, - "avg_latency": "163us", - "p99_latency": "3.19ms", - "cpu": "6523.7%", + "rps": 3162756, + "avg_latency": "161us", + "p99_latency": "3.30ms", + "cpu": "6479.1%", "memory": "81MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.80MB/s", + "bandwidth": "21.11MB/s", "reconnects": 0, - "status_2xx": 15586374, + "status_2xx": 15813782, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -241,18 +241,18 @@ "echo-ws-limited-4096": { "framework": "paozhu", "language": "C++", - "rps": 1141474, - "avg_latency": "64us", - "p99_latency": "193us", - "cpu": "4225.8%", - "memory": "92MiB", + "rps": 1141783, + "avg_latency": "66us", + "p99_latency": "199us", + "cpu": "4177.2%", + "memory": "78MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, "bandwidth": "24.59MB/s", - "reconnects": 570834, - "status_2xx": 5707374, + "reconnects": 571063, + "status_2xx": 5708916, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -260,18 +260,18 @@ "echo-ws-limited-512": { "framework": "paozhu", "language": "C++", - "rps": 1139257, - "avg_latency": "63us", - "p99_latency": "183us", - "cpu": "4344.2%", - "memory": "79MiB", + "rps": 1145692, + "avg_latency": "64us", + "p99_latency": "185us", + "cpu": "4304.5%", + "memory": "78MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "24.55MB/s", - "reconnects": 569621, - "status_2xx": 5696286, + "bandwidth": "24.69MB/s", + "reconnects": 572836, + "status_2xx": 5728464, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -279,18 +279,18 @@ "echo-ws-pipeline-16384": { "framework": "paozhu", "language": "C++", - "rps": 2889201, - "avg_latency": "91.02ms", - "p99_latency": "171.50ms", - "cpu": "6260.0%", - "memory": "465MiB", + "rps": 2862916, + "avg_latency": "91.91ms", + "p99_latency": "157.20ms", + "cpu": "6281.2%", + "memory": "467MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "19.28MB/s", + "bandwidth": "19.11MB/s", "reconnects": 0, - "status_2xx": 14446005, + "status_2xx": 14314582, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -298,18 +298,18 @@ "echo-ws-pipeline-4096": { "framework": "paozhu", "language": "C++", - "rps": 3584273, - "avg_latency": "18.31ms", - "p99_latency": "35.20ms", - "cpu": "6351.6%", - "memory": "164MiB", + "rps": 3588666, + "avg_latency": "18.27ms", + "p99_latency": "36.30ms", + "cpu": "6375.3%", + "memory": "162MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "23.92MB/s", + "bandwidth": "23.95MB/s", "reconnects": 0, - "status_2xx": 17921366, + "status_2xx": 17943333, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -317,18 +317,18 @@ "echo-ws-pipeline-512": { "framework": "paozhu", "language": "C++", - "rps": 3677801, - "avg_latency": "2.23ms", - "p99_latency": "9.15ms", - "cpu": "6631.0%", - "memory": "78MiB", + "rps": 3666541, + "avg_latency": "2.24ms", + "p99_latency": "10.10ms", + "cpu": "6501.8%", + "memory": "77MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "24.55MB/s", + "bandwidth": "24.46MB/s", "reconnects": 0, - "status_2xx": 18389005, + "status_2xx": 18332708, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -336,18 +336,18 @@ "fortunes-1024": { "framework": "paozhu", "language": "C++", - "rps": 82775, - "avg_latency": "12.35ms", - "p99_latency": "34.50ms", - "cpu": "3738.2%", - "memory": "151MiB", + "rps": 87616, + "avg_latency": "11.67ms", + "p99_latency": "38.10ms", + "cpu": "3872.5%", + "memory": "156MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.91GB/s", + "bandwidth": "2.02GB/s", "reconnects": 0, - "status_2xx": 413875, + "status_2xx": 438081, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -355,19 +355,19 @@ "json-comp-16384": { "framework": "paozhu", "language": "C++", - "rps": 751336, - "avg_latency": "21.39ms", - "p99_latency": "220.20ms", - "cpu": "6293.7%", - "memory": "624MiB", + "rps": 756849, + "avg_latency": "21.02ms", + "p99_latency": "242.40ms", + "cpu": "6346.3%", + "memory": "614MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.16GB/s", - "input_bw": "55.89MB/s", - "reconnects": 144852, - "status_2xx": 3756683, + "bandwidth": "1.17GB/s", + "input_bw": "56.30MB/s", + "reconnects": 146411, + "status_2xx": 3784249, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -375,19 +375,19 @@ "json-comp-4096": { "framework": "paozhu", "language": "C++", - "rps": 791808, - "avg_latency": "5.18ms", - "p99_latency": "53.00ms", - "cpu": "6364.9%", - "memory": "280MiB", + "rps": 794367, + "avg_latency": "5.17ms", + "p99_latency": "62.30ms", + "cpu": "6380.1%", + "memory": "284MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, "bandwidth": "1.23GB/s", - "input_bw": "58.90MB/s", - "reconnects": 156579, - "status_2xx": 3959044, + "input_bw": "59.09MB/s", + "reconnects": 157025, + "status_2xx": 3971836, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -395,18 +395,18 @@ "json-h2c-1024": { "framework": "paozhu", "language": "C++", - "rps": 710012, - "avg_latency": "45.09ms", - "p99_latency": "3.48s", - "cpu": "6512.3%", - "memory": "524MiB", + "rps": 642103, + "avg_latency": "49.56ms", + "p99_latency": "1.41s", + "cpu": "6436.0%", + "memory": "604MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.36GB/s", + "bandwidth": "2.13GB/s", "reconnects": 0, - "status_2xx": 3592661, + "status_2xx": 3249046, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -414,18 +414,18 @@ "json-h2c-4096": { "framework": "paozhu", "language": "C++", - "rps": 666577, - "avg_latency": "187.08ms", - "p99_latency": "1.63s", - "cpu": "6325.0%", - "memory": "2.1GiB", + "rps": 733350, + "avg_latency": "171.10ms", + "p99_latency": "859.32ms", + "cpu": "6326.5%", + "memory": "2.3GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.21GB/s", + "bandwidth": "2.42GB/s", "reconnects": 0, - "status_2xx": 3392880, + "status_2xx": 3732756, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -433,18 +433,18 @@ "json-tls-4096": { "framework": "paozhu", "language": "C++", - "rps": 1015119, - "avg_latency": "4.89ms", - "p99_latency": "297.50ms", - "cpu": "6219.1%", + "rps": 1021538, + "avg_latency": "4.56ms", + "p99_latency": "209.17ms", + "cpu": "6271.5%", "memory": "448MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.43GB", + "bandwidth": "3.46GB", "reconnects": 0, - "status_2xx": 5176333, + "status_2xx": 5207340, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -452,91 +452,91 @@ "latency-10k-1024": { "framework": "paozhu", "language": "C++", - "rps": 9981, - "avg_latency": "78.7us", - "p99_latency": "112.0us", - "cpu": "29.6%", - "memory": "77MiB", + "rps": 9983, + "avg_latency": "73.9us", + "p99_latency": "111.0us", + "cpu": "30.5%", + "memory": "81MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, "bandwidth": "1.05MB/s", "reconnects": 0, - "status_2xx": 199636, + "status_2xx": 199674, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 6180639, - "cpu_per_req_us": 30.9595, + "cpu_usec": 6414939, + "cpu_per_req_us": 32.1271, "target_rate": 10000, - "rate_ratio": 0.9981, - "p99_9_latency": "1101.0us" + "rate_ratio": 0.9983, + "p99_9_latency": "157.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 998020, - "avg_latency": "115.1us", - "p99_latency": "194.0us", - "cpu": "3584.2%", + "rps": 997688, + "avg_latency": "109.5us", + "p99_latency": "189.0us", + "cpu": "3635.6%", "memory": "84MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "104.79MB/s", + "bandwidth": "104.76MB/s", "reconnects": 0, - "status_2xx": 19964281, + "status_2xx": 19957300, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 647026201, - "cpu_per_req_us": 32.4092, + "cpu_usec": 658284806, + "cpu_per_req_us": 32.9847, "target_rate": 1000000, - "rate_ratio": 0.998, - "p99_9_latency": "7106.0us" + "rate_ratio": 0.9977, + "p99_9_latency": "2831.0us" }, "latency-500k-8cpu-1024": { "framework": "paozhu", "language": "C++", - "rps": 363838, - "avg_latency": "2655308.0us", - "p99_latency": "6301696.0us", - "cpu": "803.1%", - "memory": "74MiB", + "rps": 362937, + "avg_latency": "2684251.9us", + "p99_latency": "6240256.0us", + "cpu": "806.7%", + "memory": "73MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "38.20MB/s", + "bandwidth": "38.11MB/s", "reconnects": 0, - "status_2xx": 7279526, + "status_2xx": 7261683, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159487589, - "cpu_per_req_us": 21.9091, + "cpu_usec": 159646281, + "cpu_per_req_us": 21.9847, "target_rate": 500000, - "rate_ratio": 0.7277, - "p99_9_latency": "7038976.0us" + "rate_ratio": 0.7259, + "p99_9_latency": "7063552.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 1154622, - "avg_latency": "3.53ms", - "p99_latency": "48.80ms", - "cpu": "4402.9%", - "memory": "88MiB", + "rps": 1154249, + "avg_latency": "3.54ms", + "p99_latency": "39.60ms", + "cpu": "4249.7%", + "memory": "104MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "116.69MB/s", - "input_bw": "89.19MB/s", - "reconnects": 577313, - "status_2xx": 5773114, + "bandwidth": "116.65MB/s", + "input_bw": "89.16MB/s", + "reconnects": 577132, + "status_2xx": 5771246, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -544,18 +544,18 @@ "pipelined-4096": { "framework": "paozhu", "language": "C++", - "rps": 3479461, - "avg_latency": "18.85ms", - "p99_latency": "44.50ms", - "cpu": "6382.4%", + "rps": 3542245, + "avg_latency": "18.53ms", + "p99_latency": "39.40ms", + "cpu": "6333.5%", "memory": "140MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "351.64MB/s", + "bandwidth": "357.98MB/s", "reconnects": 0, - "status_2xx": 17397309, + "status_2xx": 17711225, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -563,18 +563,18 @@ "static-h2-1024": { "framework": "paozhu", "language": "C++", - "rps": 1312, - "avg_latency": "45.69ms", - "p99_latency": "115.28ms", - "cpu": "146.1%", - "memory": "912MiB", + "rps": 159826, + "avg_latency": "198.33ms", + "p99_latency": "1.45s", + "cpu": "2540.9%", + "memory": "1.7GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "25.79MB/s", + "bandwidth": "2.38GB/s", "reconnects": 0, - "status_2xx": 6640, + "status_2xx": 808724, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -582,18 +582,18 @@ "static-h2-256": { "framework": "paozhu", "language": "C++", - "rps": 358, - "avg_latency": "12.08ms", - "p99_latency": "25.03ms", - "cpu": "37.5%", - "memory": "328MiB", + "rps": 178800, + "avg_latency": "45.77ms", + "p99_latency": "339.19ms", + "cpu": "2512.5%", + "memory": "562MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "6.13MB/s", + "bandwidth": "2.71GB/s", "reconnects": 0, - "status_2xx": 1804, + "status_2xx": 899366, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 @@ -601,18 +601,18 @@ "static-tls-1024": { "framework": "paozhu", "language": "C++", - "rps": 185355, - "avg_latency": "5.64ms", - "p99_latency": "34.22ms", - "cpu": "2019.4%", - "memory": "227MiB", + "rps": 194707, + "avg_latency": "5.36ms", + "p99_latency": "32.70ms", + "cpu": "2043.7%", + "memory": "226MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "2.83GB", + "bandwidth": "2.98GB", "reconnects": 0, - "status_2xx": 945241, + "status_2xx": 992911, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/static/logs/8gbit/512/paozhu.log b/site/static/logs/8gbit/512/paozhu.log index a781d4c2fa..2f7ead8401 100644 --- a/site/static/logs/8gbit/512/paozhu.log +++ b/site/static/logs/8gbit/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/1024/paozhu.log b/site/static/logs/baseline-h2/1024/paozhu.log index 4a2c23501f..e71987ebaf 100644 --- a/site/static/logs/baseline-h2/1024/paozhu.log +++ b/site/static/logs/baseline-h2/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf - not found or parse fail, websocket client disabled -[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled - -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2/256/paozhu.log b/site/static/logs/baseline-h2/256/paozhu.log index c1b4516dca..594675f4e1 100644 --- a/site/static/logs/baseline-h2/256/paozhu.log +++ b/site/static/logs/baseline-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -/app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/1024/paozhu.log b/site/static/logs/baseline-h2c/1024/paozhu.log index 496f177217..594675f4e1 100644 --- a/site/static/logs/baseline-h2c/1024/paozhu.log +++ b/site/static/logs/baseline-h2c/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/256/paozhu.log b/site/static/logs/baseline-h2c/256/paozhu.log index 7507d1b226..e71987ebaf 100644 --- a/site/static/logs/baseline-h2c/256/paozhu.log +++ b/site/static/logs/baseline-h2c/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled - -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline-h2c/4096/paozhu.log b/site/static/logs/baseline-h2c/4096/paozhu.log index f8497fa9ee..ae6badc558 100644 --- a/site/static/logs/baseline-h2c/4096/paozhu.log +++ b/site/static/logs/baseline-h2c/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] websockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/h1/mqtt.conf - not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 67c991bf37..f4f72854a0 100644 --- a/site/static/logs/baseline/4096/paozhu.log +++ b/site/static/logs/baseline/4096/paozhu.log @@ -1,7 +1,7 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/echo-ws-limited/4096/paozhu.log b/site/static/logs/echo-ws-limited/4096/paozhu.log index 61672439db..496f177217 100644 --- a/site/static/logs/echo-ws-limited/4096/paozhu.log +++ b/site/static/logs/echo-ws-limited/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-limited/512/paozhu.log b/site/static/logs/echo-ws-limited/512/paozhu.log index 0ca4455275..7a9e321588 100644 --- a/site/static/logs/echo-ws-limited/512/paozhu.log +++ b/site/static/logs/echo-ws-limited/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] -websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] [mqtt_client] /app/conf/main/mqtt.conf/app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled not found or parse fail, mqtt client disabled - +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/16384/paozhu.log b/site/static/logs/echo-ws-pipeline/16384/paozhu.log index 594675f4e1..a2aac64617 100644 --- a/site/static/logs/echo-ws-pipeline/16384/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/16384/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf[websockets] not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/4096/paozhu.log b/site/static/logs/echo-ws-pipeline/4096/paozhu.log index 5c3c4c6a95..3164b77639 100644 --- a/site/static/logs/echo-ws-pipeline/4096/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf + not found or parse fail, websocket client disabled +[sockets] [sockets] /app/conf/h1/sockets.conf/app/conf/main/sockets.conf not found or parse fail, socket client disabled not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled[mqtt_client] -/app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws-pipeline/512/paozhu.log b/site/static/logs/echo-ws-pipeline/512/paozhu.log index 5c28ad555e..7ab7c6598c 100644 --- a/site/static/logs/echo-ws-pipeline/512/paozhu.log +++ b/site/static/logs/echo-ws-pipeline/512/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +websockets.conf not found or parse fail, websocket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/16384/paozhu.log b/site/static/logs/echo-ws/16384/paozhu.log index 5c28ad555e..594fa68ff8 100644 --- a/site/static/logs/echo-ws/16384/paozhu.log +++ b/site/static/logs/echo-ws/16384/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled - +[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/echo-ws/512/paozhu.log b/site/static/logs/echo-ws/512/paozhu.log index 594675f4e1..ae6badc558 100644 --- a/site/static/logs/echo-ws/512/paozhu.log +++ b/site/static/logs/echo-ws/512/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-comp/16384/paozhu.log b/site/static/logs/json-comp/16384/paozhu.log index ae6badc558..7a9e321588 100644 --- a/site/static/logs/json-comp/16384/paozhu.log +++ b/site/static/logs/json-comp/16384/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-comp/4096/paozhu.log b/site/static/logs/json-comp/4096/paozhu.log index 9dc0d2ee1c..ae6badc558 100644 --- a/site/static/logs/json-comp/4096/paozhu.log +++ b/site/static/logs/json-comp/4096/paozhu.log @@ -1,8 +1,8 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled diff --git a/site/static/logs/json-h2c/1024/paozhu.log b/site/static/logs/json-h2c/1024/paozhu.log index ae6badc558..ce9fdcbeb7 100644 --- a/site/static/logs/json-h2c/1024/paozhu.log +++ b/site/static/logs/json-h2c/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled[sockets] +/app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/json-h2c/4096/paozhu.log b/site/static/logs/json-h2c/4096/paozhu.log index 496f177217..5c28ad555e 100644 --- a/site/static/logs/json-h2c/4096/paozhu.log +++ b/site/static/logs/json-h2c/4096/paozhu.log @@ -1,6 +1,6 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.conf not found or parse fail, websocket client disabledwebsockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled diff --git a/site/static/logs/json-tls/4096/paozhu.log b/site/static/logs/json-tls/4096/paozhu.log index 50f44ba885..ae6badc558 100644 --- a/site/static/logs/json-tls/4096/paozhu.log +++ b/site/static/logs/json-tls/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf[sockets] not found or parse fail, socket client disabled/app/conf/h1/sockets.conf - not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index 9e44f82e5a..2ea57cb8fd 100644 --- a/site/static/logs/latency-10k/1024/paozhu.log +++ b/site/static/logs/latency-10k/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [sockets] /app/conf/main/sockets.confwebsockets.conf not found or parse fail, socket client disabled not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf[mqtt_client] not found or parse fail, mqtt client disabled/app/conf/main/mqtt.conf - not found or parse fail, mqtt client disabled +[mqtt_client] [sockets] /app/conf/main/mqtt.conf/app/conf/h1/sockets.conf not found or parse fail, mqtt client disabled not found or parse fail, socket client disabled + +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index 5a3ddc5d5f..151a19cb78 100644 --- a/site/static/logs/latency-1m/1024/paozhu.log +++ b/site/static/logs/latency-1m/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.conf[sockets] not found or parse fail, socket client disabled/app/conf/main/sockets.conf + not found or parse fail, socket client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients diff --git a/site/static/logs/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index c756b092bc..496f177217 100644 --- a/site/static/logs/latency-500k-8cpu/1024/paozhu.log +++ b/site/static/logs/latency-500k-8cpu/1024/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled[sockets] -/app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index a781d4c2fa..67c991bf37 100644 --- a/site/static/logs/limited-conn/4096/paozhu.log +++ b/site/static/logs/limited-conn/4096/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[websockets] +websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-h2/256/paozhu.log b/site/static/logs/static-h2/256/paozhu.log index ae6badc558..496f177217 100644 --- a/site/static/logs/static-h2/256/paozhu.log +++ b/site/static/logs/static-h2/256/paozhu.log @@ -1,11 +1,11 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] [websockets] websockets.confwebsockets.conf not found or parse fail, websocket client disabled not found or parse fail, websocket client disabled + [sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled +[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled +[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients [mqtt_subpub] init: registered 0 clients diff --git a/site/static/logs/static-tls/1024/paozhu.log b/site/static/logs/static-tls/1024/paozhu.log index 594675f4e1..f50a629774 100644 --- a/site/static/logs/static-tls/1024/paozhu.log +++ b/site/static/logs/static-tls/1024/paozhu.log @@ -1,10 +1,10 @@ [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled +[websockets] websockets.conf not found or parse fail, websocket client disabled[sockets] /app/conf/main/sockets.conf not found or parse fail, socket client disabled + [sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled +[mqtt_client] /app/conf/main/mqtt.conf not found or parse fail, mqtt client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [ws_subpub] init: registered 0 clients [sock_subpub] init: registered 0 clients