#[non_exhaustive]pub struct Estimation {
pub cpu: Option<Cpu>,
pub ephemeral_storage: Option<i64>,
pub heap: Option<i64>,
pub memory: Option<i64>,
pub overhead: Option<i64>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Recommended resource values for a Spark driver or executor, derived from recent real usage metrics. Used by SPA to propose more efficient pod sizing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cpu: Option<Cpu>
CPU usage statistics derived from historical Spark job metrics. Provides multiple estimates so users can choose between conservative and cost-saving risk profiles.
ephemeral_storage: Option<i64>
Recommended ephemeral storage allocation (in MiB). Derived from job temporary storage patterns.
heap: Option<i64>
Recommended JVM heap size (in MiB).
memory: Option<i64>
Recommended total memory allocation (in MiB). Includes both heap and overhead.
overhead: Option<i64>
Recommended JVM overhead (in MiB). Computed as total memory - heap.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl Estimation
impl Estimation
pub fn new() -> Estimation
pub fn cpu(self, value: Cpu) -> Self
pub fn ephemeral_storage(self, value: i64) -> Self
pub fn heap(self, value: i64) -> Self
pub fn memory(self, value: i64) -> Self
pub fn overhead(self, value: i64) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for Estimation
impl Clone for Estimation
Source§fn clone(&self) -> Estimation
fn clone(&self) -> Estimation
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 Estimation
impl Debug for Estimation
Source§impl Default for Estimation
impl Default for Estimation
Source§impl<'de> Deserialize<'de> for Estimation
impl<'de> Deserialize<'de> for Estimation
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Estimation
impl PartialEq for Estimation
Source§impl Serialize for Estimation
impl Serialize for Estimation
impl StructuralPartialEq for Estimation
Auto Trait Implementations§
impl Freeze for Estimation
impl RefUnwindSafe for Estimation
impl Send for Estimation
impl Sync for Estimation
impl Unpin for Estimation
impl UnwindSafe for Estimation
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