pub struct DisconnectStrategy {
pub reconcile: Option<String>,
pub lost_after: Option<TimeDelta>,
pub stop_on_client_after: Option<TimeDelta>,
pub replace: Option<bool>,
}
Expand description
Disconnect strategy defines how both clients and server should behave in case of disconnection between them.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§reconcile: Option<String>
Once the disconnected node starts reporting again, it will define which instances to keep: the original allocations, the replacement, the one running on the node with the best score as it is currently implemented, or the allocation that has been running continuously the longest.
lost_after: Option<TimeDelta>
Defines for how long the server will consider the unresponsive node as disconnected but alive instead of lost.
stop_on_client_after: Option<TimeDelta>
Defines for how long a disconnected client will keep its allocations running.
replace: Option<bool>
A boolean field used to define if the allocations should be replaced while it’s considered disconnected.
Trait Implementations§
Source§impl Clone for DisconnectStrategy
impl Clone for DisconnectStrategy
Source§fn clone(&self) -> DisconnectStrategy
fn clone(&self) -> DisconnectStrategy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more