pub(crate) struct Args {
pub(crate) url: String,
pub(crate) data_dir: PathBuf,
pub(crate) source: String,
pub(crate) segment_ledgers: u32,
pub(crate) grace_ledgers: u32,
pub(crate) zstd_level: i32,
pub(crate) stall_secs: u64,
pub(crate) metrics_addr: Option<SocketAddr>,
pub(crate) unl_dir: Option<PathBuf>,
}Fields§
§url: StringThe node’s admin WebSocket. Local address only: the archiver must not reach the node over the network.
data_dir: PathBufArchive directory.
source: StringSource name in seals: which of our machines received the validations.
segment_ledgers: u32Nominal segment size in ledgers; 1024 is about an hour.
grace_ledgers: u32Margin for late validations before a segment is closed.
zstd_level: i32zstd level used when closing a segment. Going above 9 makes no sense: validations are mostly signatures and keys, i.e. noise, and level 19 on live data gains about one percent at 30 times the time. Compression also runs on the same thread that reads the subscription.
stall_secs: u64How many seconds of silence on a live connection count as a disconnect.
metrics_addr: Option<SocketAddr>Where to serve metrics, for example an address inside the monitoring tunnel. If unset, there are no metrics.
unl_dir: Option<PathBuf>Directory of the UNL list collector on the same machine, used to report in metrics when it last saw each publisher.
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.