pacemaker  2.1.3-ea053b43a
Scalable High-Availability cluster resource manager
Macros | Functions
pcmk_sched_bundle.c File Reference
#include <crm_internal.h>
#include <stdbool.h>
#include <crm/msg_xml.h>
#include <pacemaker-internal.h>
#include "libpacemaker_private.h"
#include <lib/pengine/variant.h>
Include dependency graph for pcmk_sched_bundle.c:

Go to the source code of this file.

Macros

#define PE__VARIANT_BUNDLE   1
 

Functions

gint sort_clone_instance (gconstpointer a, gconstpointer b, gpointer data_set)
 
void distribute_children (pe_resource_t *rsc, GList *children, GList *nodes, int max, int per_host_max, pe_working_set_t *data_set)
 
pe_node_tpcmk__bundle_allocate (pe_resource_t *rsc, pe_node_t *prefer, pe_working_set_t *data_set)
 
void pcmk__bundle_create_actions (pe_resource_t *rsc, 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)
 
int copies_per_node (pe_resource_t *rsc)
 
void pcmk__bundle_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 pcmk__bundle_action_flags (pe_action_t *action, pe_node_t *node)
 
pe_resource_tfind_compatible_child_by_node (pe_resource_t *local_child, pe_node_t *local_node, pe_resource_t *rsc, enum rsc_role_e filter, gboolean current)
 
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__bundle_rsc_location (pe_resource_t *rsc, pe__location_t *constraint)
 
void pcmk__bundle_expand (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_append_meta (pe_resource_t *rsc, xmlNode *xml)
 
void pcmk__output_bundle_actions (pe_resource_t *rsc)
 
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)
 

Macro Definition Documentation

◆ PE__VARIANT_BUNDLE

#define PE__VARIANT_BUNDLE   1

Definition at line 19 of file pcmk_sched_bundle.c.

Function Documentation

◆ copies_per_node()

int copies_per_node ( pe_resource_t rsc)

Definition at line 423 of file pcmk_sched_bundle.c.

◆ distribute_children()

void distribute_children ( pe_resource_t rsc,
GList *  children,
GList *  nodes,
int  max,
int  per_host_max,
pe_working_set_t data_set 
)

Definition at line 575 of file pcmk_sched_clone.c.

◆ find_compatible_child_by_node()

pe_resource_t* find_compatible_child_by_node ( pe_resource_t local_child,
pe_node_t local_node,
pe_resource_t rsc,
enum rsc_role_e  filter,
gboolean  current 
)

Definition at line 581 of file pcmk_sched_bundle.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 prefer,
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__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__output_bundle_actions()

void pcmk__output_bundle_actions ( pe_resource_t rsc)

Definition at line 1069 of file pcmk_sched_bundle.c.

◆ sort_clone_instance()

gint sort_clone_instance ( gconstpointer  a,
gconstpointer  b,
gpointer  data_set 
)

Definition at line 253 of file pcmk_sched_clone.c.