Skip to content

ChronoLog 3.6.0

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Nov 07:10

Highlights

Every RPC has a deadline (#738). Up to 3.5.0 most RPCs had none. Over ofi+tcp, a call to a dead or stopped keeper, grapher or player waited until the transport gave up, so a client write or a visor acquire hung, and keeper_restart_held_test.sh passed 8 of 11 checks. In 3.6.0 every call a client or a component makes has a budget from the RpcPolicy block of its configuration, and a call whose answer has not come back keeps its buffers, handles and slot until Mercury is done with them. That test now passes 11 of 11 on each transport.

  • Budgets in the configuration. The client and each component read append_ms, control_ms and tail_ms (5 s), replay_ms (180 s), attempt_ms (5 s per RPC attempt), and startup_ms, shutdown_ms and transfer_ms (30 s). Calls run on a fixed set of slots, and a call that finds none free fails with CL_ERR_RPC_CAPACITY at once. See RPC Deadlines.
  • New error codes, -22 to -28. CL_ERR_DEADLINE_EXCEEDED (-22), CL_ERR_RPC_CAPACITY (-24), CL_ERR_CLOCK_UNAVAILABLE (-25) and CL_ERR_TIMESTAMP_EXHAUSTED (-26) mean nothing was sent. CL_ERR_OUTCOME_UNCONFIRMED (-23) means the request was sent and may have taken effect: an accepted write that the keeper does not answer in time returns it, because the event may have been stored. CL_ERR_SHUTDOWN_INCOMPLETE (-27) means a stop ran out of its budget while work it owns was still running, and CL_ERR_NATIVE_RUNTIME_UNSUPPORTED (-28) is described below. See Error Codes.
  • The visor does not wait for a component that does not answer. It sends start, stop, destroy and shutdown through 32 admin RPC slots (rpc_slots). An acquire goes on without a keeper that does not answer. A story whose start or stop got no confirmed answer stays owned until a later acquire or release settles it, and a keeper that registers again gets back every story clients hold on it.
  • Chunks reach the grapher and the player once. A keeper sends a partial chunk as one serialized copy with a CRC-32C, and the receiver pulls it in 1 MiB pieces within the transfer budget. A busy or unconfirmed send is retried with a backoff from 1 s to 30 s, and the grapher answers a resend of a chunk it already wrote with its receipt instead of writing it again.
  • ofi+tcp is the default transport. On ofi+sockets, a reply that arrives after its call timed out keeps libfabric's progress thread at 100% CPU. ofi+sockets still works and the tests still run on it. deploy_local.sh sets FI_TCP_IFACE=lo when every endpoint is 127.0.0.1.
  • Stops finish within one budget. Each daemon writes a status record, and --stop stops the keepers first, then the players, graphers and visor, with SIGTERM only and within one budget. A keeper sent SIGTERM directly stops itself, and the writes that arrive after it has quiesced are refused instead of left unanswered.
  • Tests. The unit suite passes clean under AddressSanitizer with detect_leaks=1 (#745): it had 27 known failures, all leaks in tests or in the client configuration loader's error path. New tests check that deleting one RPC route (a keeper's chunk sender, a player's response agent, a reader's playback route) leaves the others on the same engine working, and keeper_leave_test.sh checks that stories still start, stop and go away after a keeper has left (#707). The unit suite grows from 764 to 1077 tests.

Upgrading from 3.5

  • Rebuild everything, including MPI applications. The Spack environment now builds MPICH without Argobots (~argobots). ChronoLog owns the process's Argobots runtime, so in a process where an MPICH built with +argobots has already called MPI_Init, the first Connect returns CL_ERR_NATIVE_RUNTIME_UNSUPPORTED (-28) without sending anything. In an existing checkout, check after the build that spack find -v mpich in the environment shows ~argobots; if a spack.lock from 3.5.0 still pins +argobots, remove it and build again. See Using the Client from MPI Applications.
  • Run every component and client at 3.6.0. The protocol version stays 3, but 3.6.0 is not tested against 3.5.0 components or clients, and a keeper's chunk send carries a checksum that 3.5.0 does not send.
  • Set FI_TCP_IFACE in containers and clusters. ofi+tcp binds the first interface libfabric picks unless FI_TCP_IFACE names one. Set it to a routable interface such as eth0. A deployment that keeps ofi+sockets in its configuration needs nothing new.
  • Callers of log_event. It returns the event's timestamp only once the keeper has acknowledged the event, and 0 otherwise; up to 3.5.0 it returned the timestamp whatever the keeper answered. A 0 after a sent write can still mean the event was stored. append_event tells the cases apart, and -23 means "may have been stored".
  • Configuration. The templates gain the RpcPolicy block in every section and rpc_slots for the visor. Every key is optional and has the default shown. No key was removed.
  • The archive. Archives written by 3.5.0 stay readable: a fresh 3.6.0 deployment replayed every event of a story that a stopped 3.5.0 deployment had archived in the same directory.
  • Stop 3.5.0 cleanly first. --stop reports durable events still pending in a keeper WAL; let them reach the archive before starting 3.6.0.

Behavior changes

  • A durable write to a keeper that is stopping gets CL_ERR_DURABILITY_UNAVAILABLE (-19), and an accepted write gets CL_ERR_UNKNOWN (-1). Neither stores anything.
  • Once a stopping keeper no longer answers, an accepted write returns CL_ERR_OUTCOME_UNCONFIRMED (-23) when its append_ms runs out, and a durable write CL_ERR_DURABILITY_UNKNOWN (-21).
  • The releases page's Documentation button opens each archived version's overview; it gave a 404 (#747).
  • The 180 s limit on a ReplayStory is now the client's replay_ms and can be changed; it was a constant in the client library.

Known issues

  • A keeper whose grapher is dead or frozen never finishes its stop: #751.
  • The RPC runtime's workers and callers check for work and replies every 1 ms. On a cluster pinned to 4 CPUs, this made a client write about 2 ms slower than on 3.5.0: #752.
  • The visor still runs the client metadata calls under one lock.
  • deploy_local.sh returns before the keepers have registered with the visor, so a client started at once can get CL_ERR_NO_KEEPERS, and the basic, writer and telemetry writer examples then crash on the null story handle: #742.
  • A failed story start leaves the story bound to its group, and its events are lost: #725.
  • Two reader-mode clients on one host both bind port 5557: #719.
  • Other open items: #708, #709 (failed archive writes), #711, #712, #715 (resource use), #716, #717, #718 (deployment).

Full Changelog: v3.5.0...v3.6.0