pub(crate) struct ServeArgs {Show 25 fields
pub(crate) config_dir: Option<PathBuf>,
pub(crate) data_dir: Option<PathBuf>,
pub(crate) load_demo: bool,
pub(crate) query: Option<String>,
pub(crate) http: String,
pub(crate) no_http: bool,
pub(crate) debug: bool,
pub(crate) seat_by_total_cost: bool,
pub(crate) force_semi: bool,
pub(crate) no_eager_scan_filter: bool,
pub(crate) describe_mode: DescribeModeArg,
pub(crate) default_union: bool,
pub(crate) strict_sparql: bool,
pub(crate) ingest_dir: Option<PathBuf>,
pub(crate) queries_dir: Option<PathBuf>,
pub(crate) spill_dir: Option<PathBuf>,
pub(crate) with_notebooks: bool,
pub(crate) with_ai: bool,
pub(crate) with_text: bool,
pub(crate) notebooks_dir: Option<PathBuf>,
pub(crate) notebooks_python: Option<PathBuf>,
pub(crate) notebooks_bind: Option<String>,
pub(crate) notebooks_token: Option<String>,
pub(crate) notebooks_cull_idle_secs: Option<u64>,
pub(crate) geo: GeoCovererArgs,
}Expand description
Flags shared by waratah start and waratah standalone: everything
about serving queries. The spawn-only flags (--config, --bin-dir)
live on StartArgs alone — the in-process standalone command has no
children to address or binaries to locate.
Fields§
§config_dir: Option<PathBuf>Configuration directory: where cluster.toml, notebooks.toml, and
(later) other config files are looked up.
Defaults to the XDG search path — ~/.config/waratah first, then
/etc/waratah (macOS: ~/Library/Application Support/waratah then
/Library/Application Support/waratah; Windows: %APPDATA%\waratah
then %PROGRAMDATA%\waratah). Given explicitly, ONLY that directory
is searched.
data_dir: Option<PathBuf>Persist partitions to RocksDB under this directory instead of memory.
load_demo: boolLoad the weather/city demo dataset before serving queries.
query: Option<String>Run one SPARQL query and exit instead of starting the HTTP server.
http: StringRDF4J HTTP listen address.
no_http: boolSkip the RDF4J HTTP server and use the stdin SPARQL REPL instead.
debug: boolLog SPARQL query text, timings, and client-facing errors to stderr (foreground) or debug.txt (daemonized).
seat_by_total_cost: boolSeat inner-join arms by the total seating cost (the join-seat-shadow
comparator promoted to decision) instead of the default driver_cost
rule. Divergent seats log as join-seat-totals at debug level.
force_semi: boolBenchmark switch: stamp Semi on joins whose only refusal is the
per-page cost verdict. The semantic semi gates (payload,
multiplicity, keys, specialized scans) still refuse. Used to A/B the
general semi build against the per-page road; not a production hint.
no_eager_scan_filter: boolDisable slot comparison pushdown and the eager scan filter (the plan FILTER alone decides). Diagnostic/benchmark switch: off is the pre-feature path, with nothing stamped and no comparison on the wire. Production leaves it on.
describe_mode: DescribeModeArgSPARQL DESCRIBE algorithm (default star).
default_union: boolSPARQL default graph is the union of all named and unnamed graphs.
strict_sparql: boolStrict SPARQL 1.1 adherence: gate Waratah’s documented deviations (gYear-family ordering comparisons become type errors, and future deviations) behind spec-strict behavior.
ingest_dir: Option<PathBuf>Staging parent for HTTP ingest (uploads and operator-copied RDF).
Files live in {ingest_dir}/{repository} (repository is main).
Defaults to {data_dir}/ingest when --data-dir is set, otherwise ./ingest.
queries_dir: Option<PathBuf>Published query library for the console Query library
(GET /waratah/repositories/{id}/queries).
One <id>.rq file (optional <id>.toml sidecar) per query, under
{queries_dir}/{repository}. Without it the endpoint answers 501,
unless --load-demo publishes its built-in samples.
spill_dir: Option<PathBuf>Root directory for query spill files (external ORDER BY runs, Grace join partitions, parked pages, DISTINCT seen-sets).
Defaults to {data_dir}/spill when --data-dir is set. Without a
data dir (memory backend) spill falls back to the system temp dir,
which is RAM-backed (tmpfs) on many Linux systems — spilled pages
then stay in RAM and a warning is logged.
with_notebooks: boolEnable the Jupyter notebook service: a jupyter-server sidecar (one
per compute) reverse-proxied at /jupyter, WebSocket kernel
channels included. Requires the HTTP server.
with_ai: boolEnable AI services: the LLM egress proxy at
/waratah/ai/upstreams/* (bring-your-own-key) and the
/waratah/repositories/main/ai-context schema endpoint. Also
settable as [ai] enabled = true in {config-dir}/ai.toml; when
no upstreams are declared there, the zen upstream is
preconfigured. Requires the HTTP server.
with_text: boolEnable the text plugin: Jena-style FILTER text:query, indexed
STRSTARTS / STRENDS / anchored REGEX, and a Tantivy index the
O partition maintains. Also settable as enabled = true in
{config-dir}/text.toml. Off by default (the index covers every
string literal, so always-on would change every deployment’s write
latency and disk baseline). Changing analyzer or seed_chars
after a build requires an offline rebuild.
notebooks_dir: Option<PathBuf>Contents root for the notebook service.
Defaults to {data_dir}/notebooks when --data-dir is set,
otherwise ./notebooks.
notebooks_python: Option<PathBuf>Python interpreter for the sidecar; skips auto-provisioning.
Default: a pinned venv auto-created at {data_dir}/notebooks-venv
on first start from waratah_notebook/python/requirements.lock.
notebooks_bind: Option<String>Loopback bind for the notebook sidecar (default 127.0.0.1:0,
engine-assigned). Also settable as bind in {config-dir}/notebooks.toml.
notebooks_token: Option<String>Jupyter auth token (default: minted at startup).
notebooks_cull_idle_secs: Option<u64>Kernel idle culling timeout in seconds (default 3600). Also settable
as cull_idle_secs in {config-dir}/notebooks.toml.
geo: GeoCovererArgsGeoSPARQL S2 covering params (process-local; see waratah geo rebuild-index for the rebuild requirement after changing them).
Trait Implementations§
Source§impl Args for ServeArgs
impl Args for ServeArgs
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 ServeArgs
impl FromArgMatches for ServeArgs
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.Auto Trait Implementations§
impl Freeze for ServeArgs
impl RefUnwindSafe for ServeArgs
impl Send for ServeArgs
impl Sync for ServeArgs
impl Unpin for ServeArgs
impl UnsafeUnpin for ServeArgs
impl UnwindSafe for ServeArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].