myxce/src/include/clusterconfig.h
Rongsong Shen 1ff57ef66e
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
2026-09-01 08:44:33 +00:00

36 lines
1.2 KiB
C

#if !defined(_CLUSTERCONFIG_H_)
#define _CLUSTERCONFIG_H_ 1
#include "xce/types.h"
typedef struct {
char* clustername;
int heartbeat_interval;
int inactive_heartbeat_count;
int fetch_job_interval;
int netio_timeout;
int nres;
xce_resource_t** resources;
int nqueues;
xce_queue_t** queues;
int nugroups;
xce_group_config_t** ugroups;
int nhgroups;
xce_group_config_t** hgroups;
int nhconfigs;
xce_hostconfig_t** hconfigs;
int nhproviders;
scaler_config_t** hproviders;
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