pub struct RuntimeOptions {
pub threads: usize,
pub work_stealing: bool,
pub global_queue_interval: Option<u32>,
pub upstream_ca_file: Option<String>,
pub upstream_keepalive_pool_size: Option<usize>,
}Expand description
Runtime tuning passed from config into the server factory.
use praxis_core::server::RuntimeOptions;
let opts = RuntimeOptions::default();
assert_eq!(opts.threads, 0);
assert!(opts.work_stealing);
assert_eq!(opts.global_queue_interval, Some(61));
assert!(opts.upstream_ca_file.is_none());
assert!(opts.upstream_keepalive_pool_size.is_none());
let opts = RuntimeOptions {
threads: 4,
work_stealing: true,
..RuntimeOptions::default()
};
assert_eq!(opts.threads, 4);Fields§
§threads: usizeWorker threads per service. 0 means auto-detect.
work_stealing: boolAllow work-stealing between threads.
global_queue_interval: Option<u32>Fixed global queue interval for the tokio scheduler.
upstream_ca_file: Option<String>PEM CA file for all upstream TLS connections. Replaces the system trust store when set (not additive).
upstream_keepalive_pool_size: Option<usize>Per-thread upstream keepalive pool size. None uses
Pingora’s default (128).
Trait Implementations§
Source§impl Clone for RuntimeOptions
impl Clone for RuntimeOptions
Source§fn clone(&self) -> RuntimeOptions
fn clone(&self) -> RuntimeOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeOptions
impl Debug for RuntimeOptions
Source§impl Default for RuntimeOptions
impl Default for RuntimeOptions
Source§impl From<&RuntimeConfig> for RuntimeOptions
impl From<&RuntimeConfig> for RuntimeOptions
Source§fn from(cfg: &RuntimeConfig) -> Self
fn from(cfg: &RuntimeConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuntimeOptions
impl RefUnwindSafe for RuntimeOptions
impl Send for RuntimeOptions
impl Sync for RuntimeOptions
impl Unpin for RuntimeOptions
impl UnsafeUnpin for RuntimeOptions
impl UnwindSafe for RuntimeOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more