pacemaker  2.1.0-7c3f660
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
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/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 *lh_rsc, pe_resource_t *rh_rsc, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
void native_rsc_colocation_rh (pe_resource_t *lh_rsc, pe_resource_t *rh_rsc, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
void rsc_ticket_constraint (pe_resource_t *lh_rsc, rsc_ticket_t *rsc_ticket, 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)
 
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 *lh_rsc, pe_resource_t *rh_rsc, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
void group_rsc_colocation_rh (pe_resource_t *lh_rsc, pe_resource_t *rh_rsc, 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)
 
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 *lh_rsc, pe_resource_t *rh_rsc, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
void pcmk__bundle_rsc_colocation_rh (pe_resource_t *lh_rsc, pe_resource_t *rh_rsc, 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)
 
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 *lh_rsc, pe_resource_t *rh_rsc, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
void clone_rsc_colocation_rh (pe_resource_t *lh_rsc, pe_resource_t *rh_rsc, 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__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 *lh_rsc, pe_resource_t *rh_rsc, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
gboolean unpack_rsc_order (xmlNode *xml_obj, pe_working_set_t *data_set)
 
gboolean unpack_rsc_ticket (xmlNode *xml_obj, pe_working_set_t *data_set)
 
void LogNodeActions (pe_working_set_t *data_set)
 
void LogActions (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void pcmk__bundle_log_actions (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void rsc_stonith_ordering (pe_resource_t *rsc, pe_action_t *stonith_op, 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)
 
gboolean update_action_flags (pe_action_t *action, enum pe_action_flags flags, const char *source, int line)
 
gboolean update_action (pe_action_t *action, pe_working_set_t *data_set)
 
void complex_set_cmds (pe_resource_t *rsc)
 
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)
 

Variables

resource_alloc_functions_t resource_class_alloc_functions []
 

Function Documentation

enum pe_action_flags clone_action_flags ( pe_action_t action,
pe_node_t node 
)

Definition at line 1307 of file pcmk_sched_clone.c.

void clone_append_meta ( pe_resource_t rsc,
xmlNode *  xml 
)

Definition at line 1525 of file pcmk_sched_clone.c.

void clone_create_actions ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 898 of file pcmk_sched_clone.c.

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 1485 of file pcmk_sched_clone.c.

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 911 of file pcmk_sched_clone.c.

void clone_expand ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1329 of file pcmk_sched_clone.c.

void clone_internal_constraints ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 974 of file pcmk_sched_clone.c.

void clone_rsc_colocation_lh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1111 of file pcmk_sched_clone.c.

void clone_rsc_colocation_rh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1123 of file pcmk_sched_clone.c.

void clone_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 1313 of file pcmk_sched_clone.c.

void complex_set_cmds ( pe_resource_t rsc)

Definition at line 759 of file pcmk_sched_allocate.c.

void create_promotable_actions ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 812 of file pcmk_sched_promotable.c.

enum pe_action_flags group_action_flags ( pe_action_t action,
pe_node_t node 
)

Definition at line 381 of file pcmk_sched_group.c.

void group_append_meta ( pe_resource_t rsc,
xmlNode *  xml 
)

Definition at line 530 of file pcmk_sched_group.c.

void group_create_actions ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 85 of file pcmk_sched_group.c.

void group_expand ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 481 of file pcmk_sched_group.c.

void group_internal_constraints ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 168 of file pcmk_sched_group.c.

void group_rsc_colocation_lh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 290 of file pcmk_sched_group.c.

void group_rsc_colocation_rh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 333 of file pcmk_sched_group.c.

void group_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 452 of file pcmk_sched_group.c.

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 426 of file pcmk_sched_group.c.

void LogActions ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 2382 of file pcmk_sched_native.c.

void LogNodeActions ( pe_working_set_t data_set)

Definition at line 3058 of file pcmk_sched_allocate.c.

enum pe_action_flags native_action_flags ( pe_action_t action,
pe_node_t node 
)

Definition at line 2054 of file pcmk_sched_native.c.

void native_append_meta ( pe_resource_t rsc,
xmlNode *  xml 
)

Definition at line 3196 of file pcmk_sched_native.c.

void native_create_actions ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1212 of file pcmk_sched_native.c.

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 2640 of file pcmk_sched_native.c.

void native_expand ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 2346 of file pcmk_sched_native.c.

void native_internal_constraints ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1487 of file pcmk_sched_native.c.

void native_rsc_colocation_lh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1717 of file pcmk_sched_native.c.

void native_rsc_colocation_rh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1923 of file pcmk_sched_native.c.

void native_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 2289 of file pcmk_sched_native.c.

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 2133 of file pcmk_sched_native.c.

void pcmk__add_promotion_scores ( pe_resource_t rsc)

Definition at line 567 of file pcmk_sched_promotable.c.

enum pe_action_flags pcmk__bundle_action_flags ( pe_action_t action,
pe_node_t node 
)

Definition at line 563 of file pcmk_sched_bundle.c.

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

Definition at line 103 of file pcmk_sched_bundle.c.

void pcmk__bundle_append_meta ( pe_resource_t rsc,
xmlNode *  xml 
)

Definition at line 1073 of file pcmk_sched_bundle.c.

void pcmk__bundle_create_actions ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 206 of file pcmk_sched_bundle.c.

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 979 of file pcmk_sched_bundle.c.

void pcmk__bundle_expand ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 906 of file pcmk_sched_bundle.c.

void pcmk__bundle_internal_constraints ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 255 of file pcmk_sched_bundle.c.

void pcmk__bundle_log_actions ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1078 of file pcmk_sched_bundle.c.

void pcmk__bundle_rsc_colocation_lh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 431 of file pcmk_sched_bundle.c.

void pcmk__bundle_rsc_colocation_rh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 484 of file pcmk_sched_bundle.c.

void pcmk__bundle_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 876 of file pcmk_sched_bundle.c.

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

Definition at line 678 of file pcmk_sched_clone.c.

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

Definition at line 22 of file pcmk_sched_group.c.

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 496 of file pcmk_sched_group.c.

void pcmk__log_transition_summary ( const char *  filename)

Definition at line 2918 of file pcmk_sched_allocate.c.

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 823 of file pcmk_sched_bundle.c.

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

Definition at line 506 of file pcmk_sched_native.c.

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 361 of file pcmk_sched_native.c.

pe_node_t* pcmk__set_instance_roles ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 659 of file pcmk_sched_promotable.c.

void promotable_colocation_rh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 974 of file pcmk_sched_promotable.c.

void promotable_constraints ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 921 of file pcmk_sched_promotable.c.

void promote_demote_constraints ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 895 of file pcmk_sched_promotable.c.

void rsc_stonith_ordering ( pe_resource_t rsc,
pe_action_t stonith_op,
pe_working_set_t data_set 
)

Definition at line 3116 of file pcmk_sched_native.c.

void rsc_ticket_constraint ( pe_resource_t lh_rsc,
rsc_ticket_t rsc_ticket,
pe_working_set_t data_set 
)

Definition at line 1962 of file pcmk_sched_native.c.

gboolean unpack_rsc_order ( xmlNode *  xml_obj,
pe_working_set_t data_set 
)

Definition at line 2163 of file pcmk_sched_constraints.c.

gboolean unpack_rsc_ticket ( xmlNode *  xml_obj,
pe_working_set_t data_set 
)

Definition at line 3058 of file pcmk_sched_constraints.c.

gboolean update_action ( pe_action_t action,
pe_working_set_t data_set 
)

Definition at line 522 of file pcmk_sched_graph.c.

gboolean update_action_flags ( pe_action_t action,
enum pe_action_flags  flags,
const char *  source,
int  line 
)

Definition at line 122 of file pcmk_sched_allocate.c.

Variable Documentation

resource_alloc_functions_t resource_class_alloc_functions[]

Definition at line 62 of file pcmk_sched_allocate.c.