pub struct AutoTuner {
pub fingerprint: u64,
pub tuned_at: String,
pub health_config: HealthConfig,
pub load_balance_config: LoadBalanceConfig,
pub planning_tuning: PlanningTuning,
pub tcp_config: TcpAutoConfig,
pub worker_pool: WorkerPoolConfig,
}Expand description
Pre-computed tuning parameters for all Ghost-Link subsystems.
Fields§
§fingerprint: u64System fingerprint used for cache invalidation.
tuned_at: StringTimestamp of the last full re-tune.
health_config: HealthConfigTuned health-check configuration.
load_balance_config: LoadBalanceConfigTuned load-balancing configuration.
planning_tuning: PlanningTuningTuned planning hints (layer chunking).
tcp_config: TcpAutoConfigRecommended TCP transport settings.
worker_pool: WorkerPoolConfigRecommended worker-pool sizing.
Implementations§
Source§impl AutoTuner
impl AutoTuner
Sourcepub fn from_system_profile(profile: &SystemProfile) -> Self
pub fn from_system_profile(profile: &SystemProfile) -> Self
Tune all subsystems from a SystemProfile.
Results are cached in-memory to avoid re-tuning on repeated calls.
Sourcepub fn load_cache() -> Option<Self>
pub fn load_cache() -> Option<Self>
Load a previously cached AutoTuner if the hardware fingerprint matches.
Checks the in-memory cache first, then falls back to disk.
Sourcepub fn save_cache(&self)
pub fn save_cache(&self)
Persist the current tuning to disk.
Sourcepub fn benchmark_tcp(&mut self)
pub fn benchmark_tcp(&mut self)
Run TCP transport benchmark and update tcp_config.
This is a no-op placeholder that uses profile-derived defaults;
the real benchmark lives in ghost-link (main.rs).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AutoTuner
impl<'de> Deserialize<'de> for AutoTuner
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Auto Trait Implementations§
impl Freeze for AutoTuner
impl RefUnwindSafe for AutoTuner
impl Send for AutoTuner
impl Sync for AutoTuner
impl Unpin for AutoTuner
impl UnsafeUnpin for AutoTuner
impl UnwindSafe for AutoTuner
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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