Skip to content

boot: replay in subprocess#654

Merged
pkova merged 14 commits into
developfrom
msl/replay-in-subprocess
Jun 24, 2024
Merged

boot: replay in subprocess#654
pkova merged 14 commits into
developfrom
msl/replay-in-subprocess

Conversation

@matthew-levan

@matthew-levan matthew-levan commented May 24, 2024

Copy link
Copy Markdown
Contributor

This PR:

  1. Adds the --serf-bin option for specifying a serf executable
  2. Sets u3_Host.wrk_c to --serf-bin's value if specified, self otherwise
  3. Performs boot's replay in a subprocess that spawns our own serf (by default) or the specified serf if provided
  4. Spawns a thread in _cw_play that exits if it reads EOF from STDIN (thereby ensuring the child process for replaying events exits whenever the parent is killed)

These changes allow Ares (or any other runtime) to implement its own play subcommand and have Vere use it for the boot process's replay functionality.

Tests:

  • linux-x86_64 subcommand, replay via boot, killing king via INT, KILL, TERM
  • macos-aarch64 subcommand, replay via boot, killing king via INT, KILL, TERM

@matthew-levan matthew-levan marked this pull request as ready for review May 24, 2024 16:59
@matthew-levan matthew-levan requested a review from a team as a code owner May 24, 2024 16:59
Comment thread pkg/vere/main.c Outdated
Comment thread pkg/vere/main.c Outdated
@matthew-levan matthew-levan linked an issue May 26, 2024 that may be closed by this pull request
@matthew-levan matthew-levan requested review from joemfb and pkova May 28, 2024 14:56
pkova added a commit that referenced this pull request May 29, 2024
Adds `--lmdb-map-size` to specify LMDB's initial memory mapping size,
intended for use by users who need a size smaller than our default of
500G. Note: `case 12` to avoid collision with the other arg added in
#654.
@matthew-levan matthew-levan self-assigned this May 30, 2024
@pkova pkova merged commit 81b31ca into develop Jun 24, 2024
@pkova pkova deleted the msl/replay-in-subprocess branch June 24, 2024 16:14
pkova added a commit that referenced this pull request Jun 28, 2024
This PR fixes an issue introduced in #654, whereby docked binaries could
not replay.
joemfb added a commit that referenced this pull request Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

king: flag to pass path to serf

3 participants