pacemaker
2.1.5-b7adf64e51
Scalable High-Availability cluster resource manager
|
#include <crm/pengine/pe_types.h>
Go to the source code of this file.
Data Structures | |
struct | resource_alloc_functions_s |
Macros | |
#define | pcmk__set_updated_flags(au_flags, action, flags_to_set) |
#define | pcmk__clear_updated_flags(au_flags, action, flags_to_clear) |
#define | pcmk__order_resource_actions(first_rsc, first_task, then_rsc, then_task, flags) |
#define | pcmk__order_starts(rsc1, rsc2, flags) |
#define | pcmk__order_stops(rsc1, rsc2, flags) |
Enumerations | |
enum | pcmk__coloc_select { pcmk__coloc_select_default = 0, pcmk__coloc_select_this_with = (1 << 0), pcmk__coloc_select_nonnegative = (1 << 1), pcmk__coloc_select_active = (1 << 2) } |
enum | pcmk__updated { pcmk__updated_none = 0, pcmk__updated_first = (1 << 0), pcmk__updated_then = (1 << 1) } |
enum | pcmk__coloc_affects { pcmk__coloc_affects_nothing = 0, pcmk__coloc_affects_location, pcmk__coloc_affects_role } |
Functions | |
G_GNUC_INTERNAL void | pcmk__update_action_for_orderings (pe_action_t *action, pe_working_set_t *data_set) |
G_GNUC_INTERNAL uint32_t | pcmk__update_ordered_actions (pe_action_t *first, pe_action_t *then, const pe_node_t *node, uint32_t flags, uint32_t filter, uint32_t type, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__log_action (const char *pre_text, pe_action_t *action, bool details) |
G_GNUC_INTERNAL pe_action_t * | pcmk__new_cancel_action (pe_resource_t *rsc, const char *name, guint interval_ms, const pe_node_t *node) |
G_GNUC_INTERNAL pe_action_t * | pcmk__new_shutdown_action (pe_node_t *node) |
G_GNUC_INTERNAL bool | pcmk__action_locks_rsc_to_node (const pe_action_t *action) |
G_GNUC_INTERNAL void | pcmk__deduplicate_action_inputs (pe_action_t *action) |
G_GNUC_INTERNAL void | pcmk__output_actions (pe_working_set_t *data_set) |
G_GNUC_INTERNAL bool | pcmk__check_action_config (pe_resource_t *rsc, pe_node_t *node, xmlNode *xml_op) |
G_GNUC_INTERNAL void | pcmk__handle_rsc_config_changes (pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__create_recurring_actions (pe_resource_t *rsc) |
G_GNUC_INTERNAL void | pcmk__schedule_cancel (pe_resource_t *rsc, const char *call_id, const char *task, guint interval_ms, const pe_node_t *node, const char *reason) |
G_GNUC_INTERNAL void | pcmk__reschedule_recurring (pe_resource_t *rsc, const char *task, guint interval_ms, pe_node_t *node) |
G_GNUC_INTERNAL bool | pcmk__action_is_recurring (const pe_action_t *action) |
G_GNUC_INTERNAL bool | pcmk__graph_has_loop (pe_action_t *init_action, pe_action_t *action, pe_action_wrapper_t *input) |
G_GNUC_INTERNAL void | pcmk__add_rsc_actions_to_graph (pe_resource_t *rsc) |
G_GNUC_INTERNAL void | pcmk__create_graph (pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__order_vs_fence (pe_action_t *stonith_op, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__order_vs_unfence (pe_resource_t *rsc, pe_node_t *node, pe_action_t *action, enum pe_ordering order) |
G_GNUC_INTERNAL void | pcmk__fence_guest (pe_node_t *node) |
G_GNUC_INTERNAL bool | pcmk__node_unfenced (pe_node_t *node) |
G_GNUC_INTERNAL void | pcmk__order_restart_vs_unfence (gpointer data, gpointer user_data) |
void | pcmk__inject_scheduler_input (pe_working_set_t *data_set, cib_t *cib, pcmk_injections_t *injections) |
G_GNUC_INTERNAL pe_resource_t * | pcmk__find_constraint_resource (GList *rsc_list, const char *id) |
G_GNUC_INTERNAL xmlNode * | pcmk__expand_tags_in_sets (xmlNode *xml_obj, pe_working_set_t *data_set) |
G_GNUC_INTERNAL bool | pcmk__valid_resource_or_tag (pe_working_set_t *data_set, const char *id, pe_resource_t **rsc, pe_tag_t **tag) |
G_GNUC_INTERNAL bool | pcmk__tag_to_set (xmlNode *xml_obj, xmlNode **rsc_set, const char *attr, bool convert_rsc, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__create_internal_constraints (pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__unpack_location (xmlNode *xml_obj, pe_working_set_t *data_set) |
G_GNUC_INTERNAL pe__location_t * | pcmk__new_location (const char *id, pe_resource_t *rsc, int node_weight, const char *discover_mode, pe_node_t *foo_node, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__apply_locations (pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__apply_location (pe_resource_t *rsc, pe__location_t *constraint) |
G_GNUC_INTERNAL enum pcmk__coloc_affects | pcmk__colocation_affects (const pe_resource_t *dependent, const pe_resource_t *primary, const pcmk__colocation_t *colocation, bool preview) |
G_GNUC_INTERNAL void | pcmk__apply_coloc_to_weights (pe_resource_t *dependent, const pe_resource_t *primary, const pcmk__colocation_t *colocation) |
G_GNUC_INTERNAL void | pcmk__apply_coloc_to_priority (pe_resource_t *dependent, const pe_resource_t *primary, const pcmk__colocation_t *colocation) |
G_GNUC_INTERNAL void | pcmk__add_colocated_node_scores (pe_resource_t *rsc, const char *log_id, GHashTable **nodes, const char *attr, float factor, uint32_t flags) |
G_GNUC_INTERNAL void | pcmk__unpack_colocation (xmlNode *xml_obj, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__add_this_with (pe_resource_t *rsc, pcmk__colocation_t *colocation) |
G_GNUC_INTERNAL void | pcmk__add_with_this (pe_resource_t *rsc, pcmk__colocation_t *colocation) |
G_GNUC_INTERNAL void | pcmk__new_colocation (const char *id, const char *node_attr, int score, pe_resource_t *dependent, pe_resource_t *primary, const char *dependent_role, const char *primary_role, bool influence, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__block_colocation_dependents (pe_action_t *action, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__new_ordering (pe_resource_t *first_rsc, char *first_task, pe_action_t *first_action, pe_resource_t *then_rsc, char *then_task, pe_action_t *then_action, uint32_t flags, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__unpack_ordering (xmlNode *xml_obj, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__disable_invalid_orderings (pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__order_stops_before_shutdown (pe_node_t *node, pe_action_t *shutdown_op) |
G_GNUC_INTERNAL void | pcmk__apply_orderings (pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__order_after_each (pe_action_t *after, GList *list) |
G_GNUC_INTERNAL void | pcmk__unpack_rsc_ticket (xmlNode *xml_obj, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__add_promotion_scores (pe_resource_t *rsc) |
G_GNUC_INTERNAL void | pcmk__require_promotion_tickets (pe_resource_t *rsc) |
G_GNUC_INTERNAL void | pcmk__set_instance_roles (pe_resource_t *rsc) |
G_GNUC_INTERNAL void | pcmk__create_promotable_actions (pe_resource_t *clone) |
G_GNUC_INTERNAL void | pcmk__promotable_restart_ordering (pe_resource_t *rsc) |
G_GNUC_INTERNAL void | pcmk__order_promotable_instances (pe_resource_t *clone) |
G_GNUC_INTERNAL void | pcmk__update_dependent_with_promotable (const pe_resource_t *primary, pe_resource_t *dependent, const pcmk__colocation_t *colocation) |
Update dependent for a colocation with a promotable clone. More... | |
G_GNUC_INTERNAL void | pcmk__update_promotable_dependent_priority (const pe_resource_t *primary, pe_resource_t *dependent, const pcmk__colocation_t *colocation) |
G_GNUC_INTERNAL bool | pcmk__is_failed_remote_node (pe_node_t *node) |
G_GNUC_INTERNAL void | pcmk__order_remote_connection_actions (pe_working_set_t *data_set) |
G_GNUC_INTERNAL bool | pcmk__rsc_corresponds_to_guest (pe_resource_t *rsc, pe_node_t *node) |
G_GNUC_INTERNAL pe_node_t * | pcmk__connection_host_for_action (pe_action_t *action) |
G_GNUC_INTERNAL void | pcmk__substitute_remote_addr (pe_resource_t *rsc, GHashTable *params) |
G_GNUC_INTERNAL void | pcmk__add_bundle_meta_to_xml (xmlNode *args_xml, pe_action_t *action) |
Add special bundle meta-attributes to XML. More... | |
G_GNUC_INTERNAL pe_node_t * | pcmk__primitive_assign (pe_resource_t *rsc, const pe_node_t *prefer) |
G_GNUC_INTERNAL void | pcmk__primitive_create_actions (pe_resource_t *rsc) |
G_GNUC_INTERNAL void | pcmk__primitive_internal_constraints (pe_resource_t *rsc) |
G_GNUC_INTERNAL enum pe_action_flags | pcmk__primitive_action_flags (pe_action_t *action, const pe_node_t *node) |
G_GNUC_INTERNAL void | pcmk__primitive_apply_coloc_score (pe_resource_t *dependent, const pe_resource_t *primary, const pcmk__colocation_t *colocation, bool for_dependent) |
G_GNUC_INTERNAL void | pcmk__schedule_cleanup (pe_resource_t *rsc, const pe_node_t *node, bool optional) |
G_GNUC_INTERNAL void | pcmk__primitive_add_graph_meta (pe_resource_t *rsc, xmlNode *xml) |
G_GNUC_INTERNAL void | pcmk__primitive_add_utilization (const pe_resource_t *rsc, const pe_resource_t *orig_rsc, GList *all_rscs, GHashTable *utilization) |
G_GNUC_INTERNAL void | pcmk__primitive_shutdown_lock (pe_resource_t *rsc) |
G_GNUC_INTERNAL pe_node_t * | pcmk__group_assign (pe_resource_t *rsc, const pe_node_t *prefer) |
G_GNUC_INTERNAL void | pcmk__group_create_actions (pe_resource_t *rsc) |
G_GNUC_INTERNAL void | pcmk__group_internal_constraints (pe_resource_t *rsc) |
G_GNUC_INTERNAL void | pcmk__group_apply_coloc_score (pe_resource_t *dependent, const pe_resource_t *primary, const pcmk__colocation_t *colocation, bool for_dependent) |
G_GNUC_INTERNAL void | pcmk__group_apply_location (pe_resource_t *rsc, pe__location_t *location) |
G_GNUC_INTERNAL enum pe_action_flags | pcmk__group_action_flags (pe_action_t *action, const pe_node_t *node) |
G_GNUC_INTERNAL uint32_t | pcmk__group_update_ordered_actions (pe_action_t *first, pe_action_t *then, const pe_node_t *node, uint32_t flags, uint32_t filter, uint32_t type, pe_working_set_t *data_set) |
G_GNUC_INTERNAL GList * | pcmk__group_colocated_resources (pe_resource_t *rsc, pe_resource_t *orig_rsc, GList *colocated_rscs) |
G_GNUC_INTERNAL void | pcmk__group_add_utilization (const pe_resource_t *rsc, const pe_resource_t *orig_rsc, GList *all_rscs, GHashTable *utilization) |
G_GNUC_INTERNAL void | pcmk__group_shutdown_lock (pe_resource_t *rsc) |
G_GNUC_INTERNAL void | pcmk__clone_apply_coloc_score (pe_resource_t *dependent, const pe_resource_t *primary, const pcmk__colocation_t *colocation, bool for_dependent) |
G_GNUC_INTERNAL void | pcmk__bundle_apply_coloc_score (pe_resource_t *dependent, const pe_resource_t *primary, const pcmk__colocation_t *colocation, bool for_dependent) |
G_GNUC_INTERNAL void | pcmk__output_bundle_actions (pe_resource_t *rsc) |
G_GNUC_INTERNAL xmlNode * | pcmk__inject_node (cib_t *cib_conn, const char *node, const char *uuid) |
G_GNUC_INTERNAL xmlNode * | pcmk__inject_node_state_change (cib_t *cib_conn, const char *node, bool up) |
G_GNUC_INTERNAL xmlNode * | pcmk__inject_resource_history (pcmk__output_t *out, xmlNode *cib_node, const char *resource, const char *lrm_name, const char *rclass, const char *rtype, const char *rprovider) |
G_GNUC_INTERNAL void | pcmk__inject_failcount (pcmk__output_t *out, xmlNode *cib_node, const char *resource, const char *task, guint interval_ms, int rc) |
G_GNUC_INTERNAL xmlNode * | pcmk__inject_action_result (xmlNode *cib_resource, lrmd_event_data_t *op, int target_rc) |
G_GNUC_INTERNAL bool | pcmk__node_available (const pe_node_t *node, bool consider_score, bool consider_guest) |
G_GNUC_INTERNAL bool | pcmk__any_node_available (GHashTable *nodes) |
G_GNUC_INTERNAL GHashTable * | pcmk__copy_node_table (GHashTable *nodes) |
G_GNUC_INTERNAL GList * | pcmk__sort_nodes (GList *nodes, pe_node_t *active_node) |
G_GNUC_INTERNAL void | pcmk__apply_node_health (pe_working_set_t *data_set) |
G_GNUC_INTERNAL pe_node_t * | pcmk__top_allowed_node (const pe_resource_t *rsc, const pe_node_t *node) |
G_GNUC_INTERNAL void | pcmk__set_allocation_methods (pe_working_set_t *data_set) |
G_GNUC_INTERNAL bool | pcmk__rsc_agent_changed (pe_resource_t *rsc, pe_node_t *node, const xmlNode *rsc_entry, bool active_on_node) |
G_GNUC_INTERNAL GList * | pcmk__rscs_matching_id (const char *id, pe_working_set_t *data_set) |
G_GNUC_INTERNAL GList * | pcmk__colocated_resources (pe_resource_t *rsc, pe_resource_t *orig_rsc, GList *colocated_rscs) |
G_GNUC_INTERNAL void | pcmk__noop_add_graph_meta (pe_resource_t *rsc, xmlNode *xml) |
G_GNUC_INTERNAL void | pcmk__output_resource_actions (pe_resource_t *rsc) |
G_GNUC_INTERNAL bool | pcmk__finalize_assignment (pe_resource_t *rsc, pe_node_t *chosen, bool force) |
G_GNUC_INTERNAL bool | pcmk__assign_resource (pe_resource_t *rsc, pe_node_t *node, bool force) |
G_GNUC_INTERNAL void | pcmk__unassign_resource (pe_resource_t *rsc) |
G_GNUC_INTERNAL bool | pcmk__threshold_reached (pe_resource_t *rsc, pe_node_t *node, pe_resource_t **failed) |
G_GNUC_INTERNAL void | pcmk__sort_resources (pe_working_set_t *data_set) |
G_GNUC_INTERNAL gint | pcmk__cmp_instance (gconstpointer a, gconstpointer b) |
G_GNUC_INTERNAL gint | pcmk__cmp_instance_number (gconstpointer a, gconstpointer b) |
G_GNUC_INTERNAL bool | pcmk__probe_rsc_on_node (pe_resource_t *rsc, pe_node_t *node) |
G_GNUC_INTERNAL void | pcmk__order_probes (pe_working_set_t *data_set) |
G_GNUC_INTERNAL bool | pcmk__probe_resource_list (GList *rscs, pe_node_t *node) |
G_GNUC_INTERNAL void | pcmk__schedule_probes (pe_working_set_t *data_set) |
void | pcmk__create_migration_actions (pe_resource_t *rsc, const pe_node_t *current) |
void | pcmk__abort_dangling_migration (void *data, void *user_data) |
bool | pcmk__rsc_can_migrate (const pe_resource_t *rsc, const pe_node_t *current) |
void | pcmk__order_migration_equivalents (pe__ordering_t *order) |
G_GNUC_INTERNAL int | pcmk__compare_node_capacities (const pe_node_t *node1, const pe_node_t *node2) |
G_GNUC_INTERNAL void | pcmk__consume_node_capacity (GHashTable *current_utilization, pe_resource_t *rsc) |
G_GNUC_INTERNAL void | pcmk__release_node_capacity (GHashTable *current_utilization, const pe_resource_t *rsc) |
G_GNUC_INTERNAL const pe_node_t * | pcmk__ban_insufficient_capacity (pe_resource_t *rsc) |
G_GNUC_INTERNAL void | pcmk__create_utilization_constraints (pe_resource_t *rsc, GList *allowed_nodes) |
G_GNUC_INTERNAL void | pcmk__show_node_capacities (const char *desc, pe_working_set_t *data_set) |
#define pcmk__clear_updated_flags | ( | au_flags, | |
action, | |||
flags_to_clear | |||
) |
Definition at line 48 of file libpacemaker_private.h.
#define pcmk__order_resource_actions | ( | first_rsc, | |
first_task, | |||
then_rsc, | |||
then_task, | |||
flags | |||
) |
Definition at line 497 of file libpacemaker_private.h.
Definition at line 506 of file libpacemaker_private.h.
Definition at line 510 of file libpacemaker_private.h.
#define pcmk__set_updated_flags | ( | au_flags, | |
action, | |||
flags_to_set | |||
) |
Definition at line 41 of file libpacemaker_private.h.
enum pcmk__coloc_affects |
Enumerator | |
---|---|
pcmk__coloc_affects_nothing | |
pcmk__coloc_affects_location | |
pcmk__coloc_affects_role |
Definition at line 370 of file libpacemaker_private.h.
enum pcmk__coloc_select |
Enumerator | |
---|---|
pcmk__coloc_select_default | |
pcmk__coloc_select_this_with | |
pcmk__coloc_select_nonnegative | |
pcmk__coloc_select_active |
Definition at line 20 of file libpacemaker_private.h.
enum pcmk__updated |
Enumerator | |
---|---|
pcmk__updated_none | |
pcmk__updated_first | |
pcmk__updated_then |
Definition at line 35 of file libpacemaker_private.h.
void pcmk__abort_dangling_migration | ( | void * | data, |
void * | user_data | ||
) |
Definition at line 148 of file pcmk_sched_migration.c.
G_GNUC_INTERNAL bool pcmk__action_is_recurring | ( | const pe_action_t * | action | ) |
Definition at line 704 of file pcmk_sched_recurring.c.
G_GNUC_INTERNAL bool pcmk__action_locks_rsc_to_node | ( | const pe_action_t * | action | ) |
Definition at line 1296 of file pcmk_sched_actions.c.
G_GNUC_INTERNAL void pcmk__add_bundle_meta_to_xml | ( | xmlNode * | args_xml, |
pe_action_t * | action | ||
) |
Add special bundle meta-attributes to XML.
If a given action will be executed on a guest node (including a bundle), add the special bundle meta-attribute "container-attribute-target" and environment variable "physical_host" as XML attributes (using meta-attribute naming).
[in] | args_xml | XML to add attributes to |
[in] | action | Action to check |
Definition at line 677 of file pcmk_sched_remote.c.
G_GNUC_INTERNAL void pcmk__add_colocated_node_scores | ( | pe_resource_t * | rsc, |
const char * | log_id, | ||
GHashTable ** | nodes, | ||
const char * | attr, | ||
float | factor, | ||
uint32_t | flags | ||
) |
Definition at line 1411 of file pcmk_sched_colocation.c.
G_GNUC_INTERNAL void pcmk__add_promotion_scores | ( | pe_resource_t * | rsc | ) |
Definition at line 732 of file pcmk_sched_promotable.c.
G_GNUC_INTERNAL void pcmk__add_rsc_actions_to_graph | ( | pe_resource_t * | rsc | ) |
Definition at line 963 of file pcmk_graph_producer.c.
G_GNUC_INTERNAL void pcmk__add_this_with | ( | pe_resource_t * | rsc, |
pcmk__colocation_t * | colocation | ||
) |
Definition at line 141 of file pcmk_sched_colocation.c.
G_GNUC_INTERNAL void pcmk__add_with_this | ( | pe_resource_t * | rsc, |
pcmk__colocation_t * | colocation | ||
) |
Definition at line 155 of file pcmk_sched_colocation.c.
G_GNUC_INTERNAL bool pcmk__any_node_available | ( | GHashTable * | nodes | ) |
Definition at line 252 of file pcmk_sched_nodes.c.
G_GNUC_INTERNAL void pcmk__apply_coloc_to_priority | ( | pe_resource_t * | dependent, |
const pe_resource_t * | primary, | ||
const pcmk__colocation_t * | colocation | ||
) |
Definition at line 1122 of file pcmk_sched_colocation.c.
G_GNUC_INTERNAL void pcmk__apply_coloc_to_weights | ( | pe_resource_t * | dependent, |
const pe_resource_t * | primary, | ||
const pcmk__colocation_t * | colocation | ||
) |
Definition at line 1042 of file pcmk_sched_colocation.c.
G_GNUC_INTERNAL void pcmk__apply_location | ( | pe_resource_t * | rsc, |
pe__location_t * | constraint | ||
) |
Definition at line 623 of file pcmk_sched_location.c.
G_GNUC_INTERNAL void pcmk__apply_locations | ( | pe_working_set_t * | data_set | ) |
Definition at line 602 of file pcmk_sched_location.c.
G_GNUC_INTERNAL void pcmk__apply_node_health | ( | pe_working_set_t * | data_set | ) |
Definition at line 276 of file pcmk_sched_nodes.c.
G_GNUC_INTERNAL void pcmk__apply_orderings | ( | pe_working_set_t * | data_set | ) |
Definition at line 1360 of file pcmk_sched_ordering.c.
G_GNUC_INTERNAL bool pcmk__assign_resource | ( | pe_resource_t * | rsc, |
pe_node_t * | node, | ||
bool | force | ||
) |
Definition at line 435 of file pcmk_sched_resource.c.
G_GNUC_INTERNAL const pe_node_t* pcmk__ban_insufficient_capacity | ( | pe_resource_t * | rsc | ) |
Definition at line 297 of file pcmk_sched_utilization.c.
G_GNUC_INTERNAL void pcmk__block_colocation_dependents | ( | pe_action_t * | action, |
pe_working_set_t * | data_set | ||
) |
Definition at line 836 of file pcmk_sched_colocation.c.
G_GNUC_INTERNAL void pcmk__bundle_apply_coloc_score | ( | pe_resource_t * | dependent, |
const pe_resource_t * | primary, | ||
const pcmk__colocation_t * | colocation, | ||
bool | for_dependent | ||
) |
Definition at line 455 of file pcmk_sched_bundle.c.
G_GNUC_INTERNAL bool pcmk__check_action_config | ( | pe_resource_t * | rsc, |
pe_node_t * | node, | ||
xmlNode * | xml_op | ||
) |
Definition at line 1610 of file pcmk_sched_actions.c.
G_GNUC_INTERNAL void pcmk__clone_apply_coloc_score | ( | pe_resource_t * | dependent, |
const pe_resource_t * | primary, | ||
const pcmk__colocation_t * | colocation, | ||
bool | for_dependent | ||
) |
Definition at line 699 of file pcmk_sched_clone.c.
G_GNUC_INTERNAL gint pcmk__cmp_instance | ( | gconstpointer | a, |
gconstpointer | b | ||
) |
Definition at line 930 of file pcmk_sched_resource.c.
G_GNUC_INTERNAL gint pcmk__cmp_instance_number | ( | gconstpointer | a, |
gconstpointer | b | ||
) |
Definition at line 881 of file pcmk_sched_resource.c.
G_GNUC_INTERNAL GList* pcmk__colocated_resources | ( | pe_resource_t * | rsc, |
pe_resource_t * | orig_rsc, | ||
GList * | colocated_rscs | ||
) |
Definition at line 211 of file pcmk_sched_resource.c.
G_GNUC_INTERNAL enum pcmk__coloc_affects pcmk__colocation_affects | ( | const pe_resource_t * | dependent, |
const pe_resource_t * | primary, | ||
const pcmk__colocation_t * | colocation, | ||
bool | preview | ||
) |
Definition at line 932 of file pcmk_sched_colocation.c.
G_GNUC_INTERNAL int pcmk__compare_node_capacities | ( | const pe_node_t * | node1, |
const pe_node_t * | node2 | ||
) |
Definition at line 105 of file pcmk_sched_utilization.c.
G_GNUC_INTERNAL pe_node_t* pcmk__connection_host_for_action | ( | pe_action_t * | action | ) |
Definition at line 542 of file pcmk_sched_remote.c.
G_GNUC_INTERNAL void pcmk__consume_node_capacity | ( | GHashTable * | current_utilization, |
pe_resource_t * | rsc | ||
) |
Definition at line 169 of file pcmk_sched_utilization.c.
G_GNUC_INTERNAL GHashTable* pcmk__copy_node_table | ( | GHashTable * | nodes | ) |
Definition at line 65 of file pcmk_sched_nodes.c.
G_GNUC_INTERNAL void pcmk__create_graph | ( | pe_working_set_t * | data_set | ) |
Definition at line 988 of file pcmk_graph_producer.c.
G_GNUC_INTERNAL void pcmk__create_internal_constraints | ( | pe_working_set_t * | data_set | ) |
Definition at line 412 of file pcmk_sched_constraints.c.
void pcmk__create_migration_actions | ( | pe_resource_t * | rsc, |
const pe_node_t * | current | ||
) |
Definition at line 46 of file pcmk_sched_migration.c.
G_GNUC_INTERNAL void pcmk__create_promotable_actions | ( | pe_resource_t * | clone | ) |
Definition at line 1082 of file pcmk_sched_promotable.c.
G_GNUC_INTERNAL void pcmk__create_recurring_actions | ( | pe_resource_t * | rsc | ) |
Definition at line 551 of file pcmk_sched_recurring.c.
G_GNUC_INTERNAL void pcmk__create_utilization_constraints | ( | pe_resource_t * | rsc, |
GList * | allowed_nodes | ||
) |
Definition at line 419 of file pcmk_sched_utilization.c.
G_GNUC_INTERNAL void pcmk__deduplicate_action_inputs | ( | pe_action_t * | action | ) |
Definition at line 1345 of file pcmk_sched_actions.c.
G_GNUC_INTERNAL void pcmk__disable_invalid_orderings | ( | pe_working_set_t * | data_set | ) |
Definition at line 1099 of file pcmk_sched_ordering.c.
G_GNUC_INTERNAL xmlNode* pcmk__expand_tags_in_sets | ( | xmlNode * | xml_obj, |
pe_working_set_t * | data_set | ||
) |
Definition at line 214 of file pcmk_sched_constraints.c.
G_GNUC_INTERNAL void pcmk__fence_guest | ( | pe_node_t * | node | ) |
Definition at line 350 of file pcmk_sched_fencing.c.
G_GNUC_INTERNAL bool pcmk__finalize_assignment | ( | pe_resource_t * | rsc, |
pe_node_t * | chosen, | ||
bool | force | ||
) |
Definition at line 337 of file pcmk_sched_resource.c.
G_GNUC_INTERNAL pe_resource_t* pcmk__find_constraint_resource | ( | GList * | rsc_list, |
const char * | id | ||
) |
Definition at line 106 of file pcmk_sched_constraints.c.
G_GNUC_INTERNAL bool pcmk__graph_has_loop | ( | pe_action_t * | init_action, |
pe_action_t * | action, | ||
pe_action_wrapper_t * | input | ||
) |
Definition at line 761 of file pcmk_graph_producer.c.
G_GNUC_INTERNAL enum pe_action_flags pcmk__group_action_flags | ( | pe_action_t * | action, |
const pe_node_t * | node | ||
) |
Definition at line 511 of file pcmk_sched_group.c.
G_GNUC_INTERNAL void pcmk__group_add_utilization | ( | const pe_resource_t * | rsc, |
const pe_resource_t * | orig_rsc, | ||
GList * | all_rscs, | ||
GHashTable * | utilization | ||
) |
Definition at line 712 of file pcmk_sched_group.c.
G_GNUC_INTERNAL void pcmk__group_apply_coloc_score | ( | pe_resource_t * | dependent, |
const pe_resource_t * | primary, | ||
const pcmk__colocation_t * | colocation, | ||
bool | for_dependent | ||
) |
Definition at line 482 of file pcmk_sched_group.c.
G_GNUC_INTERNAL void pcmk__group_apply_location | ( | pe_resource_t * | rsc, |
pe__location_t * | location | ||
) |
Definition at line 636 of file pcmk_sched_group.c.
G_GNUC_INTERNAL pe_node_t* pcmk__group_assign | ( | pe_resource_t * | rsc, |
const pe_node_t * | prefer | ||
) |
Definition at line 97 of file pcmk_sched_group.c.
G_GNUC_INTERNAL GList* pcmk__group_colocated_resources | ( | pe_resource_t * | rsc, |
pe_resource_t * | orig_rsc, | ||
GList * | colocated_rscs | ||
) |
Definition at line 673 of file pcmk_sched_group.c.
G_GNUC_INTERNAL void pcmk__group_create_actions | ( | pe_resource_t * | rsc | ) |
Definition at line 174 of file pcmk_sched_group.c.
G_GNUC_INTERNAL void pcmk__group_internal_constraints | ( | pe_resource_t * | rsc | ) |
Definition at line 337 of file pcmk_sched_group.c.
G_GNUC_INTERNAL void pcmk__group_shutdown_lock | ( | pe_resource_t * | rsc | ) |
Definition at line 754 of file pcmk_sched_group.c.
G_GNUC_INTERNAL uint32_t pcmk__group_update_ordered_actions | ( | pe_action_t * | first, |
pe_action_t * | then, | ||
const pe_node_t * | node, | ||
uint32_t | flags, | ||
uint32_t | filter, | ||
uint32_t | type, | ||
pe_working_set_t * | data_set | ||
) |
Definition at line 595 of file pcmk_sched_group.c.
G_GNUC_INTERNAL void pcmk__handle_rsc_config_changes | ( | pe_working_set_t * | data_set | ) |
Definition at line 1896 of file pcmk_sched_actions.c.
G_GNUC_INTERNAL xmlNode* pcmk__inject_action_result | ( | xmlNode * | cib_resource, |
lrmd_event_data_t * | op, | ||
int | target_rc | ||
) |
Definition at line 201 of file pcmk_injections.c.
G_GNUC_INTERNAL void pcmk__inject_failcount | ( | pcmk__output_t * | out, |
xmlNode * | cib_node, | ||
const char * | resource, | ||
const char * | task, | ||
guint | interval_ms, | ||
int | rc | ||
) |
Definition at line 89 of file pcmk_injections.c.
G_GNUC_INTERNAL xmlNode* pcmk__inject_node | ( | cib_t * | cib_conn, |
const char * | node, | ||
const char * | uuid | ||
) |
Definition at line 222 of file pcmk_injections.c.
G_GNUC_INTERNAL xmlNode* pcmk__inject_node_state_change | ( | cib_t * | cib_conn, |
const char * | node, | ||
bool | up | ||
) |
Definition at line 282 of file pcmk_injections.c.
G_GNUC_INTERNAL xmlNode* pcmk__inject_resource_history | ( | pcmk__output_t * | out, |
xmlNode * | cib_node, | ||
const char * | resource, | ||
const char * | lrm_name, | ||
const char * | rclass, | ||
const char * | rtype, | ||
const char * | rprovider | ||
) |
Definition at line 343 of file pcmk_injections.c.
void pcmk__inject_scheduler_input | ( | pe_working_set_t * | data_set, |
cib_t * | cib, | ||
pcmk_injections_t * | injections | ||
) |
Definition at line 602 of file pcmk_injections.c.
G_GNUC_INTERNAL bool pcmk__is_failed_remote_node | ( | pe_node_t * | node | ) |
Definition at line 503 of file pcmk_sched_remote.c.
G_GNUC_INTERNAL void pcmk__log_action | ( | const char * | pre_text, |
pe_action_t * | action, | ||
bool | details | ||
) |
Definition at line 956 of file pcmk_sched_actions.c.
G_GNUC_INTERNAL pe_action_t* pcmk__new_cancel_action | ( | pe_resource_t * | rsc, |
const char * | name, | ||
guint | interval_ms, | ||
const pe_node_t * | node | ||
) |
Definition at line 614 of file pcmk_sched_recurring.c.
G_GNUC_INTERNAL void pcmk__new_colocation | ( | const char * | id, |
const char * | node_attr, | ||
int | score, | ||
pe_resource_t * | dependent, | ||
pe_resource_t * | primary, | ||
const char * | dependent_role, | ||
const char * | primary_role, | ||
bool | influence, | ||
pe_working_set_t * | data_set | ||
) |
Definition at line 225 of file pcmk_sched_colocation.c.
G_GNUC_INTERNAL pe__location_t* pcmk__new_location | ( | const char * | id, |
pe_resource_t * | rsc, | ||
int | node_weight, | ||
const char * | discover_mode, | ||
pe_node_t * | foo_node, | ||
pe_working_set_t * | data_set | ||
) |
Definition at line 539 of file pcmk_sched_location.c.
G_GNUC_INTERNAL void pcmk__new_ordering | ( | pe_resource_t * | first_rsc, |
char * | first_task, | ||
pe_action_t * | first_action, | ||
pe_resource_t * | then_rsc, | ||
char * | then_task, | ||
pe_action_t * | then_action, | ||
uint32_t | flags, | ||
pe_working_set_t * | data_set | ||
) |
Definition at line 522 of file pcmk_sched_ordering.c.
G_GNUC_INTERNAL pe_action_t* pcmk__new_shutdown_action | ( | pe_node_t * | node | ) |
Definition at line 1051 of file pcmk_sched_actions.c.
G_GNUC_INTERNAL bool pcmk__node_available | ( | const pe_node_t * | node, |
bool | consider_score, | ||
bool | consider_guest | ||
) |
Definition at line 31 of file pcmk_sched_nodes.c.
G_GNUC_INTERNAL bool pcmk__node_unfenced | ( | pe_node_t * | node | ) |
Definition at line 448 of file pcmk_sched_fencing.c.
G_GNUC_INTERNAL void pcmk__noop_add_graph_meta | ( | pe_resource_t * | rsc, |
xmlNode * | xml | ||
) |
Definition at line 275 of file pcmk_sched_resource.c.
G_GNUC_INTERNAL void pcmk__order_after_each | ( | pe_action_t * | after, |
GList * | list | ||
) |
Definition at line 1421 of file pcmk_sched_ordering.c.
void pcmk__order_migration_equivalents | ( | pe__ordering_t * | order | ) |
Definition at line 257 of file pcmk_sched_migration.c.
G_GNUC_INTERNAL void pcmk__order_probes | ( | pe_working_set_t * | data_set | ) |
Definition at line 760 of file pcmk_sched_probes.c.
G_GNUC_INTERNAL void pcmk__order_promotable_instances | ( | pe_resource_t * | clone | ) |
Definition at line 1104 of file pcmk_sched_promotable.c.
G_GNUC_INTERNAL void pcmk__order_remote_connection_actions | ( | pe_working_set_t * | data_set | ) |
Definition at line 399 of file pcmk_sched_remote.c.
G_GNUC_INTERNAL void pcmk__order_restart_vs_unfence | ( | gpointer | data, |
gpointer | user_data | ||
) |
Definition at line 463 of file pcmk_sched_fencing.c.
G_GNUC_INTERNAL void pcmk__order_stops_before_shutdown | ( | pe_node_t * | node, |
pe_action_t * | shutdown_op | ||
) |
Definition at line 1124 of file pcmk_sched_ordering.c.
G_GNUC_INTERNAL void pcmk__order_vs_fence | ( | pe_action_t * | stonith_op, |
pe_working_set_t * | data_set | ||
) |
Definition at line 291 of file pcmk_sched_fencing.c.
G_GNUC_INTERNAL void pcmk__order_vs_unfence | ( | pe_resource_t * | rsc, |
pe_node_t * | node, | ||
pe_action_t * | action, | ||
enum pe_ordering | order | ||
) |
Definition at line 309 of file pcmk_sched_fencing.c.
G_GNUC_INTERNAL void pcmk__output_actions | ( | pe_working_set_t * | data_set | ) |
Definition at line 1389 of file pcmk_sched_actions.c.
G_GNUC_INTERNAL void pcmk__output_bundle_actions | ( | pe_resource_t * | rsc | ) |
Definition at line 1095 of file pcmk_sched_bundle.c.
G_GNUC_INTERNAL void pcmk__output_resource_actions | ( | pe_resource_t * | rsc | ) |
Definition at line 280 of file pcmk_sched_resource.c.
G_GNUC_INTERNAL enum pe_action_flags pcmk__primitive_action_flags | ( | pe_action_t * | action, |
const pe_node_t * | node | ||
) |
Definition at line 1060 of file pcmk_sched_primitive.c.
G_GNUC_INTERNAL void pcmk__primitive_add_graph_meta | ( | pe_resource_t * | rsc, |
xmlNode * | xml | ||
) |
Definition at line 1352 of file pcmk_sched_primitive.c.
G_GNUC_INTERNAL void pcmk__primitive_add_utilization | ( | const pe_resource_t * | rsc, |
const pe_resource_t * | orig_rsc, | ||
GList * | all_rscs, | ||
GHashTable * | utilization | ||
) |
Definition at line 1402 of file pcmk_sched_primitive.c.
G_GNUC_INTERNAL void pcmk__primitive_apply_coloc_score | ( | pe_resource_t * | dependent, |
const pe_resource_t * | primary, | ||
const pcmk__colocation_t * | colocation, | ||
bool | for_dependent | ||
) |
Definition at line 1015 of file pcmk_sched_primitive.c.
G_GNUC_INTERNAL pe_node_t* pcmk__primitive_assign | ( | pe_resource_t * | rsc, |
const pe_node_t * | prefer | ||
) |
Definition at line 386 of file pcmk_sched_primitive.c.
G_GNUC_INTERNAL void pcmk__primitive_create_actions | ( | pe_resource_t * | rsc | ) |
Definition at line 626 of file pcmk_sched_primitive.c.
G_GNUC_INTERNAL void pcmk__primitive_internal_constraints | ( | pe_resource_t * | rsc | ) |
Definition at line 845 of file pcmk_sched_primitive.c.
G_GNUC_INTERNAL void pcmk__primitive_shutdown_lock | ( | pe_resource_t * | rsc | ) |
Definition at line 1461 of file pcmk_sched_primitive.c.
G_GNUC_INTERNAL bool pcmk__probe_resource_list | ( | GList * | rscs, |
pe_node_t * | node | ||
) |
Definition at line 52 of file pcmk_sched_probes.c.
G_GNUC_INTERNAL bool pcmk__probe_rsc_on_node | ( | pe_resource_t * | rsc, |
pe_node_t * | node | ||
) |
Definition at line 153 of file pcmk_sched_probes.c.
G_GNUC_INTERNAL void pcmk__promotable_restart_ordering | ( | pe_resource_t * | rsc | ) |
Definition at line 1443 of file pcmk_sched_ordering.c.
G_GNUC_INTERNAL void pcmk__release_node_capacity | ( | GHashTable * | current_utilization, |
const pe_resource_t * | rsc | ||
) |
Definition at line 187 of file pcmk_sched_utilization.c.
G_GNUC_INTERNAL void pcmk__require_promotion_tickets | ( | pe_resource_t * | rsc | ) |
Definition at line 520 of file pcmk_sched_tickets.c.
G_GNUC_INTERNAL void pcmk__reschedule_recurring | ( | pe_resource_t * | rsc, |
const char * | task, | ||
guint | interval_ms, | ||
pe_node_t * | node | ||
) |
Definition at line 683 of file pcmk_sched_recurring.c.
G_GNUC_INTERNAL bool pcmk__rsc_agent_changed | ( | pe_resource_t * | rsc, |
pe_node_t * | node, | ||
const xmlNode * | rsc_entry, | ||
bool | active_on_node | ||
) |
Definition at line 99 of file pcmk_sched_resource.c.
bool pcmk__rsc_can_migrate | ( | const pe_resource_t * | rsc, |
const pe_node_t * | current | ||
) |
Definition at line 177 of file pcmk_sched_migration.c.
G_GNUC_INTERNAL bool pcmk__rsc_corresponds_to_guest | ( | pe_resource_t * | rsc, |
pe_node_t * | node | ||
) |
Definition at line 520 of file pcmk_sched_remote.c.
G_GNUC_INTERNAL GList* pcmk__rscs_matching_id | ( | const char * | id, |
pe_working_set_t * | data_set | ||
) |
Definition at line 171 of file pcmk_sched_resource.c.
G_GNUC_INTERNAL void pcmk__schedule_cancel | ( | pe_resource_t * | rsc, |
const char * | call_id, | ||
const char * | task, | ||
guint | interval_ms, | ||
const pe_node_t * | node, | ||
const char * | reason | ||
) |
Definition at line 652 of file pcmk_sched_recurring.c.
G_GNUC_INTERNAL void pcmk__schedule_cleanup | ( | pe_resource_t * | rsc, |
const pe_node_t * | node, | ||
bool | optional | ||
) |
Definition at line 1313 of file pcmk_sched_primitive.c.
G_GNUC_INTERNAL void pcmk__schedule_probes | ( | pe_working_set_t * | data_set | ) |
Definition at line 779 of file pcmk_sched_probes.c.
G_GNUC_INTERNAL void pcmk__set_allocation_methods | ( | pe_working_set_t * | data_set | ) |
Definition at line 203 of file pcmk_sched_resource.c.
G_GNUC_INTERNAL void pcmk__set_instance_roles | ( | pe_resource_t * | rsc | ) |
Definition at line 1012 of file pcmk_sched_promotable.c.
G_GNUC_INTERNAL void pcmk__show_node_capacities | ( | const char * | desc, |
pe_working_set_t * | data_set | ||
) |
Definition at line 456 of file pcmk_sched_utilization.c.
G_GNUC_INTERNAL GList* pcmk__sort_nodes | ( | GList * | nodes, |
pe_node_t * | active_node | ||
) |
Definition at line 237 of file pcmk_sched_nodes.c.
G_GNUC_INTERNAL void pcmk__sort_resources | ( | pe_working_set_t * | data_set | ) |
Definition at line 698 of file pcmk_sched_resource.c.
G_GNUC_INTERNAL void pcmk__substitute_remote_addr | ( | pe_resource_t * | rsc, |
GHashTable * | params | ||
) |
Definition at line 649 of file pcmk_sched_remote.c.
G_GNUC_INTERNAL bool pcmk__tag_to_set | ( | xmlNode * | xml_obj, |
xmlNode ** | rsc_set, | ||
const char * | attr, | ||
bool | convert_rsc, | ||
pe_working_set_t * | data_set | ||
) |
Definition at line 332 of file pcmk_sched_constraints.c.
G_GNUC_INTERNAL bool pcmk__threshold_reached | ( | pe_resource_t * | rsc, |
pe_node_t * | node, | ||
pe_resource_t ** | failed | ||
) |
Definition at line 500 of file pcmk_sched_resource.c.
G_GNUC_INTERNAL pe_node_t* pcmk__top_allowed_node | ( | const pe_resource_t * | rsc, |
const pe_node_t * | node | ||
) |
Definition at line 340 of file pcmk_sched_nodes.c.
G_GNUC_INTERNAL void pcmk__unassign_resource | ( | pe_resource_t * | rsc | ) |
Definition at line 466 of file pcmk_sched_resource.c.
G_GNUC_INTERNAL void pcmk__unpack_colocation | ( | xmlNode * | xml_obj, |
pe_working_set_t * | data_set | ||
) |
Definition at line 734 of file pcmk_sched_colocation.c.
G_GNUC_INTERNAL void pcmk__unpack_location | ( | xmlNode * | xml_obj, |
pe_working_set_t * | data_set | ||
) |
Definition at line 481 of file pcmk_sched_location.c.
G_GNUC_INTERNAL void pcmk__unpack_ordering | ( | xmlNode * | xml_obj, |
pe_working_set_t * | data_set | ||
) |
Definition at line 995 of file pcmk_sched_ordering.c.
G_GNUC_INTERNAL void pcmk__unpack_rsc_ticket | ( | xmlNode * | xml_obj, |
pe_working_set_t * | data_set | ||
) |
Definition at line 435 of file pcmk_sched_tickets.c.
G_GNUC_INTERNAL void pcmk__update_action_for_orderings | ( | pe_action_t * | action, |
pe_working_set_t * | data_set | ||
) |
Definition at line 500 of file pcmk_sched_actions.c.
G_GNUC_INTERNAL void pcmk__update_dependent_with_promotable | ( | const pe_resource_t * | primary, |
pe_resource_t * | dependent, | ||
const pcmk__colocation_t * | colocation | ||
) |
Update dependent for a colocation with a promotable clone.
[in] | primary | Primary resource in the colocation |
[in,out] | dependent | Dependent resource in the colocation |
[in] | colocation | Colocation constraint to apply |
Definition at line 1179 of file pcmk_sched_promotable.c.
G_GNUC_INTERNAL uint32_t pcmk__update_ordered_actions | ( | pe_action_t * | first, |
pe_action_t * | then, | ||
const pe_node_t * | node, | ||
uint32_t | flags, | ||
uint32_t | filter, | ||
uint32_t | type, | ||
pe_working_set_t * | data_set | ||
) |
Definition at line 835 of file pcmk_sched_actions.c.
G_GNUC_INTERNAL void pcmk__update_promotable_dependent_priority | ( | const pe_resource_t * | primary, |
pe_resource_t * | dependent, | ||
const pcmk__colocation_t * | colocation | ||
) |
Definition at line 1232 of file pcmk_sched_promotable.c.
G_GNUC_INTERNAL bool pcmk__valid_resource_or_tag | ( | pe_working_set_t * | data_set, |
const char * | id, | ||
pe_resource_t ** | rsc, | ||
pe_tag_t ** | tag | ||
) |
Definition at line 182 of file pcmk_sched_constraints.c.