myxce/src/frontend/apiserver/backend
Rongsong Shen fe87dafc85
fix(apiserver): fall back to default HostConfig for unmatched workers (bug-1673, gitea #40)
OnHostConfigUpdated only applied config-sourced fields (MaxSlot,
HostModel, HostType, DisptWindow) onto a host whose name exact-matched
an entry already in the store. hosts.yaml commonly defines only a
wildcard "default" entry, so a dynamically-joined worker never
received its own config push and MaxSlot stayed at Go's zero-value
forever -- decoupled from the C-side scheduling path, which already
resolves the real value via worker.c's wildcard fallback.

The "default" pseudo-host's config is now cached and retroactively
backfilled onto any registered host with no explicit config of its
own, in either arrival order (config-before-worker or
worker-before-config). The -1 HOSTCONFIG_MXJ_AUTO_DETECT sentinel
(bug-1556) is resolved to the host's real NumCPUs when applied via
fallback, mirroring worker.c's own resolution, so the display shows
usable capacity rather than a bare -1.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AgYRU3zDTqNGV5Jk8aiKLg
2026-08-24 14:23:45 +00:00
..
auth Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
candidates.go feat(component-failover-adoption): route apiserver's candidate parsing through the real C parser 2026-08-12 04:34:05 +00:00
candidates_test.go feat(component-failover-adoption): route apiserver's candidate parsing through the real C parser 2026-08-12 04:34:05 +00:00
clib.go fix(component-failover-adoption): Phase 6 -- close apiserver's idle-period rejoin gap (bug-1548/bug-1549) 2026-08-16 03:42:03 +00:00
clib_test.go fix(component-failover-adoption): unify apiserver's dual connect paths, fix connect-time UAF 2026-08-12 07:46:30 +00:00
config.go feat(component-failover-adoption): route apiserver's candidate parsing through the real C parser 2026-08-12 04:34:05 +00:00
control_host_test.go fix: address P0-2b review issues - build tag and actionType guard 2026-04-17 08:25:05 +00:00
convert.go feat(job-array-single-wal-record): API-server-side (Go) local expansion of the compact push 2026-07-15 15:56:48 +00:00
convert_pure.go merge 2026-07-23 12:35:10 +08:00
convert_test.go feat(job-array-single-wal-record): API-server-side (Go) local expansion of the compact push 2026-07-15 15:56:48 +00:00
handler.go fix(apiserver): fall back to default HostConfig for unmatched workers (bug-1673, gitea #40) 2026-08-24 14:23:45 +00:00
handler_test.go fix(apiserver): fall back to default HostConfig for unmatched workers (bug-1673, gitea #40) 2026-08-24 14:23:45 +00:00
health.go feat(component-failover-adoption): add apiserver's backend-health circuit breaker 2026-08-12 10:52:10 +00:00
health_rejoin_test.go feat(component-failover-adoption): add apiserver's backend-health circuit breaker 2026-08-12 10:52:10 +00:00
health_test.go feat(component-failover-adoption): add apiserver's backend-health circuit breaker 2026-08-12 10:52:10 +00:00
heartbeat.go fix(component-failover-adoption): Phase 6 -- close apiserver's idle-period rejoin gap (bug-1548/bug-1549) 2026-08-16 03:42:03 +00:00
heartbeat_rejoin_test.go fix(component-failover-adoption): Phase 6 -- close apiserver's idle-period rejoin gap (bug-1548/bug-1549) 2026-08-16 03:42:03 +00:00
heartbeat_test.go fix(component-failover-adoption): Phase 6 -- close apiserver's idle-period rejoin gap (bug-1548/bug-1549) 2026-08-16 03:42:03 +00:00
integration_test.go fix(apiserver): fall back to default HostConfig for unmatched workers (bug-1673, gitea #40) 2026-08-24 14:23:45 +00:00
notification.go fix front end issues 2026-05-01 21:22:45 +08:00
reconnect.go feat(component-failover-adoption): add apiserver's backend-health circuit breaker 2026-08-12 10:52:10 +00:00
reconnect_test.go test(component-failover-adoption): close apiserver concurrency coverage gap 2026-08-12 12:21:54 +00:00
stub.go Init commit of jobs output/error message peek project. 2026-05-09 16:57:54 +08:00
stub_funcs_test.go feat: add HA candidate failover to API server backend 2026-05-08 03:31:35 +00:00
val_helpers.h test(apiserver): add integration tests for P0+P1 backend features 2026-04-18 11:56:31 +00:00
wire_dispatch_support.go fix(schema): rename struct Data -> XceData to unshadow capnp builtin blob type 2026-07-22 09:22:04 +00:00
wire_dispatch_test.go test(job-array-single-wal-record): end-to-end integration test for the compact push 2026-07-15 17:27:34 +00:00