pub struct PveHaConfig {
pub shutdown_policy: PveClusterOptionsShutdownPolicyEnum,
}Fields§
§shutdown_policy: PveClusterOptionsShutdownPolicyEnumDescribes the policy for handling HA services on poweroff or reboot of a node. Freeze will always freeze services which are still located on the node on shutdown, those services won’t be recovered by the HA manager. Failover will not mark the services as frozen and thus the services will get recovered to other nodes, if the shutdown node does not come up again quickly (< 1min). ‘conditional’ chooses automatically depending on the type of shutdown, i.e., on a reboot the service will be frozen but on a poweroff the service will stay as is, and thus get recovered after about 2 minutes. Migrate will try to move all running services to another node when a reboot or shutdown was triggered. The poweroff process will only continue once no running services are located on the node anymore. If the node comes up again, the service will be moved back to the previously powered-off node, at least if no other migration, reloaction or recovery took place.
Implementations§
Source§impl PveHaConfig
impl PveHaConfig
pub fn new(shutdown_policy: PveClusterOptionsShutdownPolicyEnum) -> PveHaConfig
Source§impl PveHaConfig
impl PveHaConfig
Sourcepub fn to_shorthand(&self) -> String
pub fn to_shorthand(&self) -> String
Serialise this PveHaConfig into Proxmox’s CLI-style shorthand
string (key=value,…). The property marked x-pve-default-key
is emitted positionally without a key= prefix; aliases collapse
multiple property names to the same wire key.
Example: PveHaConfig
→ "virtio,bridge=vmbr0"
Trait Implementations§
Source§impl Clone for PveHaConfig
impl Clone for PveHaConfig
Source§fn clone(&self) -> PveHaConfig
fn clone(&self) -> PveHaConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PveHaConfig
impl Debug for PveHaConfig
Source§impl Default for PveHaConfig
impl Default for PveHaConfig
Source§fn default() -> PveHaConfig
fn default() -> PveHaConfig
Source§impl<'de> Deserialize<'de> for PveHaConfig
impl<'de> Deserialize<'de> for PveHaConfig
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>,
Source§impl PartialEq for PveHaConfig
impl PartialEq for PveHaConfig
Source§fn eq(&self, other: &PveHaConfig) -> bool
fn eq(&self, other: &PveHaConfig) -> bool
self and other values to be equal, and is used by ==.