|
STTNet 0.7.0
|
#include <sttnet.h>
Public Attributes | |
| uint64_t | accepted_connections =0 |
| uint64_t | active_connections =0 |
| uint64_t | closed_connections =0 |
| uint64_t | rejected_connections =0 |
| uint64_t | accept_errors =0 |
| uint64_t | tls_handshake_failures =0 |
| uint64_t | parsed_http_requests =0 |
| uint64_t | queued_write_bytes =0 |
| uint64_t | sent_bytes =0 |
| uint64_t | pending_write_bytes =0 |
| uint64_t | peak_pending_write_bytes =0 |
| uint64_t | peak_pending_worker_tasks =0 |
| uint64_t | write_overflows =0 |
| uint64_t | worker_queue_overflows =0 |
| uint64_t | send_ready_queue_overflows =0 |
| uint64_t | worker_task_rejections =0 |
| uint64_t | reactor_wakeups =0 |
| uint64_t | reactor_wakeups_coalesced =0 |
| uint64_t | write_syscalls =0 |
| uint64_t | batched_write_syscalls =0 |
| uint64_t | batched_write_buffers =0 |
| uint64_t | idle_timeout_checks =0 |
| uint64_t | idle_timeout_closes =0 |
| uint64_t | graceful_shutdown_timeouts =0 |
TcpServer 运行指标的无锁快照。
| uint64_t stt::network::ServerMetricsSnapshot::accept_errors =0 |
accept4 的非暂时性失败次数。
| uint64_t stt::network::ServerMetricsSnapshot::accepted_connections =0 |
成功接收的连接总数。
| uint64_t stt::network::ServerMetricsSnapshot::active_connections =0 |
当前仍持有底层 fd 的连接数。
| uint64_t stt::network::ServerMetricsSnapshot::batched_write_buffers =0 |
被批量发送调用覆盖的发送队列数据块总数。
| uint64_t stt::network::ServerMetricsSnapshot::batched_write_syscalls =0 |
使用多个 iovec 合并发送的 sendmsg 调用次数。
| uint64_t stt::network::ServerMetricsSnapshot::closed_connections =0 |
已完成底层资源释放的连接总数。
| uint64_t stt::network::ServerMetricsSnapshot::graceful_shutdown_timeouts =0 |
优雅排空超过配置时限、转为强制关闭的次数。
| uint64_t stt::network::ServerMetricsSnapshot::idle_timeout_checks =0 |
增量空闲连接检查次数。
| uint64_t stt::network::ServerMetricsSnapshot::idle_timeout_closes =0 |
因超过空闲超时而关闭的连接数。
| uint64_t stt::network::ServerMetricsSnapshot::parsed_http_requests =0 |
成功完成边界校验和解析的 HTTP 请求数。
| uint64_t stt::network::ServerMetricsSnapshot::peak_pending_worker_tasks =0 |
Worker 等待任务数的历史峰值。
| uint64_t stt::network::ServerMetricsSnapshot::peak_pending_write_bytes =0 |
所有连接待发字节数的历史峰值。
| uint64_t stt::network::ServerMetricsSnapshot::pending_write_bytes =0 |
所有连接当前尚未发送的队列字节数。
| uint64_t stt::network::ServerMetricsSnapshot::queued_write_bytes =0 |
业务层成功提交到发送队列的累计字节数。
| uint64_t stt::network::ServerMetricsSnapshot::reactor_wakeups =0 |
实际写入 eventfd 的 Reactor 唤醒次数。
| uint64_t stt::network::ServerMetricsSnapshot::reactor_wakeups_coalesced =0 |
被合并、未产生额外系统调用的唤醒次数。
| uint64_t stt::network::ServerMetricsSnapshot::rejected_connections =0 |
因达到并发连接上限而拒绝的连接总数。
| uint64_t stt::network::ServerMetricsSnapshot::send_ready_queue_overflows =0 |
发送通知环形队列进入后备队列的次数。
| uint64_t stt::network::ServerMetricsSnapshot::sent_bytes =0 |
Reactor 成功写入 socket/TLS 的累计字节数。
| uint64_t stt::network::ServerMetricsSnapshot::tls_handshake_failures =0 |
TLS 服务端握手失败次数。
| uint64_t stt::network::ServerMetricsSnapshot::worker_queue_overflows =0 |
Worker 完成环形队列进入后备队列的次数。
| uint64_t stt::network::ServerMetricsSnapshot::worker_task_rejections =0 |
Worker 任务队列达到上限或停止后拒绝的任务数。
| uint64_t stt::network::ServerMetricsSnapshot::write_overflows =0 |
超过每连接发送高水位的次数。
| uint64_t stt::network::ServerMetricsSnapshot::write_syscalls =0 |
Reactor 发起的 socket/TLS 写调用次数。