+58
−27
+14
−8
Loading
init_environment() reads LIBGKFS_RPC_ENGINES (default 1, clamped to
[1, 64]) and creates that many Thallium engines with the same Margo
config, each with its own progress thread. All RPC tags are
pre-registered on every engine while still single-threaded.
connect_to_hosts() looks up every daemon once per engine (each engine in
its own shuffled host order) and stores the endpoints per engine;
preconnect contacts every daemon from every engine. The IPC engine for
the proxy stays single.
Start-up is measured and logged at INFO: engine creation and tag
registration, the N x hosts lookups, and the preconnect phase.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>