pub struct WorkloadAnalyzer { /* private fields */ }Expand description
적응형 워크로드 분석기
슬라이딩 윈도우로 최근 쿼리 패턴을 추적합니다.
Implementations§
Source§impl WorkloadAnalyzer
impl WorkloadAnalyzer
Sourcepub fn default_window() -> Self
pub fn default_window() -> Self
기본 윈도우(1000)로 분석기 생성
Sourcepub fn record(&mut self, pattern: QueryPattern)
pub fn record(&mut self, pattern: QueryPattern)
쿼리 패턴 기록
Sourcepub fn oltp_ratio(&self) -> f64
pub fn oltp_ratio(&self) -> f64
0.0 = 순수 OLAP, 1.0 = 순수 OLTP 윈도우가 비어있으면 0.5 (중립) 반환
Sourcepub fn recommended_config(&self) -> AdaptiveConfig
pub fn recommended_config(&self) -> AdaptiveConfig
현재 워크로드에 맞는 추천 설정 반환
Sourcepub fn window_len(&self) -> usize
pub fn window_len(&self) -> usize
현재 윈도우 내 쿼리 수
Auto Trait Implementations§
impl Freeze for WorkloadAnalyzer
impl RefUnwindSafe for WorkloadAnalyzer
impl Send for WorkloadAnalyzer
impl Sync for WorkloadAnalyzer
impl Unpin for WorkloadAnalyzer
impl UnsafeUnpin for WorkloadAnalyzer
impl UnwindSafe for WorkloadAnalyzer
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
Mutably borrows from an owned value. Read more
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>
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 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>
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