pub struct MigrateStrategy {
pub max_parallel: u32,
pub health_check: HealthCheck,
pub min_healthy_time: Duration,
pub healthy_deadline: Duration,
}Expand description
Specifies a migration strategy to be applied during node drains.
Fields§
§max_parallel: u32Specifies how many allocations may be migrated at once. Defaults to 1.
health_check: HealthCheckIndicates how task health should be determined: either via Consul health checks or whether the task was able to run successfully. See also HealthCheck
min_healthy_time: DurationSpecifies duration a task must be considered healthy before the migration is considered healthy. Defaults to 10 seconds.
healthy_deadline: DurationSpecifies duration a task must become healthy within before it is considered unhealthy. Defaults to 5 minutes.
Trait Implementations§
Source§impl Clone for MigrateStrategy
impl Clone for MigrateStrategy
Source§fn clone(&self) -> MigrateStrategy
fn clone(&self) -> MigrateStrategy
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 MigrateStrategy
impl Debug for MigrateStrategy
Source§impl Default for MigrateStrategy
impl Default for MigrateStrategy
Source§impl<'de> Deserialize<'de> for MigrateStrategy
impl<'de> Deserialize<'de> for MigrateStrategy
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 MigrateStrategy
impl PartialEq for MigrateStrategy
Source§impl Serialize for MigrateStrategy
impl Serialize for MigrateStrategy
impl Eq for MigrateStrategy
impl StructuralPartialEq for MigrateStrategy
Auto Trait Implementations§
impl Freeze for MigrateStrategy
impl RefUnwindSafe for MigrateStrategy
impl Send for MigrateStrategy
impl Sync for MigrateStrategy
impl Unpin for MigrateStrategy
impl UnwindSafe for MigrateStrategy
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.