| 
    pacemaker
    2.1.0-7c3f660
    
   Scalable High-Availability cluster resource manager 
   | 
 
#include <stdbool.h>#include <glib.h>#include <crm/lrmd.h>#include <crm/cib.h>#include <crm/pengine/pe_types.h>#include <crm/pengine/internal.h>#include <pcmki/pcmki_scheduler.h>

Go to the source code of this file.
Macros | |
| #define | LOAD_STOPPED "load_stopped" | 
Enumerations | |
| enum | filter_colocation_res { influence_nothing = 0, influence_rsc_location, influence_rsc_priority } | 
Functions | |
| pcmk__colocation_t * | invert_constraint (pcmk__colocation_t *constraint) | 
| pe__location_t * | copy_constraint (pe__location_t *constraint) | 
| pe__location_t * | rsc2node_new (const char *id, pe_resource_t *rsc, int weight, const char *discovery_mode, pe_node_t *node, pe_working_set_t *data_set) | 
| void | pcmk__new_colocation (const char *id, const char *node_attr, int score, pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, const char *state_lh, const char *state_rh, bool influence, pe_working_set_t *data_set) | 
| gboolean | rsc_ticket_new (const char *id, pe_resource_t *rsc_lh, pe_ticket_t *ticket, const char *state_lh, const char *loss_policy, pe_working_set_t *data_set) | 
| GHashTable * | pcmk__copy_node_table (GHashTable *nodes) | 
| GList * | pcmk__copy_node_list (const GList *list, bool reset) | 
| GList * | sort_nodes_by_weight (GList *nodes, pe_node_t *active_node, pe_working_set_t *data_set) | 
| gboolean | can_run_resources (const pe_node_t *node) | 
| gboolean | native_assign_node (pe_resource_t *rsc, pe_node_t *chosen, gboolean force) | 
| void | native_deallocate (pe_resource_t *rsc) | 
| void | log_action (unsigned int log_level, const char *pre_text, pe_action_t *action, gboolean details) | 
| gboolean | can_run_any (GHashTable *nodes) | 
| pe_resource_t * | find_compatible_child (pe_resource_t *local_child, pe_resource_t *rsc, enum rsc_role_e filter, gboolean current, pe_working_set_t *data_set) | 
| 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) | 
| gboolean | is_child_compatible (pe_resource_t *child_rsc, pe_node_t *local_node, enum rsc_role_e filter, gboolean current) | 
| bool | assign_node (pe_resource_t *rsc, pe_node_t *node, gboolean force) | 
| enum pe_action_flags | summary_action_flags (pe_action_t *action, GList *children, pe_node_t *node) | 
| enum action_tasks | clone_child_action (pe_action_t *action) | 
| int | copies_per_node (pe_resource_t *rsc) | 
| enum filter_colocation_res | filter_colocation_constraint (pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, pcmk__colocation_t *constraint, gboolean preview) | 
| int | compare_capacity (const pe_node_t *node1, const pe_node_t *node2) | 
| void | calculate_utilization (GHashTable *current_utilization, GHashTable *utilization, gboolean plus) | 
| void | process_utilization (pe_resource_t *rsc, pe_node_t **prefer, pe_working_set_t *data_set) | 
| pe_action_t * | create_pseudo_resource_op (pe_resource_t *rsc, const char *task, bool optional, bool runnable, pe_working_set_t *data_set) | 
| pe_action_t * | pe_cancel_op (pe_resource_t *rsc, const char *name, guint interval_ms, pe_node_t *node, pe_working_set_t *data_set) | 
| pe_action_t * | sched_shutdown_op (pe_node_t *node, pe_working_set_t *data_set) | 
| xmlNode * | pcmk__create_history_xml (xmlNode *parent, lrmd_event_data_t *event, const char *caller_version, int target_rc, const char *node, const char *origin, int level) | 
| void | modify_configuration (pe_working_set_t *data_set, cib_t *cib, const char *quorum, const char *watchdog, GList *node_up, GList *node_down, GList *node_fail, GList *op_inject, GList *ticket_grant, GList *ticket_revoke, GList *ticket_standby, GList *ticket_activate) | 
| int | run_simulation (pe_working_set_t *data_set, cib_t *cib, GList *op_fail_list) | 
| pcmk__output_t * | pcmk__new_logger (void) | 
| #define LOAD_STOPPED "load_stopped" | 
Definition at line 91 of file pcmki_sched_utils.h.
| Enumerator | |
|---|---|
| influence_nothing | |
| influence_rsc_location | |
| influence_rsc_priority | |
Definition at line 65 of file pcmki_sched_utils.h.
| bool assign_node | ( | pe_resource_t * | rsc, | 
| pe_node_t * | node, | ||
| gboolean | force | ||
| ) | 
Definition at line 1023 of file pcmk_sched_clone.c.
| void calculate_utilization | ( | GHashTable * | current_utilization, | 
| GHashTable * | utilization, | ||
| gboolean | plus | ||
| ) | 
Definition at line 128 of file pcmk_sched_utilization.c.
| gboolean can_run_any | ( | GHashTable * | nodes | ) | 
Definition at line 455 of file pcmk_sched_utils.c.
| gboolean can_run_resources | ( | const pe_node_t * | node | ) | 
Definition at line 65 of file pcmk_sched_utils.c.
| enum action_tasks clone_child_action | ( | pe_action_t * | action | ) | 
Definition at line 1219 of file pcmk_sched_clone.c.
Definition at line 87 of file pcmk_sched_utilization.c.
| int copies_per_node | ( | pe_resource_t * | rsc | ) | 
Definition at line 442 of file pcmk_sched_bundle.c.
| pe__location_t* copy_constraint | ( | pe__location_t * | constraint | ) | 
| pe_action_t* create_pseudo_resource_op | ( | pe_resource_t * | rsc, | 
| const char * | task, | ||
| bool | optional, | ||
| bool | runnable, | ||
| pe_working_set_t * | data_set | ||
| ) | 
Definition at line 475 of file pcmk_sched_utils.c.
| enum filter_colocation_res filter_colocation_constraint | ( | pe_resource_t * | rsc_lh, | 
| pe_resource_t * | rsc_rh, | ||
| pcmk__colocation_t * | constraint, | ||
| gboolean | preview | ||
| ) | 
Definition at line 1737 of file pcmk_sched_native.c.
| pe_resource_t* find_compatible_child | ( | pe_resource_t * | local_child, | 
| pe_resource_t * | rsc, | ||
| enum rsc_role_e | filter, | ||
| gboolean | current, | ||
| pe_working_set_t * | data_set | ||
| ) | 
Definition at line 1077 of file pcmk_sched_clone.c.
| 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 593 of file pcmk_sched_bundle.c.
| pcmk__colocation_t* invert_constraint | ( | pcmk__colocation_t * | constraint | ) | 
| gboolean is_child_compatible | ( | pe_resource_t * | child_rsc, | 
| pe_node_t * | local_node, | ||
| enum rsc_role_e | filter, | ||
| gboolean | current | ||
| ) | 
Definition at line 1047 of file pcmk_sched_clone.c.
| void log_action | ( | unsigned int | log_level, | 
| const char * | pre_text, | ||
| pe_action_t * | action, | ||
| gboolean | details | ||
| ) | 
Definition at line 357 of file pcmk_sched_utils.c.
| void modify_configuration | ( | pe_working_set_t * | data_set, | 
| cib_t * | cib, | ||
| const char * | quorum, | ||
| const char * | watchdog, | ||
| GList * | node_up, | ||
| GList * | node_down, | ||
| GList * | node_fail, | ||
| GList * | op_inject, | ||
| GList * | ticket_grant, | ||
| GList * | ticket_revoke, | ||
| GList * | ticket_standby, | ||
| GList * | ticket_activate | ||
| ) | 
Definition at line 392 of file pcmk_sched_transition.c.
| gboolean native_assign_node | ( | pe_resource_t * | rsc, | 
| pe_node_t * | chosen, | ||
| gboolean | force | ||
| ) | 
Definition at line 271 of file pcmk_sched_utils.c.
| void native_deallocate | ( | pe_resource_t * | rsc | ) | 
Definition at line 253 of file pcmk_sched_utils.c.
| GList* pcmk__copy_node_list | ( | const GList * | list, | 
| bool | reset | ||
| ) | 
Definition at line 126 of file pcmk_sched_utils.c.
| GHashTable* pcmk__copy_node_table | ( | GHashTable * | nodes | ) | 
Definition at line 96 of file pcmk_sched_utils.c.
| xmlNode* pcmk__create_history_xml | ( | xmlNode * | parent, | 
| lrmd_event_data_t * | event, | ||
| const char * | caller_version, | ||
| int | target_rc, | ||
| const char * | node, | ||
| const char * | origin, | ||
| int | level | ||
| ) | 
Definition at line 609 of file pcmk_sched_utils.c.
| void pcmk__new_colocation | ( | const char * | id, | 
| const char * | node_attr, | ||
| int | score, | ||
| pe_resource_t * | rsc_lh, | ||
| pe_resource_t * | rsc_rh, | ||
| const char * | state_lh, | ||
| const char * | state_rh, | ||
| bool | influence, | ||
| pe_working_set_t * | data_set | ||
| ) | 
Definition at line 1348 of file pcmk_sched_constraints.c.
| pcmk__output_t* pcmk__new_logger | ( | void | ) | 
Definition at line 771 of file pcmk_sched_utils.c.
| pe_action_t* pe_cancel_op | ( | pe_resource_t * | rsc, | 
| const char * | name, | ||
| guint | interval_ms, | ||
| pe_node_t * | node, | ||
| pe_working_set_t * | data_set | ||
| ) | 
Definition at line 500 of file pcmk_sched_utils.c.
| void process_utilization | ( | pe_resource_t * | rsc, | 
| pe_node_t ** | prefer, | ||
| pe_working_set_t * | data_set | ||
| ) | 
Definition at line 346 of file pcmk_sched_utilization.c.
| pe__location_t* rsc2node_new | ( | const char * | id, | 
| pe_resource_t * | rsc, | ||
| int | weight, | ||
| const char * | discovery_mode, | ||
| pe_node_t * | node, | ||
| pe_working_set_t * | data_set | ||
| ) | 
Definition at line 17 of file pcmk_sched_utils.c.
| gboolean rsc_ticket_new | ( | const char * | id, | 
| pe_resource_t * | rsc_lh, | ||
| pe_ticket_t * | ticket, | ||
| const char * | state_lh, | ||
| const char * | loss_policy, | ||
| pe_working_set_t * | data_set | ||
| ) | 
Definition at line 2784 of file pcmk_sched_constraints.c.
| int run_simulation | ( | pe_working_set_t * | data_set, | 
| cib_t * | cib, | ||
| GList * | op_fail_list | ||
| ) | 
Definition at line 798 of file pcmk_sched_transition.c.
| pe_action_t* sched_shutdown_op | ( | pe_node_t * | node, | 
| pe_working_set_t * | data_set | ||
| ) | 
Definition at line 535 of file pcmk_sched_utils.c.
| GList* sort_nodes_by_weight | ( | GList * | nodes, | 
| pe_node_t * | active_node, | ||
| pe_working_set_t * | data_set | ||
| ) | 
Definition at line 244 of file pcmk_sched_utils.c.
| enum pe_action_flags summary_action_flags | ( | pe_action_t * | action, | 
| GList * | children, | ||
| pe_node_t * | node | ||
| ) | 
Definition at line 1263 of file pcmk_sched_clone.c.
 1.8.5