feat(worker-rejoin-resync): define reconciliation wire protocol (task 1.1)
Add OPCode_jobStateQuery/OPCode_jobStateReport, JobStateEntry/
JobStateQuery/JobStateReport structs (paginated, mirroring JobData/
WorkerData/ResourceVals' {ntotal,pos,count} shape), and
workerResyncWindowMs/workerResyncTimeoutMs ClusterConfig fields to
controller.capnp, plus the companion typemap.h/clusterconfig.h C type
declarations this codebase's capnp $C.mapname codegen requires to
compile. Both new opcodes are fire-and-forget (Request.body union only,
no RequestReply arm), matching design.md and the push/notify precedent.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y4M5MJM2zK6nU43da267Ku
This commit is contained in:
parent
6c908d5017
commit
1ff57ef66e
4 changed files with 96 additions and 1 deletions
|
|
@ -25,6 +25,12 @@ typedef struct {
|
|||
int nlimits;
|
||||
xce_limit_config_t** limits;
|
||||
uint64_t config_generation; /* monotonic audit counter from capnp schema */
|
||||
/* worker-rejoin-resync (Req 3.7, 5.3): shared, cluster-wide via
|
||||
* operational-uniformity override (design.md Configuration Model) --
|
||||
* alongside heartbeat_interval/inactive_heartbeat_count above, same
|
||||
* domain. */
|
||||
int worker_resync_window_ms;
|
||||
int worker_resync_timeout_ms;
|
||||
} cluster_config_t;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue