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
feat: --db.exclusive
flag for nfs volumes
#7346
Conversation
the purpose of this is to further extend paradigmxyz#6755 and allow for `--db.exclusive=true` to be used to support nfs volumes
--db.exclusive
flag for nfs volumes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also update the command help in the book: https://github.com/paradigmxyz/reth/tree/main/book/cli/reth
* update book help text * linting
@@ -12,13 +12,17 @@ pub struct DatabaseArgs { | |||
/// Database logging level. Levels higher than "notice" require a debug build. | |||
#[arg(long = "db.log-level", value_enum)] | |||
pub log_level: Option<LogLevel>, | |||
/// Open environment in exclusive/monopolistic mode. Enabling allows nfs volumes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Open environment in exclusive/monopolistic mode. Enabling allows nfs volumes | |
/// Open environment in exclusive/monopolistic mode. Makes it possible to open a database on an NFS volume. |
book/cli/reth/node.md
Outdated
--db.exclusive <EXCLUSIVE> | ||
Exclusion mode enabled or not | ||
|
||
[possible values: true, false] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be generated with make update-book-cli
, the description of the argument should match the rustdoc comment.
* fix verbiage for rustdoc * run update-book-cli *note this caught more than just my changes*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pending @shekhirin
@@ -12,13 +12,18 @@ pub struct DatabaseArgs { | |||
/// Database logging level. Levels higher than "notice" require a debug build. | |||
#[arg(long = "db.log-level", value_enum)] | |||
pub log_level: Option<LogLevel>, | |||
/// Open environment in exclusive/monopolistic mode. Makes it possible to open a database on an | |||
/// NFS volume. | |||
#[arg(long = "db.exclusive", exclusive = false)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need exclusive
here? https://docs.rs/clap/latest/clap/struct.Arg.html#method.exclusive
it doesn't set the default value for the argument, think we should rather leave it as None when not specified
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah OK that makes sense. Thanks for the link to the docs as well. Change incoming
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
remove exclusive flag based on misunderstanding of call, default works like exclusive=false anyways so comes across as redundant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
The purpose of this PR is to further extend #6755 and allow for
--db.exclusive=true
to be used to support nfs volumes