pub struct SchedulerConfiguration {
pub scheduler_algorithm: SchedulerAlgorithm,
pub preemption_config: PreemptionConfig,
pub memory_oversubscription_enabled: bool,
pub reject_job_registration: bool,
pub pause_eval_broker: bool,
pub create_index: u64,
pub modify_index: u64,
}
Expand description
SchedulerConfiguration is the config for controlling scheduler behavior
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§scheduler_algorithm: SchedulerAlgorithm
SchedulerAlgorithm lets you select between available scheduling algorithms.
preemption_config: PreemptionConfig
PreemptionConfig specifies whether to enable eviction of lower priority jobs to place higher priority jobs.
memory_oversubscription_enabled: bool
MemoryOversubscriptionEnabled specifies whether memory oversubscription is enabled
reject_job_registration: bool
RejectJobRegistration disables new job registrations except with a management ACL token
pause_eval_broker: bool
PauseEvalBroker stops the leader evaluation broker process from running until the configuration is updated and written to the Nomad servers.
create_index: u64
CreateIndex/ModifyIndex store the create/modify indexes of this configuration.
modify_index: u64
Trait Implementations§
Source§impl Clone for SchedulerConfiguration
impl Clone for SchedulerConfiguration
Source§fn clone(&self) -> SchedulerConfiguration
fn clone(&self) -> SchedulerConfiguration
Returns a copy 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 SchedulerConfiguration
impl Debug for SchedulerConfiguration
Source§impl<'de> Deserialize<'de> for SchedulerConfiguration
impl<'de> Deserialize<'de> for SchedulerConfiguration
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 SchedulerConfiguration
impl PartialEq for SchedulerConfiguration
Source§impl Serialize for SchedulerConfiguration
impl Serialize for SchedulerConfiguration
impl StructuralPartialEq for SchedulerConfiguration
Auto Trait Implementations§
impl Freeze for SchedulerConfiguration
impl RefUnwindSafe for SchedulerConfiguration
impl Send for SchedulerConfiguration
impl Sync for SchedulerConfiguration
impl Unpin for SchedulerConfiguration
impl UnwindSafe for SchedulerConfiguration
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