Skip to main content

ServeArgs

Struct ServeArgs 

Source
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: bool

Load the weather/city demo dataset before serving queries.

§query: Option<String>

Run one SPARQL query and exit instead of starting the HTTP server.

§http: String

RDF4J HTTP listen address.

§no_http: bool

Skip the RDF4J HTTP server and use the stdin SPARQL REPL instead.

§debug: bool

Log SPARQL query text, timings, and client-facing errors to stderr (foreground) or debug.txt (daemonized).

§seat_by_total_cost: bool

Seat 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: bool

Benchmark 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: bool

Disable 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: DescribeModeArg

SPARQL DESCRIBE algorithm (default star).

§default_union: bool

SPARQL default graph is the union of all named and unnamed graphs.

§strict_sparql: bool

Strict 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: bool

Enable 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: bool

Enable 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: bool

Enable 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: GeoCovererArgs

GeoSPARQL S2 covering params (process-local; see waratah geo rebuild-index for the rebuild requirement after changing them).

Trait Implementations§

Source§

impl Args for ServeArgs

Source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via [FromArgMatches::update_from_arg_matches_mut] Read more
Source§

impl FromArgMatches for ServeArgs

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts 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>

Converts 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)

Converts &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)

Converts &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
where T: Any + Send,

§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Sync + Send>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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

§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in [Layered].
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

§

fn is_within(&self, b: &G2) -> bool

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Fruit for T
where T: Send + Downcast,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,