myxce/src/worker/include
Rongsong Shen b75703ba6b feat: wire HA candidate-list reconnect into worker+scheduler join paths
Worker (xcecd):
- Add xce_cluster_config_t cluster_cfg field to controller_connector_ctx_t
  (controller_connector.h includes xce/cluster.h)
- Populate cc_ctx->cluster_cfg from parsed cluster_cfg after xcecd_start()
  sets cc_ctx (main.c, removes the P3 placeholder)
- Replace xcecd_join_cluster() single-shot connect with a candidate-iterating
  loop: tries each candidate, calls xcecli_stop() before the next attempt,
  falls back to the original single-host path when candidates_count == 0

Scheduler (xce_scheduler):
- Add xce_cluster_config_t cluster_cfg field to xce_scheduler_t
  (scheduler.h includes xce/cluster.h)
- Add sched_set_cluster_cfg() setter
- Replace the hardcoded xcecli_start/xcecli_join pair in sched_init() with
  the same candidate-iterating pattern; original single-host path preserved
- main.c calls sched_set_cluster_cfg() before sched_init() when --peers given
  (removes the P3 placeholder comment)

checking_connection() already calls xcecd_join_cluster() on retry, giving
the worker free reconnect-after-failover behaviour for no additional code.
2026-05-08 03:05:56 +00:00
..
connection_handler.h use clang-format to format code 2025-11-25 14:58:09 +08:00
controller_connector.h feat: wire HA candidate-list reconnect into worker+scheduler join paths 2026-05-08 03:05:56 +00:00
hardware_monitor.h use clang-format to format code 2025-11-25 14:58:09 +08:00
inter_job_utils.h use clang-format to format code 2025-11-25 14:58:09 +08:00
job_information.h use clang-format to format code 2025-11-25 14:58:09 +08:00
node_information.h merge job rusage and pending reason support 2025-12-16 14:36:28 +08:00
process_manager.h use clang-format to format code 2025-11-25 14:58:09 +08:00
process_worker_manager.h use clang-format to format code 2025-11-25 14:58:09 +08:00
resource_sync.h merge job rusage and pending reason support 2025-12-16 14:36:28 +08:00
static_array.h use clang-format to format code 2025-11-25 14:58:09 +08:00
system_monitor.h use clang-format to format code 2025-11-25 14:58:09 +08:00
thread_pool.h use clang-format to format code 2025-11-25 14:58:09 +08:00
uv_ipc.h merge job rusage and pending reason support 2025-12-16 14:36:28 +08:00
uv_proc.h use clang-format to format code 2025-11-25 14:58:09 +08:00
xcecd.h merge job rusage and pending reason support 2025-12-16 14:36:28 +08:00
xcecd_cgroups.h merge job rusage and pending reason support 2025-12-16 14:36:28 +08:00
xcecd_conf.h use clang-format to format code 2025-11-25 14:58:09 +08:00
xcecd_db.h use clang-format to format code 2025-11-25 14:58:09 +08:00
xcecd_dbus_manager.h use clang-format to format code 2025-11-25 14:58:09 +08:00
xcecd_exdata.h merge job rusage and pending reason support 2025-12-16 14:36:28 +08:00
xcecd_utils.h job submit and support run in worker 2025-11-28 17:24:31 +08:00
xcecd_worker_utils.h use clang-format to format code 2025-11-25 14:58:09 +08:00
xrun.h use clang-format to format code 2025-11-25 14:58:09 +08:00