pub struct ClusterHaCreateGroupsRequest {
pub comment: Option<String>,
pub group: String,
pub nodes: String,
pub nofailback: Option<PveBoolean>,
pub restricted: Option<PveBoolean>,
pub type: Option<PveClusterHaTypeEnum>,
}Fields§
§comment: Option<String>Description.
group: StringThe HA group identifier.
nodes: StringList of cluster node members, where a priority can be given to each node. A resource will run on the available nodes with the highest priority. If there are more nodes in the highest priority class, the resources will get distributed to those nodes. The priorities have a relative meaning only. The higher the number, the higher the priority.
nofailback: Option<PveBoolean>The CRM tries to run services on the node with the highest priority. If a node with higher priority comes online, the CRM migrates the service to that node. Enabling nofailback prevents that behavior.
restricted: Option<PveBoolean>Resources bound to restricted groups may only run on nodes defined by the group. The resource will be placed in the stopped state if no group node member is online. Resources on unrestricted groups may run on any cluster node if all group members are offline, but they will migrate back as soon as a group member comes online. One can implement a ‘preferred node’ behavior using an unrestricted group with only one member.
type: Option<PveClusterHaTypeEnum>Group type.
Implementations§
Source§impl ClusterHaCreateGroupsRequest
impl ClusterHaCreateGroupsRequest
pub fn new(group: String, nodes: String) -> ClusterHaCreateGroupsRequest
Trait Implementations§
Source§impl Clone for ClusterHaCreateGroupsRequest
impl Clone for ClusterHaCreateGroupsRequest
Source§fn clone(&self) -> ClusterHaCreateGroupsRequest
fn clone(&self) -> ClusterHaCreateGroupsRequest
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 ClusterHaCreateGroupsRequest
impl Debug for ClusterHaCreateGroupsRequest
Source§impl Default for ClusterHaCreateGroupsRequest
impl Default for ClusterHaCreateGroupsRequest
Source§fn default() -> ClusterHaCreateGroupsRequest
fn default() -> ClusterHaCreateGroupsRequest
Source§impl<'de> Deserialize<'de> for ClusterHaCreateGroupsRequest
impl<'de> Deserialize<'de> for ClusterHaCreateGroupsRequest
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 ClusterHaCreateGroupsRequest
impl PartialEq for ClusterHaCreateGroupsRequest
Source§fn eq(&self, other: &ClusterHaCreateGroupsRequest) -> bool
fn eq(&self, other: &ClusterHaCreateGroupsRequest) -> bool
self and other values to be equal, and is used by ==.