pub struct PostParams {
pub comment: Option<String>,
pub group: String,
pub nodes: String,
pub nofailback: Option<bool>,
pub restricted: Option<bool>,
pub ty: Option<Type>,
pub additional_properties: HashMap<String, Value>,
}
Fields§
§comment: Option<String>
Description.
group: String
The HA group identifier.
nodes: String
List of cluster node names with optional priority. List of cluster node members, where a priority can be given to each node. A resource bound to a group will run on the available nodes with the highest priority. If there are more nodes in the highest priority class, the services will get distributed to those nodes. The priorities have a relative meaning only.
nofailback: Option<bool>
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<bool>
Resources bound to restricted groups may only run on nodes defined by the group. 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.
ty: Option<Type>
Group type.
additional_properties: HashMap<String, Value>
Implementations§
Trait Implementations§
Source§impl Clone for PostParams
impl Clone for PostParams
Source§fn clone(&self) -> PostParams
fn clone(&self) -> PostParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more