diff --git a/frameworks/paozhu/Dockerfile b/frameworks/paozhu/Dockerfile index b53a216702..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=6b0945334a9b5c34f3cf1f9718c6797c07564380 +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 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/cost_define.h b/frameworks/paozhu/cost_define.h index 4cbfeb5b24..3f068e5433 100755 --- a/frameworks/paozhu/cost_define.h +++ b/frameworks/paozhu/cost_define.h @@ -263,11 +263,14 @@ 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 +// 文件直发单批 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; @@ -277,47 +280,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/conf/server-h1.conf b/frameworks/paozhu/src/conf/server-h1.conf index 49bcb02e71..3562e0131a 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 -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 = 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..0f247c239b 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 -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 = 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/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/controller/src/db.cpp b/frameworks/paozhu/src/controller/src/db.cpp index 6b97cdb3b6..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 += ""; @@ -234,19 +206,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 +249,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"); 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 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..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": 49022, - "avg_latency": "95.1us", - "p99_latency": "138.0us", - "cpu": "277.1%", - "memory": "125MiB", + "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.96MB/s", - "input_bw": "478.73MB/s", + "bandwidth": "511.76MB/s", + "input_bw": "482.30MB/s", "reconnects": 0, - "status_2xx": 245171, + "status_2xx": 247000, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 15261928, - "cpu_per_req_us": 62.2501, + "cpu_usec": 26965290, + "cpu_per_req_us": 109.1712, "target_rate": 50000, - "rate_ratio": 0.9804, - "p99_9_latency": "440.0us" + "rate_ratio": 0.9878, + "p99_9_latency": "1090.0us" }, "async-32000": { "framework": "paozhu", "language": "C++", - "rps": 1660336, - "avg_latency": "17.65ms", - "p99_latency": "27.60ms", - "cpu": "5867.0%", - "memory": "570MiB", + "rps": 1736790, + "avg_latency": "18.47ms", + "p99_latency": "32.90ms", + "cpu": "6190.6%", + "memory": "742MiB", "connections": 32000, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "167.81MB/s", - "input_bw": "76.00MB/s", + "bandwidth": "175.54MB/s", + "input_bw": "79.50MB/s", "reconnects": 0, - "status_2xx": 16603365, + "status_2xx": 17367904, "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": 145638, + "avg_latency": "7.03ms", + "p99_latency": "25.40ms", + "cpu": "4038.3%", + "memory": "170MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "605.60MB/s", - "input_bw": "10.49MB/s", - "reconnects": 62694, - "status_2xx": 1570835, + "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": 2612446, - "avg_latency": "1.57ms", - "p99_latency": "9.72ms", - "cpu": "6381.2%", - "memory": "140MiB", + "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.02MB/s", - "input_bw": "201.81MB/s", + "bandwidth": "256.20MB/s", + "input_bw": "195.82MB/s", "reconnects": 0, - "status_2xx": 13062233, + "status_2xx": 12674978, "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": 614637, + "avg_latency": "155.46ms", + "p99_latency": "339.41ms", + "cpu": "6631.3%", + "memory": "997MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.55MB/s", + "bandwidth": "27.89MB/s", "reconnects": 0, - "status_2xx": 2180129, + "status_2xx": 3110066, "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": 608295, + "avg_latency": "41.46ms", + "p99_latency": "84.68ms", + "cpu": "6636.2%", + "memory": "347MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.60MB/s", + "bandwidth": "27.38MB/s", "reconnects": 0, - "status_2xx": 2298097, + "status_2xx": 3053645, "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": 666081, + "avg_latency": "147.52ms", + "p99_latency": "213.97ms", + "cpu": "6559.7%", + "memory": "876MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.26MB/s", + "bandwidth": "30.22MB/s", "reconnects": 0, - "status_2xx": 2258966, + "status_2xx": 3370373, "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": 720823, + "avg_latency": "35.22ms", + "p99_latency": "85.68ms", + "cpu": "6643.9%", + "memory": "310MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.59MB/s", + "bandwidth": "32.51MB/s", "reconnects": 0, - "status_2xx": 2407793, + "status_2xx": 3625742, "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": 625100, + "avg_latency": "577.36ms", + "p99_latency": "896.03ms", + "cpu": "6639.2%", + "memory": "3.0GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.58MB/s", + "bandwidth": "28.61MB/s", "reconnects": 0, - "status_2xx": 1957114, + "status_2xx": 3188015, "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": 2461704, + "avg_latency": "6.66ms", + "p99_latency": "15.10ms", + "cpu": "6370.0%", + "memory": "471MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.50MB/s", + "bandwidth": "16.43MB/s", "reconnects": 0, - "status_2xx": 14241119, + "status_2xx": 12308521, "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": 3039821, + "avg_latency": "1.35ms", + "p99_latency": "7.34ms", + "cpu": "6407.9%", + "memory": "182MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.25MB/s", + "bandwidth": "20.28MB/s", "reconnects": 0, - "status_2xx": 15843864, + "status_2xx": 15199105, "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": 3018767, + "avg_latency": "169us", + "p99_latency": "687us", + "cpu": "6554.7%", + "memory": "95MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "21.04MB/s", + "bandwidth": "20.15MB/s", "reconnects": 0, - "status_2xx": 15759601, + "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": 689497, - "avg_latency": "44us", - "p99_latency": "109us", - "cpu": "2556.1%", - "memory": "69MiB", + "rps": 673593, + "avg_latency": "72us", + "p99_latency": "228us", + "cpu": "4857.3%", + "memory": "95MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "14.86MB/s", - "reconnects": 344748, - "status_2xx": 3447485, + "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": 688369, - "avg_latency": "43us", - "p99_latency": "96us", - "cpu": "2695.4%", - "memory": "69MiB", + "rps": 650178, + "avg_latency": "70us", + "p99_latency": "230us", + "cpu": "4818.1%", + "memory": "93MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "14.83MB/s", - "reconnects": 344180, - "status_2xx": 3441848, + "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": 3141376, - "avg_latency": "60.71ms", - "p99_latency": "189.20ms", - "cpu": "6005.8%", - "memory": "442MiB", + "rps": 2674656, + "avg_latency": "98.48ms", + "p99_latency": "144.80ms", + "cpu": "6298.4%", + "memory": "470MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "21.45MB/s", + "bandwidth": "17.85MB/s", "reconnects": 0, - "status_2xx": 15706883, + "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": 3561878, - "avg_latency": "17.64ms", + "rps": 3316220, + "avg_latency": "19.77ms", "p99_latency": "36.40ms", - "cpu": "6226.2%", - "memory": "153MiB", + "cpu": "6422.9%", + "memory": "176MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "23.88MB/s", + "bandwidth": "22.13MB/s", "reconnects": 0, - "status_2xx": 17809390, + "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": 3741148, - "avg_latency": "2.19ms", - "p99_latency": "10.00ms", - "cpu": "6475.8%", - "memory": "70MiB", + "rps": 3535190, + "avg_latency": "2.32ms", + "p99_latency": "10.70ms", + "cpu": "6519.0%", + "memory": "99MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "24.97MB/s", + "bandwidth": "23.59MB/s", "reconnects": 0, - "status_2xx": 18705740, + "status_2xx": 17675952, "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": 79923, + "avg_latency": "12.78ms", + "p99_latency": "47.50ms", + "cpu": "4076.9%", + "memory": "224MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.46GB/s", + "bandwidth": "1.84GB/s", "reconnects": 0, - "status_2xx": 316029, + "status_2xx": 399615, "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": 508964, + "avg_latency": "18.08ms", + "p99_latency": "408.80ms", + "cpu": "5816.1%", + "memory": "242MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.07GB/s", - "input_bw": "51.39MB/s", - "reconnects": 138077, - "status_2xx": 3454280, + "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": 715374, - "avg_latency": "5.64ms", - "p99_latency": "141.30ms", - "cpu": "6372.4%", - "memory": "170MiB", + "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.11GB/s", - "input_bw": "53.21MB/s", - "reconnects": 143250, - "status_2xx": 3576874, + "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": 402611, - "avg_latency": "79.69ms", - "p99_latency": "198.29ms", - "cpu": "4214.0%", - "memory": "1.2GiB", + "rps": 635848, + "avg_latency": "50.48ms", + "p99_latency": "96.84ms", + "cpu": "6546.2%", + "memory": "646MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.35GB/s", + "bandwidth": "2.14GB/s", "reconnects": 0, - "status_2xx": 2037212, + "status_2xx": 3217392, "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": 577512, + "avg_latency": "214.87ms", + "p99_latency": "319.16ms", + "cpu": "6620.8%", + "memory": "2.0GiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "1.29GB/s", + "bandwidth": "1.96GB/s", "reconnects": 0, - "status_2xx": 1944192, + "status_2xx": 2945312, "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": 981137, + "avg_latency": "6.74ms", + "p99_latency": "251.83ms", + "cpu": "6277.3%", + "memory": "523MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.54GB", + "bandwidth": "3.32GB", "reconnects": 0, - "status_2xx": 5332614, + "status_2xx": 5002194, "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": "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": 199686, + "status_2xx": 199681, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 5934663, - "cpu_per_req_us": 29.72, + "cpu_usec": 9766467, + "cpu_per_req_us": 48.9103, "target_rate": 10000, "rate_ratio": 0.9983, - "p99_9_latency": "363.0us" + "p99_9_latency": "162.0us" }, "latency-1m-1024": { "framework": "paozhu", "language": "C++", - "rps": 997337, - "avg_latency": "120.0us", - "p99_latency": "190.0us", - "cpu": "3621.2%", - "memory": "76MiB", + "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.72MB/s", + "bandwidth": "104.74MB/s", "reconnects": 0, - "status_2xx": 19950546, + "status_2xx": 19954871, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 652454600, - "cpu_per_req_us": 32.7036, + "cpu_usec": 1018387690, + "cpu_per_req_us": 51.0345, "target_rate": 1000000, - "rate_ratio": 0.9973, - "p99_9_latency": "9500.0us" + "rate_ratio": 0.9975, + "p99_9_latency": "5626.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": 354502, + "avg_latency": "2889097.0us", + "p99_latency": "6391808.0us", + "cpu": "803.9%", + "memory": "95MiB", "connections": 1024, "threads": 64, "duration": "20s", "pipeline": 1, - "bandwidth": "39.58MB/s", + "bandwidth": "37.22MB/s", "reconnects": 0, - "status_2xx": 7541622, + "status_2xx": 7092394, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0, - "cpu_usec": 159565144, - "cpu_per_req_us": 21.1579, + "cpu_usec": 159618039, + "cpu_per_req_us": 22.5055, "target_rate": 500000, - "rate_ratio": 0.7539, - "p99_9_latency": "5072896.0us" + "rate_ratio": 0.709, + "p99_9_latency": "7157760.0us" }, "limited-conn-4096": { "framework": "paozhu", "language": "C++", - "rps": 662349, - "avg_latency": "6.16ms", - "p99_latency": "62.40ms", - "cpu": "2715.4%", - "memory": "77MiB", + "rps": 722608, + "avg_latency": "5.64ms", + "p99_latency": "76.00ms", + "cpu": "5160.6%", + "memory": "115MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "66.94MB/s", - "input_bw": "51.16MB/s", - "reconnects": 331175, - "status_2xx": 3311748, + "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": 3617075, - "avg_latency": "18.14ms", - "p99_latency": "36.20ms", - "cpu": "6335.7%", - "memory": "128MiB", + "rps": 3421688, + "avg_latency": "19.20ms", + "p99_latency": "35.40ms", + "cpu": "6451.9%", + "memory": "158MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "365.55MB/s", + "bandwidth": "345.81MB/s", "reconnects": 0, - "status_2xx": 18085375, + "status_2xx": 17108440, "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": 107452, + "avg_latency": "288.44ms", + "p99_latency": "1.26s", + "cpu": "1624.7%", + "memory": "1.6GiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.34GB/s", + "bandwidth": "1.61GB/s", "reconnects": 0, - "status_2xx": 1100798, + "status_2xx": 542633, "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": 140106, + "avg_latency": "57.61ms", + "p99_latency": "302.67ms", + "cpu": "1826.6%", + "memory": "565MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.32GB/s", + "bandwidth": "2.13GB/s", "reconnects": 0, - "status_2xx": 1092043, + "status_2xx": 704736, "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": 175297, + "avg_latency": "5.96ms", + "p99_latency": "40.37ms", + "cpu": "1915.8%", + "memory": "304MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "3.33GB", + "bandwidth": "2.68GB", "reconnects": 0, - "status_2xx": 1111746, + "status_2xx": 894055, "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..ae6badc558 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/h1/sockets.conf not found or parse fail, socket client disabled [mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] websockets.conf not found or parse fail, websocket client disabled [sockets] /app/conf/main/sockets.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-db/1024/paozhu.log b/site/static/logs/async-db/1024/paozhu.log index fd83ef3a35..594675f4e1 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 [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/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/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-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 ae6badc558..496f177217 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/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/4096/paozhu.log b/site/static/logs/baseline-h2c/4096/paozhu.log index a781d4c2fa..7507d1b226 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 +[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/baseline/4096/paozhu.log b/site/static/logs/baseline/4096/paozhu.log index 00d8d1c9c2..f4f72854a0 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] 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 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 e1e45d77ac..df69f7aeff 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 +[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 -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 diff --git a/site/static/logs/echo-ws-pipeline/16384/paozhu.log b/site/static/logs/echo-ws-pipeline/16384/paozhu.log index e199d30c63..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] 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/echo-ws-pipeline/4096/paozhu.log b/site/static/logs/echo-ws-pipeline/4096/paozhu.log index eb9eae963b..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] 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[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/echo-ws-pipeline/512/paozhu.log b/site/static/logs/echo-ws-pipeline/512/paozhu.log index 61672439db..ae6badc558 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 ae6badc558..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] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] 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/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 [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..f67729833d 100644 --- a/site/static/logs/echo-ws/4096/paozhu.log +++ b/site/static/logs/echo-ws/4096/paozhu.log @@ -7,8 +7,8 @@ [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/echo-ws/512/paozhu.log b/site/static/logs/echo-ws/512/paozhu.log index b98ce64edf..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 [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 +[websockets] websockets.conf 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/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..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 -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] 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 +[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin +[websockets] websockets.conf not found or parse fail, websocket client disabled +[sockets] /app/conf/h1/sockets.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 594675f4e1..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 -[websockets] websockets.conf not found or parse fail, websocket client disabled -[sockets] /app/conf/main/sockets.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/latency-10k/1024/paozhu.log b/site/static/logs/latency-10k/1024/paozhu.log index e199d30c63..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] 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 +[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/latency-1m/1024/paozhu.log b/site/static/logs/latency-1m/1024/paozhu.log index 67c991bf37..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 -[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[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/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/latency-500k-8cpu/1024/paozhu.log b/site/static/logs/latency-500k-8cpu/1024/paozhu.log index 7507d1b226..a7d7b9ac91 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] 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/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 diff --git a/site/static/logs/limited-conn/4096/paozhu.log b/site/static/logs/limited-conn/4096/paozhu.log index f164686a5a..7a9e321588 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 -[CORS-WARN] site host=localhost not configured cors_domain, default deny all origin [websockets] 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 +[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 diff --git a/site/static/logs/static-h2/1024/paozhu.log b/site/static/logs/static-h2/1024/paozhu.log index bbb13f7c36..9e44f82e5a 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 +[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 [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..1107bcf173 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 -[sockets] /app/conf/h1/sockets.conf not found or parse fail, socket client disabled -[mqtt_client] /app/conf/h1/mqtt.conf not found or parse fail, mqtt client disabled [CORS-WARN] site host=localhost not configured cors_domain, default deny all origin -[websockets] 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/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 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