Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boot: replay in subprocess #654

Merged
merged 14 commits into from
Jun 24, 2024
Merged

boot: replay in subprocess #654

merged 14 commits into from
Jun 24, 2024

Conversation

matthew-levan
Copy link
Contributor

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

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
pkg/vere/main.c Outdated Show resolved Hide resolved
pkg/vere/main.c Outdated Show resolved Hide resolved
@matthew-levan matthew-levan linked an issue May 26, 2024 that may be closed by this pull request
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
5 checks passed
@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
Status: Done
Development

Successfully merging this pull request may close these issues.

king: flag to pass path to serf
3 participants