hide commonly misused `--no-port-check` validator arg (#30306)

This commit is contained in:
Trent Nelson 2023-02-16 13:34:45 -07:00 committed by GitHub
parent b678ee3583
commit 0487a4bd60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -439,12 +439,6 @@ solana-validator ..."); otherwise, when logrotate sends its signal to the
validator, the enclosing script will die and take the validator process with validator, the enclosing script will die and take the validator process with
it. it.
### Disable port checks to speed up restarts
Once your validator is operating normally, you can reduce the time it takes to
restart your validator by adding the `--no-port-check` flag to your
`solana-validator` command-line.
### Using a ramdisk with spill-over into swap for the accounts database to reduce SSD wear ### Using a ramdisk with spill-over into swap for the accounts database to reduce SSD wear
If your machine has plenty of RAM, a tmpfs ramdisk If your machine has plenty of RAM, a tmpfs ramdisk

View File

@ -195,6 +195,7 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> {
Arg::with_name("no_port_check") Arg::with_name("no_port_check")
.long("no-port-check") .long("no-port-check")
.takes_value(false) .takes_value(false)
.hidden(true)
.help("Do not perform TCP/UDP reachable port checks at start-up") .help("Do not perform TCP/UDP reachable port checks at start-up")
) )
.arg( .arg(