Archived
server: report how long bringup took, as a raw figure
A restart's cost is the one number a reader needs in order to decide whether one is worth suffering, and any guess at it would decide the answer by itself. The server knows it exactly: the interval from process start to the socket listening, on this machine, with this model and this cache state. Emitted on /stats as startup_s, 0 until the server has listened. Raw figure only -- the page no longer consumes it. It is here because it is the missing half of any restart decision a human or a tool makes downstream, and because the decode-step advisory that did consume it was withdrawn the same day it shipped (see the following commit for what the live data showed). Trailing zero-defaulted field on both SchedMetrics structs plus the adapter copy; neither struct is ABI-pinned, so this is the sanctioned append. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI (cherry picked from commit 76a9e2f7a28b8e034cfd56caa091792c68fe19b6)
This commit is contained in:
1 parent
ed2da8c9da
commit
d4998b1f75
7 files changed
+53
No files matched your search
@@ -191,6 +191,12 @@ public:
|
||||
/* The admission ceiling as resolved: ServerOptions::queue_depth, or 8 x max_seqs for 0. */
|
||||
int64_t queue_cap() const { return queue_depth_; }
|
||||
|
||||
/* Records how long bringup took, called by Engine::serve just before it starts listening
|
||||
* (the same moment the startup watch ends). `begin_ns` is rad_mono_ns from the top of
|
||||
* Engine::start(); 0 leaves the figure unset. run() blocks serving forever, so the value is
|
||||
* handed in rather than taken inside it. */
|
||||
void note_ready(uint64_t begin_ns);
|
||||
|
||||
private:
|
||||
struct Generation;
|
||||
struct TranscriptionJob; /* speech.cpp */
|
||||
@@ -351,6 +357,9 @@ private:
|
||||
std::atomic<int64_t> speech_sessions_{0};
|
||||
std::atomic<bool> stopping_{false};
|
||||
int64_t started_at_ = 0;
|
||||
/* Seconds from the top of Engine::start() to the moment the server began listening -- the
|
||||
* cost of a restart, measured on this machine rather than guessed. 0 until note_ready(). */
|
||||
int64_t startup_s_ = 0;
|
||||
|
||||
/* Sinks whose HTTP side is gone but whose engine side may still be mid-step. Held until the
|
||||
* scheduler reports the request terminal, because Request::sink is a raw pointer and freeing
|
||||
|
||||
Reference in new issue
Block a user