pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
Macros | Enumerations | Functions
pcmk_sched_instances.c File Reference
#include <crm_internal.h>
#include <crm/msg_xml.h>
#include <pacemaker-internal.h>
#include "libpacemaker_private.h"
Include dependency graph for pcmk_sched_instances.c:

Go to the source code of this file.

Macros

#define pe__clear_action_summary_flags(flags, action, flag)
 

Enumerations

enum  instance_state {
  instance_starting = (1 << 0), instance_stopping = (1 << 1), instance_restarting = (1 << 2), instance_active = (1 << 3),
  instance_all
}
 

Functions

gint pcmk__cmp_instance_number (gconstpointer a, gconstpointer b)
 
gint pcmk__cmp_instance (gconstpointer a, gconstpointer b)
 
void pcmk__assign_instances (pcmk_resource_t *collective, GList *instances, int max_total, int max_per_node)
 
void pcmk__create_instance_actions (pcmk_resource_t *collective, GList *instances)
 
bool pcmk__instance_matches (const pcmk_resource_t *instance, const pcmk_node_t *node, enum rsc_role_e role, bool current)
 
pcmk_resource_tpcmk__find_compatible_instance (const pcmk_resource_t *match_rsc, const pcmk_resource_t *rsc, enum rsc_role_e role, bool current)
 
uint32_t pcmk__instance_update_ordered_actions (pcmk_action_t *first, pcmk_action_t *then, const pcmk_node_t *node, uint32_t flags, uint32_t filter, uint32_t type, pcmk_scheduler_t *scheduler)
 
uint32_t pcmk__collective_action_flags (pcmk_action_t *action, const GList *instances, const pcmk_node_t *node)
 

Macro Definition Documentation

◆ pe__clear_action_summary_flags

#define pe__clear_action_summary_flags (   flags,
  action,
  flag 
)
Value:
do { \
flags = pcmk__clear_flags_as(__func__, __LINE__, LOG_TRACE, \
"Action summary", action->rsc->id, \
flags, flag, #flag); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38
const char * action
Definition: pcmk_fence.c:30
uint64_t flags
Definition: remote.c:215

Definition at line 1601 of file pcmk_sched_instances.c.

Enumeration Type Documentation

◆ instance_state

Enumerator
instance_starting 
instance_stopping 
instance_restarting 
instance_active 
instance_all 

Definition at line 864 of file pcmk_sched_instances.c.

Function Documentation

◆ pcmk__assign_instances()

void pcmk__assign_instances ( pcmk_resource_t collective,
GList *  instances,
int  max_total,
int  max_per_node 
)

Definition at line 779 of file pcmk_sched_instances.c.

◆ pcmk__cmp_instance()

gint pcmk__cmp_instance ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 346 of file pcmk_sched_instances.c.

◆ pcmk__cmp_instance_number()

gint pcmk__cmp_instance_number ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 297 of file pcmk_sched_instances.c.

◆ pcmk__collective_action_flags()

uint32_t pcmk__collective_action_flags ( pcmk_action_t action,
const GList *  instances,
const pcmk_node_t node 
)

Definition at line 1618 of file pcmk_sched_instances.c.

◆ pcmk__create_instance_actions()

void pcmk__create_instance_actions ( pcmk_resource_t collective,
GList *  instances 
)

Definition at line 973 of file pcmk_sched_instances.c.

◆ pcmk__find_compatible_instance()

pcmk_resource_t* pcmk__find_compatible_instance ( const pcmk_resource_t match_rsc,
const pcmk_resource_t rsc,
enum rsc_role_e  role,
bool  current 
)

Definition at line 1169 of file pcmk_sched_instances.c.

◆ pcmk__instance_matches()

bool pcmk__instance_matches ( const pcmk_resource_t instance,
const pcmk_node_t node,
enum rsc_role_e  role,
bool  current 
)

Definition at line 1074 of file pcmk_sched_instances.c.

◆ pcmk__instance_update_ordered_actions()

uint32_t pcmk__instance_update_ordered_actions ( pcmk_action_t first,
pcmk_action_t then,
const pcmk_node_t node,
uint32_t  flags,
uint32_t  filter,
uint32_t  type,
pcmk_scheduler_t scheduler 
)

Definition at line 1568 of file pcmk_sched_instances.c.