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

Command Line Option to set the time between snapshots #317

Merged
merged 5 commits into from Apr 4, 2023

Conversation

mopfel-winrux
Copy link
Contributor

@mopfel-winrux mopfel-winrux commented Mar 27, 2023

This PR adds a command line option that allows the user to set the time in minutes between snapshots. This helps resolve the issues discussed in #528.

By allowing the user to set the time between shapshots it lets them decide how long they want to possibly wait to replay events. This also may allow urbit to run on an SD Card (which has ~10,000 write cycles.); reducing the cost to home host.

@mopfel-winrux mopfel-winrux requested a review from a team as a code owner March 27, 2023 17:24
pkg/vere/main.c Outdated Show resolved Hide resolved
pkg/vere/main.c Show resolved Hide resolved
pkg/vere/save.c Outdated Show resolved Hide resolved
@barter-simsum
Copy link
Member

There should probably be a hard limit defined in the vere arg-parser. Certainly UINT32_MAX / 1000 is a hard limit ;). Additionally lower bounds. What happens if I pass 0. @mopfel-winrux

@mopfel-winrux
Copy link
Contributor Author

There should probably be a hard limit defined in the vere arg-parser. Certainly UINT32_MAX / 1000 is a hard limit ;). Additionally lower bounds. What happens if I pass 0. @mopfel-winrux

If you pass a 0 the opts parser returns c3n and the software crashes

@jalehman jalehman requested a review from joemfb March 29, 2023 15:20
@barter-simsum
Copy link
Member

barter-simsum commented Mar 29, 2023

Maybe 0 should just disable snapshotting altogether. deferring to @joemfb

@belisarius222 belisarius222 merged commit 1ef5486 into urbit:develop Apr 4, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants