Repository navigation
Feature/ops tools - #48
Merged
Merged
Conversation
- demo/scheduled_service_demo.cpp: a map component serves segment costs from a service trigger, and a planner sums a route with CallAsync on a single scheduler worker, triggered again by each reply. A second part makes the same call with a blocking Call, which times out because the map cannot get the worker the planner holds. Runs as a ctest. - Server::ServePending returned requests taken, counting ones dropped unhandled because their client deadline had passed. It now returns requests handled; the budget still counts every request taken, so a backlog of expired requests cannot stretch a pass. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Nodes in a system manifest can now say how a supervisor should treat them: - restart: "never" (default), "on_failure", or "always" - max_restarts: restarts allowed before giving up (default 5; 0 = no limit) - restart_delay_ms: wait before a restart (default 500) - required: whether a node that exits for good stops the whole system (default true) - stop_timeout_ms: grace period between asking a node to stop and killing it (default 5000) Values are validated with errors naming the field. `puppet_master_config system describe` prints them. They are read by the launcher in the next commit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Supervisor starts a manifest's nodes in order, restarts them by their restart policy with a doubling delay (reset, along with the restart count, by a stable run), ends the system when a required node ends for good, and stops the rest in reverse order: a stop request, then a kill after stop_timeout. Each node runs in a process group of its own and can log to <log-dir>/<node>.log. Process handling sits behind ProcessLauncher (posix_spawnp on POSIX, CreateProcess with CTRL_BREAK on Windows), so the policy tests use fake processes. Applications now also stop on SIGBREAK, which is how the launcher stops a node on Windows. The vehicle pipeline integration run now starts the system with puppet_master_launch. Co-Authored-By: Claude Opus 5.5 <[email protected]>
list shows the shm topics on this host from their segment headers (Linux), or with --system the topics a manifest's nodes declare and which components write and read them. echo prints each message's sequence, size, latency, and bytes; hz reports the rate, intervals by publish time, and losses per window. echo and hz subscribe as an ordinary reader queued to the ring size, so they never slow a writer; what they fall behind on is reported as lost. With --system the type and ring size come from the manifest, which also works on Windows and before the writer starts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
RecordingWriter and RecordingReader (transport/recording.h, core library) store messages of several topics in one file: topic records with the name, descriptor, and free-form parameters, then message records with the topic id, time since the start, sequence, and payload. Readers stop cleanly at a record cut off by a crash, skip unknown record kinds, and refuse other format versions. puppet_master_topic gains record (every shm topic found, or those named; --count, --duration-ms), replay (all or named topics, at the recorded pace times --rate, with the recorded domain and ring size or --domain), and info. The recorder stores publish times so a replay keeps the writers' pace, and reports what it lost per topic. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.