pacemaker  2.1.3-ea053b43a
Scalable High-Availability cluster resource manager
Data Structures | Functions
pcmki_sched_allocate.h File Reference
#include <glib.h>
#include <crm/common/xml.h>
#include <crm/pengine/status.h>
#include <crm/pengine/complex.h>
#include <crm/common/xml_internal.h>
#include <crm/pengine/internal.h>
#include <pcmki/pcmki_scheduler.h>
Include dependency graph for pcmki_sched_allocate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  resource_alloc_functions_s
 

Functions

GHashTable * pcmk__native_merge_weights (pe_resource_t *rsc, const char *rhs, GHashTable *nodes, const char *attr, float factor, uint32_t flags)
 
GHashTable * pcmk__group_merge_weights (pe_resource_t *rsc, const char *rhs, GHashTable *nodes, const char *attr, float factor, uint32_t flags)
 
pe_node_tpcmk__native_allocate (pe_resource_t *rsc, pe_node_t *preferred, pe_working_set_t *data_set)
 
void native_create_actions (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void native_internal_constraints (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void native_rsc_colocation_lh (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
void native_rsc_colocation_rh (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
enum pe_action_flags native_action_flags (pe_action_t *action, pe_node_t *node)
 
void native_rsc_location (pe_resource_t *rsc, pe__location_t *constraint)
 
void native_expand (pe_resource_t *rsc, pe_working_set_t *data_set)
 
gboolean native_create_probe (pe_resource_t *rsc, pe_node_t *node, pe_action_t *complete, gboolean force, pe_working_set_t *data_set)
 
void native_append_meta (pe_resource_t *rsc, xmlNode *xml)
 
void pcmk__primitive_add_utilization (pe_resource_t *rsc, pe_resource_t *orig_rsc, GList *all_rscs, GHashTable *utilization)
 
void pcmk__primitive_shutdown_lock (pe_resource_t *rsc)
 
pe_node_tpcmk__group_allocate (pe_resource_t *rsc, pe_node_t *preferred, pe_working_set_t *data_set)
 
void group_create_actions (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void group_internal_constraints (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void group_rsc_colocation_lh (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
void group_rsc_colocation_rh (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
enum pe_action_flags group_action_flags (pe_action_t *action, pe_node_t *node)
 
void group_rsc_location (pe_resource_t *rsc, pe__location_t *constraint)
 
void group_expand (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void group_append_meta (pe_resource_t *rsc, xmlNode *xml)
 
void pcmk__group_add_utilization (pe_resource_t *rsc, pe_resource_t *orig_rsc, GList *all_rscs, GHashTable *utilization)
 
void pcmk__group_shutdown_lock (pe_resource_t *rsc)
 
pe_node_tpcmk__bundle_allocate (pe_resource_t *rsc, pe_node_t *preferred, pe_working_set_t *data_set)
 
void pcmk__bundle_create_actions (pe_resource_t *rsc, pe_working_set_t *data_set)
 
gboolean pcmk__bundle_create_probe (pe_resource_t *rsc, pe_node_t *node, pe_action_t *complete, gboolean force, pe_working_set_t *data_set)
 
void pcmk__bundle_internal_constraints (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void pcmk__bundle_rsc_colocation_lh (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
void pcmk__bundle_rsc_colocation_rh (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
void pcmk__bundle_rsc_location (pe_resource_t *rsc, pe__location_t *constraint)
 
enum pe_action_flags pcmk__bundle_action_flags (pe_action_t *action, pe_node_t *node)
 
void pcmk__bundle_expand (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void pcmk__bundle_append_meta (pe_resource_t *rsc, xmlNode *xml)
 
void pcmk__bundle_add_utilization (pe_resource_t *rsc, pe_resource_t *orig_rsc, GList *all_rscs, GHashTable *utilization)
 
void pcmk__bundle_shutdown_lock (pe_resource_t *rsc)
 
pe_node_tpcmk__clone_allocate (pe_resource_t *rsc, pe_node_t *preferred, pe_working_set_t *data_set)
 
void clone_create_actions (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void clone_internal_constraints (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void clone_rsc_colocation_lh (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
void clone_rsc_colocation_rh (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
void clone_rsc_location (pe_resource_t *rsc, pe__location_t *constraint)
 
enum pe_action_flags clone_action_flags (pe_action_t *action, pe_node_t *node)
 
void clone_expand (pe_resource_t *rsc, pe_working_set_t *data_set)
 
gboolean clone_create_probe (pe_resource_t *rsc, pe_node_t *node, pe_action_t *complete, gboolean force, pe_working_set_t *data_set)
 
void clone_append_meta (pe_resource_t *rsc, xmlNode *xml)
 
void pcmk__clone_add_utilization (pe_resource_t *rsc, pe_resource_t *orig_rsc, GList *all_rscs, GHashTable *utilization)
 
void pcmk__clone_shutdown_lock (pe_resource_t *rsc)
 
void pcmk__add_promotion_scores (pe_resource_t *rsc)
 
pe_node_tpcmk__set_instance_roles (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void create_promotable_actions (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void promote_demote_constraints (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void promotable_constraints (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void promotable_colocation_rh (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
enum pe_graph_flags native_update_actions (pe_action_t *first, pe_action_t *then, pe_node_t *node, enum pe_action_flags flags, enum pe_action_flags filter, enum pe_ordering type, pe_working_set_t *data_set)
 
enum pe_graph_flags group_update_actions (pe_action_t *first, pe_action_t *then, pe_node_t *node, enum pe_action_flags flags, enum pe_action_flags filter, enum pe_ordering type, pe_working_set_t *data_set)
 
enum pe_graph_flags pcmk__multi_update_actions (pe_action_t *first, pe_action_t *then, pe_node_t *node, enum pe_action_flags flags, enum pe_action_flags filter, enum pe_ordering type, pe_working_set_t *data_set)
 
void pcmk__log_transition_summary (const char *filename)
 
void clone_create_pseudo_actions (pe_resource_t *rsc, GList *children, notify_data_t **start_notify, notify_data_t **stop_notify, pe_working_set_t *data_set)
 

Function Documentation

◆ clone_action_flags()

enum pe_action_flags clone_action_flags ( pe_action_t action,
pe_node_t node 
)

Definition at line 1282 of file pcmk_sched_clone.c.

◆ clone_append_meta()

void clone_append_meta ( pe_resource_t rsc,
xmlNode *  xml 
)

Definition at line 1476 of file pcmk_sched_clone.c.

◆ clone_create_actions()

void clone_create_actions ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 872 of file pcmk_sched_clone.c.

◆ clone_create_probe()

gboolean clone_create_probe ( pe_resource_t rsc,
pe_node_t node,
pe_action_t complete,
gboolean  force,
pe_working_set_t data_set 
)

Definition at line 1436 of file pcmk_sched_clone.c.

◆ clone_create_pseudo_actions()

void clone_create_pseudo_actions ( pe_resource_t rsc,
GList *  children,
notify_data_t **  start_notify,
notify_data_t **  stop_notify,
pe_working_set_t data_set 
)

Definition at line 885 of file pcmk_sched_clone.c.

◆ clone_expand()

void clone_expand ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1304 of file pcmk_sched_clone.c.

◆ clone_internal_constraints()

void clone_internal_constraints ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 951 of file pcmk_sched_clone.c.

◆ clone_rsc_colocation_lh()

void clone_rsc_colocation_lh ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1073 of file pcmk_sched_clone.c.

◆ clone_rsc_colocation_rh()

void clone_rsc_colocation_rh ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1085 of file pcmk_sched_clone.c.

◆ clone_rsc_location()

void clone_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 1288 of file pcmk_sched_clone.c.

◆ create_promotable_actions()

void create_promotable_actions ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 816 of file pcmk_sched_promotable.c.

◆ group_action_flags()

enum pe_action_flags group_action_flags ( pe_action_t action,
pe_node_t node 
)

Definition at line 450 of file pcmk_sched_group.c.

◆ group_append_meta()

void group_append_meta ( pe_resource_t rsc,
xmlNode *  xml 
)

Definition at line 600 of file pcmk_sched_group.c.

◆ group_create_actions()

void group_create_actions ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 142 of file pcmk_sched_group.c.

◆ group_expand()

void group_expand ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 550 of file pcmk_sched_group.c.

◆ group_internal_constraints()

void group_internal_constraints ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 225 of file pcmk_sched_group.c.

◆ group_rsc_colocation_lh()

void group_rsc_colocation_lh ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 359 of file pcmk_sched_group.c.

◆ group_rsc_colocation_rh()

void group_rsc_colocation_rh ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 402 of file pcmk_sched_group.c.

◆ group_rsc_location()

void group_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 521 of file pcmk_sched_group.c.

◆ group_update_actions()

enum pe_graph_flags group_update_actions ( pe_action_t first,
pe_action_t then,
pe_node_t node,
enum pe_action_flags  flags,
enum pe_action_flags  filter,
enum pe_ordering  type,
pe_working_set_t data_set 
)

Definition at line 495 of file pcmk_sched_group.c.

◆ native_action_flags()

enum pe_action_flags native_action_flags ( pe_action_t action,
pe_node_t node 
)

Definition at line 1743 of file pcmk_sched_native.c.

◆ native_append_meta()

void native_append_meta ( pe_resource_t rsc,
xmlNode *  xml 
)

Definition at line 2492 of file pcmk_sched_native.c.

◆ native_create_actions()

void native_create_actions ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1245 of file pcmk_sched_native.c.

◆ native_create_probe()

gboolean native_create_probe ( pe_resource_t rsc,
pe_node_t node,
pe_action_t complete,
gboolean  force,
pe_working_set_t data_set 
)

Definition at line 2276 of file pcmk_sched_native.c.

◆ native_expand()

void native_expand ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1992 of file pcmk_sched_native.c.

◆ native_internal_constraints()

void native_internal_constraints ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1506 of file pcmk_sched_native.c.

◆ native_rsc_colocation_lh()

void native_rsc_colocation_lh ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1694 of file pcmk_sched_native.c.

◆ native_rsc_colocation_rh()

void native_rsc_colocation_rh ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1715 of file pcmk_sched_native.c.

◆ native_rsc_location()

void native_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 1986 of file pcmk_sched_native.c.

◆ native_update_actions()

enum pe_graph_flags native_update_actions ( pe_action_t first,
pe_action_t then,
pe_node_t node,
enum pe_action_flags  flags,
enum pe_action_flags  filter,
enum pe_ordering  type,
pe_working_set_t data_set 
)

Definition at line 1844 of file pcmk_sched_native.c.

◆ pcmk__add_promotion_scores()

void pcmk__add_promotion_scores ( pe_resource_t rsc)

Definition at line 577 of file pcmk_sched_promotable.c.

◆ pcmk__bundle_action_flags()

enum pe_action_flags pcmk__bundle_action_flags ( pe_action_t action,
pe_node_t node 
)

Definition at line 551 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_add_utilization()

void pcmk__bundle_add_utilization ( pe_resource_t rsc,
pe_resource_t orig_rsc,
GList *  all_rscs,
GHashTable *  utilization 
)

Definition at line 1098 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_allocate()

pe_node_t* pcmk__bundle_allocate ( pe_resource_t rsc,
pe_node_t preferred,
pe_working_set_t data_set 
)

Definition at line 66 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_append_meta()

void pcmk__bundle_append_meta ( pe_resource_t rsc,
xmlNode *  xml 
)

Definition at line 1064 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_create_actions()

void pcmk__bundle_create_actions ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 169 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_create_probe()

gboolean pcmk__bundle_create_probe ( pe_resource_t rsc,
pe_node_t node,
pe_action_t complete,
gboolean  force,
pe_working_set_t data_set 
)

Definition at line 970 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_expand()

void pcmk__bundle_expand ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 896 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_internal_constraints()

void pcmk__bundle_internal_constraints ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 218 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_rsc_colocation_lh()

void pcmk__bundle_rsc_colocation_lh ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 412 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_rsc_colocation_rh()

void pcmk__bundle_rsc_colocation_rh ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 465 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_rsc_location()

void pcmk__bundle_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 866 of file pcmk_sched_bundle.c.

◆ pcmk__bundle_shutdown_lock()

void pcmk__bundle_shutdown_lock ( pe_resource_t rsc)

Definition at line 1126 of file pcmk_sched_bundle.c.

◆ pcmk__clone_add_utilization()

void pcmk__clone_add_utilization ( pe_resource_t rsc,
pe_resource_t orig_rsc,
GList *  all_rscs,
GHashTable *  utilization 
)

Definition at line 1523 of file pcmk_sched_clone.c.

◆ pcmk__clone_allocate()

pe_node_t* pcmk__clone_allocate ( pe_resource_t rsc,
pe_node_t preferred,
pe_working_set_t data_set 
)

Definition at line 680 of file pcmk_sched_clone.c.

◆ pcmk__clone_shutdown_lock()

void pcmk__clone_shutdown_lock ( pe_resource_t rsc)

Definition at line 1566 of file pcmk_sched_clone.c.

◆ pcmk__group_add_utilization()

void pcmk__group_add_utilization ( pe_resource_t rsc,
pe_resource_t orig_rsc,
GList *  all_rscs,
GHashTable *  utilization 
)

Definition at line 647 of file pcmk_sched_group.c.

◆ pcmk__group_allocate()

pe_node_t* pcmk__group_allocate ( pe_resource_t rsc,
pe_node_t preferred,
pe_working_set_t data_set 
)

Definition at line 85 of file pcmk_sched_group.c.

◆ pcmk__group_merge_weights()

GHashTable* pcmk__group_merge_weights ( pe_resource_t rsc,
const char *  rhs,
GHashTable *  nodes,
const char *  attr,
float  factor,
uint32_t  flags 
)

Definition at line 565 of file pcmk_sched_group.c.

◆ pcmk__group_shutdown_lock()

void pcmk__group_shutdown_lock ( pe_resource_t rsc)

Definition at line 687 of file pcmk_sched_group.c.

◆ pcmk__log_transition_summary()

void pcmk__log_transition_summary ( const char *  filename)

Definition at line 966 of file pcmk_graph_producer.c.

◆ pcmk__multi_update_actions()

enum pe_graph_flags pcmk__multi_update_actions ( pe_action_t first,
pe_action_t then,
pe_node_t node,
enum pe_action_flags  flags,
enum pe_action_flags  filter,
enum pe_ordering  type,
pe_working_set_t data_set 
)

Definition at line 811 of file pcmk_sched_bundle.c.

◆ pcmk__native_allocate()

pe_node_t* pcmk__native_allocate ( pe_resource_t rsc,
pe_node_t preferred,
pe_working_set_t data_set 
)

Definition at line 493 of file pcmk_sched_native.c.

◆ pcmk__native_merge_weights()

GHashTable* pcmk__native_merge_weights ( pe_resource_t rsc,
const char *  rhs,
GHashTable *  nodes,
const char *  attr,
float  factor,
uint32_t  flags 
)

Definition at line 362 of file pcmk_sched_native.c.

◆ pcmk__primitive_add_utilization()

void pcmk__primitive_add_utilization ( pe_resource_t rsc,
pe_resource_t orig_rsc,
GList *  all_rscs,
GHashTable *  utilization 
)

Definition at line 2523 of file pcmk_sched_native.c.

◆ pcmk__primitive_shutdown_lock()

void pcmk__primitive_shutdown_lock ( pe_resource_t rsc)

Definition at line 2562 of file pcmk_sched_native.c.

◆ pcmk__set_instance_roles()

pe_node_t* pcmk__set_instance_roles ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 663 of file pcmk_sched_promotable.c.

◆ promotable_colocation_rh()

void promotable_colocation_rh ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 993 of file pcmk_sched_promotable.c.

◆ promotable_constraints()

void promotable_constraints ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 939 of file pcmk_sched_promotable.c.

◆ promote_demote_constraints()

void promote_demote_constraints ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 906 of file pcmk_sched_promotable.c.